html {
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

body {
    padding: 0rem;
    margin: 0rem;
}

.link {
    color: pink;
}

.top-bar {
    display: flex;
    justify-content: end;
    align-items: center;
    z-index: 1;
    height: 3rem;
    width: 100%;
    background-color: rgb(48, 68, 84);
}

.top-bar a {
    text-decoration: none;
    color: white;
    margin-right: 3rem;

    transition: transform 300ms ease;
}

.top-bar a:hover {
    transform: scale(1.1);
}

#map, #results, #method {
    scroll-margin-top: 18px; 
}


.content {
    width: 100%; 
    padding-top: 2rem;
    background-color: rgb(120, 180, 270);
    
}

.site-content {
    position: relative;
    overflow-y: auto;
    height: calc(100lvh - 3rem);
    
}



.landing-wrapper {
    display: flex;
    height: calc(100lvh - 3rem);
    width: 100%;
    background-color: transparent;
}

.landing {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 2rem;
}

.landing-box-wrapper {
    width: 100%;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.landing-box {
    margin-top: 3rem;
    background-color: white;
    border-radius: 0.25rem;
    padding: 2rem;
    width: fit-content;
    max-width: 55rem;
}

.landing-title {
    font-weight: 500;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.landing-subtitle {
    text-align: justify;
    font-size: large;
    font-weight: 300;
}

.scrolldown-button {
    position: absolute;
    left: calc(50% - 1.5rem);
    bottom: 2rem;
    height: 3rem;
    width: 3rem;
    margin-left: auto;
    margin-right: auto;

    transition: transform 300ms ease;
}

.scrolldown-button svg {
    height: 3rem;
    width: 3rem;
    fill: white;
}

.scrolldown-button:hover {
    transform: scale(1.2);
}

.button-container {
    position: absolute;
    bottom: 18rem;
    left: 37rem;
}

.map-button {
    background-color: #007BFF;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-right: 30px;
}

.map-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}


.secondary {
    background-color: #007BFF; 
    margin-left: 5px;
}

.secondary:hover {
    background-color: #0056b3; 
}


.clean-water {
    position: absolute;
    height: 6rem;
    aspect-ratio: 1/1;
    bottom: 2rem;
    right: 9rem;

    background-image: url('./images/clean_water.png');
    background-size: cover;
    background-position: center;
}

.clean-energy {
    position: absolute;
    height: 6rem;
    aspect-ratio: 1/1;
    bottom: 2rem;
    right: 2rem;

    background-image: url('./images/SDG7.png');
    background-size: cover;
    background-position: center;
}

.background {
    position: absolute;
    height: calc(100lvh - 3rem);
    width: 100%;
    top: 0;
    left: 0;

    background-image: url('./images/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.background-overlay {
    position: absolute;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;

    z-index: -1;
    filter: opacity(0.3);
}

.content {
    color: white;
    padding-top: 2rem;
    background-color: rgba(48, 68, 84);
}

.title {
    width: 100%;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;

    font-weight: 500;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.text {
    width: 100%;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;

    hyphens: auto;
    text-align: justify;
    line-height: 1.5rem;
}

.image-container {
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.image-container img {
    width: 110px; 
    height: 110px; 
    transition: transform 0.3s; 
}

.image-container img:hover {
    transform: scale(1.2); 
}


.image-container2 {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.image-container2 img {
    width: 380px; 
    height: 320px; 
    transition: transform 0.3s; 
}

.image-container2 img:hover {
    transform: scale(1.2); 
}

.research_question{
    margin-bottom: 20px; 
}

.highlight {
    border: 3px solid black; 
    padding: 5px;          
    margin: 20px 0;          
    border-radius: 5px; 
    background-color: rgba(122, 145, 193, 0.384);
    text-align: center;
    font-size: 20px;

}



.map {
    margin-top: 2rem;
}

.graphs{
    margin-left: 100px;
    margin-right: 100px
}

.sources-container1 {
    display: flex;
    flex-direction: row;
    gap: 40px; 
    justify-content: center;
    align-items: center;
}

.image-Swisstopo, .image-BAFU, .image-BAFU2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-Swisstopo img, .image-BAFU img, .image-BAFU2 img {
    width: 150px; 
    height: auto; 
    transition: transform 0.3s; 
}

.image-Swisstopo img:hover, .image-BAFU img:hover, .image-BAFU2 img:hover {
    transform: scale(1.2); 
}

.image-Swisstopo p, .image-BAFU p, .image-BAFU2 p {
    margin-top: 10px;
    text-align: center;
}

.sources-container {
    display: flex;
    flex-direction: row;
    gap: 40px; 
    justify-content: center;
    align-items: center;
}

.image-GLIMS, .image-WGMS {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-GLIMS img, .image-WGMS img {
    width: 150px; 
    height: auto; 
    transition: transform 0.3s; 
}

.image-GLIMS img:hover, .image-WGMS img:hover {
    transform: scale(1.2); 
}

.image-GLIMS p, .image-WGMS p {
    margin-top: 10px;
    text-align: center;
}

.sources-container2 {
    display: flex;
    flex-direction: row;
    gap: 40px; 
    justify-content: center;
    align-items: center;
}

.image-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-cover img {
    width: 150px; 
    height: auto; 
    transition: transform 0.3s; 
}

.image-cover img:hover {
    transform: scale(1.2); 
}

.image-cover p {
    margin-top: 10px;
    text-align: center;
}

.contact {
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.248);
}

.contact h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 5px;
}

.about-title {
    width: 100%;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 7rem;

    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
}

.about {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 70rem;
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.about-top {
    display: flex;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.about-bottom {
    display: flex;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 20rem;
    margin-top: 2rem;
}

.about-container:first-of-type {
    margin-left: auto;
}

.about-container:last-of-type {
    margin-right: auto;
}

.about-photo {
    width: 12.5rem;
    height: 12.5rem;
    background-size: cover;
    background-position: center;
    border-radius: 20rem;
}

.photo1 {
    background-image: url('./images/Giraffe.jpg');
}

.photo2 {
    background-image: url('./images/Hase2.PNG');
}

.photo3 {
    background-image: url('./images/Erdmaennchen.jpg');
}

.photo4 {
    background-image: url('./images/Delfin2.PNG');
}

.about-photo {
    width: 12.5rem;
    height: 12.5rem;
    background-size: cover;
    background-position: center;
    border-radius: 50%; 
}


.about-name {
    margin-top: 2rem;
    font-size: larger;
    font-weight: 500;
}

.about-description {
    margin-top: 0.5rem;
}

.footer {
    background-color: rgb(24, 35, 44);
    color: white;
    padding: 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-left {
    font-size: small;
}

.footer-right {
    cursor: pointer;
    height: 4rem;
    aspect-ratio: 4/1.25;

    background-image: url('./images/uzh_logo.png');
    background-size: cover;
    background-position: center;
    filter: invert();
}

@media (max-width: 1000px) {
    .about {
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .landing-title {
        font-size: 2.2rem;
    }

    .content-title {
        font-size: 2.2rem;
    }

    .about-title {
        font-size: 2.2rem;
    }
    
    .additional-sources-title {
        font-size: 2.2rem;
    }

    .about-top {
        flex-direction: column;
    }
    .about-bottom {
        flex-direction: column;
    }

    .about-container {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-left {
        margin-bottom: 4rem;
    }
}
