@import url('https://fonts.googleapis.com/css2?family=Jersey+15&display=swap');

html {
    scroll-behavior: smooth; /* Faz a rolagem para os links internos (como o #info) ser suave */
}

* {
    margin: 0;
    padding: 0;
    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: #D1E8FC;
}
header { /* refere à todo o cabeçalho (incluindo a nav) */
    height: 10vh;
}

nav { /* refere à navbar (fundo, etc) */
    background-color: #4f66af;
    display: flex;
    align-items: center;
    width: 100%; 
    height: 10vh;
    position: fixed;
}

.nav-items {
    width: 75%;
    margin: auto;
    display: flex;
    gap: 15px;
}
.nav-items img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-items img:hover {
    transform: scale(1.1); /* Aumenta levemente o ícone */
    filter: brightness(1.2); /* Deixa um pouco mais claro */
}

section {
    width: 100%;
    height: 80vh;
}
/* section main */
.main { 
    width: 100%;
    height: 90vh;
}

/* TÍTULO PRINCIPAL (index.html) */
.titulo-main {
    width: 100%;
    height: 48%;
    background-color: #D1E8FC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.titulo-main h1 {
    color: #1C1F73;
    font-size: 130px;
    margin-top: 220px;
}
.titulo-main h2 {
    color: #1C1F73;
    font-size: 70px;
}
/* Título outras páginas (modos de jogo, etc) */
.titulo {
    width: 100%;
    height: 20%;
    background-color: #D1E8FC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.titulo h1 {
    color: #1C1F73;
    font-size: 50px;
    margin-top: 100px;
}
.titulo h2 {
    color: #1C1F73;
}
/*  */
.jogar {
    /* background-color: #4f65af24; */
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.btn-jogar {
    padding: 25px 50px;
    font-size: 32px;
    border-color: aliceblue;
    border-radius: 10px;
    background-color: #547dcb;
    color: white;
    cursor: pointer;

    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-jogar:hover {
    background-color: #0059ff;

    transform: translateY(-5px); /* move um pouquinho para cima qnd passa o mouse*/
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.btn-jogar:active {
    transform: translateY(2px); /* efeito de clique "afundando" o botão */
}


/* informações (index.html) */
.info {
    background-color: #deefff;
    height: 95vh;
}
.info-content {
    width: 75%;
    /* background-color: #a4b5ed71; */
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.info-sobre {
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    gap: 40px;
}
.info-img {
    width: 380px;
    height: 380px;
}

.info-textos {
    /* background-color: #a4b5ed71; */
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info h2 {
    color: #1C1F73;
    font-size: 30px;
}
.info p {
    color: #474756;
    font-size: 25px;
}
.info-comojogar .info-textos h2 {
    font-size: 40px;
}
.info-comojogar-steps {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

/* cards modojogo.html */
.content {
    width: 100%;
    height: 80%;
    background-color:  #D1E8FC;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-cards {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.cards {
    background-color:  #9abaff;
    padding: 20px;
    border: 2px solid #c9daff;
    border-radius: 30px;
    box-shadow: 0 5px 10px #a2b9cd;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cards:hover {
    transform: translateY(-10px); /* Levanta o card inteiro */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Sombra mais forte */
}

.cards-img img {
    width: 300px; 
    
    border: 2px solid #c9daff;
    border-radius: 25px;
    box-shadow: 0 5px 10px #7aa3fb;

    transition: transform 0.3s ease;
}

.cards:hover .cards-img img {
    transform: scale(1.02); /* dá um zoom de leve na imagem quando passa o mouse no card */
}

.cards-desc {
    /* background-color: bisque; */
    width: 300px;
}

.text {
    color: #1C1F73;
    margin: 10px 5px 5px 5px;
    font-size: 20px;
}

/*  */
footer {
    background-color: #4f66af;
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: column;
}
.footer-content {
    width: 75%;
    margin: auto;
    margin-top: 20px;
}
.footer-content-item {
    /* background-color: #11287a1c; */
    margin: auto;
    display: flex;
    flex-direction: row;
    gap: 80px;
    margin-top: 65px;
    justify-content: center;
}
.footer-content-item p {
    /* background-color: #94ace02b; */
    color: #D1E8FC;
    width: 50%;
    font-size: 20px;
    text-align: center;
}
.copy {
    color: white;
    text-align: center;
    padding: 30px;
}

/* =============================================
   RESPONSIVIDADE (foi feito pelo claude)
   ============================================= */

/* ── Tablet: ≤ 900px ── */
@media (max-width: 900px) {
    .titulo-main h1  { font-size: 80px; }
    .titulo-main h2  { font-size: 42px; }

    /* section/content deixam de ter altura fixa para acomodar cards empilhados */
    section          { height: auto; min-height: 80vh; }
    .content         { height: auto; min-height: 64vh; padding: 32px 0; }

    .container-cards { width: 85%; gap: 30px; }

    .info-sobre      { flex-direction: column; align-items: center; }
    .info-img        { width: 260px; height: 260px; }

    .info-comojogar-steps { flex-direction: column; gap: 20px; }

    .footer-content-item  { flex-direction: column; gap: 30px; margin-top: 30px; }
    .footer-content-item p { width: 100%; }
}

/* ── Mobile grande: ≤ 600px ── */
@media (max-width: 600px) {
    .titulo-main h1  { font-size: 52px; margin-top: 120px; }
    .titulo-main h2  { font-size: 28px; }

    .titulo          { height: auto; padding: 16px 0; }
    .titulo h1       { font-size: 34px; margin-top: 50px; }

    .btn-jogar       { font-size: 22px; padding: 18px 36px; }

    .nav-items       { width: 90%; }

    /* section e content: altura automática para 3 cards empilhados caberem */
    section          { height: auto; min-height: unset; }
    .content         { height: auto; padding: 24px 0 40px; }

    .container-cards {
        width: 92%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 32px;
    }
    .cards           { width: 88%; max-width: 340px; }
    .cards-desc      { max-width: 100%; }
    .cards-img img   { width: 100%; height: auto; display: block; }

    .info            { height: auto; padding-bottom: 40px; }
    .info-content    { width: 90%; gap: 24px; }
    .info-sobre      { margin-top: 60px; gap: 20px; }
    .info-img        { width: 180px; height: 180px; align-self: center; }
    .info h2         { font-size: 22px; }
    .info p          { font-size: 18px; }

    footer           { height: auto; padding-bottom: 24px; }
    .footer-content  { width: 90%; margin-top: 10px; }
    .footer-content-item { flex-direction: column; gap: 16px; margin-top: 24px; }
    .footer-content-item p { width: 100%; font-size: 16px; }
    .copy            { padding: 16px; font-size: 14px; }
}

/* ── Mobile pequeno: ≤ 400px ── */
@media (max-width: 400px) {
    .titulo-main h1  { font-size: 38px; }
    .titulo-main h2  { font-size: 22px; }
    .btn-jogar       { font-size: 18px; padding: 14px 28px; }
    .cards           { width: 95%; }
}
