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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/css/AMC1.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    filter: blur(3px);
    z-index: -1;
}

header {
    background: linear-gradient(to right, #007bff, #0056b3);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.logo {
    max-height: 35px;
    margin-left: 1px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.nav-brand {
    color: white;
    font-size: 1.6em;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    text-align: center;
    transition: color 0.3s ease;
    padding-left: 1px;
}

.nav-brand:hover {
    color: #ffd700;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 20px;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1em;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 12px;
}

nav a:hover {
    color: #ffd700;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(-180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(to bottom, #0056b3, #003d82);
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
    display: block;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure dropdown menu items are vertical */
.dropdown-menu ul {
    display: block !important;
    flex-direction: column !important;
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    white-space: nowrap;
}

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

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffd700;
}

.container {
    max-width: 700px;
    margin: 30px auto;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.30);
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 1.5);
}

.hero {
    text-align: center;
    padding: 15px;
}

.hero h1 {
    color: #007bff;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.selection-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-group {
    width: 100%;
    max-width: 350px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 0.95em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.3);
    outline: none;
}

.go-btn {
    background: linear-gradient(to right, #28a745, #218838);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.go-btn:hover {
    background: linear-gradient(to right, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

footer {
    text-align: center;
    padding: 15px;
    margin-top: 160px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

footer p {
    color: black;
    font-size: 0.9em;
    margin: 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-brand {
        flex: none;
        text-align: center;
        margin-bottom: 10px;
        padding-left: 0;
    }
    .nav-links {
        justify-content: center;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    nav li {
        margin: 10px 0;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 10px;
        display: none;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .container {
        margin: 15px;
        padding: 15px;
    }
    .hero h1 {
        font-size: 1.5em;
    }
}