@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

/* =========================
   GLOBAL
   ========================= */

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: transparent !important;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: transparent !important;
    font-family: 'Montserrat', sans-serif;
}


/* =========================
   RAINY WALLPAPER
   ========================= */

#wallpaper-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

#wallpaper-background #container {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
}

#wallpaper-background canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 7vw;

    display: flex;
    align-items: center;
    justify-content: left;

    padding: 0 1%;
    box-sizing: border-box;

    backdrop-filter: blur(10px) saturate(200%) brightness(70%);

    color: #00aaff;
    z-index: 5;
}

nav img {
    height: 80%;
    width: auto;

    margin-right: 1%;

    border-radius: 1vw;

    cursor: pointer;
    user-select: none;

    box-shadow:
        5px 5px 10px rgba(53, 53, 53, 0.459);
}

nav h1 {
    font-size: 4vw;
    font-weight: 800;
    margin-right: 1%;
}


/* =========================
   CONTENT
   ========================= */

.content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: left;

    padding: 7vw;
    padding-top: 0;
}

.content hr {
    border: 0;
    height: 4px;

    background-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgb(255, 255, 255),
        rgba(0, 0, 0, 0)
    );

    margin: 1vw 0;
}


/* =========================
   SEARCH
   ========================= */

.search {
    display: flex;
    align-items: stretch;

    user-select: none;

    margin-top: 2.5vw;
    margin-left: 1.2vw;
}

.search input {
    background-color: #00ccf5;

    border: none;
    border-radius: 1vw 0 0 1vw;

    color: #fff;

    font-size: 1.5vw;
    font-weight: 600;

    padding: 0.8vw 1.5vw;

    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.search input::placeholder {
    color: #fff;
    font-weight: 600;
    font-size: 1.5vw;
}


/* =========================
   SEARCH BUTTON
   ========================= */

.search > button {
    background-color: #fff;

    border: none;

    color: #222;

    font-size: 1.5vw;
    font-weight: 600;

    padding: 0.8vw 1vw;

    cursor: pointer;

    font-family: 'Montserrat', sans-serif;

    transition:
        background-color .3s ease,
        color .3s ease;
}

.search > button:first-of-type {
    border-radius: 0 1vw 1vw 0;
}

.search > button:first-of-type:hover {
    background-color: #00ccf5;
    color: #fff;
}


/* =========================
   NAVIGATION ACTION BUTTONS
   ========================= */

#music-button,
#customize-button,
#spoof-button {
    margin-left: 0.6vw;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(10px);

    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 1vw !important;

    padding: 0.8vw 1.2vw;

    font-family: 'Montserrat', sans-serif;

    font-size: 1.2vw;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition:
        background-color .3s ease,
        transform .2s ease;
}

#music-button:hover,
#customize-button:hover,
#spoof-button:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.03);
}

#music-button:active,
#customize-button:active,
#spoof-button:active {
    transform: scale(0.98);
}


/* =========================
   SPOOF POPUP
   ========================= */

#spoof-popup {
    display: none;

    position: fixed;
    top: 8.5vw;
    left: 50%;

    transform: translateX(-50%);

    width: 320px;
    padding: 18px;

    background: rgba(20, 20, 20, 0.88);

    backdrop-filter: blur(18px) saturate(150%);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;

    color: #fff;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5);

    z-index: 99999;

    font-family: 'Montserrat', sans-serif;

    box-sizing: border-box;
}


/* =========================
   SPOOF POPUP HEADER
   ========================= */

.spoof-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;

    font-size: 18px;
    font-weight: 700;
}


/* =========================
   SPOOF CLOSE BUTTON
   ========================= */

#close-spoof-popup {
    background: transparent;

    border: none;

    color: #fff;

    font-size: 24px;

    cursor: pointer;

    line-height: 1;
    padding: 2px 6px;

    transition: color .2s ease;
}

#close-spoof-popup:hover {
    color: #00ccf5;
}


/* =========================
   SPOOF SETTINGS
   ========================= */

