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

main {
    display: grid;
    background-color: #525559;
    grid-template-columns: 100%;
    grid-template-rows: 0.25fr 40px 0.5fr 0.5fr 0.5fr 40px 0.25fr 40px 0.5fr 40px 1fr 0.5fr 1fr 40px 0.25fr;
    grid-template-areas: "header"
        "."
        "vilka"
        "varfor"
        "bakgrund"
        ". "
        "bild"
        "."
        "problem"
        "."
        "losning"
        "cad"
        "discuss"
        "."
        "foot";
}

p {
    font-family: "Raleway", sans-serif;
    height: auto;
}

#losning>p {
    height: auto;
}

#diskussion>p {
    height: auto;
}

h1 {
    font-size: 170%;
    background-color: rgba(0, 0, 0, .7);
    padding: 1%;
    border: 1px solid black;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    color: white;
    text-align: center;
}

h2 {
    font-family: 'Raleway', sans-serif;
    
}

.storTitel {
    font-size: 200%;
}

header {
    grid-area: header;
    width: 100%;
    height: 15vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-bottom: groove white 2px;
    background-color: black;

}

nav {
    position: fixed;
    top: 0;
    padding: 1px;
    width: 100%;
    background-color: transparent;
    text-align: left;
    z-index: 2;
}

#slides {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-area: bildSpel;
}

#bild {
    width: 200px;
    height: 100%;
}

#cadHolder{
    grid-area: cad;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cad {
    width: 90%;
    height: auto ;
    border: black solid 2px;
}

#sidoNav {
    position: fixed;
    width: 0;
    top: 0;
    left: 0;
    height: 100%;
    color: rgba(0, 0, 0, 0);
    padding-top: 10%;
    transition: 0.5s;
    background-color: rgb(50, 50, 50);
    z-index: 1;
    margin-left: -200px;
}

#sidoNav>a {
    display: block;
    width: 100%;
    left: 0;
    color: gray;
    text-decoration: none;
    background-color: transparent;
    padding: 8px 8px 8px 32px;
    font-size: 25px;

}
#omOss>img{
    width: 100%;
} 
nav>img {
    height: 60px;
    width: 50px;
    cursor: pointer;
}

section {
    background-color: #D9D9D9;
    border: groove #30669F 10px;
    color: black;
    width: 100%;
    height: 100%;
}

#omOss {
    grid-area: vilka;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 29px 0.5fr 1fr;
    grid-template-areas: "oss"
        "textOss"
        "bildOss";
    ;

}

#omOss>picture>img {
    justify-self: center;
    grid-area: bildOss;
    width: 100%;
    height: auto;
}

#omOss>p {
    grid-area: textOss;
    width: 100%;
}

#omOss>h2 {
    grid-area: oss;
}

#varforOver {
    grid-area: varfor;

}

#bakgrund {
    grid-area: bakgrund;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 0.5fr 0.5fr;
    grid-template-areas: "bak"
        "info"
        "leden";
}

picture {
    display: flex;
    flex-direction: row;
}

#Leden {
    grid-area: leden;
}

#bakgrundTitel {
    grid-area: bak;
}

#bakgrund>p {
    grid-area: info;
    height: auto;
}

#bildSpel {
    position: relative;
    grid-area: bild;
    background-color: gray;
    border: black dashed 2px;
    color: white;
    text-align: center;
    font-size: 120%;
    width: 100%;
    border: white solid;
    display: grid;
    grid-template-columns: 0.2fr 1fr 0.2fr;
    grid-template-rows: 60px 200px 25px;
    grid-template-areas: "pilRight h2 pilLeft"
        "pilRight bildSpel pilLeft"
        "pilRight bildText pilLeft";
}

#Leden>img {
    width: 100%;
    height: auto;
    border: double #30698C 5px;
    position: relative;
}

#Leden {
    justify-content: center;
    align-content: center;

}

#bildSpel>img {
    width: 70%;
    height: auto;
}

#modell {
    grid-area: h2;
    text-align: center;
    width: 100%;
}

#nummerText {
    position: absolute;
    top: 4px;
    left: 4px;
}

.prev,
.next {
    height: 70px;
    width: auto;
    top: 50%;
    position: absolute;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.3);
}

.prev {
    border-radius: 0 3px 3px 0;
    left: 0;
    grid-area: pilRight;

}

.next {
    border-radius: 3px 0 0 3px;
    right: 0;
    grid-area: pilLeft;
}

.text {
    grid-area: bildText;
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: relative;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transition: 0.2s;
}

