* {
    box-sizing: border-box;
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
    background: #dde9e0;

    height: 100vh;
    overflow: hidden;
}


::-webkit-scrollbar {
    width: .4rem;
    height: .4rem;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #065d31;
    border-radius: .5rem;
}

p {
    font-family: 'Noto Sans';
}

.marker-cluster {
    background: white;
    color: black;
    overflow: hidden !important;
    margin-left: -2px !important;
    margin-top: -2px !important;
}

.marker-cluster div {
    background: white;
    width: 1px;
    height: 1px;
    overflow: hidden !important;
}

.marker-cluster-small {
    width: 2px !important;
    height: 2px !important;
}

.marker-cluster-medium {
    width: 4px !important;
    height: 4px !important;
}

.marker-cluster-large {
    width: 8px !important;
    height: 8px !important;
}

@property --gradientColor1 {
    syntax: '<color>';
    initial-value: rgba(0, 146, 62,1);
    inherits: false;
}
  
  @property --gradientColor2 {
    syntax: '<color>';
    initial-value: rgba(10, 54, 39,1);
    inherits: false;
}

@font-face {
    font-family: 'Gambarino';
    src: url(../assets/fonts/Gambarino_Complete/Fonts/WEB/fonts/Gambarino-Regular.woff) format(woff),
         url(../assets/fonts/Gambarino_Complete/Fonts/WEB/fonts/Gambarino-Regular.woff2) format(woff2);
    font-display: swap;
}

header {
    background: #dde9e0;

    padding: .5rem 1rem .25rem .5rem;
    color: rgb(29, 29, 29);
    display: flex;
    overflow-x: hidden;
    position: fixed;
    left: 0;
    right: 0;
}

#header-contents {
    overflow-x: hidden;
    width: 100%;
}

#header-main-row {
    margin: 0 auto;

    display: flex;
    align-items: center;
}

#header-main-row {
    justify-content: space-between;
    font-size: 1.8rem;
}

.header-row-contents {
    white-space: nowrap;
    padding: .1rem 1rem;
    display: flex;
    justify-content: space-evenly;
    overflow-x: scroll;

}

header a, header a:visited #mobile-menu a, #mobile-menu a:visited {
    color: black;
    text-decoration: none;
}

#header-links-left {
    display: flex;
    align-items: center;

    font-family: "Oswald";
    font-weight: 700;
    font-size: 1.4rem;
}

#header-links-right {
    display: none;

}

#header-links-right span, #mobile-menu-links {
    padding: 0 .75rem;
    font-family: 'Gambarino', 'Signika', sans-serif;
    font-weight: 700;
}

#mobile-menu-icon svg  {
    width: 2rem;
    height: 2rem;
}

#mobile-menu-close svg {
    width: 2rem;
    height: 2rem;
}

#mobile-menu-close {
    position: absolute;
    top: .75rem;
    right: .75rem;

    text-align: right;
}

#mobile-menu {
    position: absolute;
    top: 0;
    bottom: -20vh;
    left: 0;
    right: 0;
    z-index: 8;

    padding: 1rem .5rem;

    background: #dde9e0;
    font-family: 'Gambarino', 'Signika', sans-serif;

    display: none;

}

.mobile-menu-active {
    display: block !important;
}

#mobile-menu-title {
    display: flex;
    align-items: center;
    font-family: 'Oswald';
    font-weight: 700;
    font-size: 1.4rem;
}

#mobile-menu-links {
    margin-top: 2rem;
    margin-left: 3.5rem;

    font-size: 2em;
}

#mobile-menu-links a, #mobile-menu-links a:visited {
    text-decoration: none !important;
    color: black !important;
}

#information-screen {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;

    background: #dde9e0;
    z-index: 6;
    color: white;
    justify-content: space-evenly;
    flex-wrap: wrap;
    display: none;
    opacity: 0;

    transition: opacity .5s;
}

#information-screen .active {
    display: flex;
    opacity: 1;

}

#information-screen .container {
    width: 45%;
    min-width: 300px;
    margin: 3rem 1rem;
    height: fit-content;
}

#information-screen p {
    font-size: 1.2rem;
}

