* {
    transition: all .3s ease-in-out;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: outfit;
    color: #969093;
    padding: 0;
    margin: 0;
}


::selection {
  background: #80004660;
  color: rgb(242, 176, 255);
}

.material-symbols-outlined {
    user-select: none;
  font-variation-settings:
  'FILL' 0,
  'wght' 250,
  'GRAD' 0,
  'opsz' 24
}

body {
    background-color: #0a0d0f;
    height: auto;

    .modal {
        position: fixed;
        height: 100%;
        width: 100%;
        background-color: #0a0d0f70;
        z-index: 10;
        backdrop-filter: blur(3px);
        user-select: none;
        display: none;
        opacity: 0;

        .settings {
            border: .1cqw #fffefe20 solid;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 25cqw;
            height: max-content;
            background-color: #16191b;
            border-radius: 1cqw; 
            opacity: 1;
            z-index: 1000;
            padding: 1.5cqw 1.5cqw;

            .header-con {
                display: flex;
                height: max-content;
                width: max-content;
                gap: .5cqw;

                h1 {
                    font-family: monospace;
                    font-size: 1.2cqw;
                    margin: auto 0;
                    width: max-content;
                    vertical-align: middle;
                    color: #fffefe;
                    font-weight: 500;
                    line-height: 0.3cqw;
                    
                }
                
                span {
                    vertical-align: middle;
                    color: #fffefe;
                    font-size: 1.7cqw;
                    margin: auto 0;
                }
            }

            p {
                margin: .5cqw 0;
                font-size: 1cqw;
                font-family: monospace;
            }

            #first-preference {
                border-bottom: #fffefe20 .1cqw solid;
                padding-bottom: .5cqw;
            }

            .preference-con {
                padding: 1cqw 0;
                display: flex;
                justify-content: space-between;
                

                h1 {
                    font-size: 1cqw;
                    font-weight: 500;
                    font-family: monospace;
                    color: #fffefe;
                    width: max-content;
                    height: max-content;
                    margin: auto 0;
                    text-align: center;
                    vertical-align: middle;
    
                    span {
                        font-size: 1.5cqw;
                        padding: 0cqw 1cqw 0cqw 0cqw;
                        vertical-align: middle;
                        color: inherit;
                    }

                    .future-plans {
                        font-family: monospace;
                        margin: auto 0;
                    }
                }

                .switch {
                    height: 1cqw;
                    width: 2cqw;
                    margin: auto 0;
                    background-color: transparent;
                    border-radius: .2cqw;
                    border: .1cqw solid #ffffff20;
                    cursor: pointer;
                    position: relative;
                    padding: .2cqw .2cqw;
                    box-sizing: content-box;

                    input {
                        opacity: 0;
                        width: 0;
                        height: 0;
                    }

                    .slider {
                        position: absolute;
                        border: .1cqw solid #ffffff20;
                        background-color: rgb(29, 134, 29);
                        margin: auto 0;
                        cursor: pointer;
                        height: 100%;
                        width: 100%;
                        position: absolute;
                        top: 0;
                        left: 0;
                        border-radius: .2cqw;
                    }

                    .slider:before {
                        position: absolute;
                        content: "";
                        height: 1cqw;
                        width: 1cqw;
                        margin: .15cqw .15cqw;
                        border-radius: .1cqw;
                        background-color: #fffefe;
                        vertical-align: middle;
                        transform: translate(100%, 0);
                    }
 
                    input:checked + .slider {
                        background-color: transparent;
                    }

                    input:checked + .slider:before {
                        transform: translate(0%, 0);
                    }
                }
            }

            .close-button {
                float: right;
                right: 1.5cqw;
                bottom: 1.5cqw;
                font-size: 1cqw;
                font-family: monospace;
                color: #fffefe;
                background-color: #ffffff15;
                padding: .5cqw 1cqw;
                border: none;
                cursor: pointer;
                border-radius: .3cqw;
                font-weight: 500;

                span {
                    font-size: inherit;
                    vertical-align: middle;
                    color: inherit;
                    font-weight: 100;
                    transform: translate(0, 0);

                    font-variation-settings:
                    'wght' 150
                }

            }
            .close-button:hover {
                background-color: #ffffff20;

                span {
                    transform: translate(20%, 0);
                }
            }
        }
    }
}

