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

body{
    background-color: black;
    width: 100vw;
}

header {
    background-color: gray;
    color: white;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

#Pages{
    display: none;
}

#PagesB2 {
    display: none;
    background-color: darkgray;
    position: absolute;
    font-size: smaller;
    font: 1000;
    line-height: 3vh;
    margin-top: 13vh;
    margin-left: 31%;
}

#PagesB3 {
    display: none;
    background-color: darkgray;
    margin-top: 16.5%;
    margin-right: 12%;
    position: absolute;
    font-size: smaller;
    font: 1000;
    line-height: 3vh;
}

#PagesB4 {
    display: none;
    background-color: darkgray;
    margin-left: 50%;
    margin-top: 8%;
    position: absolute;
    font-size: smaller;
    font: 1000;
    line-height: 3vh;
}

#Close2{
    background-color: gray;
    text-align: center;
    width: 100%;
}

#Close3{
    background-color: gray;
    text-align: center;
    width: 100%;
}

#PagesB{
    display: none;
}

button{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: larger;
    background: none;
    border-style: none;
    text-align: left;
}

a{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-decoration: none;
    color: white;
    font-weight: 900;
    font-size: larger;
}

i{
    margin-left: 2%;
}

main {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: white;
    display: grid;
    grid-gap: 4vw;
    width: 100vw;
    height: 100vh;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 25% 10% 25% 25%;
    grid-template-areas: "h h h h"
                         "n n n n"
                         "p2 p2 p1 p1"
                         "p3 p3 p1 p1";
}

#main2 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: white;
    display: grid;
    grid-gap: 4vw;
    width: 100vw;
    height: 100vh;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 25% 25% 25% 25%;
    grid-template-areas: "gm1 gm1"
                         "gm2 gm2"
                         "gm3 gm3"
                         "gm4 gm4";
}

#ib {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: white;
    display: grid;
    grid-gap: 4vw;
    width: 100vw;
    height: 100vh;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 25% 25% 25% 25% 25% 25% 25% 35%;
    grid-template-areas: "b1 b"
                         "i b"
                         "i b"
                         "i b"
                         "i b"
                         "i b"
                         "i b"
                         "i b2";
}


#Header {
    grid-area: h;
    background-image: url("../Bilder/1.jpg");
    background-size: cover;
    text-align: center;
    line-height: 25vh;
}

#ChangeP{
    position: absolute;
    left: 93vw;
    top: 13vh;
}

#ChangeP2{
    position: absolute;
    right: 95vw;
    top: 13vh;
}

#TitleB{
    text-align: center;
}

#TitleI{
    text-align: center;
}

#introduktion{
    grid-area: i;
    text-align: left;
    background-color: gray;
    margin-bottom: 9%;
}

#bakgrund{
    margin-top: 9%;
    grid-area: b;
    text-align: left;
    background-color: gray;
}

#Bild1{
    width: 100%;
    height: 100%;
    grid-area: b1;
    background-color: darkgray;
    background-image: url("../Bilder/BergTopp.png");
    background-size: cover;
}

#Bild2{
    grid-area: b2;
    background-color: darkgray;
    background-image: url("../Bilder/Ryssbergetmodell.jpg");
    background-size: cover;
}

#Bild3{
    background-color: darkgray;
    background-image: url("../Bilder/PaddelHall.png");
    background-size: cover;
}

#Bild4{
    background-color: darkgray;
    background-image: url("../Bilder/TennisHall.png");
    background-size: cover;
}

#Bild5{
    background-color: darkgray;
    background-image: url("../Bilder/Pool.jpg");
    background-size: cover;
}

#Bild6{
    background-color: darkgray;
    background-image: url("../Bilder/Fotbollsplan.jpg");
    background-size: cover;
}

#Nav {
    text-align: center;
    grid-area: n;
    display: flex;
    line-height: 10vh;
    justify-content: space-around;
    background-color: gray;
}

#Nav2 {
    text-align: center;
    grid-area: n2;
    display: flex;
    line-height: 5vh;
    justify-content: space-around;
    background-color: gray;
}

#Nav3 {
    display: none;
}

#Nav4{
    display: none;
}

#gruppmedlem1{
    text-align: center;
    margin-top: 3%;
    grid-area: gm1;
    background-color: gray;
}

#gruppmedlem2{
    text-align: center;
    grid-area: gm2;
    background-color: gray;
}

#gruppmedlem3{
    text-align: center;
    grid-area: gm3;
    background-color: gray;
}

#gruppmedlem4{
    text-align: center;
    grid-area: gm4;
    background-color: gray;
}