#loading-screen {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;

    background: var(--gradientColor1);
	background: linear-gradient(-45deg, rgba(0, 146, 62,1), rgba(10, 54, 39,1) 80%);
	background: -moz-linear-gradient(-45deg, rgba(0, 146, 62,1), rgba(10, 54, 39,1) 80%);
	background: -webkit-linear-gradient(-45deg, rgba(0, 146, 62,1), rgba(10, 54, 39,1) 80%);
	background-size: 400% 400%;
	animation: loadingAnimation 5s ease infinite;

    transition: opacity .75s;

    text-align: center;

    font-size: 2em;
}

#loading-screen h1, #loading-screen h2 {
    font-family: 'Gambarino', 'Signika', sans-serif;
    color: white;
}

@keyframes loadingAnimation {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

#visual-content {
    transition: opacity .4s;
    display: none;
}

#map-container {
    width: fit-content;
    text-align: center;
}

#map-container {
    display: none;
}

#map {
    border-radius: 1rem;
    width: 18rem;
    aspect-ratio: 4/7;
    background: transparent;
    transition: opacity .4s;
    z-index: 1;
}

.map-button-container {
    display: flex;
    margin: 0 auto;
    align-items: center;
    background: #dde9e0;
    border-radius: 1rem;
    margin-top: 1rem;
    opacity: 0;
}

#large-map-buttons {
    opacity: 1;
    width: fit-content;
    margin-top: 1rem;
    transition: opacity .4s;
}

.map-button-container .selected, .map-button-container div:hover {
    font-weight: 700;
}

.map-button-container svg {
    width: 1.8rem;
}

.medium-button {
    margin: 0;
    padding: .3rem .3rem;

    max-width: fit-content;
    border: none;

    cursor: pointer;

    font-family: 'Signika';
    font-size: .9em;
    color: black;
    font-weight: 400;

    /* z-index: 2; */


}

#main-content {
    padding: 6rem 1rem 1.5rem 1rem;
    overflow-x: auto;

    font-weight: 700;
    color: whitesmoke;
}

.container h1, .container h2 {
    margin-bottom: 0;
    padding-top: .5rem;
    margin-top: 1rem;
    line-height: 140%;
    font-family: 'Gambarino', 'Signika', sans-serif;
}

.container hr {
    border: .15rem solid white;
    opacity: 1;
    margin-top: 0;
    margin-bottom: .3rem;
}



.container {
    background: var(--gradientColor1);
    background: linear-gradient(110deg, var(--gradientColor1), var(--gradientColor2) 99%);
    background: -moz-linear-gradient(110deg, var(--gradientColor1), var(--gradientColor2) 99%);
    background: -webkit-linear-gradient(110deg, var(--gradientColor1), var(--gradientColor2) 99%);
    padding: 0 2rem .25rem 2rem;
    margin: 1rem .5rem;
    border-radius: 1rem;
    
    -webkit-box-shadow: 3px 6px 5px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 3px 6px 5px 0px rgba(0,0,0,0.5);
    box-shadow: 3px 6px 5px 0px rgba(0,0,0,0.5);
}

.container-small {
    background: var(--gradientColor1);
    background: linear-gradient(-10deg, var(--gradientColor1), var(--gradientColor2) 60%);
    background: -moz-linear-gradient(-10deg, var(--gradientColor1), var(--gradientColor2) 60%);
    background: -webkit-linear-gradient(-10deg, var(--gradientColor1), var(--gradientColor2) 60%);
    margin: 0 0 .75rem 0;
    padding: .25rem 1.5rem .75rem 1.5rem;
    font-size: 1.15em;

    cursor: pointer;
    transition: --gradientColor1 .5s, --gradientColor2 1.5s;
}

.container-small:hover, .location-item-selected, .large-button:hover {
    --gradientColor1: rgb(15, 78, 36);
    --gradientColor2: rgba(0, 146, 62,1);
}

.container-small b {
    font-family: 'Signika';
    font-weight: 600;
}

.button-container {
    display: flex;
    justify-content: space-evenly;
}

