/* --- GLOBAL STYLES --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #222; /* Dark background for Christmas theme */
    color: #eee;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 10px;
    color: #fff;
}

/* --- UTILITY CLASS (The most important part!) --- */
/* This tells the browser to actually HIDE things with this class */
.hidden {
    display: none !important;
}

/* --- PASSWORD OVERLAY --- */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark see-through background */
    z-index: 9999; /* Sits on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-box {
    background: #333;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #ff4444; /* Red Christmas Border */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    max-width: 90%;
    width: 350px;
}

.password-box input {
    padding: 10px;
    width: 70%;
    border-radius: 5px;
    border: none;
    margin-top: 15px;
}

.password-box button {
    padding: 10px 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.password-box button:hover {
    background: #cc0000;
}

/* --- MAIN CONTAINER --- */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* --- RATER SELECTION --- */
.card {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

select {
    padding: 10px;
    font-size: 16px;
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
}

#select-rater-btn {
    background-color: #28a745; /* Green */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

/* --- BEER CARDS --- */
.beer-card {
    background: #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    border-left: 5px solid #f0ad4e; /* Beer color border */
}

.beer-card h3 {
    margin-top: 0;
    color: #f0ad4e;
}

.beer-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

/* --- RATINGS SECTION --- */
.rating-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #555;
}

.rating-form select {
    width: auto;
    margin-right: 10px;
}

.current-rating {
    margin-top: 10px;
    font-weight: bold;
    color: #81c784;
}

/* --- LEADERBOARD --- */
.leaderboard-item {
    background: #333;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.leaderboard-score {
    color: #f0ad4e;
    font-weight: bold;
}
