/* General body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header styling */
header {
    background-color: #660000;
    color: white;
    padding: 10px;
    text-align: center;
}

/* Basic styling for the header */
#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #660000;
    /* Hokie maroon */
    color: white;
    position: relative;
}

/* Styling for the logos */
#logo-left,
#logo-right {
    width: 100px;
    /* Adjust based on your logo size */
    height: auto;
}

#logo-left img,
#logo-right img {
    width: 100%;
    /* Make the logos responsive */
    height: auto;
}

/* Styling for the header title */
#title {
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
}

/* Undulating background effect for Hokie colors */
@keyframes undulateColors {
    0% {
        background-color: #660000;
    }

    /* Hokie maroon */
    25% {
        background-color: #cf4420;
    }

    /* Hokie orange */
    50% {
        background-color: #ff9900;
    }

    /* Another shade of Hokie orange */
    75% {
        background-color: #cf4420;
    }

    /* Hokie orange */
    100% {
        background-color: #660000;
    }

    /* Hokie maroon */
}

#main-header {
    animation: undulateColors 10s linear infinite;
}

#header-center {
    text-align: center;
    flex-grow: 1;
}

#weather {
    font-size: 16px;
    margin-top: 5px;
}


/* Admin buttons styling */
.admin-button {
    background-color: #660000;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.route-button {
    background-color: #660000;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.admin-button:hover {
    background-color: #880000;
}

.admin-mode-button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.admin-mode-button:hover {
    opacity: 0.85;
}

/* Map container styling */
#map {
    width: 68%;
    height: 100vh;
    float: left;
}

/* Sidebar styling */
#sidebar {
    width: 30%;
    height: 100vh;
    float: right;
    overflow-y: auto;
    padding: 10px;
    background-color: white;
}

/* Search input styling */
#search {
    width: 80%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Voice search button styling */
#voiceSearch {
    padding: 8px;
    border: none;
    background-color: #660000;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

/* Building list styling */
#buildingList {
    list-style: none;
    padding: 0;
}

#buildingList li {
    margin: 5px 0;
    cursor: pointer;
    padding: 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Hover effect for building list items */
#buildingList li:hover {
    background-color: #efefef;
}

/* Responsive adjustments */
@media (max-width: 1000px) {

    #map,
    #sidebar {
        width: 100%;
        height: 50vh;
        float: none;
    }

    #map {
        height: 50vh;
    }

    #sidebar {
        height: auto;
    }
}

/* Login Modal */
#loginModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#loginModalBox {
    background: white;
    border-radius: 8px;
    padding: 30px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#loginModalBox h2 {
    margin: 0 0 4px 0;
    color: #660000;
    text-align: center;
}

#modalClose {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

#modalEmail,
#modalPassword {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

#modalError {
    color: #cc0000;
    font-size: 13px;
    min-height: 18px;
    text-align: center;
}

.modal-btn {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

.modal-btn-primary {
    background-color: #660000;
    color: white;
    font-weight: bold;
}

.modal-btn-primary:hover {
    background-color: #880000;
}

.modal-btn-google {
    background-color: #fff;
    color: #444;
    border: 1px solid #ccc;
}

.modal-btn-google:hover {
    background-color: #f5f5f5;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 12px;
}

.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.modal-btn-link {
    background: none;
    border: none;
    color: #660000;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    padding: 0;
}

/* Admin panel link in sidebar */
.admin-panel-link {
    display: inline-block;
    background-color: #444;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.admin-panel-link:hover {
    background-color: #222;
}
