body{
    background-color: #2C2C2C;
    color: #F7374F;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}
.big_text{
    font-size: 140px;
    font-family: "Bitcount", system-ui;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings:
    "slnt" 0,
    "CRSV" 0.5,
    "ELSH" 0,
    "ELXP" 0;
}
header{
    text-align: center;
    border-radius: 50px 50px 0 0;
    background-color: #1f132c;
    margin-inline: 20%;
    width: 60%;
    flex: 1;
}

/* NAVIGATION */
.menu_button {
    cursor: pointer;
    background-image: url('assets/left-default.png');
    background-size: cover;
    background-position: center;
    width: 100px;
    height: 100px;
    z-index: 1000;
}

.menu_button:hover{
    background-image: url('assets/left-hovered.png');
    
}

.menu_button.clicked {
    background-image: url('assets/right-default.png');
}

.menu_button.clicked:hover{
    background-image: url('assets/right-hovered.png');
}
.menu_button {
    cursor: pointer;
    background-image: url('assets/left-default.png');
    image-rendering: pixelated;
    background-size: cover;
    background-position: center;
    margin-top: 20px;
    width: 100px;
    height: 100px;
    z-index: 1000;
}

.menu_panel{
    width: 160px;
    height: 300px;
    border: 5px solid #7D5BA6;
    background-color: #27153a;
}

.menu_panel img{
    width: 150px;
}

.menu_panel table th{
    width: 150px;
    text-align: center;
}
/* I need some better fucking names */
.menu{
    display: flex;
    width: 250px;
    position: fixed;
    top: 180px;
    right: 0;
    transform: translateX(65%);
    transition: transform 1s ease-in-out;
}

.menu.open {
    transform: translateX(0);
}



/* MAIN */
main{
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
.main_section{
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 20px;
    background-color: #1f132c;
}
.sidebar{
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: start;
    box-sizing: border-box;
    padding-top: 24px;
}
.sidebar a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.sidebar img{
    width: 200px;
}


.pixel_art{
    image-rendering: pixelated;
}

.main_section h2 input{
    background: transparent;
    border-inline: none;
    border-top: none;  
    border-bottom: 2px solid #7D5BA6;
    color: inherit;
    font: inherit;
    padding: 6px 8px;
    width: 200px;
}
input:focus {
    outline: none;
    box-shadow: none;
}

.intro.visible{
    animation: fadeIn 2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confetti{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
    animation: confetti 2s ease-out forwards;
}
@keyframes confetti {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}



/* VINYL PLAYER */

.player{
    display: grid;
    gap: 18px;
    padding: 16px 0 24px;
    flex: 1 1 280px;

}

.player > img{
    width: 220px;
}

.player_step{
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 2px solid #7D5BA6;
}

.player_step > span, .step_header > span, .radio_row > span, .player_step label > span{
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player_step--side{
    display: flex;
    gap: 10px;
}

.radio_row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  display: inline-block;
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  background-image: url('assets/Radio.png');
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  vertical-align: middle;
}

input[type="radio"]:checked + .radio-custom {
  background-image: url('assets/Radio_checked.png');
}

.radio_row{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 80%;
    gap: 12px;
}
.radio_row label{
    gap: 5px;

}

.step_header{
    display: flex;
    gap: 12px;
    align-items: center;
}

.step_display{
    margin: 0;
    flex: 1;
    min-width: 0;
    text-align: center;
    translate: -26px;
}

.step_controls{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

}

/* #A79BCB  purple - light*/
/* #7D5BA6 purple - middle*/
/* #4F356B  purple - dark*/


.step_button{
    border: 4px solid #4b1830;
    background: transparent;
    cursor: pointer;
    image-rendering: pixelated;
    transition: filter 0.15s ease;
}

.step_button:hover img{
    filter: brightness(0.75);
}
.controls_small{
    display: block;
    width: 50px;
}
.controls{
    display: block;

    width: 60px;
}



.player select{
    max-width: 100%;
    padding: 6px 8px;
    border: 4px solid #4b1830;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
}

.vinyl_player_box{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
}



.vinyl_display{
    align-items: center;
    gap: 12px;
    padding: 5px;
}

.cover{
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    margin-top: 23px;
    height: 420px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.cover .album_cover{
    width: min(100%, 180px);
    margin: 10px auto;
}

.vinyl_image{
    flex: 0 0 auto;
    max-width: min(100%, 220px);
    width: 100%;
    height: auto;
}

.album_cover{
    width: 120px;
    height: auto;
    display: block;
    border: 2px solid #7D5BA6;
    margin: 10px;
    transition: transform 0.2s ease;
    transform-origin: center center;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

.album_cover:hover{
    box-shadow: 0 0 24px rgb(156, 13, 199);
}
.album_cover:focus-visible,
.album_cover:active {
        position: fixed;
        top: 50%;
        left: 50%;
        width: min(70vw, 640px);
        height: auto;
        transform: translate(-50%, -50%) scale(1.08);
        z-index: 9999;
        box-shadow: 0 0 24px rgba(156, 13, 199, 0.75);
        background: #2C2C2C;
}


.display{
    text-align: center;
    border: 2px solid #7D5BA6;
    padding: 6px 8px;
    margin-inline: 20px;
    width: 192px;
    min-width: 220px;
    margin-top: 17px;
}

.display label{
    margin-top: 8px;
}

#volume{
    width: 100%;
    max-width: 180px;
}



/* SONG OF THE WEEK AND GAMES */

.song_of_the_week{
    overflow: hidden;
}
.song_of_the_week iframe{
    width: 100%;
    border: 0;
    max-width: 560px;
    height: 152px;
}
.games{
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.games h2{
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.games a{
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(150px, 18vw, 220px);
    padding: 10px;
    border: 2px solid #7D5BA6;
    background: linear-gradient(180deg, #2d1942 0%, #520534 100%);
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game p{
    font-weight: bold;
    opacity: 0;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b6f0;
    font-size: 20px;
    z-index: 9999;
    padding: 10px;
}
.game:hover p{
    opacity: 1;
}
.game{
    position: relative;
}
.game::after{
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(27, 5, 5, 0.719);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.game:hover::after {
    opacity: 1;
}


.games img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.last_anime_box{
    display: flex;
    gap: 16px;
}

.last_anime_box img{
    width: 220px;
}

.last_anime_text{
    display: flex;
    flex-direction: column;
}

.last_anime_text p,
.last_anime_text h2{
    margin: 0;
}

.last_anime_text h2:nth-of-type(2){
    margin-top: 20px;
}
#spoiler{
    position: relative;
}
#spoiler::before{
    content: "";
    position: absolute;
    inset: 0;
    opacity: 1;
    background-color: black;
    transition: opacity 0.2s ease;
}
#spoiler:hover::before{
    opacity: 0;
}





.What_next li{
    font-size: 20px;
}

/* FOOTER */
.button_88x31{
    padding: 5px;
}

.button_88x31 img{
    width: 88px;
    height: 31px;
}


footer{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #2d1942;
}

/* Links */

.links{
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.links img{
    padding: 15px;
}

/* Mobile view */

@media (max-width: 900px){
    .big_text{
        font-size: 96px;
    }

    main{
        flex-direction: column;
    }
    header{
        width: 100%;
        margin: 0;
    }
    .cover{
        align-items: center;
    }

    .sidebar{
        background-color: #27153a;
        flex: 0 0 auto;
        width: 100%;
        padding-top: 12px;
        padding-bottom: 12px;
        order: 2;
    }

    .main_section{
        flex: 1 1 auto;
        width: 100%;
        padding-inline: 14px;
    }

    .vinyl_player_box{
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .player,
    .display{
        width: min(100%, 520px);
        max-width: none;
    }

    .display{
        width: auto;
        min-width: 0;
    }

    .vinyl_display{
        flex-wrap: wrap;
        justify-content: center;
    }

    .vinyl_image{
        width: min(62vw, 220px);
    }

    .album_cover{
        width: min(30vw, 150px);
    }

    .album_cover:focus-visible,
    .album_cover:active{
        width: min(88vw, 520px);
    }

    .games{
        grid-template-columns: 1fr;
    }

    .games a{
        height: clamp(140px, 30vw, 200px);
    }

    .menu{
        transform: translateX(72%);
        top: 120px;
        width: 220px;
    }

    .menu_panel{
        width: 130px;
        height: auto;
    }

    .menu_panel table th{
        width: 130px;
    }
}

@media (max-width: 560px){
    .big_text{
        font-size: 64px;
    }

    h1,
    h2{
        font-size: 1rem;
        line-height: 1.35;
    }

    .main_section{
        padding-inline: 10px;
    }

    .player{
        gap: 12px;
        padding: 12px 0 16px;
    }

    .player_step{
        padding: 10px 12px;
    }

    .player_step--side{
        flex-direction: column;
        align-items: flex-start;
    }

    .player_step--side .radio_row{
        flex-wrap: wrap;
    }

    .step_header{
        flex-direction: column;
        gap: 6px;
    }

    .step_controls{
        gap: 8px;
    }

    .album_cover{
        margin: 6px;
    }

    .display{
        margin: 8px 0;
        padding: 8px;
        min-width: 0;
    }

    .button_88x31{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}




