/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #87CEEB; /* Sky blue */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    display: flex;
    justify-items: center;
    align-items: center;
}

.logo {
    width: 100px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 150px;
}

.logo img {
    width: 80px;
}

header h1 {
    color: #2C3E50;
    font-size: 24px;
}

header > .title {
    flex: 1;
}

header > .opt {
    flex-basis: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 15px;
    text-decoration: none;
    color: #2C3E50;
    font-weight: bold;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Featured game banner */
.featured-game {
    margin-bottom: 20px;
}

.banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.banner img {
    width: 100%;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay h2 {
    margin: 0;
    font-size: 18px;
}

/* Game list and cards */
.game-list h2 {
    margin: 20px 0 15px;
    color: #2C3E50;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.test-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.game-info {
    padding: 10px;
}

.game-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-stats {
    display: flex;
    font-size: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: space-around;
}

/* Buttons */
.play-btn {
    background: #4F7DFF;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 275px;
}

.play-btn:hover {
    background: #3A66E0;
}

.play-btn.large {
    padding: 12px 25px;
    font-size: 16px;
}

/* Game details page */
.game-details {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-right: 15px;
}

.game-title h2 {
    margin-bottom: 5px;
}

.game-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    flex-direction: row;
    flex-wrap: wrap;
}

.game-image {
    width: 100%;
}

.game-image img {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.category {
    background: #4F7DFF;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.game-description {
    margin: 15px 0;
    line-height: 1.6;
}

.game-btn {
    width: 100%;
    padding: 10px;
    text-align: center;
}

/* Comment form */
.comment-form {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.comment-form h3 {
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.rating-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-input label {
    margin-right: 10px;
}

.stars span {
    font-size: 24px;
    cursor: pointer;
    color: #ddd;
}

.stars span.active,
.stars span:hover {
    color: #FFD700;
}

/* Reviews */
.reviews {
    margin-top: 20px;
}

.review {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-header h4 {
    font-size: 14px;
}

/* Container for the entire updating message */
.game-updating {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-color: #f0f0f0; /* Light gray background */
    font-family: sans-serif; /* A clean, readable font */
}

/* Central box containing the message */
.game-updating-content {
    text-align: center;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px;
}

/* Header section */
.game-updating-header {
    margin-bottom: 20px;
}

/* Title for the message */
.game-updating-title {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

/* Description paragraph */
.game-updating-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* The "Back to Home" button */
.game-updating-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff; /* A standard blue color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

/* Button hover effect */
.game-updating-button:hover {
    background-color: #0056b3; /* A darker blue on hover */
}

/* Play page */
.play-page {
    background: #000;
}

.play-container {
    position: relative;
    height: 100vh;
    width: 100%;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

.game-frame-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#gameFrame {
    width: 100%;
    height: 100%;
}

.game-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    display: flex;
    gap: 10px;
}

.game-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* Content pages */
.content-page {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.content-page h2 {
    margin: 15px 0 10px;
    color: #2C3E50;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
}

.page-btn.active {
    background: #4F7DFF;
    color: white;
    border-color: #4F7DFF;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #4F7DFF;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }

    .games-grid {
        gap: 20px;
    }

    .test-games-grid {
        gap: 20px;
    }

    .game-card img {
        height: 150px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 980px;
    }
}

