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



body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Set default weight */
    color: #e0e0e0;
    background: black; /* Solid black background */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items to the top */
    align-items: center; /* Centers items horizontally */
    min-height: 100vh;
    margin: 0;
    padding: 20px; /* Add some padding to avoid content touching edges */
    text-align: center;
    /* position: relative; Removed as gradients still work without it */
    gap: 3vh; /* New: Add gap between direct children */
}

/* Corner gradients */
/* General button styling for liquid glass effect */
button, input[type="submit"] {
    /* Liquid glass effect */
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(76, 0, 255, 0.2)); /* Purple gradient */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Subtle text shadow */
}

button:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(76, 0, 255, 0.4));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

button:active, input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Styles for the top categories container (liquid glass box) */
#top-categories-container {
    margin-top: 0; /* Remove initial margin-top */
    margin-bottom: 3vh; /* Space from the next element */
    /* padding: 10px 20px; Moved to menu-toggle and menu-items-container */
    border-radius: 15px; /* Slightly smaller border-radius for the whole dropdown */
    display: flex; /* Make it a flex container for toggle and dropdown */
    flex-direction: column; /* Stack toggle and dropdown vertically */
    align-items: center; /* Center horizontally */
    min-width: 200px; /* Minimum width for the box */
    max-width: 400px; /* Maximum width for the box */
    width: 80%; /* Responsive width */
    position: relative; /* For absolute positioning of dropdown */
    
    /* Liquid glass effect - applied to toggle and dropdown separately for better control */
    border: 1px solid rgba(255, 255, 255, 0.18); /* Border for the overall container */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

#top-categories-container:hover {
    border-color: rgba(138, 43, 226, 0.8); /* Purple border on hover */
    box-shadow: 0 8px 40px 0 rgba(138, 43, 226, 0.6); /* Enhanced purple glow */
}

/* Style for the menu toggle button/header */
#menu-toggle {
    padding: 10px 20px; /* Padding for the clickable toggle area */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Take full width of parent */
    box-sizing: border-box; /* Include padding in width */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); /* Liquid glass for toggle */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px; /* Rounded corners for the toggle itself */
    cursor: pointer;
    font-size: 2.5rem; /* Larger font size for toggle */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); /* Subtle glow */
    transition: background 0.3s ease, border-radius 0.3s ease;
}

#menu-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

#menu-toggle.menu-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Arrow icon for the dropdown */
.arrow-down {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 0.8em; /* Adjust size relative to parent font size */
}

#menu-toggle.menu-open .arrow-down {
    transform: rotate(180deg);
}

/* Style for the dropdown menu items container */
#menu-items-container {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); /* Liquid glass for dropdown */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator from toggle */
    border-bottom-left-radius: 15px; /* Rounded corners for the bottom */
    border-bottom-right-radius: 15px;
    padding: 10px 0; /* Padding inside the dropdown */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between menu items */
    z-index: 10; /* Ensure it's above other content */
    max-height: 200px; /* Example max height for scrollable dropdown */
    overflow-y: auto; /* Enable scrolling if too many items */
}

/* Style for individual menu items */
.menu-item {
    padding: 5px 20px;
    font-size: 1.5rem; /* Smaller than toggle, but prominent */
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, text-shadow 0.3s ease;
    text-align: center;
    background-image: linear-gradient(to right, #8A2BE2, #00008B); /* Lila zu Dunkelblau */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent; /* Use transparent to show gradient */
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle highlight on hover */
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.6); /* More prominent glow on hover */
}

/* Styling for the main heading with a gradient */
.google-like-text {
    font-size: 4rem; /* Adjust as needed */
    font-weight: 700;
    background-image: linear-gradient(to right, #8A2BE2, #00008B); /* Lila zu Dunkelblau */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent; /* Required to show the gradient */
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.7); /* Subtle glow effect */
    position: relative; /* Added for correct absolute positioning of child elements */
}

/* Styles for the main heading with a gradient */
.google-like-text {
    font-size: 4rem; /* Adjust as needed */
    font-weight: 700;
    background-image: linear-gradient(to right, #8A2BE2, #00008B); /* Lila zu Dunkelblau */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent; /* Required to show the gradient */
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.7); /* Subtle glow effect */
}

