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

#GridHome {
    display: Grid;
    Grid-template: 35px repeat(5, 1fr) 125px / 1fr 70px;
    Grid-template-areas: "header Button"
                         "sec1 sec1"
                         "Bild1 Bild1"
                         "sec2 sec2"
                         "Bild2 Bild2"
                         "sec3 sec3"
                         "footer footer";
    height: 100vh;
}

#GridFördj {
    display: Grid;
    Grid-template: 35px repeat(5, 1fr) 125px / 1fr 70px;
    Grid-template-areas: "header Button"
                         "sec1 sec1"
                         "Bild4 Bild4"
                         "sec2 sec2"
                         "Bild3 Bild3"
                         "sec3 sec3"
                         "footer footer";
    height: 100vh;
}

#header {
    Grid-area: header;
    background-color: black;
    color: white;
    text-align: center;
}

#nav {
    grid-area: nav;
    background-color: black;
    color: white;
    display: none;
    font-size: 120%;
    text-align: center;
    font-family: "Rubik", serif;
    font-optical-sizing: auto;
    font-weight: 450;
    font-style: normal;
}

#navlist {
    display: inline-block;
    list-style: none;
}

#navlist li {
    display: inline-block;
    margin-left: 40px;
}

#List {  
   color: white;
   Position: sticky;
   box-align: top right;
   text-align: center;
   display: none;
   background-color: black;
   height: 80px;
   width: 70px;
   list-style: none;
   font-size: 90%;
}

.gap {
    margin: 10px;
    margin-left: 2vw;
    margin-right: 2vw;
}

.under-rubrik {
    font-family: "Noto Sans", serif;
    font-weight: 400;
}

.rubrik {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

p{
    font-family: "Open Sans", serif;
    font-weight: 500;
}

#home, #länk1 {
     text-decoration: underline;
}

#footer {
    grid-area: footer;
    background-color: rgb(12, 139, 91);
    font-style: none;
}

#Button {
    grid-area: Button;
    border: 0;
    background-color: black;
}

#sec1 {
    grid-area: sec1;
}

#sec2 {
    grid-area: sec2;
}

#sec3 {
    grid-area: sec3;
}

#Bild1 {
    grid-area: Bild1;
}

#Bild2 {
    grid-area: Bild2;
}

#Bild3 {
    grid-area: Bild3;
}

#Bild4 {
    grid-area: Bild4;
}

#Bild4 img, #Bild3 img{
    width: 80vw;
}

#Bild1 img, #Bild2 img {
    width: 90vw;
}

#sec1, #sec2, #sec3 {
    color: rgb(92, 92, 92);
} 

a:link {
    color: white;
    text-decoration: none;
}

a:hover {
   opacity: 80%; 
}

a:visited {
    color: white;
}

/* Grid för Home: */

@media only screen and (min-width: 600px) {
    #GridHome{
        display: grid;
        grid-template: 65px repeat(3, 1fr) 135px / repeat(3, 1fr);
        grid-template-areas:"nav nav nav"
                            "Bild1 sec1 sec1"
                            "sec2 sec2 sec2"
                            "sec3 sec3 Bild2"
                            "footer footer footer"; 
        height: 100vh;
    }

    #Button, #header, #Blid3 img, #Blid4 img {
        display: none;
    }

    #Bild1 img, #Bild2 img{
        width: 30vw;
    }

    #Bild1 img {
        margin-top: 40px;
    } 

    #Bild2 img {
        margin-top: 85px;
    }

    #nav {
        display: inline;
    }

    p{
        font-size: 85%;
    }

}

@media only screen and (min-width: 769px) {
    #GridHome {
        display: grid;
        grid-template: 65px 1fr repeat(2, 3fr) 135px / 1fr repeat(3, 2fr) 1fr;
        grid-template-areas: "nav nav nav nav nav"
                             ". sec1 sec1 sec1 ."
                             ". Bild1 sec2 sec2 ."
                             ". sec3 sec3 Bild2 ."
                             "footer footer footer footer footer";
    
    }

    #sec1, #Bild1 img{
        margin-top: 50px;
    }

    #Bild1 img, #Bild2 img {
        width: 30vw;
    }

    #sec1, #sec2, #sec3 {
        font-size: 120%;
    }
}

/* Grid för Forstättning: */

@media only screen and (min-width: 600px) {
    #GridFördj{
        display: grid;
        grid-template: 65px repeat(3, 1fr) 135px / repeat(3, 1fr);
        grid-template-areas:"nav nav nav"
                            "sec1 sec1 Bild4"
                            "sec2 sec2 sec2"
                            "Bild3 sec3 sec3"
                            "footer footer footer";
    height: 100vh;
    }

    #Button, #header {
        display: none;
    }

    #Bild4 img, #Bild3 img{
        width: 40vw;
    }

    #nav {
        display: inline;
    }

    p{
        font-size: 85%;
    }

    #sec3, #Bild3 img{
        margin-top: 10vh;
    }

    #Bild3 img, #Bild4 img{
        size: 80%;
    }

    #Bild3 {
       display: block;
    }

}

@media only screen and (min-width: 769px) {
    #GridFördj {
        display: grid;
        grid-template: 65px repeat(3, 1fr) 135px / 1fr repeat(3, 2fr) 1fr;
        grid-template-areas: "nav nav nav nav nav"
                             ". sec1 sec1 Bild4 ."
                             ". sec2 sec2 sec2 ."
                             ". Bild3 sec3 sec3 ."
                             "footer footer footer footer footer";
    
    }

    #Bild4 img, #sec1{
        margin-top: 50px;
    }

    #sec2 {
        margin-top: 9vh;
    }

    #Bild4 img, #Bild3 img{
        width: 25vw;
    }

    #sec1, #sec2, #sec3 {
        font-size: 120%;
    }
}