.spoof-setting {
    margin-bottom: 13px;
}

.spoof-setting label {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 600;

    color: #bbb;
}

.spoof-setting input {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

    background: rgba(0, 0, 0, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 7px;

    outline: none;

    color: #fff;

    font-family: 'Montserrat', sans-serif;

    transition: border-color .2s ease;
}

.spoof-setting input:focus {
    border-color: #00ccf5;
}


/* =========================
   OPEN SPOOF TAB BUTTON
   ========================= */

#open-spoof-tab {
    width: 100%;

    margin-top: 5px;
    padding: 10px;

    border: none;
    border-radius: 8px;

    background: #00ccf5;
    color: #fff;

    font-family: 'Montserrat', sans-serif;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        filter .2s ease;
}

#open-spoof-tab:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

#open-spoof-tab:active {
    transform: scale(.98);
}


/* =========================
   WALLPAPER & MUSIC POPUP
   ========================= */

#customize-overlay {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.7);

    backdrop-filter: blur(8px);

    z-index: 999999;
}

#customize-overlay.active {
    display: flex;
}


/* =========================
   CUSTOMIZE POPUP
   ========================= */

#customize-popup {
    position: relative;

    width: min(900px, 95vw);
    max-height: 85vh;

    overflow-y: auto;

    box-sizing: border-box;

    padding: 28px;

    background: rgba(20, 20, 20, 0.92);

    backdrop-filter: blur(20px) saturate(150%);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;

    color: #fff;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.65);

    font-family: 'Montserrat', sans-serif;
}

#customize-popup h2 {
    margin: 0 0 25px;

    color: #fff;

    font-size: 28px;
    font-weight: 800;
}

#customize-popup h3 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 17px;
    font-weight: 700;
}

.customize-section {
    margin-bottom: 28px;
}


/* =========================
   CUSTOMIZE CLOSE BUTTON
   ========================= */

#close-customize {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 28px;
    line-height: 42px;

    text-align: center;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

#close-customize:hover {
    background: rgba(0, 204, 245, 0.2);

    color: #00ccf5;

    transform: scale(1.05);
}


/* =========================
   WALLPAPER LIST
   ========================= */

#wallpaper-list {
    display: flex;

    gap: 14px;

    overflow-x: auto;

    padding: 5px 5px 15px;

    scroll-behavior: smooth;

    scrollbar-width: thin;
}

#wallpaper-list::-webkit-scrollbar {
    height: 7px;
}

#wallpaper-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);

    border-radius: 10px;
}

#wallpaper-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);

    border-radius: 10px;
}


/* =========================
   WALLPAPER CARDS
   ========================= */

.wallpaper-option {
    position: relative;

    flex: 0 0 190px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.07);

    border: 2px solid transparent;
    border-radius: 12px;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.wallpaper-option:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.35);
}

.wallpaper-option.selected {
    border-color: #00ccf5;

    box-shadow:
        0 0 15px rgba(0, 204, 245, 0.35);
}

.wallpaper-option img,
.wallpaper-thumbnail {
    display: block;

    width: 100%;
    height: 110px;

    object-fit: cover;
}

.default-wallpaper {
    background:
        linear-gradient(
            135deg,
            #222,
            #555
        );
}

.wallpaper-option span {
    display: block;

    padding: 10px;

    color: #fff;

    font-size: 13px;
    font-weight: 600;
}


/* =========================
   UPLOAD WALLPAPER
   ========================= */

.upload-wallpaper {
    flex: 0 0 190px;

    height: 110px;

    box-sizing: border-box;

    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.04);

    color: #fff;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.upload-wallpaper:hover {
    background: rgba(0, 204, 245, 0.08);

    border-color: #00ccf5;

    transform: translateY(-3px);
}

.upload-wallpaper div {
    font-size: 30px;
    line-height: 30px;

    color: #00ccf5;
}

.upload-wallpaper span {
    margin-top: 5px;

    font-size: 13px;
    font-weight: 600;
}

.upload-wallpaper input {
    display: none;
}


