* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    background-color: #1a1a2e;
    background-image: linear-gradient(to bottom right, #1a1a2e, #16213e, #0f3460);
    color: #e0e0e0;
    padding: 20px;
}

.container.page-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px dashed #e94560;
}

.main-header .logo {
    font-size: 2.5em;
    margin-right: 15px;
    animation: bounce 2s infinite;
}

.main-header h1 {
    font-size: 2em;
    color: #f0a500;
    text-shadow: 2px 2px #000;
}

.game-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-button {
    background-color: #e94560;
    color: #fff;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    border: 2px solid #000;
    box-shadow: 3px 3px #000;
}

.nav-button:hover,
.nav-button:focus {
    background-color: #f0a500;
    color: #000;
    outline: 2px solid #f0a500;
}

.game-info {
    padding: 20px;
    margin-bottom: 20px;
    background-color: rgba(0,0,0,0.2);
    border: 2px solid #16c79a;
    border-radius: 5px;
    display: none;
}

.game-info:target {
    display: block;
}

.game-content:not(:has(> .game-info:target)) > .game-info:first-of-type {
    display: block;
}

.game-info h2 {
    color: #16c79a;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.game-screenshot {
    width: 100%;
    max-width: 300px;
    border: 3px solid #e0e0e0;
    border-radius: 4px;
    justify-self: center;
}

.game-details h3 {
    color: #f0a500;
    margin-top: 10px;
    margin-bottom: 5px;
}

.game-details ul {
    list-style-type: square;
    padding-left: 20px;
}

.game-details p, .game-details ul {
    margin-bottom: 10px;
}

.main-footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.8em;
    color: #aaa;
    border-top: 1px solid #444;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container.page-wrapper {
        width: 95%;
        padding: 15px;
    }
    .main-header {
        flex-direction: column;
        text-align: center;
    }

    .main-header .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .game-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-button {
        width: 80%;
        max-width: 300px;
        text-align: center;
        margin-bottom: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .game-screenshot {
        margin-bottom: 15px;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.5em;
    }
    .main-header .logo {
        font-size: 2em;
    }
    .nav-button {
        font-size: 0.8em;
        padding: 8px 15px;
    }
    .game-info h2 {
        font-size: 1.3em;
    }
    .game-details h3 {
        font-size: 1em;
    }
    .game-details p, .game-details ul {
        font-size: 0.9em;
    }
}
