/* General Styling */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: url('https://images.unsplash.com/photo-1578364249730-0c4ee16426fa?q=80&w=2788&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Game List - Thumbnails */
.games-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.game {
    width: 180px;
    height: 230px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s, background 0.3s;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.game:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Ensure the image maintains quality */
.game img {
    width: 100%;
    height: 150px;
    object-fit: cover; /* Ensures the image is cropped to fit while maintaining quality */
    border-radius: 10px;
}

/* Game Title */
.game p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
}
/* Game View */
#game-view {
    padding: 20px;
}

.back-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.back-btn:hover {
    background: #e84118;
}

/* Progress Bar */
.progress-bar {
    width: 80%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress {
    width: 0;
    height: 100%;
    background: #ff4757;
    transition: width 1s ease;
}

/* Game Frame */
iframe {
    width: 90%;
    height: 500px;
    border-radius: 10px;
    margin-top: 10px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    margin-top: 20px;
    font-size: 14px;
}

