body{margin: 0; background-color: #F7F7F7; font-family: "Raleway";}
*{margin: 0; padding: 0;}

/*        topp        */
#topp{
    grid-area: t;
}
#hovedbilde{
    height: 600px;
    width: 100%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
}
#hovedbilde img{
    height: 600px;
    max-width: 98%;
    border-radius: 20px;
    border: solid 3px #303841;
}

#hovedbilde h1{
    position: absolute;
    top: 20%;
    font-size: 6em;
    width: max-content;
    font-weight: 100px;
    right: 42%;
    color: #F7F7F7;
    text-shadow: 2px 2px 2px #2E4750;
}

#hovedbilde p{
    position: absolute;
    top: 70%;
    right: 73%;
    color: #F7F7F7;


}

#fordeler{
    top: 20px;
    width: 98%;
    height: 50px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    display: flex;
    justify-content: space-around;
    background-color: #303841;
    color: #F7F7F7;
    border-radius: 40px;
    align-items: center;
}

#fordeler img{
    position: relative;
    left: -40px;
    height: 20px;
}


/*        grunner          */
#grunner{
    grid-area: g;
    display: flex;
    background-color: #F7F7F7;
}
#grunnerbokser{
    width: 50%;
    height: 600px;
    padding-left: 4%;
    position: relative;
}
#grunnerbokser h2{
    font-size: 4em;
}
.kjøpnå{
    position: absolute;
    color: black;
    text-decoration: none;
    background-color: #F6C90E;
    font-weight: bold;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#grunnerbokserboks{
    position: relative;
    top: 80px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* nummer 1 */
.flipbokser, .flipbokser2{
    height: 50px;
    width: 250px;
    background-color: transparent;
    position: relative;
}
.indreboks{
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.frontbokser, .bakboks{
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.frontbokser, .frontbokser2{
    background-color: #303841;
    border-radius: 40px;
    color: #F7F7F7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.frontbokser p, .frontbokser2 p{
    position: absolute;
}

.frontbokser img, .frontbokser2 img{
    position: relative;
    height: 25px;
    left: 90px;
}

.bakboks, .bakboks2{
    background-color: #2E4750;
    color: #F7F7F7;
    transform: rotateY(180deg);
    height: 200px;
    width: 250px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bakboks p, .bakboks2 p{
    width: 220px;
}

/* nummer 2*/
.flipbokser2{
    top: 50px;
}
.indreboks2{
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.frontbokser2, .bakboks2{
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bakboks2{
    height: 200px;
}

.flipbokser .indreboks.rotated {
    transform: rotateY(180deg);
}

.flipbokser2 .indreboks2.rotated {
    transform: rotateY(180deg);
}

.flipbokser2 {
    transition: transform 0.8s ease;
}

.flipbokser2.moved {
    transform: translateY(150px);
}
/* nummer 2*/

#grunnerbilde{
    position: relative;
    height: 600px;
    width: 50%;
    display: flex;
    justify-content: end;
}
#grunnerbilde img{
    position: absolute;
    max-width: 80%;
    max-height: 600px;
    border-radius: 20px 0 0 20px;
    
}

.shadowimg{
    box-shadow: 8px 8px 15px rgba(0, 0, 0);
}

#meninger{
    grid-area: m;
}
#bunnhoved{
    grid-area: b;
}

#hoved{
    display: grid;
    grid-template-areas: 'tm tm tm tm'
                         't t t t'
                         'g g g g'
                         'm m m m'
                         'b b b b';
}