/* General Body Styles */
body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif; /* Modern, readable sans-serif font */
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* White background */
    color: #333;
    line-height: 1.6;
}.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: #ffffff; /* White background for header */
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for header */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 28px;
}

.logo h1 a {
    text-decoration: none;
    color: #333;
}

.main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-header nav ul li {
    margin-left: 25px;
}

.main-header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-header nav ul li a:hover {
    color: #007bff; /* Blue for hover effect */
}

/* Main Content Area */
.main-content {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr; /* Each card takes full width */
    gap: 30px;
}

.card {
    background-color: #ffffff; /* White background for cards */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3); /* Subtle 3D/shadow effect */
    padding: 30px;
}
.card h2 {
    font-size: 22px;
}

/* Game Info Display */
.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    width: 1280px; /* 20 columns * 64px/tile */
    height: 640px; /* 10 rows * 64px/tile */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.game-embed-placeholder {
    background-color: #ffffff; /* White background for placeholder */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 0.5px 3px rgba(0, 0, 0, 2); /* Subtle 3D/shadow effect */
    padding: 30px;
    text-align: center;
    color: #6c757d;
    font-size: 18px;
    margin-top: 20px;
    border: none; /* Remove dashed border */
}

.play-button {
    background-color: #007bff; /* Blue button */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for buttons */
}

.play-button:hover {
    background-color: #0056b3;
}

.play-button.reset-button {
    background-color: #6c757d; /* Grey for reset button */
}

.play-button.reset-button:hover {
    background-color: #5a6268;
}
/* Footer Styles */
.main-footer {
    background-color: #ffffff; /* White background for footer */
    padding: 30px 0;
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-top: 40px;
}

.footer-divider {
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-header nav ul {
        margin-top: 15px;
    }

    .main-header nav ul li {
        margin: 0 10px;
    }

    .main-content {
        grid-template-columns: 1fr; /* Each card takes full width */
        gap: 30px;
    }

    /* Game Info Display */
    .card {
        background-color: #ffffff; /* White background for cards */
        border-radius: 12px; /* Rounded corners */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Subtle 3D/shadow effect */
        padding: 30px;
    }
    .card h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }

    .main-header nav ul li {
        margin: 0 8px;
    }

    .play-button {
        padding: 10px 20px;
        font-size: 16px;
    }
}
/* Game Over Overlay */
.game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-overlay.hidden {
    display: none;
}

.game-over-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-over-content h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.game-over-content p {
    font-size: 1.5em;
    color: #555;
    margin-bottom: 25px;
}

.game-over-content button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game-over-content button:hover {
    background-color: #45a049;
}
