:root {
    --background-color: #e6e8ed;
    --text-color: #4C4C4C;
    --max-width: 400px;
    --scroll-width: 40%; /* is overridden by JS but at least it has a default value */
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: var(--max-width);
    padding: 20px;
    margin: 0 auto
}

.header-logo {
    width: 100%;
    max-width: 140px;
}

#counter {
    font-weight: 500;
    font-size: 14px;
}

.music-player {
    margin-top: 160px;
}

.title-barcode-wrapper {
    margin-top: 5px;
    width: 100%;
    overflow: hidden;
}
.title-barcode {
    font-size: 18px; /*48px*/
    letter-spacing: 7px;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Helvetica Neue', sans-serif; /*'Libre Barcode 128 Text'*/
    animation: scroll-text 4s linear alternate infinite;
    animation-play-state: paused;
}
.title-barcode.animated {
    animation-play-state: running;
}
@keyframes scroll-text {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--scroll-width));
    }
}

.progress-container {
    display: flex;
    align-items: center;
    margin-top: 25px;
}
#current-time,
#remaining-time {
    font-size: 14px;
}
#current-time {
    margin-right: 10px;
}
#remaining-time {
    margin-left: 10px;
}
#progress-bar {
    appearance: none;
    width: 100%;
    height: 12px;
    background: #e6e6e6;
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
#progress-bar::-webkit-slider-thumb:hover {
    background: #f0f0f0;
    border: 2px solid #999;
}

#progress-bar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
#progress-bar::-moz-range-thumb:hover {
    background: #f0f0f0;
    border: 2px solid #999;
}

#progress-bar::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
#progress-bar::-ms-thumb:hover {
    background: #f0f0f0;
    border: 2px solid #999;
}

.controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.controls button {
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 10px;
}
.controls button:hover {
    transform: scale(1.2);
}
.controls button:active {
    transform: scale(1.1);
}
.controls button span {
    font-size: 50px;
}

.color-dots {
    margin-top: 100px;
}
.color-dots-raw {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.color-dots-raw:nth-child(2) {
    margin-top: 20px;
}
.dot {
    width: 65px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 10px;
    margin: 0 2px;
}
.dot:first-of-type {
    margin-left: 0;
}
.dot:last-of-type {
    margin-right: 0;
}
.logo-dot {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-animation-wrapper {
    animation: spin 2s linear infinite;
    animation-play-state: paused;
    padding: 3px;
}
.logo-dot .logo-animation-wrapper.animated {
    animation-play-state: running;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.logo-dot img {
    width: 100%;
}
.logo-dot a:hover img {
    transform: scale(1.1);
}

.footer {
    margin-top: 100px;
    width: 100%;
    text-align: center;
}
.footer a {
    color: var(--text-color);
    font-size: small;
    letter-spacing: 3px;
}

@media (max-height: 800px) {
    .music-player {
        margin-top: 50px;
    }
    .color-dots {
        margin-top: 50px;
    }
    .footer {
        margin-top: 50px;
    }
}

* {
    transition: all 0.2s;
}