body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Default to light font */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer sticks to bottom */
}

header {
    background-color: #1f1f1f;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 3px solid #FFA500; /* Less bright orange */
    margin-bottom: 20px; /* Add some space below the header */
}

header h1 {
    margin: 0 0 5px 0; /* Adjusted margin */
    font-size: 2.5rem;
    color: #FFA500; /* Less bright orange */
    font-weight: 900; /* Bold heading */
}

header h2 {
    margin: 0 0 5px 0; /* Adjusted margin */
    padding-top: 10px;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 900; /* Bold as well */
}

header h3 {
    margin: 0;
    font-size: 0.8rem;
    color: #aaa; /* Subtler color for the subtitle */
    font-weight: 400; /* Lighter font weight */
}

main {
    padding: 20px;
    flex-grow: 1; /* Allow main content to grow and push footer down */
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center content like selector and event card */
}

.event-selector {
    margin-bottom: 30px; /* Space below the selector */
    text-align: center;
    width: 100%;
    max-width: 500px; /* Constrain width of selector area */
}

.event-selector p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.event-container {
    width: 100%;
    max-width: 800px; /* Max width for a single event card */
    /* Removed grid/flex styles from here, will be handled by individual .event display */
}

.event {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default, shown by JS */
    flex-direction: column; /* Keep for internal layout if needed */
    margin-top: 20px; /* Space above event card if it appears after selector */
}

.event.active {
    display: flex; /* Or block, depending on if you need flex properties */
}

.event h2 {
    color: #FFA500;
    margin-top: 0;
    border-bottom: 2px solid #FFA500;
    padding-bottom: 10px;
    font-weight: 900;
    text-align: center;
}

.event ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event ul li {
    background-color: #2a2a2a;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #FFA500;
    font-weight: 400;
    line-height: 1.8;
}

.tag {
    background-color: #FFA500;
    color: #121212;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.85rem;
    margin-right: 8px;
    display: inline-block; /* Ensure tags are on the same line if space allows */
    margin-bottom: 5px; /* Space if tags wrap */
}

.mobile-controls {
    display: none;
    margin-top: 20px;
    width: 100%;
    text-align: center; /* Center the dropdown button */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background-color: #FFA500;
    color: #121212;
    border: none;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button has a decent width */
}

.dropdown-button:hover, .dropdown-button.active {
    background-color: #e69500;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1f1f1f;
    min-width: 100%; /* Make dropdown content as wide as button */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    left: 0; /* Align with button */
    /* transform: translateX(-50%); Removed as it's full width now */
}

.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    border-bottom: 1px solid #333;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #333;
    color: #FFA500;
}

.dropdown-content a.active {
    background-color: #FFA500;
    color: #121212;
    font-weight: 900;
}

/* This rule makes the dropdown visible when the .show class is added by JavaScript */
.dropdown-content.show {
    display: block;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1f1f1f;
    border-top: 3px solid #FFA500; /* Less bright orange */
    /* margin-top: 30px; Removed as main now grows */
}

footer p {
    margin: 0;
    color: #aaa;
}

/* Mobile View */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .event {
        padding: 20px;
    }
    .event h2 {
        font-size: 1.5rem; /* Adjust event title size for mobile */
    }
    .dropdown-button {
        width: 100%; /* Make button full width on mobile */
    }
    .event-selector {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-controls {
        display: block; /* Show mobile controls */
    }
}

.toggle-rules-hint {
    text-align: center;
    margin-top: 15px;
    color: #aaa; /* Subdued color for the hint */
    font-style: italic;
    font-size: 0.9rem;
} 