* {
    box-sizing: border-box;
}

/* Typsnitt */
body {
    font-family: Cambria;
}

/* Layout huvuddel */
#content {
    display: flex;
    justify-content: space-between;
}

/* Behåller footer längst ner */
#container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Toppdel */
header {
    display: flex;
    width: 100%;
    height: 80px;
    background-color: rgb(153, 69, 69);
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: white;
}

/* Rubrikstorlek */
h2 {
    font-size: 30px;
    font-weight: bold;
}

/* Underrubrik */
h3 {
    font-size: 25px;
    font-weight: bold;
}

/* Huvudinnehåll */
section {
    width: 60%;
    min-height: 200px;
    padding: 30px;
    border: 1px solid black;
    margin-top: 20px;
    margin-left: 5px;
    margin-bottom: 20px;
}

/* Sidokolumn */
aside {
    width: 30%;
    min-height: 200px;
    padding: 30px;
    border: 1px solid black;
    margin-top: 20px;
    margin-right: 5px;
    margin-bottom: 20px;
}

/* Partnersektion */
#partners {
    width: 60%;
    min-height: 200px;
    padding: 30px;
    border: 1px solid black;
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 20px;
}

/* footer */
footer {
    display: flex;
    width: 100%;
    height: 80px;
    background-color: rgb(153, 69, 69);
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-top: auto;
    color: white;
}

/* meny */
nav {
    position: sticky;
    top: 0px;
    z-index: 4;
}

/* Menyrad */
nav ul {
    list-style-type: none;
    padding: 0;
    background-color: rgb(223, 207, 207);
    overflow: hidden;
    display: flex;
    width: 100%;
    border: 1px solid black;
    flex-direction: row;
}

/* Menypunkt */
nav li {
    width: 100%;
}

/* Menylänkar */
nav li a {
    display: block;
    color: black;
    text-align: center;
    padding: 16px;
    text-decoration: none;
}

/* Hovereffekt */
nav li a:hover {
    background-color: rgb(235, 190, 190);
}

/* Aktiv sida */
#active {
    background-color: rgb(243, 188, 188);
}

/* Bildcontainer */
figure {
    position: relative;
    flex-basis: 400px;
    flex-grow: 4;
}

/* Bildgalleri */
#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    border: 0;
}

/* Bilder */
img {
    display: block;
    border: 1px solid black;
    width: 100%;
    object-fit: cover;
}

/* Bildtext */
figcaption {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1px;
    bottom: 0;
    width: 100%;
    padding: 10px;
}

/* Video */
iframe {
    width: 90%;
    aspect-ratio: 16/9;
}

/* Personal-lista */
#workers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Kontakt-sektion */
#contact {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 0px;
    text-align: center;
    align-items: center;
}

/* Formulär */
form {
    width: 60%;
    padding: 25px;
    border: 1px solid black;
    border-radius: 8px;
    background-color: rgb(223, 207, 207);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Form-etiketter */
form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 18px;
}

/* Formfält */
form input[type="text"],
form input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgb(150, 150, 150);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
    background-color: white;
    box-sizing: border-box;
}

/* Skicka-knapp */
form input[type="submit"] {
    width: 100px;
    height: 30px;
    background-color: rgb(153, 69, 69);
    color: white;
}
/* Legend */
legend{
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 15px;
}
iframe {
    margin-top: 20px;
}

/* Standardtext */
p {
    font-size: 16px;
}

/* Formularrubrik */
#form {
    font-weight: bold;
    font-size: 18px;
}

/* Listor i aside */
aside ul li {
    list-style: inside;
    margin-top: 5px;
}

/* Mobilmeny-knapp */
#dropdown {
    display: none;
    width: 60px;
    border: 0;
}

/* Tack-sida */
#Tack {
    border: 0;
    display: flex;
    justify-content: center;
    width: 99%;
}

/* Mobilanpassning */
@media only screen and (max-width: 768px) {

    section,
    #partners,
    aside {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    nav ul {
        display: none;
        border: 1px solid black;
    }

    nav {
        border: none;
    }

    #dropdown {
        display: block;
    }

    #content {
        display: inline;
    }
}