body {
    background-color: #cdded4;
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin: 0;
    margin-bottom: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #174800;

    /* Neumorphic effect */
    border-radius: 20px; /* Rounded corners */
    box-shadow: 
        inset 0 10px 15px -10px rgba(0, 0, 0, 0.5), /* Inset shadow on the bottom */
        0 10px 15px rgba(128, 70, 116, 0.2); /* Soft outer shadow for depth */
}

.header-link {
    color: #ffffff; /* Same color as your h1 text */
    text-decoration: none; /* Remove underline from link */
    font-family: sans-serif;
    font-size: 1.3em; /* Same size as your h1 text */
}

.header-link:hover {
    text-decoration: none; /* Optionally, style for hover state */
}

#summary-container {
    font-family: sans-serif;
    font-size: 1.3em;
    background-color: #174800;
    color:#ffffff;
    width: 45vw;
    margin-left: 26%;
    margin-top: 8%; 
    margin-bottom: 2%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 
        8px 8px 15px #d1d1c0, /* Darker shadow for depth */
        -8px -8px 15px #ffffff; /* Lighter shadow for lifted effect */
}

.scroll-down-arrow {
    text-align: center;
    animation: bounce 2s infinite;
    color: #174800; /* Adjust the color as needed */
    font-size: 2em; /* Adjust size as needed */
    padding: 20px;
    z-index: -10;
    padding-top: 50px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

#feature-container {
    background-color: #174800;
    color:#ffffff;
    width: 40vw;
    margin-left: 28%;
    margin-top: 30px;
    margin-bottom: 4%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 
        8px 8px 15px #d1d1c0, /* Darker shadow for depth */
        -8px -8px 15px #ffffff; /* Lighter shadow for lifted effect */
}

.button-link {
    display: inline-block;
    padding: 10px 20px;
    margin-left: 34%;
    background-color: #174800; /* Neumorphic background color */
    color: #ffffff; /* Text color */
    text-align: center;
    border-radius: 10px; /* Rounded corners for neumorphic effect */
    text-decoration: none; /* Removes underline from links */
    font-family: sans-serif; /* Consistent font family */
    font-size: 1em; /* Consistent font size */
    box-shadow: 
        5px 5px 10px #b8b8b8, /* Dark shadow for depth */
        -5px -5px 10px #ffffff; /* Light shadow for lifted effect */
    transition: box-shadow 0.3s, background-color 0.3s; /* Smooth transition for interactive states */
}

.button-link:hover {
    background-color: #164102; /* Slightly darker background on hover */
    box-shadow: 
        2px 2px 5px #b8b8b8, /* Smaller dark shadow on hover */
        -2px -2px 5px #ffffff; /* Smaller light shadow on hover */
}

.button-link:active {
    box-shadow: 
        inset 2px 2px 5px #b8b8b8, /* Inward dark shadow on press */
        inset -2px -2px 5px #ffffff; /* Inward light shadow on press */
}

.custom-select {
    position: relative;
    width: 120px;
    border: 2px solid #174800;
    background-color: rgba(255, 255, 255, 0.5);
}

.selected-option {
    padding: 6px 14px;
    color: #174800;
    cursor: pointer;
    position: relative;
}

.selected-option::after {
    content: "▼";
    font-size: 0.9em;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #174800;
}

.options {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #174800;
    width: 100%;
    z-index: 1;
}

.option {
    padding: 6px 14px;
    color: #174800;
    cursor: pointer;
}

.option:hover {
    color: white;
    background-color: #174800;
}

#search-form {
    font-family: sans-serif;
    font-size: 1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 8%;
    margin-left: 4%;
}

#search-form label {
    font-family: sans-serif;
    font-size: 1em;
    color: #174800;
    margin-right: 4px;
}

#search-form input[type="text"] {
    font-family: sans-serif;
    font-size: 1em;
    padding: 6px 14px;
    border: 2px solid #174800;
    margin: 1px 16px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #174800;
    /* border-radius: 50px; */
}

#search-form input[type="text"]:focus {
    border-color: #a3b82a;
}

#search-form button {
    display: inline-block;
    padding: 8px 12px; 
    margin-left: 20px;
    background-color: #174800;
    color: #ffffff; /* Text color */
    text-align: center;
    border-radius: 10px; /* Rounded corners for neumorphic effect */
    text-decoration: none; /* Removes underline from links */
    font-family: sans-serif; /* Consistent font family */
    font-size: 1em; 
    box-shadow: 
        5px 5px 10px #b8b8b8, /* Dark shadow for depth */
        -5px -5px 10px #ffffff; /* Light shadow for lifted effect */
    transition: box-shadow 0.3s, background-color 0.3s; /* Smooth transition for interactive states */
}

