@font-face {
    font-family: "Fiora";
    src: url("../assets/font.woff") format('woff');
}

h1,
h2,
h3 {
    font-weight: normal;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

header {
    font-family: "Fiora", Arial, Helvetica, sans-serif;
    font-size: 1.3em;
    color: rgb(88, 88, 88);

    margin-top: 1.3rem;
    text-align: center;
}

header a {
    position: relative;
    text-decoration: none;
    color: rgb(88, 88, 88);
    display: inline-block;
}

header a::after {
    content: "";
    position: absolute;
    left: 2.5%;
    bottom: 6px;
    width: 95%;
    height: 1px;
    background: darksalmon;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

header a:hover::after {
    transform: scaleX(1);
}

main {
    font-family: Garamond;
    font-size: .95rem;
    color: dimgrey;

    margin-bottom: 3%;
}

main h3 {
    font-family: "Fiora", Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    color: steelblue;

    margin-top: 10px;
    margin-bottom: 20px;
}

.paragraph {
    text-align: center;
    padding-left: 28%;
    padding-right: 28%;
}

.paragraph h5 {
    font-weight: normal;
    font-style: italic;
    font-size: .95rem;
    margin-top: -10px;
    margin-bottom: 10px;
}

.paragraph p {
    text-align: justify;
}

.paragraph a:link {
    color: steelblue;
    text-decoration: none;
}

.paragraph a:hover {
    color: darksalmon;
    text-decoration: underline;
}

.paragraph a:visited {
    color: darksalmon;
}

#header-home {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 100%;
}

#homepage-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#homepage-title-img {
    width: 300px;
    padding-top: 15px;
    padding-bottom: 30px;
}

#nav-fiore-img {
    height: 42px;
}

#fiore-img-small {
    height: 20px;
}

#title-img {
    height: 42px;
    padding-top: 1rem;
}

#homepage-fiore-img {
    animation: scaleLoop 3s ease-in-out infinite;
    transform: scale(1);
}

#homepage-fiore-img:hover {
    transform: scale(1.05) !important;
}

#small-caps-paragraph {
    font-variant: small-caps;
    font-size: 0.9rem;
    color: darkslategray;
    margin-top: 10px;
    margin-bottom: 10px;
}

@keyframes scaleLoop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

#mappa-title-img {
    height: 4rem;
    padding-top: 1rem;
    padding-bottom: .5rem;
}

#map-container {
    display: flex;
    justify-content: center;
}

.clickable-img {
    margin-top: 3px;
    height: 256px;
}

.clickable-img:hover::after {
    height: 256px !important;
    display: none !important;
}

#mappa {
    width: 40%;
    border: 1.5px solid darksalmon;
    box-shadow: 0px 2.5px .5px .5px rgba(70, 131, 180, 0.288);
}

footer {
    position: absolute;
    bottom: 3%;
    width: 100%;
    white-space: nowrap;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

footer p {
    font-family: "Fiora";
    text-align: center;
    font-size: .8rem;
}

/* Tooltip container */
.tooltip {
    cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 100px;
    background-color: #ffffff;

    font-family: "Fiora", Arial, Helvetica, sans-serif;
    color: steelblue;
    text-align: center;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 23%;
    left: 50%;
    margin-left: -50px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show tooltip on hover (for desktop users) */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    white-space: nowrap;

}

/* Show tooltip when active (for mobile users) */
.tooltip.active .tooltiptext {
    visibility: visible;
    opacity: 1;

}

.emoji {
    font-size: .6rem;
}

.principessa-sofi {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: 100%;

    border: 0.1px solid rgba(70, 131, 180, 0.288);
    box-shadow: 0px 2.5px .5px .5px rgba(70, 131, 180, 0.288);
    padding-bottom: 5px;
}

@media screen and (max-width: 600px) {
    .paragraph {
        padding-left: 5%;
        padding-right: 5%;
    }

    #mappa {
        width: 80%;
    }
}

@media screen and (max-width: 900px) {
    .paragraph {
        padding-left: 10%;
        padding-right: 10%;
    }

    #mappa {
        width: 80%;
    }
}