* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 75px 50px;
    background-image: url(../images/nackastrand_2.jpg);
    grid-area: header;
    max-height: 300px;
}

.header h3 {
    font-size: 50px;
}

/* .header  */

#logo {
    position: absolute;
    top: 10px;
    width: 25%;
}

#logo img {
    width: 100%;
}


/* nav {
    text-align: right;
    float: right;
    right: 10%;
} */

.topnav {
    overflow: hidden;
    background-color: #163C40;
    /* position: relative;
    top: 0; */
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
    /* z-index: 1; */
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #7B9AA6;
}

.topnav a.active {
    background-color: #7B9AA6;
    color: white;
}

.topnav .icon {
    display: none;
}

a {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 5px 10px;
    color: white;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    display: inline-block;
    font-family: "Inria Sans", serif;
    font-weight: 500;
    font-style: italic;
}

.sec1 {
    width: 100%;
    border: 2px solid black;
    padding: 10px;
    background-color: whitesmoke;
    grid-area: sec1;
}

.sec2 {
    grid-area: sec2;
}

.sec3 {
    grid-area: sec3;
    width: 100%;
    border: 2px solid black;
    padding: 10px;
    background-color: whitesmoke;
}

.sec4 {
    grid-area: sec4;
}

.sec5 {
    grid-area: sec5;
    width: 100%;
    border: 2px solid black;
    padding: 10px;
    background-color: whitesmoke;
}


h1,
h2,
h3 {
    font-family: "Bebas Neue", serif;
    font-weight: 500;
    font-size: 30px;
    font-style: normal;
    color: whitesmoke;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

h4,
p {
    font-family: "Inria Sans", serif;
    font-weight: 400;
    font-size: 15px;
    font-style: italic;
}

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    width: 100%;
    text-align: center;
    grid-area: footer;
    background-color: whitesmoke;
}

#wrapper {
    width: 100%;
    height: 400vh;
    display: grid;
    background-color: #97B7D3;
    grid-template-columns: 97vw;
    gap: 3vh;
    grid-template-rows: 200px 350px 1fr 1fr 50px;
    grid-template-areas: "header"
                        "sec1"
                        "sec3"
                        "sec5"
                        "footer";

}

@media only screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}


@media only screen and (min-width: 600px) {

    /*Tablet*/
    #wrapper {
        width: 100%;
        height: 300vh;
        display: grid;
        background-color: #97B7D3;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 1fr 1fr 1fr 50px;
        grid-template-areas: "header header"
            "sec1 sec2"
            "sec4 sec3"
            "sec5 sec5"
            "footer footer";
    }

    .header {
        position: relative;
        padding: 75px 50px;
        background-image: url(../images/nackastrand_2.jpg);
        grid-area: header;
        max-height: 300px;
    }
    
    .sec2 {
        grid-area: sec2;
    }

    .sec4 {
        grid-area: sec4;
    }
}

@media only screen and (min-width: 769px) {

    /*Desktop*/
    #wrapper {
        width: 100%;
        height: 260vh;
        display: grid;
        background-color: #97B7D3;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 300px 540px 400px 50px;
        grid-template-areas: "header header"
            "sec1 sec2"
            "sec4 sec3"
            "sec5 sec5"
            "footer footer";
    }

    #logo {
        position: absolute;
        float: right;
        top: 50px;
        right: 10%;
        width: 25%;
    }

    #logo img {
        width: 100%;
    }

    h1,
    h2,
    h3 {
        font-family: "Bebas Neue", serif;
        font-weight: 500;
        font-size: 40px;
        font-style: normal;
        color: whitesmoke;
        text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000;
    }

    h4,
    p {
        font-family: "Inria Sans", serif;
        font-weight: 400;
        font-size: 15px;
        font-style: italic;
        color: black;
    }

    nav ul li {
        display: inline-block;
        font-family: "Inria Sans", serif;
        font-weight: 500;
        font-style: italic;
    }

    .sec2 {
        grid-area: sec2;
    }

    .sec4 {
        grid-area: sec4;
    }
}