body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    color: #232323;
    background-color: #F2FFFE;
}

.wrapper {
    overflow-x: hidden;
}

#myWidget {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.background {
    position: absolute; 
    z-index: -1; 
    width: 100vw; 
    height: 100%;
    position: fixed; 
    top: 0; 
    left: 0;  
    width: 100vw; 
    height: 100vh; 
    object-fit: cover; 
    object-position: 0px 60px;
}

/*HEADER*/

.header {
    display: grid;
    grid-template-columns: repeat(5, minmax(clamp(80px, 16vw, 140px), 140px));
    grid-template-rows: repeat(1, 200px);
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.header img {
    display: block;
    margin: auto;
    width: clamp(60px, 12vw, 100px);
    height: clamp(80px, 15vw, 120px);
    object-fit: contain;
    cursor: pointer;
}

.header * {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 300;
    user-select: none;
}

/*MASTHEAD*/

.masthead {
    text-align: center;
    overflow: hidden;
}

.masthead-text h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 300;
    animation: slide 1.5s ease;
}

.masthead-text p {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    font-weight: 300;
    color: #898989;
    opacity: 0%;
    animation: slide 1.5s ease;
    animation-delay: 0.2s;
}

.masthead-book img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0%;
    animation: slide 1.5s ease;
    animation-delay: 0.4s;
    user-select: none;
}

/*MAIN*/

.main {
    background-color: #89adac;
    padding-top: 30px;
    padding-bottom: 20px;
    text-align: center;
}

.main-h1 {
    color: #fff;
}

.boxes {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    grid-template-rows: repeat(2, 120px);
    justify-content: center;
    align-items: center;
    gap: 40px 60px;
    margin-top: 10px;
}

.box {
    background-color: #F2FFFE;
    width: 100%;
    max-width: 200px;
    height: 120px;
    margin: 0;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
}

.box h1 {
    font-size: clamp(1.1rem, 5vw, 1.3rem);
    font-weight: 400;
    opacity: 70%;
    
}
.box p {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    font-weight: 300;
    color: #797979;
}

.box a {
    color: #89adac;
}