#problem {
    grid-area: problem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 40px 90px 1fr;
    grid-template-areas: "titelProblem titelProblem titelProblem"
        "stycke stycke stycke"
        "vatten overVag paPark";
}

#problem>p {
    grid-area: stycke;
}

#titelProblem {
    grid-area: titelProblem;
}

.fraga {
    justify-self: center;
    font-size: 100%;
    width: 90%;
    height: 70%;
    border: #30698C dashed 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(0, 100, 255, 0.1);
}

#vatten {
    grid-area: vatten;
}

#överVäg {
    grid-area: overVag;
}

#påPark {
    grid-area: paPark;
}

#losning {
    grid-area: losning;
}

#diskussion {
    grid-area: discuss;
}

footer {
    grid-area: foot;
    background-color: #30698C;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 4fr 1fr;
    grid-template-areas: "insta facebook youtube twitter"
        "namn namn namn namn";
    align-items: center;
    justify-items: center;

}

footer>a {
    width: 50px;
    height: 50px;
    align-items: center;
}

a>img {
    width: 50px;
    text-align: center;
}

section>img {
    width: 50%;
}

#Skapare {
    grid-area: namn;
    justify-self: right;
    padding-right: 5px;
    color: white;
}

#instagram {
    grid-area: instagram;
}

#facebook {
    grid-area: facebook;
}

#youtube {
    grid-area: youtube;
}

#twitter {
    grid-area: twitter;
}





@media only screen and (min-width: 600px) {
    header {
        font-size: 200%;
        height: 50vh;
        background-image: url("../bilder/bakgrundbildPadda.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        color: black;
        border-bottom: groove white 2px;
    }

    #bild {
        width: 400px;
        height: auto;
    }

    #bildSpel {
        text-align: center;
        width: 95%;
        margin-left: 2.5%;
        grid-template-columns: 50px 1fr 50px;
        grid-template-rows: 60px 85% 2.5%;
    }

    main {
        display: grid;
        background-color: #525559;
        grid-template-columns: 100%;
        grid-template-rows: 0.25fr 40px 1fr 1fr 1fr 40px 0.5fr 40px 0.5fr 40px 1fr 0.5fr 1fr 40px 0.25fr;
        grid-template-areas: "header"
            "."
            "vilka"
            "varfor"
            "bakgrund"
            ". "
            "bild"
            "."
            "problem"
            "."
            "losning"
            "cad"
            "discuss"
            "."
            "foot";
    }

    #problem {
        grid-area: problem;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 70px 50px 2fr;
        grid-template-areas: "titelProblem titelProblem titelProblem"
            "stycke stycke stycke"
            "vatten overVag paPark";
    }

    .fraga {
        font-size: 200%;
        width: 90%;
        height: 70%;
        border: #30698C dashed 2px;
        display: flex;
        flex-direction: row;
        align-self: center;
        justify-content: center;
        text-align: center;
        background-color: rgba(0, 100, 255, 0.1);
    }

    #bakgrund {
        grid-template-columns: 1fr;
        grid-template-rows: 50px 2fr;
        grid-template-areas: "bak leden"
            "info leden";
    }
}

@media only screen and (min-width: 769px) {
    h1 {
        font-size: 200%;
        background-color: rgba(0, 0, 0, .7);
        padding: 1%;
        border: 1px solid black;
        border-radius: 10px;
        font-family: 'Raleway', sans-serif;
        color: white;
    }

    main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 40px 0.5fr 40px 0.5fr 40px 1fr 40px 0.5fr 40px 0.5fr 0.2fr 0.5fr 40px 0.2fr;
        grid-template-areas: "header header"
            ". ."
            "vilka varfor"
            ". ."
            "bakgrund bakgrund"
            ". ."
            "bild bild"
            ". ."
            "problem problem"
            ". ."
            "losning cad"
            ". ."
            "discuss discuss"
            ". ."
            "foot foot";
    }

    header {
        height: 100vh;
        background-image: url("../bilder/bakgrundbild.jpeg");
        background-repeat: no-repeat;
        background-size: cover;
        color: black;
        border-bottom: groove white 2px;

    }

    #bildSpel {
        text-align: center;
        width: 95%;
        margin-left: 2.5%;
        grid-template-columns: 50px 1fr 50px;
    }

    #bakgrund {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 50px 2fr;
        grid-template-areas: "bak leden"
            "info leden";
    }


    #problem {
        grid-area: problem;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 40px 50px 2fr;
        grid-template-areas: "titelProblem titelProblem titelProblem"
            "stycke stycke stycke"
            "vatten overVag paPark";
    }

}