#search-form button:hover {
    background-color: #19350c; /* Slightly darker background on hover */
    box-shadow: 
        2px 2px 5px #b8b8b8, /* Smaller dark shadow on hover */
        -2px -2px 5px #ffffff; /* Smaller light shadow on hover */
}

#search-form button:active {
    box-shadow: 
        inset 2px 2px 5px #b8b8b8, /* Inward dark shadow on press */
        inset -2px -2px 5px #ffffff; /* Inward light shadow on press */
}

#drug-search-form {
    font-family: sans-serif;
    font-size: 1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* This should push the form down */
    margin-bottom: 30px; /* Added to ensure there's space below the form */
}

#drug-search-form label {
    font-family: sans-serif;
    font-size: 1em;
    color: #ffffff;
    margin-right: 4px;
}

#drug-search-form input[type="text"] {
    font-family: sans-serif;
    font-size: 1em;
    padding: 6px 14px;
    border: 2px solid #ffffff;
    margin: 1px 16px;
    background-color: #7e9c8b;
    color:#ffffff;
    /* border-radius: 50px; */
}

#drug-search-form input[type="text"]:focus {
    border-color: #a3b82a;
}

#drug-search-form button {
    display: inline-block;
    padding: 8px 12px; 
    margin-left: 15px;
    background-color: #174800;
    color: #ffffff; /* Text color */
    text-align: center;
    border-radius: 10px; /* Rounded corners for neumorphic effect */
    text-decoration: none; /* Removes underline from links */
    font-family: sans-serif; /* Consistent font family */
    font-size: 1em; 
    box-shadow: 
        5px 5px 10px #b8b8b8, /* Dark shadow for depth */
        -1px -1px 10px #ffffff; /* Light shadow for lifted effect */
    transition: box-shadow 0.3s, background-color 0.3s; /* Smooth transition for interactive states */
}

#drug-search-form button:hover {
    background-color: #19350c; /* Slightly darker background on hover */
    box-shadow: 
        2px 2px 5px #b8b8b8, /* Smaller dark shadow on hover */
        -2px -2px 5px #ffffff; /* Smaller light shadow on hover */
}

#drug-search-form button:active {
    box-shadow: 
        inset 2px 2px 5px #b8b8b8, /* Inward dark shadow on press */
        inset -2px -2px 5px #ffffff; /* Inward light shadow on press */
}

#map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#map-container {
    width: 65vw;
    height: 75vh;
    margin-left: 50px;
    margin-top: 20px;
    border: 2px solid #804674;
    border-radius: 30px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

#loading-circle-container {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

#loading-circle {
    border: 4px solid rgba(118, 184, 42, 0.2);
    border-radius: 50%;
    border-top: 4px solid #804674;
    width: 140%;
    height: 140%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

#sidebar {
    position: fixed;
    top: 60%;
    transform: translateY(-50%);
    width: 160px;
    background-color: #174800; /* Your main color */
    color: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px; /* Rounded corners for the neumorphic effect */
    box-shadow: 
        8px 8px 15px #b8b8b8, /* Dark shadow on the bottom right */
        -8px -8px 15px #ffffff; /* Light shadow on the top left */
    z-index: 100;
}

#sidebar button {
    display: inline-block;
    width: 155px;
    padding: 6px 10px; 
    margin-top: 10px;
    margin-bottom: 5%;
    margin-left: 4px;
    background-color: #174800;
    color: #ffffff; /* Text color */
    text-align: center;
    border-radius: 10px; /* Rounded corners for neumorphic effect */
    text-decoration: none; /* Removes underline from links */
    font-family: sans-serif; /* Consistent font family */
    font-size: 1em; 
    box-shadow: 
        5px 5px 10px #b8b8b8, /* Dark shadow for depth */
        -1px -1px 10px #ffffff; /* Light shadow for lifted effect */
    transition: box-shadow 0.3s, background-color 0.3s; /* Smooth transition for interactive states */
}

/* Adding interaction states for the button */
#sidebar button:hover {
    background-color: #19350c; /* Slightly darker background on hover */
    box-shadow: 
        2px 2px 5px #b8b8b8, /* Smaller dark shadow on hover */
        -2px -2px 5px #ffffff; /* Smaller light shadow on hover */
}

#sidebar button:active {
    box-shadow: 
        inset 2px 2px 5px #b8b8b8, /* Inward dark shadow on press */
        inset -2px -2px 5px #ffffff; /* Inward light shadow on press */
}


.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #174800;
    border-radius: 10px;
    padding: 20px;
    color: #174800;
    font-family: sans-serif;
    font-size: 1em;
}

.popup-content p {
    font-size: 1em;
    margin-bottom: 120px;
    padding: 0 10px;
}

.popup h2 {
    font-size: 1.3em;
    margin: 0;
}

.popup p {
    font-size: 1em;
    margin: 10px 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #174800;
}

.close:hover {
    color: #a3b82a;
}
