:root {
    --dark-blue: #191c23;
    --green: #55b776;
    --gray: #7d7d7d; 
    --white: #ffffff;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: var(--dark-blue);
    color: var(--white);
}

.box {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem 2rem;
    background: var(--dark-blue);
    color: var(--white);
    z-index: 9999;
    width: calc(100% - 4rem - clamp(16rem, 24vw, 24rem) - 4rem);
    border-top: 2px solid var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'VT323';
}

.box.mobile {
    display: none;
}

.box.admin {
    position: fixed;
    width: calc(100% - 4rem);
}

.progressbar {
    counter-reset: step;
    max-width: 50%;
    width: clamp(20rem, 30vw, 30rem);
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.progressbar li {
    list-style-type: none;
    width: 25%;
    float: left;
    font-size: 12px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    color: var(--gray);
}

.progressbar li:before {
    width: 30px;
    height: 30px;
    content: counter(step);
    counter-increment: step;
    line-height: 30px;
    border: 2px solid var(--gray);
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: var(--white);
}

.progressbar li:nth-child(4):before {
    width: 30px;
    height: 30px;
    content: '';
    counter-increment: step;
    line-height: 30px;
    border: 2px solid var(--gray);
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: var(--white);
    background-image: url('/static/images/trophy.svg');
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
}

.progressbar li.active:nth-child(4):before {
    background-image: url('/static/images/trophy-green.svg');
}

.progressbar li:after {
    width: 100%;
    height: 2px;
    content: '';
    position: absolute;
    background-color: var(--gray);
    top: 15px;
    left: -50%;
    z-index: -1;
}

.progressbar li:first-child:after {
    content: none;
}

.progressbar li.active {
    color: var(--green);
}

.progressbar li.active:before {
    border-color: var(--green);
}

.progressbar li.active + li:after {
    background-color: var(--green);
}

.kilometer, .stats {
    font-size: min(max(1.1rem, 1.25vw), 1.5rem);
    min-width: 20%;
}

.stats {
    position: relative;
    float: right;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.klassen {
    hyphens: none;
    white-space: nowrap;
    text-align: right;
}

img.ticker-button {
    width: clamp(2rem, 3vw, 3rem);
    float: right;
    margin-left: clamp(1rem, 2vw, 2rem);
    cursor: pointer;
    transition: .5s all ease;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(132deg) brightness(103%) contrast(103%);
}

img.ticker-button:hover {
    filter: invert(82%) sepia(9%) saturate(1342%) hue-rotate(104deg) brightness(82%) contrast(93%);
}

.level-details {
    position: absolute;
    z-index: 11;
    color: white;
    left: 0;
    /* transform: translate(-50%, 0); */
    text-align: center;
    top: clamp(2rem, 4vw, 4rem);
    width: calc(100% - 4rem - clamp(16rem, 24vw, 24rem));
}

h1 {
    font-size: min(max(3rem, 3vw), 4rem);
    font-weight: normal;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0, 0.25);
}

h2 {
    font-weight: bold;
    letter-spacing: 0px;
    font-size: min(max(1.5rem, 2vw), 2rem);
    line-height: 1;
}

h3 {
    font-weight: bold;
    letter-spacing: 0px;
    font-size: min(max(1.2rem, 1.5vw), 1.5rem);
    line-height: 1;
}

.level-text {
    position: absolute;
    bottom: 15%;
    z-index: 9;
    left: 0;
    width: calc(100% - clamp(16rem, 24vw, 24rem) - 4rem);
    text-align: center;
    padding: 0 2rem;
    display: block;
    color: var(--white);
}

a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: inherit;
}

.liveticker {
    position: absolute;
    right: 0;
    top: 0;
    width: clamp(16rem, 24vw, 24rem);
    height: calc(100% - 4rem);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: var(--dark-blue);
    color: var(--white);
    justify-content: flex-end;
    z-index: 11111;
    border-left: 2px solid var(--white);
    /*transform: translate(100%, 0);
    display: none;*/
    overflow: hidden;
}

.liveticker-content {
    font-family: 'Roboto Mono';
}

