body {
    /* width: 90%;
    max-width: 1200px; */
    margin: auto;
    background-color: aliceblue;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 15px 15px 0 15px;
}

.header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    align-items: center;
    gap: 0px;
}

.links {
    width: 100%;
    font-size: 12px;

    button {
        margin-right: 20px;
        background-color: #333;
        color: rgb(255, 255, 255);
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
    }

    button:hover {
        background-color: #525252;
    }
}

.divider-main {
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

svg {
    width: 100%;
    height: 680px;
    margin-bottom: 20px;
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.2);
}


#controls, #recipeOptionSelectors {
    height: 7vh;
    display: flex;
    background: #fff;
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    align-items: center;
}

#selection {
    display: flex;
    align-items: center;
    margin-left: 20px;
    min-width: 200px;
    margin-right: 20px;
    flex: 1;
}


.recipeSelection {
    display: flex;
    align-items: center;
    padding: 8px;
}

#legend svg {
    margin-top: 10%;
    box-shadow: none;
    width: 400px;
    height: 50px; 
}

#legend {
    box-shadow: none;
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 20px;
    /* flex: 1; */
    justify-content: flex-end;
    min-width: 200px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
}
  
.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #5b8aa1; 
    border-radius: 5px;
}

#ingredientSelect, #ingredientsInput, #meal, #countryInput {
    padding: 6px;
    font-size: 1em;
    background-color: #aaccde;
    border: none;
    border-radius: 5px;
    margin-right: 5px;
}

#country-reset {
    display: flex;
    padding: 3px;
    background-color: #deaab2;
    border: none;
    border-radius: 5px;
}

#country-reset:hover {
    background-color: #d36d7d;
}

.country {
    fill: #aaccde;
    stroke: #5b8aa1; 
    stroke-width: 0.75px;
}

#tooltip {
    position: absolute;
    background-color: white;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    pointer-events: none;
    font-size: 12px;
    color: #333;
    display: none;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.popup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
}

.popup-content {
    padding: 15px 40px 40px 40px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    background-color: rgba(255,255,255, 0.9);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.main-text {
    text-align: left;
    font-size: 16px;
}

.divider {
    border-bottom: 1px solid #333;
}

.subheading {
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: bold;
}

.closeBtn {
    background-color: #333;
    color: white;
    margin-top: 30px;
    padding: 12px 25px 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.closeBtn:hover {
    background-color: #525252;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover {
    color: #23527c;
}

#vis-flex {
    display: flex;
    gap: 12px;
}

#map-controls {
    width: 70%;
}

#ingredientVis {
    width: 40%;
}

@media (max-width: 1430px) {
    p, span, label {
        font-size: 12px;
    }
}

@media (max-width: 1150px) {
    #vis-flex {
        flex-direction: column;
    }

    #map-controls {
        width: 100%
    }

    #recipeOptionSelectors {
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px;
    }

    .recipeSelection {
        gap: 8px;
    }

    /* #recipeList {
        margin-left: 20px;
    } */

    #ingredientVis {
        width: 100%;
    }
}

#meal {
    width: 150px;
}

#countryInput {
    width: 100%
}

#recipeList {
    text-align: left;
    max-height: 632px;
    overflow-y: auto;
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.2);

    h3 {
        margin-top: 0px;
    }
}

/* SOURCE: https://stackoverflow.com/questions/1202425/making-the-main-scrollbar-always-visible */
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
  }
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.recipeItem {
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.2);
    background-color: white;

    .recipeName {
        font-weight: 700;
        font-size: 18px;
        margin: 0px;
    }

    .recipeCountries {
        margin-top: 12px;
        margin-bottom: 0;
    }

    .recipeIngredients {
        margin-top: 4px;
        margin-bottom: 0;
    }

    .recipeIngredients::before {
        content: 'Ingredients: ';
        font-weight: 600;
    }
}

.recipe-hovered {
    background-color: #aaccde;
}

.small-font {
    font-size: 12px;
}



