/* General Page Styles */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #4facfe, #00f2fe);
}

/* Header */
.menu {
    background: #8e44ad;
    padding: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding-top: 20px;
}

/* Menu Bar */
.menu {
    background-color: #a64ca6;
    padding: 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Game Grid */
.game-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Game Card */
.game-card {
    width: 250px;
    height: 180px;
    background: #2ecc71;
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Animation */
.game-card::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 50%);
    top: -50%;
    left: -50%;
    transform: rotate(25deg);
    transition: 0.5s;
}

.game-card:hover::after {
    top: 100%;
    left: 100%;
}

/* Interactive Hover Effect */
.game-card:hover {
    background: #27ae60;
    transform: translateY(-5px);
}

/* Coming Soon (Disabled Games) */
.disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed;
}

.disabled:hover {
    transform: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .game-card {
        width: 90%;
    }
}

/* Game Box (Clickable) */
.game-box {
    width: 250px;
    height: 200px;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.game-box:hover {
    transform: scale(1.05);
}

/* Improve Game Container Styling */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* background: linear-gradient(to bottom, #4facfe, #00f2fe); Beautiful blue gradient */
}

.game-title {
    font-size: 26px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.game-frame {
    width: 100%;
    max-width: 500px;
    height: 900px; /* Increase height to fit full game */
    border: none;
    display: block;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 600px) {
    .game-frame {
        height: 90vh; /* Adjust height dynamically */
    }
}

.button-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.back-button {
    display: inline-block;
    background-color: #FFD700;
    color: black;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.back-button:hover {
    background-color: #FFC107;
    transform: scale(1.05);
}

/* Game Info Section */
.game-info {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.game-info h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
    border-bottom: 2px solid #a64ca6;
    padding-bottom: 5px;
}

.game-info p {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
}

.game-info ul {
    list-style: none;
    padding: 0;
}

.game-info ul li {
    font-size: 18px;
    margin: 10px 0;
}

.game-info a {
    text-decoration: none;
    color: #4facfe;
    font-weight: bold;
    transition: 0.2s;
}

.game-info a:hover {
    color: #00c2cb;
}

#leaderboard {
    list-style: none;
    padding: 0;
    font-size: 20px;
    color: #333;
    margin-top: 20px;
}

#leaderboard li {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    font-weight: bold;
}

#leaderboard li:hover {
    transform: scale(1.02);
    background-color: #f0f0f0;
}
