/* General Styles */
html {
    font-size: 62.5%;
    box-sizing: border-box;
}

header {
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 6px ridge #555;
    position: relative; /* Ensure relative positioning for the dropdown menu */
}

header img {
    margin: 0 auto;
    padding: 15px 0;
}

header h1 {
    font-size: 4.5rem;
    text-align: center;
}

/* Select and Input Styling */
.selectOpt {
    font-size: 2rem;
    padding: 15px;
    border-bottom: 6px ridge #555;
}

select {
    margin: 15px;
    font-size: 2rem;
}

input {
    font-size: 2rem;
}

/* Form and Button Styling */
#fullForm h3 {
    font-size: 2.5rem;
    text-align: center;
    padding: 20px 0;
}

.formRow {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border-bottom: 2px inset #555;
}

.inputWrap {
    display: flex;
    flex-direction: column;
    margin: 15px;
    width: 22%;
    text-align: center;
}

.inputWrap label {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

#fullForm h5, #addOns h5 {
    font-size: 1.8rem;
    text-align: center;
    padding: 15px 0;
}

button {
    font-size: 2rem;
    padding: 5px 10px;
    align-self: center;
}

/* Login Container Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh; /* Centered within 50% of viewport height */
    position: relative;
}

.login-form {
    display: flex;
    flex-direction: column;
    background-color: #F5F5F5;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: left;
}

.login-form label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.login-form input {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #2980b9;
}

.error-message {
    color: red;
    font-size: 14px;
    display: none; /* Initially hidden */
    margin-top: 10px;
    text-align: center;
}

/* Hamburger Menu Styles */
.menu-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1002; /* Ensures the hamburger button stays on top */
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1003; /* Ensures it's clickable even over the dropdown */
    position: relative;
    top: 10px;
    right: 10px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #555;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation: Turn into an X */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: white;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: white;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #2469B3;
    color: white;
    overflow: hidden;
    width: 0;
    height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    transition: width 2s ease, height 2s ease;
    z-index: 1000; /* Below the hamburger button */
    border-bottom-left-radius: 8px;
}

.dropdown-menu.open {
    width: 200px; /* Grows to the left */
    height: 250px; /* Grows downward */
    padding: 20px;
}

/* Menu Item Styles */
.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.menu-item {
    opacity: 0; /* Initially hidden */
    transform: translateY(-10px); /* Slide effect */
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logout Button Styling */
.logout-button {
    margin-top: auto;
    background-color: #B92025;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #c0392b;
}

#dropdown-menu, #hamburger {
    display: none; /* Default hidden state */
}

.logged-in #dropdown-menu,
.logged-in #hamburger {
    display: flex;
}