/* General Styling */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #081229, #1a2a59);
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2 {
    font-family: "Comic Sans MS", sans-serif;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Slim Header (Game Bar) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: linear-gradient(90deg, #1d3557, #457b9d);
    padding: 10px 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid #e63946;
    height: 70px;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #f1faee;
}

header .header-center {
    display: flex;
    gap: 20px;
    align-items: center;
}

header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Player Info in Header */
#username-display,
#player-credits,
#player-winnings,
#current-date {
    font-size: 0.9rem;
    font-weight: bold;
    color: #f1faee;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation and Volume Buttons */
.icon-button {
    background: #457b9d;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}

.icon-button:hover {
    background: #e63946;
    transform: scale(1.1);
}

#volume-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-label {
    font-size: 1.5rem;
    color: #f1faee;
}

#volume-controls input[type="range"] {
    width: 100px;
    accent-color: #e63946;
    cursor: pointer;
    background: transparent;
    outline: none;
}

/* Main Content Section */
main {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#content-section {
    background: #1d3557;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.6);
    width: 100%;
}

#content-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #a8dadc;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Category Buttons */
#category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.category-button {
    background: linear-gradient(145deg, #2a9d8f, #1b7f72);
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.category-button:hover {
    background: linear-gradient(145deg, #1b7f72, #2a9d8f);
    transform: translateY(-2px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.5);
}

.category-button.active {
    background: #e63946;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(255, 87, 51, 0.6);
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-tile {
    background: linear-gradient(145deg, #264653, #1a374d);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.game-tile:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.6);
    background: linear-gradient(145deg, #1a374d, #264653);
}

.game-tile a {
    color: #a8dadc;
    text-decoration: none;
    font-size: 1.1rem;
}

.game-tile a:hover {
    color: #f1faee;
}

/* Progress Bars */
.progress-bar-container {
    margin: 10px 0;
    background: #2a9d8f;
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(145deg, #e63946, #ff6f61);
    width: 50%; /* Example progress */
    transition: width 0.5s ease-in-out;
}