/* =========================
   MUSIC SELECT
   ========================= */

#music-select {
    width: 100%;

    box-sizing: border-box;

    padding: 12px;
    margin-bottom: 12px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    outline: none;

    background: rgba(0, 0, 0, 0.5);

    color: #fff;

    font-family: 'Montserrat', sans-serif;

    font-size: 14px;

    cursor: pointer;
}

#music-select:focus {
    border-color: #00ccf5;
}


/* =========================
   UPLOAD MUSIC
   ========================= */

.upload-music {
    display: inline-block;

    padding: 11px 16px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.07);

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.upload-music:hover {
    background: rgba(0, 204, 245, 0.12);

    border-color: #00ccf5;
}

.upload-music input {
    display: none;
}


/* =========================
   MUSIC VOLUME
   ========================= */

.volume-label {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 15px;

    color: #bbb;

    font-size: 13px;
    font-weight: 600;
}

#custom-music-volume {
    flex: 1;
    cursor: pointer;
}


/* =========================
   GAMES
   ========================= */

#games {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    margin-top: .6vw;

    padding-bottom: 5vw;
}

#games img {
    height: 15.6vw;
    width: 15.6vw;

    border-radius: 1vw;

    margin: .5vw;

    cursor: pointer;
    user-select: none;

    transition: transform .2s;
}

#games img:hover {
    transform: scale(1.01);
}


/* =========================
   FEATURED
   ========================= */

.featured {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    justify-content: center;

    padding: 1vw;

    margin: 1%;
    margin-top: 6vw;
}

.featured h1 {
    font-size: 3.5vw;
    font-weight: 700;

    margin: 1vw 1vw .4vw 1vw;

    width: 83.8%;

    text-align: left;

    color: #fff;
}

.featured .column {
    display: flex;
    flex-direction: column;
}

.featured img {
    height: 12.5vw;
    width: 12.5vw;

    border-radius: 1vw;

    margin: .5vw;

    cursor: pointer;
    user-select: none;

    transition: all .2s;
}

.featured img:hover {
    transform: scale(1.02);
    filter: brightness(50%);
}

.featured .row img {
    height: 26vw;
    width: 26vw;
}

.featured a {
    display: inline-block;

    position: relative;

    color: #2c7ffc;

    text-decoration: none;
}

.featured .play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    opacity: 0;

    transition: opacity 0.2s;
}

.featured a:hover .play-button {
    opacity: 1;
    pointer-events: none;
}

.featured .play-button i {
    font-size: 5vw;

    text-shadow: 0 0 100px #2c7ffc;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    nav {
        height: 15vw;
    }

    nav h1 {
        font-size: 6vw;
    }

    nav img {
        height: 70%;
    }

    .content {
        padding: 4vw;
        padding-top: 12vw;
    }

    .featured {
        margin-top: 15vw;
    }

    .featured h1 {
        font-size: 7vw;
    }

    #games img {
        width: 28vw;
        height: 28vw;
    }

    .featured img {
        width: 24vw;
        height: 24vw;
    }

    .featured .row img {
        width: 50vw;
        height: 50vw;
    }

    .search input,
    .search input::placeholder {
        font-size: 4vw;
    }

    .search > button {
        font-size: 4vw;
    }

    #music-button,
    #customize-button,
    #spoof-button {
        font-size: 3.5vw;

        padding: 0.8vw 1.5vw;

        border-radius: 2vw !important;
    }

    #spoof-popup {
        top: 18vw;

        width: 80vw;
        max-width: 320px;
    }

    #customize-popup {
        width: 95vw;

        max-height: 88vh;

        padding: 20px;

        border-radius: 15px;
    }

    #customize-popup h2 {
        font-size: 22px;
        padding-right: 35px;
    }

    .wallpaper-option,
    .upload-wallpaper {
        flex-basis: 155px;
    }

    /* =========================
       ABOUT:BLANK BACKGROUND
       ========================= */

    html:has(body.about-blank-page),
    body.about-blank-page {
        background: #fff !important;
    }
}

