@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@1,700&display=swap');

html {
    margin: 0;
    background-color: black;
    color: white;
    font-family: "Arial", serif;
}

body {
    margin: 0;
}

body {
    max-width: 1200px;
    box-sizing: content-box;
    margin: 0 auto;
    width: 100%;
}

.title {
    position: relative;
    display: block;
    font-family: 'Lato', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 64px;
    transform: scaleX(2.79);
    text-transform: uppercase;
    width: 25%;
    transform-origin: 0 0;
    position: relative;
    margin: 10px 0;
    letter-spacing: -1px;
}

.blue-underline-one {
    background-color: #061CE3;
    width: 100%;
    height: 20px;
    margin-bottom: 5px;
}

.blue-underline-two {
    background-color: #0055E6;
    width: 70%;
    height: 20px;
    margin-bottom: 5px;
}

.blue-underline-three {
    background-color: #0079F9;
    width: 50%;
    height: 20px;
    margin-bottom: 5px;
}

.flexbox-rows {
    margin-top: 50px;
    display: flex;
    flex-direction: row;    
}

.flexbox-rows>div {
    align-items: stretch;
    flex: 100% 1 1;
    margin-right: 10px;
}

.flexbox-rows div:last-of-type {
    margin-right: 0;
}

.row-one {
    background-color: darkorange;
    color: black;
}

.new-releases {
    text-align: center;
    margin: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 40px;
}

.list-new {
    background-color: red;
}

.list-new>ul {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 22px;
}

.list-new>ul>li {
    margin-bottom: 5px;
}

.celebrity-title {
    margin: 5px 0;
    margin-top: 10px;
    font-weight: 600;
    font-size: 28px;
    margin-left: 5px;
}

.celebrity-name {
    font-weight: 900;
    font-style: italic;
    text-align: center;
    margin: 5px 0;
    margin-left: 10%;
    font-size: 24px;
}

.row-two {
    background-color: #464445;
}

.row-two h3 {
    font-weight: normal;
    text-decoration: underline;
    margin: 5px 0;
    text-align: center;
}

.row-two ol {
    margin: 5px 0;
}

.row-two li {
    margin-top: 2px;
}

.row-three {
    display: flex;
    flex-direction: column;
}

.row-three>div {
    flex: calc(50% - 3px) 1 1;
    margin-bottom: 6px;
    background-color: #2D2D2D;
    color: white;
}

.row-three>div:last-of-type {
    margin-bottom: 0;
}

.poll {
    text-align: center;
}

.poll h3 {
    margin: 5px 0;
    margin-bottom: 1px;
    margin-top: 0;
    padding-top: 2px;
    font-weight: 300;
}

.poll p {
    margin: 0 5px;
}

.poll label {
    display: block; 
    margin: 0;
    margin-left: 15%;
    text-align: left;
    margin-top: 2px;
}

.favourite-downloads ul {
    list-style: none;
    color: white;
    margin-top: 10px;
    margin-bottom: 0;
}

.favourite-downloads li {
    margin-top: 2px;
}

.favourite-downloads h3 {
    text-align: center;
    margin-top: 0;
    padding-top: 0px;
    margin-bottom: 0;
}

a {
    color: inherit;
}

.genres {
    width: 100%;
    margin-top: 20px;
    font-size: 28px;
    display: flex;
}

.genres .spacer {
    flex-grow: 1;
}

.genre-title {
    color: #FCA300;
}

/* Car picker */
.car-picker {
    margin-top: 40px;
    width: 100%;
}

.car-picker-title {
    color: #FCA300;
    font-size: 20px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: normal;
    text-decoration: underline;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.car-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px 8px;
    border: 2px solid #333;
    background-color: #0d0d0d;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
}

.car-option img {
    width: 90%;
    height: auto;
    transition: filter 0.15s;
    animation: carFloat1 3.2s ease-in-out infinite;
}

.car-option:nth-child(2) img { animation-name: carFloat2; animation-duration: 2.8s; animation-delay: -0.9s; }
.car-option:nth-child(3) img { animation-name: carFloat1; animation-duration: 3.5s; animation-delay: -1.7s; }
.car-option:nth-child(4) img { animation-name: carFloat3; animation-duration: 2.6s; animation-delay: -0.3s; }
.car-option:nth-child(5) img { animation-name: carFloat2; animation-duration: 3.1s; animation-delay: -2.1s; }
.car-option:nth-child(6) img { animation-name: carFloat3; animation-duration: 2.9s; animation-delay: -1.1s; }
.car-option:nth-child(7) img { animation-name: carFloat1; animation-duration: 3.4s; animation-delay: -0.6s; }
.car-option:nth-child(8) img { animation-name: carFloat2; animation-duration: 3.0s; animation-delay: -1.5s; }