.main-button {
    border: 4px solid #F2FFFE;
    border-radius: 2px;
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.main-button h1{
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    font-weight: 400;
    margin: 10px;
}

.main-button i {
    font-size: 15px;
}

/*HELFO FOOTER*/

.helfo-footer {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 80px 0px;
}

.helfo-footer img {
    width: 100%;
    max-width: 300px;
}

.helfo-footer p {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    font-weight: 300;
    color: #797979;
}

.footer-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.nll img {
    height: 81px;
    object-fit:contain;
}

/*FOOTER*/

.footer {
    background-color: #89adac;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #fff;
}

.footer a {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    font-weight: 300;
}

/*MEDIA*/

@media screen and (max-width:767px){
    .header {
        display: grid;
        grid-template-columns: repeat(5, minmax(60px, 1fr));
        gap: 0px;
    }

    .header {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }


    .header * {
    font-size: clamp(0.8rem, 2vw, 1.3rem);
    }

    .boxes {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .footer-logos {
        display: flex;
        flex-direction: column;
    }

    .footer {
        background-color: #89adac;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        color: #fff;
    }

}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/*KEYFRAMES*/
@keyframes slide {
    from {
        opacity: 0%;
        transform: translateY(50%);
    }

    to {
        opacity: 100%;
        transform: translateY(0%);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
    }
    to {
        opacity: 1;
        transform: translateX(0);          
    }
}

/*underlinje effekt*/

a:not(.AutenLinje, .footer a) {
    display: inline-block;
    position: relative;
    justify-self: center;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    color: #232323;
}

a:not(.AutenLinje, .footer a)::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #89adac;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

a:not(.AutenLinje, .footer a):hover::before {
    transform: scaleX(1);   
}

a:not(.AutenLinje, .footer a):hover {
    color: #89adac;
}

a:not(.AutenLinje, .footer a):active {
    color: #89adac;
    transform: scale(0.96);
}
.footer p.animate-footer-scroll {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.footer p.animate-footer-scroll.in-view-x {
    opacity: 1;
    transform: translateX(0);
}

.footer a {
    color: #fff;
    font-size: 1.05rem;
}

/*TJENESTER*/

.tjenester-main {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
    margin: 10px;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

.dropdown-container .dropdown {
    opacity: 0%;
    padding: 15px 30px;
    border-radius: 5px;
    background-color: #b9d7d6;  
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideFromLeft 0.8s cubic-bezier(0.4,0,0.2,1);
    animation-fill-mode: forwards;
}

.dropdown-container .dropdown1 {
    animation-delay: 0s;
}
.dropdown-container .dropdown2 {
    animation-delay: 0.2s;
}
.dropdown-container .dropdown3 {
    animation-delay: 0.4s;
}
.dropdown-container .dropdown4 {
    animation-delay: 0.6s;
}
.dropdown-container .dropdown5 {
    animation-delay: 0.8s;
}
.dropdown-container .dropdown6 {
    animation-delay: 0.8s;
}

.dropdown h1{
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.tjenester-title h1{
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 60px;
}

.dropdown i {
    font-size: clamp(1rem, 2vw, 1.3rem);
    transition: all 0.5s ease;
}

.dropdown1Info, .dropdown2Info, .dropdown3Info, .dropdown4Info, .dropdown5Info, .dropdown6Info {
    line-height: 1.5;
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    padding: 0px 20px;
}


/*OM OSS*/

.omOssMain{
    display: flex;
    justify-content: center;
    padding: 0px 20px;
}

.hvemErvi {
    width: 100%;
    max-width: 600px;
    line-height: 1.5;
}

.hvemErvi > h1 {
    text-align: center;
}

.ansatte {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0px 20px;
    margin-bottom: 100px;
}

.ansatte-container {
    display: flex;
    gap: 40px;
    background-color: #fff;
    padding: 50px;
    flex-wrap: wrap; /* allow wrapping on small screens */
}

.ansatte-container > div {
    flex: 1 1 200px; /* grow, shrink, min-width */
    max-width: 280px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.ansatte-container img {
    width: 100%;
    max-width: 280px;
    min-width: 120px;
    height: auto;
    aspect-ratio: 500/707;
    object-fit: cover;
}

.anne p, .hilde p {
    text-align: start;
}

/*TAKSTER*/

.takster-main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px;
}

.voreTakster {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.voreTakster-text {
    width: 100%;
    max-width: 600px;
    line-height: 1.5;
    
}

.voreTakster-text > h1 {
    text-align: center;
    opacity: 0%;
    animation: slide 1s ease forwards;
}

.voreTakster-text p:not(.boldItalic) {
    opacity: 0%;
    animation: slide 1s ease forwards;
    animation-delay: 0.2s;
}

.boldItalic {
    font-style: italic;
    font-weight: bold;
    opacity: 0%;
    animation: slide 1s ease forwards;
    animation-delay: 0.8s;
}

.priser {
    background-color: #fff;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    line-height: 1.5;
    margin: 30px auto;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    .priser {
        padding: 20px;
        margin: 16px auto;
    }
}

.priser {
    opacity: 0;
    animation: slide 2s ease forwards;
}

.priser ul {
    list-style-type: none;
    font-size: clamp(0.7rem, 3vw, 1.2rem);
    font-weight: 500;
}

.priser li{
    border-bottom: 1px solid #b5b5b5;
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    align-items: center;
}

.priser li span {
    font-size: clamp(0.8rem, 2.7vw, 1rem);
}

.prisliste-title {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}



/*KONTAKT*/

.kontaktinformasjon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px;
}

.kontaktinformasjon h1 {
    opacity: 0%;
    animation: slide 1s ease forwards;
}

.kontaktinformasjon ul {
    list-style-type: none;
    font-weight: 500;
    padding: 10px;
}

.kontaktinformasjon li {

    opacity: 0;
    animation: slideFromLeft 0.8s cubic-bezier(0.4,0,0.2,1);
    animation-fill-mode: forwards;
}

.kontaktinformasjon li:nth-last-child {
    position: relative;
}

.kontaktinformasjon li:nth-child(1) {
    animation-delay: 0s;
}
.kontaktinformasjon li:nth-child(2) {
    animation-delay: 0.2s;
}
.kontaktinformasjon li:nth-child(3) {
    animation-delay: 0.4s;
}
.kontaktinformasjon li:nth-child(4) {
    animation-delay: 0.6s;
}
.kontaktinformasjon li:nth-child(5) {
    animation-delay: 1s;
}

.kontaktinformasjon li, .kontaktinformasjon li a {
    font-size: clamp(0.7rem, 5vw, 1.2rem);
}

.kontaktinformasjon li a {
    color: #89adac;
}

.kontaktinformasjon li{
    border-bottom: 1px solid #b5b5b5;
    margin-left: 20px;
    height: clamp(30px, 10vw, 70px);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontaktinformasjon .info {
    background-color: #89adac;
    width: 100vw;
    text-align: center;
    color: #fff;
    padding: 50px 0px;
    line-height: 1.5;
    font-size: clamp(1rem, 5vw, 1.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.info div {
    width: 100%;
    max-width: 500px;
}


.talevansker {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px;
    margin-bottom: 150px;
}

.talevansker-wrapper {
    background-color: #fff;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    height: auto;
    text-align: center;
    box-sizing: border-box;
    margin: 16px; /* ensures margin from viewport on all sides */
}

.box1wrap *, .box2wrap *, .box3wrap *{
    opacity: 0%;
    animation: slide 1s ease forwards;
}

.box1wrap h1, .box2wrap h1 {
    animation-delay: 0s;
}
.box1wrap p, .box2wrap p{
    animation-delay: 0.2s;
}
.box1wrap a, .box2wrap a{
    animation-delay: 1s;
}

.box3wrap *:nth-child(1) {
    animation-delay: 0s;
}
.box3wrap *:nth-child(2) {
    animation-delay: 0.2s;
}
.box3wrap *:nth-child(3) {
    animation-delay: 0.4s;
}
.box3wrap *:nth-child(4) {
    animation-delay: 0.6s;
}

/*404*/

.text-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px;
    margin-bottom: 150px;
    height: 100%;
    min-height: 300px;
}

.text-404-wrap {
    padding: 40px;
    width: 100%;
    max-width: 500px;
    height: auto;
    text-align: center;
    box-sizing: border-box;
    margin: 16px;
    word-spacing: 0.2em;
}

.text-404-wrap h1{
    opacity: 80%;
}

