body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0;
}

header {
    display: flex;
}


header div:nth-of-type(1) {
    z-index: 1;
    position: relative;
    text-shadow: 1px 1px 3px black;
    color: white;
    position: absolute;
    width: 25vw;
    left: 7vw;
    top: 25%;
    animation: fadeIn ease 1s 1 normal;
    font-size: larger;
}


header div:nth-of-type(2) {
    background: url(images/florence1.jpg);
    width: 100%;
    height: 60vh;
    background-repeat: no-repeat;
    background-position: center;
    overflow: auto;
}

nav a:hover {
    color: black;
}


h2 {
    text-align: center;
}

main {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    margin: 0 3vw 3vh 3vw;
}

main div {
    text-align: center;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.4);
    transition: 0.25s;
    font-size: 3vh;
}

main div:hover {
    transform: scale(1.1);
}

main img {
    width: 25vw;
    height: 30vh;
    object-fit: cover;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

nav {
    z-index: 1;
    text-align: center;
    border-bottom: 5px solid rgba(49, 140, 214, 0.454);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    position: relative;
}

nav ul li {
    display: inline-block;
}

nav a {
    display: block;
    padding: 0 10px;
    font-size: 20px;
    line-height: 30px;
}

nav ul ul {
    display: none;
    position: absolute;
    top: 30px;
}

nav ul li:hover>ul {
    display: block;
}

nav ul ul li {
    width: 100px;
    float: none;
    display: list-item;
    position: relative;
    background-color: white;
}

@media (min-width:1600px) {
    header div:nth-of-type(1) {
        position: sticky;
        left: 0;
        top: 0;
        width: 100%;
        text-align: center;
        background-color: rgba(128, 128, 128, 0.372);
        align-content: center;
    }

    header div:nth-of-type(2) {
        background-position: right;
        width: 100%;
    }
}


.box {
    width: 40%;
    margin: 0 auto;
    background: rgb(111, 110, 110 0);
    padding: 35px;
    border: 2px solid #fff;
    border-radius: 20px/50px;
    background-clip: padding-box;
    text-align: center;
}

.button {
    font-size: 1em;
    padding: 10px;
    border: 2px solid #06D85F;
    border-radius: 20px/50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    color: black
}


.button:hover {
    background: #06D85F;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 5s ease-in-out;
}

.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.popup .close:hover {
    color: #06D85F;
}

.popup .content {
    max-height: 30%;
    overflow: auto;
}

@media screen and (max-width: 700px) {
    .box {
        width: 70%;
    }

    .popup {
        width: 70%;
    }
}