@keyframes carFloat1 {
    0%   { transform: translateY(0px) rotate(0deg); }
    30%  { transform: translateY(-6px) rotate(0.8deg); }
    70%  { transform: translateY(5px) rotate(-0.6deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes carFloat2 {
    0%   { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25%  { transform: translateY(-5px) translateX(3px) rotate(-1deg); }
    75%  { transform: translateY(4px) translateX(-2px) rotate(0.7deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}
@keyframes carFloat3 {
    0%   { transform: translateY(2px) rotate(0.4deg); }
    40%  { transform: translateY(-7px) rotate(-0.9deg); }
    80%  { transform: translateY(3px) rotate(0.5deg); }
    100% { transform: translateY(2px) rotate(0.4deg); }
}

.car-option span {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
}

.car-option:hover {
    border-color: #005599;
    background-color: #0a0a1a;
}

.car-option:hover img {
    filter: drop-shadow(0 0 6px rgba(0, 140, 255, 0.7))
            drop-shadow(0 0 14px rgba(0, 100, 220, 0.4));
}

.car-option.selected {
    border-color: #0088ff;
    background-color: #050515;
}

.car-option.selected img {
    filter: drop-shadow(0 0 8px rgba(0, 160, 255, 1))
            drop-shadow(0 0 20px rgba(0, 120, 255, 0.8))
            drop-shadow(0 0 40px rgba(0, 80, 200, 0.5));
}

.car-option.selected span {
    color: #66ccff;
}

.selected-filename {
    margin-top: 12px;
    padding: 6px 10px;
    background-color: #111;
    border-left: 3px solid #0088ff;
}

#filename-text {
    font-size: 12px;
    color: #66ccff;
    font-family: monospace;
    word-break: break-all;
}

.progress-bar {
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
}

.progress-bar-outer {
    border-top: 5px solid grey;
    border-left: 10px solid grey;
    border-right: 10px solid grey;
    border-bottom: 5px solid grey;
    border-radius: 10px;
    background-color: grey;
}

#progress-bar-progress {
    height: 100%;
    background: rgb(0,117,194);
    background: linear-gradient(180deg, rgba(0,117,194,1) 46%, rgba(0,0,0,1) 100%);
    transition-property: width;
    transition-delay: 0.01s
}

.progress-bar-box-shadow {
    height: 20px;
    box-shadow: -3px 3px 5px 4px rgba(0,0,0,0.75) inset;
}


.download {
    margin-top: 50px;
    width: 100%;
    text-align: center;
    margin-bottom: 100px;
}

#download {
    margin: 0 auto;
    background-color: #007205;
    border: 5px outset #007205;
    border-left-width: 10px;
    font-size: 48px;
    border-right-width: 10px;
}

#download:hover {
    border: 5px solid #007205;
        border-left-width: 10px;
    border-right-width: 10px;
   box-shadow: 2px 1px 5px 6px rgba(0,0,0,0.75) inset;
}

#download.evil {
    border-color: #FF3700;
    background-color: #FF3700;
}

.hidden {
    display: none;
}

#download-cancelled {
    color: #FF3700;
    font-size: 48px;
    animation: flash 1s linear infinite;
}

@keyframes flash {
    0% {opacity: 0;}
    24% {opacity: 0;}
    25% {opacity: 1;}
    75% {opacity: 1;}
    76% {opacity: 0;}
    100% {opacity: 0;}
}

#download-done {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: black;
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#download-done.hidden {
    display: none;
}

#download-done:not(.hidden) {
    display: flex;
}

#download-done h2 {
    font-size: 16px;
    font-weight: normal;
    color: #888;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#soundcloud-player {
    width: 100%;
    max-width: 750px;
    margin-bottom: 20px;
}

#soundcloud-player iframe {
    display: block;
    width: 100%;
}

.downloaded-car-name {
    font-size: clamp(13px, 2vw, 22px);
    color: #00cc44;
    font-family: monospace;
    margin: 0 0 30px;
    word-break: break-all;
    max-width: 900px;
    border: 1px solid #00441a;
    padding: 12px 18px;
    background: #001a09;
    text-align: left;
}

.downloaded-car-name::before {
    content: "✓  ";
    color: #00ff55;
}

.only-showing {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
}