/* Reset e configurações básicas */
@font-face {
    font-family: 'Emulogic';
    src: url('../src/fonts/Emulogic-zrEw.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Botão de voltar ao menu */
.back-to-menu-btn {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #42c0f0, #34a8d8) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(66, 192, 240, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    display: block !important;
}

.back-to-menu-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(66, 192, 240, 0.6) !important;
    background: linear-gradient(135deg, #34a8d8, #2a8bc7) !important;
}

.back-to-menu-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(66, 192, 240, 0.4) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CamptonExtraBold', 'Poppins', sans-serif;
    background: #034EA0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

/* Header styles */
.main-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.caravana-logo img {
    height: 50px;
    width: auto;
    max-width: 250px;
    display: block;
}

.home-container {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    gap: 48px;
    padding: 20px 12px;
}

.iel-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.iel-logo-img {
    height: 240px;
    width: auto;
    filter: brightness(0) invert(1);
}

.memoria-title {
    font-family: 'Emulogic', 'GameOver', 'Game', 'Orbitron', 'Arial Black', 'Impact', 'Franklin Gothic Heavy', sans-serif;
    font-size: 5.5rem;
    color: #fff;
    text-align: center;
    margin: 0px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    font-weight: normal;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 6px 18px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: -25px;
    justify-content: center;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.play-btn {
    background: #42C0F0;
    color: #034EA0;
    border: none;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 15px;
    padding-bottom: 10px;
    font-size: 5rem;
    font-weight: bold;
    font-family: 'Emulogic', 'GameOver', 'Game', 'Orbitron', 'Arial Black', 'Impact', 'Franklin Gothic Heavy', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 192, 240, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    margin-top: 60px;
}

.play-btn:hover {
    background: #34A8D8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 192, 240, 0.4);
}

@media (max-width: 900px) {
    .back-to-menu-btn {
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .home-content {
        gap: 32px;
        padding: 16px 6px;
    }
    
    .main-header {
        top: 15px;
        right: 15px;
    }
    
    .caravana-logo img {
        height: 35px;
        max-width: 180px;
    }
}

/* Modal de início do jogo */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 78, 160, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.game-modal.show {
    display: flex;
}

.modal-content {
    background: #034EA0;
    border: 4px solid #42C0F0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-text {
    margin-bottom: 30px;
}

.modal-text p {
    font-family: 'Emulogic', 'Arial Black', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-text p {
    font-family: 'Emulogic', 'Arial Black', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.modal-text p {
    font-family: 'Emulogic', 'Arial Black', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.star-icon {
    width: 48px;
    height: 48px;
    filter: none;
    flex-shrink: 0;
    vertical-align: top;
    margin-top: -8px;
}

.timer-container {
    margin-top: 20px;
}

.timer-label {
    font-family: 'Emulogic', 'Arial Black', sans-serif;
    font-size: 1.1rem;
    color: #42C0F0;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-display {
    font-family: 'Emulogic', 'Arial Black', sans-serif;
    font-size: 4rem;
    color: #fff;
    background: #42C0F0;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 16px rgba(66, 192, 240, 0.3);
}

@media (max-width: 600px) {
    .back-to-menu-btn {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-text p {
        font-size: 1.1rem;
    }
    
    .star-icon {
        width: 36px;
        height: 36px;
    }
    
    .timer-label {
        font-size: 1rem;
    }
    
    .timer-display {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
}

.sebrae-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.sebrae-logo-img {
    height: 180px;
    width: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
    .iel-logo-img {
        height: 180px;
    }
    .memoria-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    .play-btn {
        padding: 10px 16px;
        padding-top: 5px;
        font-size: 4rem;
        letter-spacing: 1px;
    }
    .sebrae-logo-img {
        height: 140px;
    }
}
