/*--------------- HEADER CSS   ---------------*/
header {
    background-color: #3a7ca5;
    padding-top: 1em;
}

body.dark header { 
    background-color: #16425b;
}

.icon {
    max-width: 3em;
    height: auto;
    vertical-align: top;
    display: inline-block;
}

ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

li {
    margin: .5em;
    background-color: #2f6690;
    border-radius: 10px;
    padding-left: .7em;
    padding-right: .7em;
    padding-top: .2em;
    padding-bottom: .2em;
}

ul li {
    float: none;
}

ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 10px;
}
body.dark ul li {
    background-color: #2F6690;
}

ul li:hover, #theme:hover {
    background-color: #81c3d7;
}

body.dark ul li:hover{
    background-color: #3A7CA5;
}

body.dark #theme:hover {
    background-color: #D9DCD6;
}

header h1 { 
    letter-spacing: 1px;
    font-size: 2em;
    display: inline-block;
}

#theme {
    background-color: #16425b;
}

body.dark #theme { 
    background-color: #81c3d7;
    color: black;
}
/*--------------- Body CSS   ---------------*/
h1, p {
    text-align: center;
    font-family: sans-serif;
}

#map {
    margin: 0 auto;
    height: 70vh; /* height is 90% of the window height. Adapts to portrait/landscape mode */
    width: 95%;  /* width is 90% of the window width. Adapts to portrait/landscape mode */
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #d9dcd6;
}

body.dark #map { 
    background-color: #16425b;
}

body {
    background-color: #d9dcd6;
    font-family: "Exo 2", sans-serif;
    padding: 0;
    margin: 0;
    border: 0;
    color: #1e293b;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark { 
    background-color: #2F6690;
    color: white;
}

.explanation p{
    padding: 30px;
    font-size: 1.2em;
}

form {
    justify-content: center;
    width: 90%;
    height: 100px;
}
#review_contatiner {
    justify-items: center;
}

textarea {
    border-color: black;
    width: 50%;
    color: black;
}
body.dark textarea {
    background-color: #d9dcd6;
}

body.dark .leaflet-layer, body.dark .leaflet-control-zoom-in, body.dark .leaflet-control-zoom-out, body.dark .leaflet-control-attribution, body.dark .leaflet-control {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.marker_content {
    justify-items: center;
}

#map .leaflet-building-icon {
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
}

.building-icon-html, .zoom-icon-html {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-transform: uppercase;
    justify-self: center;
    color: rgb(236, 236, 236);
    background-color: #0c75ffd4;
    border-radius: 15%;
    padding: 0.5vw;
    padding-left: 2vw;
    padding-right: 2vw;
    border: 2px solid #00000097;
}

.zoom-container {
    position: relative;
    z-index: 9999;
    height: 100%;
    align-content: center;
    width: 100%;
}

.zoom-icon-html {
    text-transform: none;
    align-items: center;
    font-size: 25pt;
    width: 100vw;
    position: relative;
    border-radius: 0%;
    border-style: none;
    vertical-align: middle;
}

body form button {
    background-color: #16425B;
}

body form button:hover {
    background-color: #81C3D7;
}

body.dark form button {
    background-color: #81C3D7;
    color: black;
}

body.dark form button:hover {
    background-color: #D9DCD6;
    color: black;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.filter-container label {
    font-size: 1.2rem;
    cursor: pointer;
}

/* Desktop nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#hamburger,
#mobile-menu {
    display: none;
}


/*--------------- Footer CSS   ---------------*/
footer{
    margin: 1em;
}

footer h6 {
    float: right;
}

/*------------  Mobile CSS  -----------------*/

@media screen and (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    ul li {
        float: none;
        width:100%;
        margin: 0 auto;
    }

    ul li a {
        padding: 12px;
    }

    #theme {
        width: 100%;
    }

    .icon {
        float: none;
        display: block;
        margin: 0 auto;
        max-width: 120px;
    }

    #map {
        width: 95vw;
        height: 70vh;
    }

    h1, p {
        padding: 0 10px;
    }
}

@media screen and (min-width: 768px) {
    #map {
        width: 90%;
        height: 80vh;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    #map {
        width: 98vw;
        height: 60vh;
    }

    ul li a {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media screen and (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    #hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }

    #mobile-menu.show {
        display: block;
    }
}