.background {
    padding: 0;
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 60vh;
    object-fit: cover;
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    z-index: -1;
    opacity: .3;
    object-position: 50% 0%;
}

.loader-con {
    position: fixed;
    opacity: 1;
    z-index: 999;
    background-color: white;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;

    .animation {
        justify-content: center;
        display: flex;
        flex-direction: column;

        img {
            width: 20cqw;
            align-items: center;
            margin: 0 auto;
        }

        h1 {
            text-align: center;
            font-weight: 500;
            font-size: 2cqw;
            
        }
    }
}

main {
    flex-direction: column;
    display: flex;

    
    nav {
        justify-content: space-between;
        display: flex;
        position: fixed;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(5px);

        padding: 1cqw 15cqw;
        gap: 1.5cqw;
        width: 100%;
        
        .logo {
            filter: grayscale(1);
            transform: scale(1);
            user-select: none;
            cursor: pointer;
            animation: none;
            margin: auto 0;
            height: 1.5cqw;
        }

        .logo:hover {
            animation: wiggle 1s infinite;
            filter: grayscale(0);
        }

        .logo:active,
        .logo:focus {
            transform: scale(.80);
            filter: grayscale(0);
        }

        .nav-buttons {
            display: inherit;
            gap: inherit;
            margin: auto 0;

            a {
                text-decoration: none;
                font-size: 1cqw;
            }

            a:hover,
            a:focus,
            a:active {
                color: #fffefe;
            }
        }

        .settings {
            background-color: transparent;
            cursor: pointer;
            border: none;


            span {
                cursor: pointer;
                animation: none;

                font-size: 1.5cqw;
            }

            span:hover {
                animation: spin 2s infinite ease-in-out;
                color: #fffefe;
            }
        }
    }

    .hero {
        justify-content: center;
        user-select: none;
        display: flex;

        margin: 5cqw 10cqw;

        img {
            filter: brightness(.5);
            width: 35cqw;
        }
    }

    .player {
        background-color: #16191b;
        align-self: center;
        position: fixed;
        display: flex;
        opacity: 1;
        justify-content: space-between;

        margin-bottom: 1.5cqw;
        border-radius: 3cqw;
        padding: .5cqw 1cqw;
        height: max-content;
        width: 60vw;
        z-index: 9;
        bottom: 0;

        border: rgba(255, 255, 255, .05) solid .1cqw;

        .vinyl {
            border-radius: 100%;
            margin: auto 0;
            height: 3.5cqw;
            width: 3.5cqw;
            animation: none;
        }
        
        .middle {
            justify-content: center;
            flex-direction: column;
            display: flex;
            gap: .5cqw;

            .track-name {
                font-size: 1cqw;
                text-align: center;
                font-weight: 400;
                letter-spacing: .05cqw;
                color: #fffefe;
                margin: 0;
            }

            .progress_bar {
                display: flex;
                justify-content: center;
                gap: .5cqw;

                .current-time,
                .total-duration {
                    font-size: .7cqw;
                    margin: auto 0;
                }

                .bar {
                    width: 20cqw;
                    height: .2cqw;
                    margin: auto 0;
                    background-color: #969093;
                    border-radius: 1cqw;
                    cursor: pointer;
                }
            }

            .buttons {
                display: flex;
                justify-content: center;
                gap: 1cqw;

                .material-symbols-outlined:hover {
                    color: #fffefe;
                }

                .material-symbols-outlined {
                    cursor: pointer;
                    font-size: 1.5cqw;
                    font-variation-settings:
                    'FILL' 1,
                    'wght' 250,
                    'GRAD' 0,
                    'opsz' 24
                }
            }
        }

        .lookup {
            width: 3.5cqw;
            margin: auto 0;
            cursor: pointer;
        }

        .lookup:hover {
            color: #fffefe;
        }
        
    }

}

