body{
    margin:0;
    font-family:'Segoe UI',sans-serif;
    background:linear-gradient(to bottom,#020b1f,#071427,#102b5a);
    color:white;
    text-align:center;
    min-height:100vh;
    overflow-x:hidden;
}

.container{
    width:90%;
    max-width:1000px;
    margin:auto;
    padding:40px 20px;
    position:relative;
    z-index:1;
}

h1{
    font-size:2.5rem;
    margin-bottom:20px;
}

h2{
    font-weight:400;
}

/* CARTA */

#carta{
    max-width:700px;
    margin:30px auto;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    padding:30px;
    border-radius:25px;
    line-height:2;
    text-align:left;
    font-size:18px;
    box-shadow:0 0 25px rgba(255,255,255,.08);
}

/* BOTÕES */

button{
    margin-top:20px;
    padding:18px 35px;
    border:none;
    border-radius:15px;
    font-size:18px;
    cursor:pointer;
    background:white;
    color:#071427;
    transition:.3s;
}

button:hover{
    transform:scale(1.05);
    box-shadow:0 0 20px rgba(255,255,255,.3);
}

/* INPUT */

input{
    width:300px;
    max-width:90%;
    padding:15px;
    border:none;
    border-radius:12px;
    text-align:center;
    font-size:18px;
}

/* CAPA DA SURPRESA */

.spotify-card{
    width:420px;
    max-width:95%;
    margin:auto;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    border-radius:25px;
    padding:25px;
    box-shadow:0 0 30px rgba(255,255,255,.1);
    animation:aparecer 1s ease;
}

.album-cover{
    width:100%;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.4);
    animation:flutuar 5s ease-in-out infinite;
}

.spotify-card h3{
    margin-top:20px;
    margin-bottom:10px;
    font-size:1.4rem;
}

.spotify-card p{
    font-size:1.1rem;
    line-height:1.7;
    opacity:.95;
}

/* GALERIA */

.galeria{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    justify-items:center;
    margin-top:40px;
}

.galeria img{
    width:100%;
    max-width:220px;
    height:280px;
    object-fit:cover;
    background:white;
    padding:10px 10px 35px 10px;
    border-radius:4px;
    box-shadow:0 10px 25px rgba(0,0,0,.4);
    animation:
    aparecer 1s forwards,
    flutuar 4s ease-in-out infinite;
    transition:.4s;
}

.galeria img:nth-child(1){transform:rotate(-4deg);}
.galeria img:nth-child(2){transform:rotate(3deg);}
.galeria img:nth-child(3){transform:rotate(-2deg);}
.galeria img:nth-child(4){transform:rotate(4deg);}
.galeria img:nth-child(5){transform:rotate(-3deg);}
.galeria img:nth-child(6){transform:rotate(2deg);}
.galeria img:nth-child(7){transform:rotate(-4deg);}
.galeria img:nth-child(8){transform:rotate(3deg);}

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

/* QUIZ */

#quizPage{
    max-width:700px;
    margin:auto;
}

#pergunta{
    margin-top:30px;
    font-size:1.4rem;
}

.alternativa{
    display:block;
    width:100%;
    max-width:500px;
    margin:10px auto;
}

#erroQuiz{
    font-weight:bold;
    margin-top:20px;
    font-size:18px;
    color:#ff8080;
}

/* BARRA DE PROGRESSO */

.barra{
    width:100%;
    max-width:500px;
    height:14px;
    background:rgba(255,255,255,.15);
    border-radius:30px;
    margin:20px auto;
}

.progresso{
    width:25%;
    height:100%;
    background:white;
    border-radius:30px;
    transition:.4s;
}

/* MENU */

.menu{
    padding:20px;
    text-align:left;
}

.menu a{
    color:white;
    text-decoration:none;
    background:rgba(255,255,255,.1);
    padding:12px 18px;
    border-radius:12px;
    transition:.3s;
}

.menu a:hover{
    background:rgba(255,255,255,.2);
}

/* ESTRELAS */

.star{
    position:fixed;
    background:white;
    border-radius:50%;
    animation:piscar 3s infinite;
    z-index:0;
}

/* CORAÇÕES */

.heart{
    position:fixed;
    bottom:-50px;
    font-size:22px;
    animation:subir 10s linear forwards;
    pointer-events:none;
}

/* ANIMAÇÕES */

@keyframes aparecer{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes flutuar{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-8px);
    }
    100%{
        transform:translateY(0);
    }
}

@keyframes subir{
    from{
        transform:translateY(0);
    }
    to{
        transform:translateY(-120vh);
    }
}

@keyframes piscar{
    0%{opacity:1;}
    50%{opacity:.2;}
    100%{opacity:1;}
}

/* RESPONSIVO */

@media(max-width:768px){

    h1{
        font-size:2rem;
    }

    #carta{
        font-size:15px;
        line-height:2.1;
        padding:25px;
    }

    #cartaPage h1{
        font-size:24px;
        line-height:1.3;
        padding:0 15px;
    }

    .galeria{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .galeria img{
        width:100%;
        max-width:160px;
        height:220px;
    }

    button{
        width:90%;
    }

    .spotify-card{
        width:90%;
    }
}