/* general */

body {
    margin: 0;
    background-image: url(src/bg-light.jpeg);
    background-size: cover;
    color: #8E489E;
    font-family:"Calibri", sans-serif;
}

section {
    padding: 0 2em;
    text-align: center;
}

@media screen and (min-width: 1100px) {
    section {
        padding: 0 15vw;
    }
}

/* fonts */ 

h2 {
    font-size: 40px;
}

h3 {
    font-size: 32px;
}

p, li, a {
    font-size: 20px;
}

select {
    font-weight: bold;
    font-size: 16px;
}

label {
    display: none;
    font-size: 18px;
}

@media screen and (min-width: 1440px) {
    h2 {
    font-size: 48px;
    }

    h3 {
        font-size: 40px;
    }

    p, li, a {
        font-size: 30px;
    }

    select {
        font-size: 24px;
    }
    
    label {
        display: block;
        font-size: 20px;
    }

    sub {
        font-size: 16px;
    }
}

/* hero */
.portrait-img {
    display: block;
    position: relative;
    animation: switchBackgrounds 8s infinite ease-in-out;
    margin: auto;
    margin-top: 10em;
    background-position: center;
    background-size: cover;
    aspect-ratio: 1 / 1;
    width: clamp(180px, 50vw, 300px);
}

@keyframes switchBackgrounds {
    0%, 40% {
        background-image: url(src/portrait.png);
    }
    50%, 90% {
        background-image: url(src/logo.png);
    }
    100% {
        background-image: url(src/portrait.png);
    }
}

.title-img {
    display: block;
    margin: auto;
    margin-bottom: 7.5em;
    border: none;
    border-radius: 20px;
    width: clamp(280px, 50vw, 640px);
}

/* offers */
.offers-list {
    padding: 0;
    list-style-position: inside;
}

.offers-list > li {
    margin-bottom: 1em;
}

.offers-notice {
    margin-top: 3em;
}

@media screen and (min-width: 1100px) {
    .offers {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .offers > article:first-child {
        text-align: left;
    }

    .offers > article:last-child {
        text-align: right;
    }
}

/* footer */
footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 5em;
    background-image: url(src/bg-dark.jpeg);
    background-size: cover;
    height: 10vh;
}

footer > a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

footer > a:hover {
    text-decoration: underline;
}


/* extras */
.divider {
    display: block;
    margin: 5vw auto;
    width: clamp(180px, 25vw, 300px);
}

label {
    margin-bottom: 0.5em;
}

select {
    display: block;
    border-color: #8E489E;
    border-radius: 5px;
    padding: 0.5em;
    padding-right: 1em;
    color: #8E489E;
}

.language-switcher {
    position: fixed;
    top: 1em;
    left: 1em;
    z-index: 100;
}

/* text-site */
.text-site {
    padding: 0 3em;
}