body {
    background-color: #76a6d6;   
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: monospace;
    min-height: 100vh;
    margin: 0 0.5em;
    color: white;
}

a {
    color: white;
}

p {
    text-align: justify;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

h3 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.3rem;
    letter-spacing: 9px;
    margin: 0px 0px 2px 0;
}

#body-map {
    animation: changeColor 20s ease-in infinite;
}

header {
    margin-top: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.title {
    text-align: center;
}

.title h4 a {
    text-decoration: none;
}

/* hamburger menù */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000b8;
    z-index: 1;
    opacity: 0;
    transition: opacity 250ms;
}

.topnav {
    overflow: hidden;
    position: absolute;
    right: 4px;
    top: 4px;
    width: 6em;
    z-index: 1;
    text-align: right;
}

.d-none {
    display: none;
}

.topnav #topnavLinks {
    font-size: 1.2em;
    line-height: 2em;
    position: relative;
    right: -100%;
    transition: right 250ms;
    text-align: left;
}

.topnav #topnavLinks a {
    margin-bottom: 1em;
    text-decoration: none;
    text-shadow: 0px 0px 5px #000000;
    display: block;
    margin: 0
}

.topnav > button {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    font-size: 17px;
    width: 1em;
    height: 1.2em;
    position: relative;
    cursor: pointer;
}

.topnav > button i {
    position: absolute;
    right: 0;
    top: 0;
}

.topnav #topnavLinks a.active {
  color: #ff9800;
}
/*fine hamburger menù*/

#subtitle {
    margin: 0px;
    text-align: center;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin: 0 15%;
}

.content #img_about {
    width: 30%;
}

.content.privacy-policy {
    margin-top: 2em;
    align-items: flex-start;
}

#contact > * {
    text-align: center;
}

#friend_list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#friend_list #list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#friend_list #list a {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 3rem;
    margin-top: 2em;
    font-size: 0.8rem;
}

/*css pagina home mappe*/
section#maps {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: flex-start;
}

section#maps select {
    margin-bottom: 1em;
}

@keyframes changeColor{
    0%{
        background-color: #24629f;
    }
    25%{
        background-color: #76a6d6;
    }
    50%{
        background-color: #2cb59e;
    }
    75%{
        background-color: #76a6d6;
    }
    100%{
        background-color: #24629f;
    }
}

@media screen and (max-width: 768px) {
    main {
        flex-grow: unset;
    }
    section#maps {
        align-items: stretch;
    }
    section#maps select {
        margin-top: 2em;
    }
    .content {
        width: 94%;
        margin: 0 3%;
        margin-top: 2em;
    }
    .dummy {
        display: none;
    }
}

/* DOM */
#map {
    width: 100%;
    z-index: 0;
}
.text-marker > span {
    font-family: monospace;
    font-weight: bolder;
    white-space: pre;
    padding: 0 0.2rem;
    position: absolute;
    transform: translateX(-50%);
    background-color: #d9d9d952;
}
.leaflet-marker-icon.text-marker {
    width: unset !important;
    height: unset !important;
}
.leaflet-popup-content-wrapper .leaflet-popup-content {
    max-height: 250px;
	overflow-x: hidden;
    overflow-y: auto;
    margin: 0px 20px 0px 20px;
    text-align: justify;
}
.fa-play, .fa-pause {
    cursor: pointer;
    margin-right: 0.5rem;
}
.leaflet-marker-icon.svg-icon {
    position: relative;
}
.leaflet-marker-icon.svg-icon .fa-music {
    color: black;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
}
.leaflet-popup-content > div > *:not(:last-child) {
    margin-bottom: 0.7rem;
}
.leaflet-popup-content .audio .seek-bar {
    width: 200px;
    height: 15px;
    border: 1px solid #424242;
    position: relative;
    cursor: pointer;
    margin-top: 0.3rem;
}
.leaflet-popup-content .audio .seek-bar .cursor {
    width: 5px;
    height: 100%;
    background-color: skyblue;
    position: absolute;
    top: 0;
    left: 0;
}
.img-popup {
	cursor: pointer;
}
.popup .p-title-bar {
	background-color: hsl(210, 54%, 65%) !important;
}
.popup .p-title-bar .p-close:hover {
	background-color: hsl(210, 54%, 60%);
}
.leaflet-control {
    transition: opacity 0.5s;
}
.leaflet-container:has(.leaflet-popup)
    :is(.leaflet-control-container, .leaflet-control-container *) {
    pointer-events: none;
}
.leaflet-container:has(.leaflet-popup) .leaflet-control {
    opacity: 0;
}
.info-marker div {
    height: 30px;
    width: 30px;
    border-radius: 15px;
    box-shadow: 0px 3px 4px 0px rgb(0 0 0 / 21%);
    position: relative;
}
.info-marker div::after {
    content: "i";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-shadow: #000000d1 0 0 10px;
}