/*HTML stil - Generell*/
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f7fcff;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer {
    height: 50px;
}

h1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 60px;
    color: #146889;
}

/*Innhold stil*/
.innhold-boks {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1600px;
    padding: 40px;
    gap: 40px;
    box-sizing: border-box;
    flex-grow: 1;
}

.venstre-side {
    display: flex;
    flex-direction: column;
    width: 80%;
    box-sizing: border-box;
}

.bok-boks {
    width: 100%;
    background-color: white;
    border: 2px solid rgb(226, 226, 226);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.bok-boks video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.knapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background-color: #146889;
    color: white;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.tekst-boks {
    width: 20%;
    background-color: #146889;
    border: 2px solid rgb(226, 226, 226);
    border-radius: 6px;
    padding: 20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: white;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.tekst-boks p {
    transition: opacity 0.5s ease-in-out;
}

/*Valg boks*/
.valg-boks {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.valg-boks button {
    background-color: #ffb347;
    color: black;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/*Responsiv - Media queries*/
@media screen and (max-width: 1024px) {
    .innhold-boks {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .venstre-side, .tekst-boks {
        width: 100%;
    }

    .bok-boks video {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: 40px;
    }

    button {
        font-size: 16px;
        padding: 12px 24px;
    }
}

@media screen and (max-width: 1024px) {

    .venstre-side {
        display: flex;
        flex-direction: column;
        order: 2;
    }

    .tekst-boks {
        order: 1;
    }

    .knapper {
        order: 3;
        margin-top: 20px;
    }
}