.guidecards {
    justify-content: center;
    display: flex;
    gap: 0cqw;

    .cards {
        cursor: pointer;
        text-decoration: none;
        webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        z-index: 3;
        width: max-content;
        height: auto;
        padding: 1cqw 1cqw .5cqw 1cqw;
        background: rgba(255, 255, 255, .05);
        border-radius: 24px;
        justify-content: center;
        display: flex;
        flex-direction: column;

        h1 {
            text-align: center;
            margin: .3cqw 0;
            font-size: 1cqw;
            font-weight: 500;
        }

        .chibi {
            height: 9cqw;
            cursor: pointer;
            line-height: -5px;
        }

    }

    .cards:hover {
        transform: scale(1.05);
        background-color: rgba(255, 255, 255, 0.098);
    }
}

.first {
    transform: rotate(-3deg);
}

.second {
    transform: rotate(3deg);
}

.music-list-container.show {
  display: block;
}

.music-list-container {
    position: absolute;
    width: max-content;
    display: none;
    opacity: 0;

    height: 20cqw;
    background-color: #16191b;
    bottom: 4cqw;
    right: 3cqw;
    padding: 0cqw 1.5cqw 1.5cqw 1.5cqw;
    border-radius: .5cqw;
    border: .1cqw #fffefe20 solid;
    overflow: auto;
    overflow: scroll;

    .search-container {
        width: 100%;
        padding: 1cqw 0cqw 1cqw 0;
        position: sticky;
        backdrop-filter: blur(5px);
        top: 0;

        #search-input {
            width: 100%;
            padding: .5cqw 1cqw;
            border-radius: 1cqw;
            font-size: .7cqw;
            background-color: #ffffff20;
            border: none;
            color: #fffefe;
        }

        input[type=text]::placeholder {
            font-size: .7cqw;
        }
    }
}

.music-list-container li {
    cursor: pointer;
    list-style: none;
    padding: .5cqw .5cqw;
    font-size: .7cqw;
}

.music-list-container li:hover {
    color: #fffefe;
}


section {

    margin: 5cqw 0;
    padding: 7cqw 0;
    height: max-content;
    
    display: flex;
    flex-direction: column;
    gap: 2cqw;
    position: relative;

    .expand {
        position: absolute;
        cursor: pointer;
        align-self: center;
        bottom: 5cqw;
        font-size: 3cqw;
        color: #fffefe;
    }

    .expand:hover {
        color: #969093;
    }

    
    .section-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 0%;
        opacity: 0.3;
        z-index: -1;
        padding: 0;
        margin: 0;
        filter: brightness(40%);

        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0)
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0)
        );
    }

    h1 {
        padding: 0cqw 10cqw;
        font-size: 2cqw;
        text-align: center;
        color: #fffefe;
        font-weight: 600;

        span {
            font-family: "nghytserif";
            letter-spacing: .2cqw;
            background: linear-gradient(to bottom, #969093, #fffefe);

            -webkit-background-clip: text;
            background-clip: text;

            -webkit-text-fill-color: transparent;
            color: transparent;
        }
    }
    
    .characters {
        scrollbar-width: none;
        margin: auto 0;
        padding: 0cqw 10cqw;
        padding-bottom: 7cqw;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: 30cqw;
        overflow: hidden;
        column-gap: 1cqw;
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0)
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0)
        );
        
        img {
            transform: scale(1);
            height: 10cqw;
            cursor: pointer;
        }

        img:hover {
            transform: scale(1.05);
        }

        .character-name {
            text-align: center;
            text-wrap: wrap;
            overflow-wrap: break-word;
            width: 10cqw;
            font-size: 1cqw;
            margin: 0 auto;
        }
    }
}

.anchor {
    position: fixed;
    z-index: 200;
    opacity: 0;
    right: 5cqw;
    bottom: 1.5cqw;
    cursor: pointer;
    background: transparent;
    border: none;
    display: none;
    width: 1cqw;
    transform: scale(1);
}

