html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}



header {
    background-color: #FFFFFF;
    color: #1F2E2E;
    width: 100%;
    height: 200px;
    margin-bottom: 5px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#logo {
    width: 120px;
    height: 120px;
    margin: 30px;
}

#bedriftsnavn {
    font-family: 'inter';
    font-weight: 300;
    font-size: 50px;
}



main {
    padding: 100px;

    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.5fr 2fr;
}

#overskrift {
    grid-column: 1;
    grid-row: 1;
}

#overskrift h2 {
    font-weight: 400;
    margin: 0;
}

#infoVenstre {
    grid-column: 1;
    grid-row: 2;
}

#hjemBildet {
    max-width: 100%;
    height: auto;

    grid-column: 2;
    grid-row: 2;
}

.tekstboksHjem {
    color: #1F2E2E;
    background-color: white; 
    font-family: 'inter';
    font-size: 20px;
    padding: 20px;
    line-height: 1.5;

    display: flex;
    align-items: center;
}



/* Mobil */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        text-align: center;
    }

    #bedriftsnavn {
        font-size: 32px;
    }

    #logo {
        width: 90px;
        height: 90px;
        margin: 10px;
    }

    main {
        padding: 30px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    #overskrift,
    #infoVenstre,
    #hjemBildet {
        grid-column: 1;
        grid-row: auto;
    }

    #hjemBildet {
        width: 100%;
        height: auto;
    }

    .tekstboksHjem {
        font-size: 18px;
    }
}