.large-button {
    background: var(--gradientColor1);
    background: linear-gradient(-10deg, var(--gradientColor1), var(--gradientColor2) 60%);
    background: -moz-linear-gradient(-10deg, var(--gradientColor1), var(--gradientColor2) 60%);
    background: -webkit-linear-gradient(-10deg, var(--gradientColor1), var(--gradientColor2) 60%);
    margin: 1rem 0 1rem 0;
    padding: .5rem 1rem .5rem 1rem;

    max-width: fit-content;
    border-radius: .8rem;
    border: none;

    font-family: 'Gambarino', 'Signika', sans-serif;
    font-size: 1.2em;
    color: white;
    font-weight: 700;

    transition: --gradientColor1 .5s, --gradientColor2 1.5s;
    z-index: 2;
}

#main-display {
    transition: --gradientColor1 .5s, --gradientColor2 1.5s, opacity .5s;
    width: 100%;
}

#section-about {
    transition: opacity .5s;
    font-size: .9em;
}

#large-map-display {
    width: 95%;
    max-height: 90vh;
    display: none;
    opacity: 0;
    transition: opacity .5s;
    padding: .5rem 1rem;
}

#large-map-container {
    width: 100%;
    height: 80%;
    margin: 2rem auto;
}

.display-updating {
    --gradientColor1: rgb(7, 32, 15);
}

.flex-container {
    display: flex;
}

.written-content {
    max-width: fit-content;
    display: none;
    opacity: 0;
    transition: all .4s;
}

#location-overview {
    overflow-y: auto;
    min-width: 22rem;
    padding: 0 .5rem;
    display: none;
    opacity: 0;
    transition: opacity .5s;
}

#location-overview h2 {
    padding-top: .4rem;
    margin-top: 0;
}

#lo-mobile-descriptor {
    font-family: 'Noto Sans';
    font-size: 1.1em;
    text-align: center;
    color: black;
    padding: 0 1.5rem .5rem 1.5rem;
}

#location-overview-close {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background: #dde9e0;
}

.key-number-container {
    display: flex;
    justify-content: space-between;
}

.data-point {
    font-size: 1.1em;
    line-height: 120%;
    font-family: 'Signika';
}

.data-point-value {
    font-size: 1.6em;
    line-height: 120%;
    font-family: 'Gambarino', 'Signika', sans-serif;
}

.data-point p {
    margin: .5em 0;
}

.key-number-container .data-point {
    font-size: 1.4em;
}

.county-container {
    height: fit-content;

    transition: all 1s;
    margin: .75rem 0;
}

.municipality-item {
    transition: all 1s;
    opacity: 0;
    display: none;

    justify-content: space-between;
    align-items: center;
    transition: --gradientColor1 .5s, --gradientColor2 1.5s, opacity .5s;
}

.municipality-item h2 {
    font-size: 1.3em;
}

.county-container-selected .municipality-item {
    display: flex;
    opacity: 1;
}

#header-container h1 {
    transition: all .4s;
    display: none;
    opacity: 0;
}

@media only screen and (min-width: 768px) { /* tablets */
    #large-map-display #map {
        aspect-ratio: 1.75/1;
    }
}

@media only screen and (min-width: 1200px) {
    #large-map-display #map {
        aspect-ratio: auto;
    }

    .container h1, .container h2 {
        padding-top: 0rem;
    }

    #header-links-left {
        font-size: 1.6rem;
    }

    #header-links-right {
        display: flex;
    }

    #mobile-menu-icon {
        display: none;
    }

    #main-content {
        display: flex;
        padding: 6rem 1rem 1.5rem 1rem;

        height: 100vh;
        overflow: hidden;
    }
    
    #lmb-locations {
        display: none;
    }

    .container {
        margin: 0 .5rem;
    }

    #section-about {
        max-width: 350px;
    }

    #mobile-location-buttons {
        display: none;
    }

    #visual-content {
        display: block;
    }

    #map-container {
        display: block;
    }

    .written-content {
        padding-left: 2rem;
    }

    #location-overview {
        display: block;
        opacity: 1;
        max-width: 400px;
    }

    #location-overview h2 {
        padding-top: .5rem;
    }

    #lo-mobile-descriptor {
        display: none;
    }

    .municipality-item {
        margin: .75rem .5rem;
    }

    #location-overview-close {
        display: none;
    }
}


@media only screen and (min-width: 1600px) {
    #section-about {
        max-width: 450px;
        font-size: 1em;
    }

    #location-overview {
        max-width: 450px;
    }
}