.anchor:hover {
    transform: scale(0.95);
}
.anchor:active,
.anchor:focus {
    transform: scale(0.90);
}

.gacha-con {
    padding: 0cqw 10cqw;

    .under-maintenance {
        opacity: 1;
        user-select: none;
        position: absolute;
        z-index: 8;
        background-color: transparent;
        height: 100%;
        width: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow-x: hidden;
        align-content: center;
        backdrop-filter: blur(5px);
        display: block;
        overflow: hidden;

        #tape-one {
            background-image: linear-gradient(to right,#add421, #6ba01c, #add421);
            width: 105%;
            height: 2.5cqw;
            filter: brightness(.5);
            rotate: 3deg;
            position: absolute;
            top: 50%;
            padding: 1.5cqw 0;
        }

        #tape-two {
            background-image: linear-gradient(to right,#add421, #6ba01c, #add421);
            width: 110%;
            height: max-content;
            rotate: -5deg;
            position: absolute;
            top: 50%;
            left: -.5cqw;
            padding: 1cqw 0;

            .tape-content {
                padding: .5cqw 0;
                display: flex;
                gap: 1cqw;
                -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
                mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
                
                
                .fade-in-out {
                    animation: marquee 30s linear infinite forwards;
                    display: flex;
                    gap: 1cqw;
                    width: max-content;
                    
                    p {
                        text-align: center;
                        color: #fffefe;
                        font-weight: 600;
                        letter-spacing: .2em;
                        font-weight: 1cqw;
                        width: max-content;
                        overflow-wrap: nowrap;
    
                        img {
                            height: 1cqw;
                            margin: auto;
                            filter: brightness(100);
                        }
                    }
                }

            }
        }
    }

    .banner-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1cqw;
        padding: 3cqw 0;

        img {
            cursor: pointer;
            transform: scale(1);
            height: 6cqw;
        }

        img:hover {
            transform: scale(1.05);
        }
    }

    .button-con {
        justify-content: center;
        padding: 1cqw 0;
        gap: 1cqw;
        display: flex;
        
        .gacha-btn {
            border: none;
            cursor: pointer;
            color: #fffefe;
            background-color: rgb(98, 255, 98);
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
            padding: .5cqw 1cqw;
            border-radius: .5cqw;
            transform: scale(1);
        }

        .gacha-btn:hover {
            transform: scale(0.95);
        }

        .gacha-btn:active {
            transform: scale(0.90);
        }
    }

    #result-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5cqw;
        justify-content: center;
        padding: 0 5cqw;

        .character-card {
            width: max-content;
            opacity: 0;
            transform: scale(0.5);
            animation: gachaResults 1s ease-in-out forwards;

            img {
                width: 8cqw;
            }

            .rarity-stars-container {
                display: flex;
                justify-content: center;
                margin-top: 1cqw auto;
            }

            .rarity-star {
                width: 1cqw;
                height: auto;
                mix-blend-mode: lighten;
            }

            p {
                text-align: center;
                text-wrap: wrap;
                overflow-wrap: break-word;
                width: 8cqw;
            }
        }
    }
}

.r {
    width: 10cqw;
    text-wrap: wrap;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.sr {
    width: 10cqw;
    text-wrap: wrap;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.ssr {
    background: linear-gradient(to bottom, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    font-family: 'Playfair Display', serif;
    flex-wrap: wrap;
    width: 10cqw;
    text-align: center;
    position: relative;
    text-transform: uppercase;  
    margin: 0;
    font-weight: 400;
}

.ssr::after {
    background: none;
    content: attr(data-heading) / "";
    left: 0;
    top: 0;
    z-index: -1;
    position: absolute;
    text-shadow: 
    -1px 0 1px #c6bb9f, 
    0 1px 1px #c6bb9f, 
    5px 5px 10px rgba(0, 0, 0, 0.4),
    -5px -5px 10px rgba(0, 0, 0, 0.4);
}