.liveticker-scroll {
    position: relative;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column-reverse;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.liveticker-scroll::-webkit-scrollbar {
    display: none;
  }

.liveticker-gradient {
    background: -moz-linear-gradient(top,  rgba(25,28,35,1) 0%, rgba(25,28,35,0) 100%); 
    background: -webkit-linear-gradient(top,  rgba(25,28,35,1) 0%,rgba(25,28,35,0) 100%); 
    background: linear-gradient(to bottom,  rgba(25,28,35,1) 0%,rgba(25,28,35,0) 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#191c23', endColorstr='#00191c23',GradientType=0 ); 
    position: absolute;
    top: 0;
    left: 0;
    height: 20%;
    width: 100%;
    z-index: 1;
}

.ticker-item {
    position: relative;
    float: left;
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    font-size: min(max(0.9rem, 1vw), 1rem);
    font-weight: normal;
    line-height: 1.25;
    border-bottom: 1px solid var(--white);
}

.liveticker-content .ticker-item:first-child {
    margin-top: 15%;
    float: left;
}

.liveticker-content .ticker-item:last-child {
    border: none;
}

.ticker-item img {
    width: 100%;
    float: left;
    margin-top: 1rem;
}

img.close {
    position: absolute;
    top: clamp(1rem, 2vw, 2rem);
    left: clamp(1rem, 2vw, 2rem);
    width: clamp(1rem, 1.5vw, 1.5rem);
    height: clamp(1rem, 1.5vw, 1.5rem);
    cursor: pointer;
    z-index: 2;
}

b.ticker-title {
    font-size: min(max(1rem, 1.1vw), 1.2rem);
    margin-bottom: 1rem;
    float: left;
    width: 100%;
}

.mood {
    border: 1px solid var(--blue);
    border-radius: 26px;
    padding: 8px 16px;
    background: none;
    position: relative;
    float: left;
    outline: none;
    color: var(--white);
    margin-bottom: 10px;
    margin-right: 10px;
    font-family: 'VT323';
    letter-spacing: 1px;
    transition: .5s all ease;
    text-transform: uppercase;
}

.liveticker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 10000;
    opacity: 0;
    visibility: none;
}

a.home-button {
    position: absolute;
    top: clamp(2rem, 4vw, 4rem);
    left: clamp(2rem, 4vw, 4rem);
    width: clamp(20px, 4vw, 30px);
    height: clamp(20px, 4vw, 30px);
    z-index: 99;
    padding: clamp(1rem, 2vw, 2rem);
    background: var(--dark-blue);
    border-radius: 50%;
    transition: .5s all ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.home-button img {
    transition: .5s all ease;
    filter: invert(1) brightness(2);
    width: clamp(1.5rem, 2vw, 2rem);
}

a.home-button:hover {
    background: var(--white);
}

a.home-button:hover img {
    filter: none;
}

a.home-button.bright {
    background: var(--white);
}

a.home-button.bright img {
    filter: none;
}

a.home-button.bright:hover {
    background-color: var(--dark-blue);
}

a.home-button.bright:hover img {
    filter: invert(1) brightness(2);;
}

.klassenuebersicht h1 {
    font-size: min(max(2rem, 3vw), 3rem);
}

span.check {
    color: var(--green);
}

.content.klassendetail {
    display: flex;
    flex-direction: row;
}

.klasse-detail {
    border: 1px solid white;
    margin: clamp(0.25rem, 0.5vw, 1rem);
    border-radius: 20px;
}

.klassendetail .klasse-detail {
    border: none;
}

@media only screen and (max-width: 1500px) {
    .level-text {
        bottom: 18%;
        max-width: 80%;
    }
}

@media only screen and (max-width: 800px) {
    .box.desktop {
        display: none;
    }

    .box.mobile {
        display: block;
        padding: 1rem;
        width: calc(100% - 2rem);
    }

    .kilometer {
        width: 50%;
        float: left;
    }

    .stats {
        width: 50%;
        float: right;
    }

    .progressbar {
        position: relative;
        float: left;
        width: 100%;
        max-width: 100%;
        margin-top: clamp(1rem, 2vw, 2rem);
        margin-bottom: 0;
    }

    .liveticker {
        width: 80%;
    }

    .level-text {
        bottom: 20%;
        width: 100%;
    }

    .level-text h3 {
        white-space: pre-wrap;
        text-align: center;
        font-size: min(max(1.25rem, 2vw), 2rem);
    }

    h3 {
        font-size: min(max(1.25rem, 2vw), 2rem);
    }

    .mood {
        padding: 6px 12px;
    }

    .liveticker {
        transform: translate(100%, 0);
        display: none;
    }

    .level-details {
        width: 100%;
    }
}

@media only screen and (max-width: 375px) {
    a.home-button {
        top: clamp(1.5rem, 4vw, 4rem);
        left: clamp(1.5rem, 4vw, 4rem);
        width: clamp(15px, 4vw, 30px);
        height: clamp(15px, 4vw, 30px);
    }

    .level-details {
        top: clamp(1.5rem, 4vw, 4rem);
    }

    h1 {
        font-size: min(max(2.5rem, 3vw), 4rem);
    }

    .box.mobile {
        padding: 1rem 0.5rem;
        width: calc(100% - 1rem);
    }

    .kilometer, .stats {
        font-size: min(max(1rem, 1.25vw), 1.5rem);
    }

    .level-text {
        bottom: 10rem;
    }
}