:root {
    /* Paleta de cores retrô de 32 bits */
    --primary-color: #ff7f50;    /* Coral */
    --primary-light: #ffa07a;    /* Light Salmon */
    --primary-dark: #e86a45;     /* Dark Coral */
    --secondary-color: #4169e1;  /* Royal Blue */
    --secondary-light: #87cefa;  /* Light Sky Blue */
    --secondary-dark: #1e3a8a;   /* Dark Royal Blue */
    --accent-color: #32cd32;     /* Lime Green */
    --accent-light: #90ee90;     /* Light Green */
    --accent-dark: #228b22;      /* Forest Green */
    --background-dark: #2a2a72;  /* Dark Blue */
    --background-light: #4a4a9c; /* Medium Blue */
    --text-light: #ffffff;       /* White */
    --text-dark: #000000;        /* Black */
    --success-color: #00ff00;    /* Green */
    --warning-color: #ffff00;    /* Yellow */
    --error-color: #ff0000;      /* Red */
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --card-bg: rgba(42, 42, 114, 0.8);

    /* Cores adicionais retrô */
    --retro-purple: #9932cc;     /* Dark Orchid */
    --retro-pink: #ff69b4;       /* Hot Pink */
    --retro-yellow: #ffd700;     /* Gold */
    --retro-orange: #ff8c00;     /* Dark Orange */
    --retro-cyan: #00ffff;       /* Cyan */
}

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

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background: url('../images/df67a4b8-ecd1-4f47-8b95-b82b7474e7f5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    color: var(--text-light);
    overflow-x: hidden;
    image-rendering: pixelated;
}

/* Efeito de scanline para todo o jogo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Efeito de CRT para todo o jogo */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 90%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 9998;
}





/* Logo do jogo */
.game-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    border: 4px solid var(--retro-yellow);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    object-fit: cover;
    image-rendering: pixelated;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.8),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    z-index: 1;
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    visibility: hidden; /* Adicionado para garantir que o container fique invisível */
}

.container.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    visibility: visible; /* Adicionado para garantir que o container fique visível */
}

.container.hidden {
    display: none;
}

.content-card {
    background: var(--retro-purple);
    border: 4px solid var(--text-light);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
    padding: 40px;
    max-width: 700px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

/* Adicionar efeito de padrão retrô */
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 0;
}

/* Adicionar efeito de pixel na borda */
.content-card::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px dashed var(--retro-yellow);
    animation: pixelBorder 2s steps(4) infinite;
    z-index: -1;
}

@keyframes pixelBorder {
    0% { border-color: var(--retro-yellow); }
    25% { border-color: var(--retro-cyan); }
    50% { border-color: var(--retro-pink); }
    75% { border-color: var(--retro-orange); }
    100% { border-color: var(--retro-yellow); }
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    color: var(--retro-yellow);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-light);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

h1 i {
    color: var(--retro-yellow);
    margin-right: 15px;
    animation: pixelIconFloat 1s steps(3) infinite;
    display: inline-block;
}

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

h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--retro-cyan);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.6;
}

/* Efeito especial para o título da página inicial */
.title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px;
    border: 4px solid var(--text-light);
    background: var(--retro-pink);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

#intro h1 {
    color: var(--text-light);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    animation: pixelPulse 2s steps(3) infinite;
}

.title-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 5px,
        transparent 5px,
        transparent 10px
    );
    z-index: 1;
}

@keyframes pixelPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.story-content {
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.8;
    color: var(--text-light);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-left: 4px solid var(--retro-cyan);
}

.mission-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.mission-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--retro-orange);
    border: 3px solid var(--text-dark);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 5px,
        transparent 5px,
        transparent 10px
    );
    pointer-events: none;
}

.mission-item:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.mission-item:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
}

.mission-item i {
    font-size: 1.5rem;
    color: var(--text-dark);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.mission-item span {
    font-size: 1.3rem;
    color: var(--text-dark);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* Cores diferentes para cada item da missão */
.mission-item:nth-child(1) {
    background: var(--retro-yellow);
}

.mission-item:nth-child(2) {
    background: var(--retro-cyan);
}

.mission-item:nth-child(3) {
    background: var(--retro-pink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    font-size: 1.6rem;
    font-family: 'Press Start 2P', cursive;
    background: var(--retro-yellow);
    color: var(--text-dark);
    border: 3px solid var(--text-dark);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to right,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
}

.btn:hover {
    background: var(--success-color);
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.btn:active {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
}

.btn i {
    font-size: 1.3rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

/* Efeito de destaque para o botão principal */
#intro .btn {
    animation: pixelPulse 2s steps(3) infinite;
    background: var(--retro-pink);
    color: var(--text-light);
    border-color: var(--text-light);
    font-size: 2rem;
    padding: 25px 50px;
}

#intro .btn:hover {
    background: var(--retro-cyan);
}

@keyframes pixelBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .content-card {
        padding: 30px 20px;
        width: 95%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    p {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .mission-details {
        flex-direction: column;
        gap: 15px;
    }

    .mission-item {
        width: 100%;
        justify-content: center;
    }

    .mission-item span {
        font-size: 1.1rem;
    }

    .btn {
        padding: 15px 30px;
        font-size: 1.3rem;
    }

    #intro .btn {
        font-size: 1.6rem;
        padding: 20px 40px;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 20px 15px;
        width: 95%;
    }

    h1 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    p {
        font-size: 1rem;
    }

    .title-wrapper {
        padding: 8px;
    }

    .mission-item {
        padding: 10px 15px;
    }

    .mission-item i {
        font-size: 1.2rem;
    }

    .mission-item span {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1.1rem;
        gap: 8px;
    }

    #intro .btn {
        font-size: 1.4rem;
        padding: 15px 25px;
    }

    .btn i {
        font-size: 1.2rem;
    }
}