@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;
} */

/* main do index */
.main-index { 
    width: 100%;
    height: 90vh;
    background-image: url('assets/img/fundos/fundo-sky.png');
    background-size: cover;
    position: relative; /* para o scroll-hint absolute funcionar */
}
.main-content {
    padding-top: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tagline acima do título */
.hero-tagline {
    color: #2d307f;
    font-size: 22px;
    letter-spacing: 2px;
    background-color: rgba(255,255,255,0.55);
    border: 2px solid rgba(79,102,175,0.35);
    border-radius: 20px;
    padding: 6px 20px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

/* Hint de scroll */
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #2d307f;
    opacity: 0.7;
    animation: bounceDown 2s infinite ease-in-out;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint-text { font-size: 16px; letter-spacing: 1px; }
.scroll-arrow { font-size: 20px; }

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* TÍTULO PRINCIPAL (index.html) */
.titulo-main {
    /* background-color: #8283ab54; */
    text-align: center;
}

.titulo-main h1 {
    color: #1C1F73;
    font-size: 130px;
}
.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: 40px;
}
.btn-jogar {
    padding: 25px 50px;
    font-size: 32px;
    border: none;
    border-radius: 10px;
    box-shadow: 2px 2px 10px 5px #abcdea;
    background-color: #2d307f;;
    color: white;
    cursor: pointer;

    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-jogar:hover {
    background-color: #6c91d4;

    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; */
    max-height: 130vh;
    padding-bottom: 20px;
}
.info-content {
    width: 75%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.info-sobre {
    text-align: justify;
    margin-top: 70px;
    display: flex;
    flex-direction: row;
    gap: 70px;
}
.info-img {
    width: 380px;
    height: 380px;
    border-radius: 8px;
    box-shadow: 5px 5px 10px 5px #abcdea;
    flex-shrink: 0;
}

.info-textos {
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.info h2 {
    color: #1C1F73;
    font-size: 40px;
}
.info p {
    color: #4a5584;
    font-size: 26px;
}

/* badges das operações */
.info-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.op-badge {
    background-color: #b8d0f5;
    color: #4a5894;
    font-size: 23px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 2px solid #7a96d4;
    letter-spacing: 1px;
}

/* como jogar com step-cards */
.info-comojogar .info-textos h2 {
    font-size: 40px;
}
.info-comojogar-steps {
    display: flex;
    flex-direction: row;
    gap: 24px;
}
.step-card {
    flex: 1;
    background-color: #b8d0f5;
    border: 2px solid #7a96d4;
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 8px rgba(79,102,175,0.15);
}
.step-num {
    font-size: 36px;
    color: #2d307f;
    line-height: 1;
}
.step-card p {
    font-size: 22px;
    text-align: left;
    color: #4a5584;
}

/* cards modojogo.html */
.content {
    width: 100%;
    height: 80%;
    background-color:  #D1E8FC;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* permite quebrar linha se necessário */
}

.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;
    max-width: 100%; /* não vaza em telas menores */
    display: block;
    
    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;
    max-width: 100%;
}

.text {
    color: #1C1F73;
    margin: 10px 5px 5px 5px;
    font-size: 20px;
}

/*  */
footer {
    background-color: #4f66af;
    width: 100%;
    height: auto;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    margin-top: 10vh;
    padding-top: 10px;
}
.footer-content {
    width: 75%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 70px;
}
.footer-content-item {
    margin: auto;
    display: flex;
    flex-direction: row;
    gap: 80px;
    margin-top: 40px;
    justify-content: center;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 40%;
}
.footer-title {
    color: #ffffff !important;
    font-size: 22px !important;
    letter-spacing: 1px;
    width: 100% !important;
    text-align: left !important;
    border-bottom: 2px solid rgba(255,255,255,0.25);
    padding-bottom: 8px;
}
.footer-content-item p {
    color: #D1E8FC;
    font-size: 18px;
    text-align: left;
    width: 100%;
}
.footer-link {
    color: #c9daff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: #ffffff; }
.copy {
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 20px;
    font-size: 16px;
    margin-top: auto;
}

/* ============================================================
   css a + dos MODOS DE JOGO (geral)
   ============================================================ */

.nav-modos {
    background-color: #4f65af00;
    position: static;
}

/* Divisor estilo masmorra entre seções */
.dungeon-divider {
    width: 100%;
    background-color: #4f66af;
    border-top: 4px solid #3a4f8a;
    border-bottom: 4px solid #3a4f8a;
    overflow: hidden;
    padding: 10px 0;
    white-space: nowrap;
}
.dungeon-divider span {
    display: inline-block;
    color: rgba(255,255,255,0.45);
    font-size: 20px;
    letter-spacing: 8px;
    animation: slideOps 18s linear infinite;
}
@keyframes slideOps {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Label de nome/nível no topo do card */
.cards-label {
    color: #2d307f;
    font-size: 18px;
    font-weight: 600;
    margin: 8px 5px 2px 5px;
    letter-spacing: 1px;
}

/* Subtítulo nas páginas internas */
.page-subtitle {
    color: #4f66af;
    font-size: 22px;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* ============================================================
   css a + do MODOJOGO.html
   ============================================================ */

.titulo-modojogo {
    width: 100%;
    background-color: #D1E8FC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin-top: 70px;
    margin-bottom: 40px;
}

.titulo-modojogo h1 {
    color: #1C1F73;
    font-size: 50px;
}
.titulo-modojogo h2 {
    color: #1C1F73;
    font-size: 30px;
}

/* ============================================================
   css a + do MODO JORNADA
   ============================================================ */

.titulo-jornada {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 40px;
}

.titulo-jornada h1 {
    color: #1C1F73;
    font-size: 50px;
}

/* ============================================================
   css a + do MODO INFINITO
   ============================================================ */

.titulo-infinita h1 {
    width: 100%;
    height: 20%;
    background-color: #D1E8FC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #1C1F73;
    font-size: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/*  */

.config-main {
    width: 100%;
}

.config-section {
    /* ajusta a altura se o form crescer */
    height: auto !important;
    min-height: 80vh;
}

.form-masmorra-custom {

    background-color:  #94a9d6;
    border: 4px solid #4e61a1;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    color: #ffffff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-title {
    font-size: 1.6rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.checkbox-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.4rem;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Layout em linha para entradas numéricas */
.row-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.row-layout label {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 1.5rem;
}

.row-layout input[type="number"] {
    width: 75px;
    padding: 6px;
    border: 2px solid #4e61a1;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    outline: none;
}

/*  */
#input-algarismos {
    padding: 8px;
    border: 2px solid #4e61a1;
    border-radius: 8px;
    font-size: 1.3rem;
    font-family: inherit;
    background-color: white;
    color: #333; 
    cursor: pointer;
    outline: none;
}

/* Centralização do Botão */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-submit-masmorra {
    background-color:  #7b8cb1;
    color: #ffffff;
    border: 2px solid #4e61a1;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 2px 2px #7f92bb;
    transition: background-color 0.15s, transform 0.05s, box-shadow 0.05s;
}

.btn-submit-masmorra:hover {
    background-color: #4f66af;
}

.btn-submit-masmorra:active {
    transform: translate(3px, 4px);
    box-shadow: 0px 0px 0px #000000;
}


/* EFEITOS */
/* --- INPUTS E CHECKBOXES --- */
.checkbox-container input[type="checkbox"],
.row-layout input[type="number"],
#input-algarismos {
    transition: all 0.3s ease;
}

/* Efeito ao focar no campo de digitação */
.row-layout input[type="number"]:focus,
#input-algarismos:focus {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(78, 97, 161, 0.8);
    border-color: #2c3e75;
}

/* Efeito ao passar o mouse na linha do checkbox */
.checkbox-container label {
    transition: color 0.2s ease;
}

.checkbox-container label:hover {
    color: #ffd700; /* Muda a cor do texto para dourado ao passar o mouse */
}


/* ===============================================================================================
   RESPONSIVIDADE
   ============================================= */

/* ── 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%; }
    .footer-col      { width: 100%; }

    /* infinita.html: centraliza o form */
    .config-section  { display: flex; flex-direction: column; align-items: center; }
}

/* ── Mobile grande: ≤ 600px ── */
@media (max-width: 600px) {
    .titulo-main h1  { font-size: 52px; margin-top: 60px; }
    .titulo-main h2  { font-size: 28px; }
    .main-content    { padding-top: 120px; }
    .hero-tagline    { font-size: 16px; padding: 5px 14px; }

    .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 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      { width: 100%; max-width: 100%; }
    .cards-img img   { width: 100%; height: auto; }

    /* info */
    .info            { height: auto; padding-bottom: 40px; max-height: none; }
    .info-content    { width: 90%; gap: 30px; }
    .info-sobre      { margin-top: 40px; gap: 30px; }
    .info-img        { width: 200px; height: 200px; align-self: center; }
    .info h2         { font-size: 26px; text-align: center;}
    .info p          { font-size: 17px; }
    .op-badge        { font-size: 15px; padding: 5px 12px;}
    .info-comojogar-steps { gap: 14px; }
    .step-card       { padding: 14px; }
    .step-num        { font-size: 28px; }
    .step-card p     { font-size: 17px; }

    /* footer */
    footer           { height: auto; padding-bottom: 24px; margin-top: 4vh; }
    .footer-content  { width: 90%; margin-top: 10px; }
    .footer-content-item { flex-direction: column; gap: 24px; margin-top: 24px; }
    .footer-content-item p { width: 100%; font-size: 15px; }
    .footer-col      { width: 100%; }
    .footer-title    { font-size: 18px !important; }
    .copy            { padding: 16px; font-size: 13px; }

    /* divisor */
    .dungeon-divider span { font-size: 16px; letter-spacing: 6px; }

    /* ── infinita.html: form ocupa quase a tela toda em mobile ── */
    /* .config-main     { padding: 0 12px 24px; }
    .config-section  {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: unset;
    }
    .titulo-infinita h1 { font-size: 36px; margin-top: 10px; margin-bottom: 10px; }
    .form-masmorra-custom {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px;
        gap: 16px;
    }
    .group-title       { font-size: 1.35rem; }
    .checkbox-container label { font-size: 1.25rem; }
    .row-layout label  { font-size: 1.25rem; }
    .row-layout input[type="number"] { font-size: 1.25rem; width: 64px; }
    #input-algarismos  { font-size: 1.15rem; }
    .btn-submit-masmorra { font-size: 1.25rem; padding: 10px 22px; } */

    /* ── jornada.html: título ── */
    .titulo-jornada    { margin-top: 50px; margin-bottom: 20px; }
    .titulo-jornada h1 { font-size: 36px; }

    /* ── modojogo.html: título ── */
    .titulo-modojogo h1 { font-size: 36px; }
    .titulo-modojogo h2 { font-size: 22px; }
    .titulo-modojogo    { margin-top: 40px; margin-bottom: 20px; }

    /* subtítulo e label dos cards */
    .page-subtitle   { font-size: 17px; }
    .cards-label     { font-size: 16px; }
}

/* ── 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%; }
    .hero-tagline    { font-size: 14px; }

    .form-masmorra-custom { padding: 16px 12px; }
    .group-title       { font-size: 1.2rem; }
    .checkbox-container label { font-size: 1.1rem; }
    .row-layout label  { font-size: 1.1rem; }
}