@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all other content */
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 20px 0;
    border-bottom: 2px solid #00ffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(42, 95, 173, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 15px;
}

nav ul li a {
    color: #b0b0b0;
    text-decoration: none;
    padding: 12px 28px;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 1.5px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: block;
    text-transform: uppercase;
}

nav ul li a:hover, nav ul li a.active {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

main {
    padding: 40px 0;
}

h1 {
    text-align: center;
    font-size: 3em;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    margin-bottom: 40px;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #00ffff;
    color: #888;
}

/* Game List Styles */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: #1a1a1a;
    border: 1px solid #00ffff;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #00ffff;
}

.game-card h2 {
    color: #00ffff;
    margin-top: 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00ffff;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: #ff00ff;
    color: #fff;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li a {
        padding: 10px;
        font-size: 1em;
    }

    h1 {
        font-size: 2em;
    }

    .game-list {
        grid-template-columns: 1fr;
    }
}

/* Responsive Iframe for Game Demos */
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 15px;
    background-color: #000;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}