h2 {
    font-size: 2.5rem; /* Default size for h2, adjust as needed */
    font-weight: 500;
    background-image: linear-gradient(to right, #8A2BE2, #00008B); /* Lila zu Dunkelblau */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent; /* Required to show the gradient */
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); /* Subtle glow effect */
}

/* Styles for the countdown display and departure time display */
#countdown-display, #departure-time-display {
    font-size: 1.8rem; /* Slightly smaller than h2 */
    font-weight: 500;
    color: white; /* Changed to solid white */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.7); /* Stronger white glow */
    margin-top: 15px; /* Space from the h2 above */
    margin-bottom: 25px; /* Space from timeline below */
}

/* Styles for the timezone clocks container */
.timezones {
    display: flex;
    justify-content: center;
    gap: 40px; /* Space between Sarah's and Tim's time */
    margin-top: 30px; /* Space from the timeline */
    width: 80%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    /* Removed flex-wrap: wrap; for larger screens */
}

.time-container {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    align-items: center;
    gap: 10px; /* Added space between label and time */
    padding: 15px 25px;
    border-radius: 15px;
    
    /* Liquid glass effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure they don't get too small */
}

.time-container:hover {
    border-color: rgba(138, 43, 226, 0.8); /* Purple border on hover */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); /* Enhanced shadow */
    transform: translateY(-2px);
}

.timezone-label {
    font-size: 1rem; /* Slightly smaller for better fit */
    font-weight: 400;
    color: #a0a0a0; /* Darker grey for labels */
    /* margin-bottom: 5px; Removed as they are now row-flexed */
}

.timezone-time {
    font-size: 1.8rem; /* Adjusted for row display */
    font-weight: 700;
    background-image: linear-gradient(to right, #8A2BE2, #00008B); /* Lila zu Dunkelblau */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent; /* Required to show the gradient */
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6); /* Subtle glow effect */
}

/* Mobile responsiveness for categories container */
@media (max-width: 768px) {
    #top-categories-container {
        padding: 0; /* No padding directly on container, handled by children */
        max-width: 95%;
        margin-top: 2vh;
    }

    #menu-toggle {
        font-size: 1.8rem; /* Smaller font for mobile toggle */
    }

    #menu-items-container {
        padding: 5px 0; /* Smaller padding for mobile dropdown */
    }

    .menu-item {
        font-size: 1.2rem; /* Smaller font for mobile menu items */
    }

    /* Re-introduce flex-wrap for .timezones on smaller screens */
    .timezones {
        flex-wrap: wrap;
    }

    .time-container {
        width: 100%; /* Take full width when wrapped */
        margin-bottom: 20px; /* Add space between stacked time containers */
    }
}

/* Remove outdated category link styles */
/* #top-categories-container #category-links-container is no longer directly used for layout */
/* #briefe-link is no longer a top-level element */
#category-links-container {
    display: none; /* Hide the old container if it somehow persists */
}

#briefe-link {
    display: none; /* Hide the old briefe-link if it somehow persists */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left,    rgba(104, 8, 165, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at top right,   rgba(104, 8, 165, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(104, 8, 165, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right,rgba(104, 8, 165, 0.25) 0%, transparent 40%);
    z-index: 0; /* Behind main content but above background color */
    pointer-events: none; /* Allow clicks to pass through */
}

#timeline-container {
    width: 80%; /* Adjust as needed */
    max-width: 800px; /* Max width for the timeline */
    margin: 20px auto; /* Center the timeline with some vertical margin */
    position: relative;
    padding: 10px 0;
}

#timeline-bar {
    width: 100%;
    height: 10px;
    background-color: #333; /* Dark gray background for the empty part of the bar */
    border-radius: 5px;
    position: relative;
    overflow: hidden; /* To keep the progress bar inside */
}

#timeline-progress {
    height: 100%;
    width: 0%; /* Will be updated by JS */
    background: linear-gradient(to right, #8A2BE2, #00008B); /* Purple to dark blue gradient */
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

#timeline-character {
    position: absolute;
    top: -15px; /* Adjust to position character above the bar */
    width: 30px; /* Size of the character */
    height: 30px;
    background-color: #fff; /* White square for now, will represent a "Männchen" */
    border-radius: 50%; /* Make it circular */
    left: 0%; /* Will be updated by JS */
    transform: translateX(-50%); /* Center the character on its position */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); /* Glow effect */
    transition: left 0.5s ease-out; /* Smooth transition for character movement */
}