#Paragraph1 {
    grid-area: p1;
    background-color: gray;
    margin-right: 15%;
    font-weight: 900;
    font-size: small;
    background-image: url("../Bilder/Sport3.jpg");
    background-size: cover;
}

#Paragraph2 {
    grid-area: p2;
    background-color: gray;
    margin-left: 10%;
    font-weight: 900;
    font-size: small;
    background-image: url("../Bilder/Sport1.jpg");
    background-size: cover;
}

#Paragraph3 {
    grid-area: p3;
    background-color: gray;
    margin-left: 10%;
    font-weight: 900;
    font-size: small;
    background-image: url("../Bilder/Sport2.jpg");
    background-size: cover;
}

@media only screen and (min-width:600px) {
   
    main{
        grid-gap: 3vw;
        grid-template-rows: 30% 20% 20% 20% 20%;
        grid-template-areas: "h h h h h"
                             "n p1 p1 . ."
                             "n . p2 p2 ."
                             "n p3 p3 . .";     
    }

    #main2{
        grid-template-columns: 1fr 1fr 1fr 1fr;;
        grid-template-rows: 20% 20% 25% 25%;
        grid-template-areas: "gm1 gm1 gm1 gm1"
                             "gm2 gm2 gm2 gm2"
                             "n3 gm3 gm3 gm3"
                             "n3 gm4 gm4 gm4";
    }

    #ib {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 33% 33% 33% 33%;
        grid-template-areas: "b1 i i i"
                             "b2 i i i"
                             "n4 b b b"
                             "n4 b b b";
    }

    #gruppmedlem1{
        margin-top: 0;
    }

    #Pages{
        display: flex;
    }

    #Pages2{
        display: none;
    }

    #Nav3 {
        grid-area: n3;
        display: flex;
        line-height: 10vh;
        justify-content: flex-start;
        flex-direction: column;
        padding-left: 5%;
        background-color: gray;
    }

    #Nav4{
        grid-area: n4;
        display: flex;
        line-height: 10vh;
        justify-content: flex-start;
        flex-direction: column;
        background-color: gray;
        padding-left: 5%;
    }

    #Nav{
        justify-content: flex-start;
        flex-direction: column;
        text-align: left;
        padding-left:5%;
    }

    header{
        display: none;
    }

    #PagesB{
        display: none;
        background-color: darkgray;
        font-size: smaller;
        line-height: 5vh;
    }

    #Close{   
        background-color: gray;
        width: 100%;
        text-align: center;
    }

    #introduktion{
        margin-bottom: 0;
        padding-right: 5%;
    }
    
    #bakgrund{
        margin-top: 0;
    }
    
    #Bild1{
        margin-top: 0;
    }
    
    #Bild2{
        margin-bottom: 0;
    }

#Paragraph1{
    width: 100%;
    margin-right: 0%;
}
#Paragraph2{
    margin-left: 0%;
    width: 100%;
}
#Paragraph3{
    width: 100%;
    margin-left: 0%;
}

#Header{
    line-height: 30vh;
    font-size: 3vh;
}

}

@media only screen and (min-width:1192px) {
    main{
        grid-gap: 3vw;
        grid-template-columns: 15% 1% 2fr 2fr 2fr 1%;
        grid-template-rows: 45% 20% 20% 20% 20%;
        grid-template-areas: "h h h h h h"
                             "n . p1 p2 p3 ."
                             "n . p1 p2 p3 ."
                             "n . p1 p2 p3 .";     
    }

    #main2{
        grid-template-columns: 15% 1fr 1fr 1fr;
    }
    
    #Pages{
        display: flex;
    }

    #Pages2{
        display: none;
    }

    #ib {
        grid-template-columns: 15% 1fr 1fr 1fr;
        grid-template-rows: 50% 50% 15%;
        grid-template-areas: "b1 i i i"
                             "n4 b b b2"
                             "n4 b b b2";
    }

    #Paragraph1{
        width: 100%;
        margin-right: 0%;
        margin-bottom: 5%;
        text-align: center;
    }
    #Paragraph2{
        margin-left: 0%;
        width: 100%;
        margin-bottom: 5%;
        text-align: center;
    }
    #Paragraph3{
        width: 100%;
        margin-left: 0%;
        margin-bottom: 5%;
        text-align: center;
    }

    #ChangeP{
        top: 24vh;
    }
    
    #ChangeP2{
        top: 24vh;
    }

    #Header{
        line-height: 50vh;
        background-size: 60vw;
        background-size: cover;
    }

    #Paragraph1 {
        font-size: larger;
    }
    
    #Paragraph2 {
        font-size: larger;
    }
    
    #Paragraph3 {
        font-size: larger;
    }

}