body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6; /* Slightly different background */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px; /* Slightly more rounded */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Softer shadow */
    width: 100%;
    max-width: 700px;
    text-align: center;
}

h1, h2 {
    color: #2c3e50; /* Different heading color */
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
    text-align: left;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: calc(100% - 24px); /* Adjusted for padding */
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #3498db; /* Highlight on focus */
    outline: none;
}


button {
    background-color: #3498db; /* Primary button color */
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 8px 5px;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #2980b9; /* Darker on hover */
}
button:disabled {
    background-color: #bdc3c7; /* Disabled color */
    cursor: not-allowed;
}

.error-message { color: #e74c3c; margin-top: 10px; font-size: 0.9em; }
.success-message { color: #2ecc71; margin-top: 10px; font-size: 0.9em; }
.info-message { color: #7f8c8d; margin-top: 10px; font-size: 0.95em; }

/* CAPTCHA Styles - can be reused or customized */
#captcha-container { margin-bottom: 18px; text-align: left; }
.captcha-line { display: flex; align-items: center; }
#captchaInput { width: 100px; padding: 10px; margin-right: 10px; margin-bottom: 0; text-align: center; letter-spacing: 2px;}
.captcha-display { display: inline-block; padding: 10px 15px; background-color: #ecf0f1; border: 1px solid #ddd; border-radius: 4px; font-size: 1.2em; font-weight: bold; letter-spacing: 3px; user-select: none; margin-right: 10px; }
.captcha-refresh-btn { padding: 8px 10px; font-size: 1.2em; background-color: #95a5a6; border: none; color: white; cursor: pointer; border-radius: 4px; }
.captcha-refresh-btn:hover { background-color: #7f8c8d; }


/* Game Section Specific Styles */
#game-section, #leaderboard-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ecf0f1;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}
.game-info span {
    background-color: #ecf0f1;
    padding: 8px 15px;
    border-radius: 5px;
}


#gameArea {
    width: 100%;
    min-height: 250px; /* Adjust as needed */
    background-color: #ffffff; /* Cleaner game area */
    border: 2px solid #bdc3c7; /* Softer border */
    border-radius: 5px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.color-button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* For 4 buttons, 2x2 grid */
    gap: 15px; /* Space between buttons */
    max-width: 220px; /* Control the size of the grid */
}

.color-btn {
    width: 100px;
    height: 100px;
    border: 3px solid transparent; /* For highlight effect */
    border-radius: 10px; /* Rounded buttons */
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.2s ease, opacity 0.3s ease;
    opacity: 0.7; /* Slightly transparent initially */
}

.color-btn:hover {
    opacity: 1;
    transform: scale(1.05); /* Slight zoom on hover */
}

.color-btn.highlight {
    border-color: #2c3e50; /* Highlight border */
    opacity: 1;
    animation: pulse 0.5s ease-in-out;
}

.color-btn.player-clicked {
    transform: scale(0.95);
    opacity: 1;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* Leaderboard Styles - can be reused or customized */
.leaderboard-filters button { background-color: #95a5a6; margin-bottom: 15px; }
.leaderboard-filters button:hover { background-color: #7f8c8d; }
#leaderboardTable { width: 100%; border-collapse: collapse; margin-top: 15px; }
#leaderboardTable th, #leaderboardTable td { border: 1px solid #ecf0f1; padding: 10px; text-align: left; }
#leaderboardTable th { background-color: #3498db; color: white; text-align: center; font-weight: bold; }
#leaderboardTable tbody tr:nth-child(even) { background-color: #f8f9f9; }