/* General styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #e8f5e9; /* Light green background */
    overflow-x: hidden;
}

header {
    background-color: #2e7d32; /* Dark green */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .hamburger {
    font-size: 24px;
    cursor: pointer;
}

header h1 {
    margin: 0;
    font-size: 20px;
}

/* Totals Section */
.stats {
    margin: 20px 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.stats-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 45%;
    max-width: 200px;
    min-width: 150px;
    margin: 10px auto;
}

.stats-card h2 {
    margin: 0;
    font-size: 24px;
    color: #2e7d32; /* Dark green */
}

.stats-card p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #757575; /* Grey text */
}

/* Play buttons */
.play-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

.play-buttons button {
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: #81c784; /* Light green */
    border: none;
    color: #1b5e20; /* Dark green */
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    flex: 1;
}

.play-buttons button:hover {
    background-color: #66bb6a; /* Medium green */
}

.play-buttons button span {
    display: block;
    font-size: 12px;
    color: #1b5e20; /* Dark green */
}

/* Discount button */
.discount-button {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.discount-button button {
    font-size: 14px; /* Smaller font */
    padding: 8px 15px; /* Compact padding */
    border-radius: 5px;
    background-color: #f5f5f5; /* Light gray background */
    border: 1px solid #ccc; /* Subtle border */
    color: #424242; /* Dark gray text */
    font-weight: bold;
    cursor: pointer;
    width: 50%; /* Narrower button */
    max-width: 300px; /* Limit maximum width */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.discount-button button:hover {
    background-color: #e0e0e0; /* Slightly darker gray on hover */
    border-color: #bdbdbd; /* Darker border on hover */
}


/* Play List */
.play-list {
    margin: 20px auto;
    max-width: 600px;
    overflow-x: auto;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.play-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.play-table th,
.play-table td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.play-table th {
    background-color: #2e7d32; /* Dark green */
    color: white;
}

.play-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.play-table tr:hover {
    background-color: #ddd;
}

/* Menu styles */
.menu {
    position: absolute;
    top: 50px;
    left: 0;
    width: 200px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none;
    z-index: 100;
}

.menu button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 10px;
    font-size: 14px;
    text-align: left;
    background-color: #66bb6a; /* Medium green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu button:hover {
    background-color: #4caf50; /* Slightly darker green */
}

.menu button#toggle-counting-btn {
    content: "Switch to Countdown Mode";
}

/* Preferences modal */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .play-buttons {
        flex-direction: column;
    }

    .play-buttons button {
        font-size: 14px;
        padding: 10px;
    }
}
