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

/* Hide Text for small screens */
    @media only screen and (max-width: 700px) {
        .hide-on-small-screen {
            display: none;
        }
    }

/* Font Styling */
.logo {
    font-family: "Press Start 2P", system-ui;
}

p {
    font-family: "Press Start 2P", system-ui;
}

h1 {
    font-family: "Press Start 2P", system-ui;
}

h2 {
    font-family: "Press Start 2P", system-ui;
}

h3 {
    font-family: "Press Start 2P", system-ui;
}

h4 {
    font-family: "Press Start 2P", system-ui;
}

h5 {
    font-family: "Press Start 2P", system-ui;
}

/* Main Styles */
:root {
    --bg-color: #0d0d10;
    --primary-color: #e5ff00;
    --secondary-color: #333608;
    --accent-color: #ff5722;
    --text-color: #e0e0e0;
    --card-bg: #1a1a2e;
    --card-border: #2c2c4d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
/* Game Card Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 1rem 0;
    position: static;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Logo Styles */
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

main {
    padding: 2rem 0;
}
/* More Game Card Styling */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.game-card-header {
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.game-card-header h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
}

.game-card-body {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-card-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    cursor: pointer;
    opacity: 1;
    flex-direction: column;
}

.game-card:hover .game-card-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.game-card-overlay .play-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card-overlay .play-button:hover {
    background-color: var(--accent-color);
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--bg-color);
    color: #777;
    border-top: 1px solid #222;
    margin-top: 2rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card-body {
        height: 350px;
    }
}

/* Game-specific CSS for iframes to prevent scrolling */
iframe::-webkit-scrollbar {
    display: none;
}

iframe {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Back Button For Returning To Game Selection */
.back-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-button:hover {
    background-color: var(--accent-color);
}

