body {
    font-family: 'Roboto', sans-serif;
    background: url('Background.jpeg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    max-width: 480px; /* Set max width for vertical mode */
    margin: 0 auto; /* Center align the content */
}

.navbar {
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3)); /* Gradient from black to 0.3 transparency */
    padding: 10px 0;
    text-align: center;
    position: fixed; /* Ensure navbar stays at the top */
    top: 0;
    z-index: 1000; /* High z-index to be on top of other content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar a {
    display: inline-block;
    margin: 0 10px; /* Ensure consistent spacing between icons */
}

.nav-icon {
    width: 30px;
    height: 30px;
}

.day-nav {
    width: 100%;
    background: rgba(0, 0, 0, 0.2); /* 20% transparent */
    padding: 10px 0;
    text-align: center;
    position: fixed; /* Ensure day-nav stays below navbar */
    top: 60px; /* Adjust based on navbar height */
    z-index: 900; /* Lower z-index than navbar */
    display: flex;
    justify-content: space-around;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 45%; /* Adjust width as needed */
    user-select: none;
    margin: 0;
}

.custom-select {
    position: relative;
    display: block;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Semi-transparent border */
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    color: white;
    font-size: 16px;
    text-align: left;
    transition: all 0.3s ease;
}

.custom-select:hover {
    background: rgba(0, 0, 0, 0.7);
}

.custom-select:active {
    background: rgba(0, 0, 0, 0.9);
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    color: #00ffea; /* Sci-fi blue color */
}

.custom-select::before,
.custom-select::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #00ffea, #007f7f); /* Sci-fi gradient */
    top: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.custom-select::after {
    top: auto;
    bottom: 0;
}

.custom-select:hover::before,
.custom-select:hover::after {
    transform: scaleX(1);
}

.custom-options {
    position: absolute;
    display: none;
    background: rgba(0, 0, 0, 0.8); /* Darker semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    overflow: hidden; /* Prevent options from overflowing */
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 10px;
    cursor: pointer;
    color: white;
    display: block; /* Ensure options are displayed below each other */
}

.custom-option:hover,
.custom-option.selected {
    background: rgba(255, 255, 255, 0.2); /* Highlight on hover and selected */
}

.container {
    display: flex;
    flex-direction: column; /* Stack the days vertically */
    align-items: center;
    position: relative;
    padding-top: 120px; /* Add padding to avoid content being hidden behind navbar and day-nav */
    padding-bottom: 0; /* Remove any extra padding */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.map-container {
    padding-top: 90px; /* Extra padding for the map container */
}

.map-image {
    width: 100%;
    height: auto;
    max-width: 470px; /* Ensure the image fits within the container */
}

.day {
    background-color: rgba(0, 0, 0, 0.1); /* Black with 10% transparency */
    border-radius: 10px;
    padding: 20px;
    width: 100%; /* Adjust width for mobile */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0; /* Remove all margins */
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
}

.day + .day {
    margin-top: 0; /* Ensure no top margin for subsequent .day elements */
}

.day h2 {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0;
    font-size: 24px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stage-header {
    text-align: left;
    margin-bottom: 20px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stage-header.galaxy {
    color: #A020F0; /* Galaxy stage color */
}

.stage-header.solar {
    color: yellow; /* Solar stage color */
}

.stage-header.lunar {
    color: #fce89f; /* Lunar stage color */
}

.stage-header.nebula {
    color: #2effce; /* Nebula stage color */
}

.timeline {
    position: relative;
    padding-left: 20px; /* Adjusted padding for mobile */
    width: 100%; /* Ensure the timeline width fits within the container */
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
    text-align: left; /* Align text to the left */
}

.stage-wrapper {
    margin-bottom: 20px; /* Add margin between stages */
    width: 100%; /* Ensure the stage wrapper fits within the container */
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
    text-align: left; /* Align text to the left */
}

.time-slot {
    position: relative;
    margin: 20px 0;
    width: 100%; /* Ensure the time slot fits within the container */
    box-sizing: border-box; /* Ensure padding is included in the element's total width */
    text-align: left; /* Align text to the left */
}

.time {
    width: 100px;
    text-align: left;
    font-weight: normal;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: -20px;
    position: relative;
    top: -20px; /* Move the time up */
}

.event {
    display: flex;
    align-items: center;
    padding-left: 10px;
    text-align: left; /* Align text to the left */
}

.event.free-time .event-name,
.event.free-time .event-stage {
    color: #ccc; /* Lighter grey for free time */
}

.horizontal-line {
    position: absolute;
    left: 20px;
    top: 15px;
    width: 10px;
    height: 2px;
    background: white;
    padding-right: 40px;
}

.event-details {
    display: flex;
    flex-direction: column;
    padding-left: 50px; /* Adjusted padding for mobile */
    border-left: 2px solid white;
    margin-left: 10px;
    position: relative;
}

.event-name {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.event-stage {
    color: white;
    font-size: 14px;
}

.event-stage i.galaxy {
    color: #A020F0;
}

.event-stage i.solar {
    color: yellow;
}

.event-stage i.lunar {
    color: #fce89f; /* Color for Lunar stage */
}

.event-stage i.nebula {
    color: #2effce; /* Color for Nebula stage */
}

i {
    margin-right: 8px;
    color: white;
}

/* Specific rule for timetable-container */
.timetable-container {
    position: relative; /* Ensure it is positioned relatively */
    left: 30px; /* Fixed position from the left side of the screen */
    width: calc(100% - 60px); /* Adjust width based on left offset */
    text-align: left; /* Align text to the left */
}

#timeline-container {
    width: 100%;
    text-align: left;
}

.map-container {
    padding-top: 90px; /* Extra padding for the map container */
}

.map {
    width: 100%;
    height: 75vh; /* Adjust the height as needed */
    max-width: 470px; /* Ensure the map fits within the container */
}
