/* Retro Nostalgic Styling - Fun and Colorful */
body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
    color: #00ff00;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.6;
    animation: backgroundShift 10s infinite alternate;
}

@keyframes backgroundShift {
    0% { background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%); }
    100% { background: linear-gradient(135deg, #001122 0%, #110011 50%, #001122 100%); }
}

header {
    background: linear-gradient(90deg, #001100, #002200, #001100);
    padding: 20px;
    border-bottom: 4px solid #00ff00;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,0,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

header h1 {
    font-size: 2em;
    margin: 0;
    text-shadow: 2px 2px #000, 0 0 10px #ff00ff, 0 0 20px #00ffff;
    background: linear-gradient(45deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 2s infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

header p {
    font-size: 0.8em;
    margin: 10px 0 0 0;
    color: #ffff00;
    text-shadow: 1px 1px #000;
}

main {
    padding: 20px;
}

.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background-color: #001100;
    border: 3px solid #00ff00;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 0 15px #00ff00, inset 0 0 15px rgba(0,255,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,0,255,0.3), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 0 25px #00ff00, 0 0 50px #ff00ff;
}

.game-card:nth-child(1) {
    border-color: #ff0000;
    box-shadow: 0 0 15px #ff0000;
}

.game-card:nth-child(1):hover {
    box-shadow: 0 0 25px #ff0000, 0 0 50px #ffff00;
}

.game-card:nth-child(2) {
    border-color: #0000ff;
    box-shadow: 0 0 15px #0000ff;
}

.game-card:nth-child(2):hover {
    box-shadow: 0 0 25px #0000ff, 0 0 50px #00ffff;
}

.game-card:nth-child(3) {
    border-color: #ffff00;
    box-shadow: 0 0 15px #ffff00;
}

.game-card:nth-child(3):hover {
    box-shadow: 0 0 25px #ffff00, 0 0 50px #ff00ff;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid currentColor;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card h2 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 2px 2px #000;
}

.game-card:nth-child(1) h2 { color: #ff6666; }
.game-card:nth-child(2) h2 { color: #6666ff; }
.game-card:nth-child(3) h2 { color: #ffff66; }

.game-card p {
    font-size: 0.7em;
    margin: 0 0 15px 0;
    color: #cccccc;
}

.play-button {
    display: inline-block;
    background: linear-gradient(45deg, #00ff00, #ffff00);
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    border: 2px solid #00ff00;
    border-radius: 8px;
    font-size: 0.8em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    background: linear-gradient(45deg, #ffff00, #ff00ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,0,0.4);
}

footer {
    background: linear-gradient(90deg, #001100, #002200, #001100);
    padding: 10px;
    border-top: 4px solid #00ff00;
    font-size: 0.6em;
    color: #ffff00;
    text-shadow: 1px 1px #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 90%;
        max-width: 300px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
}