html {
    margin: 0%;
    text-align: center;
    font-family: 'Lexend';
}

/*fonts */
@font-face {
    font-family: Alkatra;
    src: url(../fonts/Alkatra/Alkatra-VariableFont_wght.ttf);
}

@font-face {
    font-family:Lexend;
    src: url(../fonts/Lexend/Lexend-VariableFont_wght.ttf);
}

@font-face {
    font-family:Oswald;
    src: url(../fonts/Oswald/Oswald-VariableFont_wght.ttf);
}


body {
    margin: 0;
    background-color: rgb(218, 186, 154);
    padding-bottom: 100px;
}

/* fonts */
@font-face {
    font-family: Alkatra;
    src: url(../fonts/Alkatra/Alkatra-VariableFont_wght.ttf);
}

@font-face {
    font-family:Lexend;
    src: url(../fonts/Lexend/Lexend-VariableFont_wght.ttf);
}

@font-face {
    font-family:Oswald;
    src: url(../fonts/Oswald/Oswald-VariableFont_wght.ttf);
}

/* adjustments for the header */
header {
    text-align: right;
    position: sticky;
    background-color: black;
    padding: 10px 0;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
}

.header-image {
    width: 5%;
    padding-left: 3%;
}

nav {
    padding-right: 3%;
    background-color: black;
    display: flex;
    align-items: center;
    gap: 15px;
}

nav a {
    text-decoration: none;
   color:white; 

}


a:hover {
    color: #888786;
    transition: background-color 0.3s ease, transform 5s ease;
}

/* adjustments for the individuals titels on "home" */
.top-home-text {
    font-family: Oswald;
    font-size: 40px;
    text-align: center;
}

.bottom-home-text {
    font-family: Alkatra;
    font-size: 40px;
    text-align: center;
}

.home-text {
    margin-top: 20%;
}

/* button on "home" */
.home-button {
    font-size: 25px;
    background-color: #733D06;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.left {
    text-align: center;
}

button:hover {
    background-color: #532d07;
}


/*adjustments for the individual backgrounds*/

#background-image {
    margin: 0;
    background-image: url(../images/homepage-background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;

}

#background-image main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 50%;
}

#background-image {
    height: 80vh;
    color: white;
}

img {
    width: 100%;
}

main {
    display: flex;
    gap: 20px;
    text-align: center;
    justify-content: space-evenly;
}


/* alignment for the text and pictures on "about us" */
.main-title {
    text-align: center;
}

#about-us>*:nth-child(1) {
    width: 30%;
    padding-left: 3%;
    text-align: left;
}

#about-us>*:nth-child(2) {
    width: 45%;
}

#about-us>*:nth-child(3) {
    width: 25%;
    padding-right: 3%;
}


/* andjustments for the four sections on "menu" */
.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.card p {
    padding: 10px;
    font-size: 14px;
    color: #333333;
}

.card {
    max-width: 200px;
    border-radius: 8px;
    text-align: center;
    background-color: #C09161;
}


/* image adjustments so that the picture on "about us" does not distort */
.height-50 {
    width: 100%;
    height: 45vh;
    object-fit: cover;
}


/* color and transition on "legal notice" */

a[href="mailto:lars.zwahlen@sbw-media.ch"] {
    color: black;
}

a[href="mailto:lars.zwahlen@sbw-media.ch"]:hover {
    color: #733D06;
    transition: background-color 0.3s ease, transform 1s ease;
}


/* adjustments for the footer*/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    text-align: center;
    color: white;

}

.footer-nav {
    text-align: center;
    justify-content: center;
    padding-bottom: 10px;
    color: white;
}


.container {
    text-align: left;
    margin-right: 3%;
    margin-left: 3%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}




/* mobile representation */

/* adjustments for the header for mobile */
@media screen and (max-width: 800px) {
    .header-image {
        width: 20%;
        padding-left: 5%;
    }

    .main-title {
        text-align: center;
    }

    main {
        flex-direction: column;
        align-items: center;
        margin-left: 5%;
        margin-right:5%;
    }

    main .card {
        width: 90%;
        margin-bottom: 20px;
        text-align: center;
    }


/* adjustments on the flex on "about-us" for mobile */   
#about-us>*:nth-child(1) {
    width: 100%;
    text-align: left;
}

#about-us>*:nth-child(2) {
    width: 100%;
}

#about-us>*:nth-child(3) {
    width: 100%;
    margin-bottom:3%;
}


/* adjustments for the individuals titels on "home" for mobile */
.home-text {
    margin-top: 50px;
    text-align: center;
}

/* button on "home" for mobile */
 a button {
    font-size: 25px;
    background-color: #733D06;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;

    text-align: center;
}

.left {
    text-align: center;
}


}
