@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Roboto:wght@400;700&display=swap');

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ff7518' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2b2b2b;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    border: 2px solid #ff7518;
}

header {
    text-align: center;
    border-bottom: 2px dashed #444;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

header h1 {
    font-family: 'Creepster', cursive;
    font-size: 4rem;
    color: #ff7518;
    margin: 0;
    text-shadow: 3px 3px 5px #000;
}

h2 {
    font-family: 'Creepster', cursive;
    color: #fca311;
    font-size: 2.5rem;
    text-align: center;
}

/* Rater Selection Styles */
.rater-selection {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #333;
    border-radius: 8px;
}

.current-rater {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #3c3c3c;
    border-radius: 8px;
}
.current-rater button {
    margin-left: 15px;
    padding: 5px 10px;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

.leaderboard {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #444;
}

.leaderboard-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.leaderboard-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff7518;
}

.beer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.beer-card {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.beer-card h3 {
    margin: 0 0 5px 0;
    color: #ff7518;
    font-size: 1.5rem;
    text-align: center;
}

/* New Brewery Style */
.beer-brewery {
    text-align: center;
    font-weight: bold;
    color: #fca311;
    margin-bottom: 5px;
}

.beer-meta {
    text-align: center;
    color: #ccc;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.rating-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

select, button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #444;
    color: #f0f0f0;
    font-size: 1rem;
}

button {
    background-color: #ff7518;
    color: #1a1a1a;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #fca311;
    transform: scale(1.05);
}

.current-rating {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.avg-score {
    font-weight: bold;
    color: #ff7518;
    font-size: 1.8rem;
}

.individual-ratings {
    margin-top: 15px;
    background-color: #444;
    border-radius: 5px;
    padding: 10px;
}

.individual-ratings h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #fca311;
    text-align: center;
}

.individual-ratings ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    text-align: center;
}

.analytics-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rater-stats-card {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
}

.rater-stats-header {
    text-align: center;
    border-bottom: 2px solid #ff7518;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.rater-stats-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #f0f0f0;
}

.rater-stats-header .overall-avg {
    font-size: 1.1rem;
    color: #ff7518;
    font-weight: bold;
}

.rater-stats-body ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
}

.rater-stats-body li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #555;
}
.rater-stats-body li:last-child {
    border-bottom: none;
}
.rater-stats-body li .type-name {
    color: #ccc;
}
.rater-stats-body li .type-avg {
    font-weight: bold;
    color: #fca311;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #444;
    color: #888;
}