#container{
    width: 792px;
    margin: auto;
}

/*----mainPageHeader----*/
#mainPageHeader{
    height: 4em; /*Flexible heigth on the header*/
    background-color: rgb(144, 117, 110);
}
#logo{
    font-family: 'Roboto Slab', serif;
    display: block;
    position: relative;
    font-size: 2em;
    padding: 0.5em;
    font-weight: bold;
    text-align: center;
} 
/*----end mainPageHeader----*/

/*----762gs----*/
.col{ /*For every column*/
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 30px;
    background-color: rgb(189, 182, 174);
}
.col-6 {
    width: 366px;
    height: 300px;
    float: left;
}
.col-8 {
    width: 488px;
    height: 300px;
    float: left;
}
.col-4{
    width: 244px;
    height: 300px;
    float: left;
}
.col-12 {
    width: 762px;
    height: 470px;
    float: left;
}
/*----end 762gs----*/
  
/*----mainContent----*/
h2, p{
    font-family: 'Roboto Slab', serif;
    display: block;
    position: relative;
    padding: 0.6em;
}
h2{
    font-size: 1.5em;
    text-align: center;
    line-height: 1.2; /*Space between lines*/
}
p{
    line-height: 1.5; /*Space between lines in p*/
    padding-left: 1em;
}
/*Responsive design: Landscape-images*/
.img-responsive-w{
    width: 100%;
    max-height: auto;
}
/*Responsive design: Portrait-images*/
.img-responsive-h{
    height: 100%;
    float: right; /*Images to the right, with text on the left*/
    margin-bottom: 0.5em; /*Space between img og p in Smart Phone*/
}
/*--img in subpages--*/
.img-subpage{
    width: 100%;
    height: auto;
    float: right;
    margin-bottom: 0.3em;
    margin-top: 0.5em; 
}

/*----Buttons----*/
/*"Read more"-button in article 5*/
#readMoreBtn{
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(0, 0, 0);
    padding: 0.2em;
    margin-right: 1em;
}
/*"Back to main page"-button and test-btn in subpage 1*/
#backBtn, .test-btn{
    position: relative;
    display: block;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 30px;
}
/*Buttons in subpage 1*/
.test-btn{
    text-align: center;
    padding: 0.7em;
    background-color: rgb(200, 200, 200);
    border: 2px solid rgb(100, 100, 100);
}
/*----end Buttons----*/

/*----Navigation bar in subpage 2----*/       
#mainList{
    margin-top: 100px;
    margin-left: 50px;
}
li{
    font-family: 'Roboto Slab', serif;
    width: 110px;
    position: relative;
}        
ul ul{ /*Lists*/
    position: absolute;
    left: 95%;
    top: 0px;
    display: none;
}
#mainList a{
    width: 100px;
    background-color: rgb(144, 117, 110);
    border-bottom: 1px solid rgb(076, 061, 064);
    border-right: 1px solid rgb(076, 061, 064);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    padding: 20px 0px;
}
li:hover ul{
    display: block;
}
#mainList ul a{ /*The lists have a new color*/
    background-color: rgb(200, 200, 200);
}
/*--end Navigation bar in subpage 2--*/ 
/*----end mainContent----*/

/*------Step: Tablet------*/
@media screen and (min-width: 800px){
          
    /*h2- and p-wrap: placing text on the left side of the image (in article 3 and 5)*/
    .h2-wrap, .p-wrap{
        color: rgb(30, 30, 30);/*Better than black*/
        width: 280px;
        float: left;
    }
    /*h2 and p whit diffrent height*/
    .h2-wrap{
        height: 50px;
    }
    .p-wrap{
        height: 200px;
    }
    /*"Read more"-button in article 5*/
    #readMoreBtn{
        float: right;
    }
    /*h2-wrap in subpage 1 and 2*/
    .h2-wrap-subpage{
        width: 412px;
        height: 50px;
        float: left;
    }
    /*p-wrap in subpage 1 and 2*/
    .p-wrap-subpage {
        width: 412px;
        height: 330px;/*370px;*/
        float: left;
    }
    /*img-wrap in subpage 1 and 2*/
    .img-wrap-subpage{
        width: 330px;
        height: 470px;
        float: right;
        margin-right: 0.5em;
    }
    /*Button-wrap in subpage 1*/
    #testBtnWrap{
        width: 412px;
        height: 90px;
        margin-left: 2em;
    }
    /*Button-size in subpage 1*/
    .test-btn{
        width: 50px;
        height: 35px;
        float: left;
    }
    #readMoreBtn:hover{ /*"Read more"-button in article*/
        -webkit-transform: scale(1.2); /*Button gets bigger*/
    }
}
/*------end Step: Tablet------*/
        
/*------Step: Smart Phones------*/
@media screen and (max-width: 800px){
           
    #container{
        width: auto;
    }
    /*For every columns*/
    .col-4, .col-6, .col-8, .col-12{
        background-color: rgb(076, 061, 064);
        width: auto;
        height: auto;
        float: none;
    }
    #logo{
        font-size: 3vmax; /*Viewport, max*/
        padding: 1em;
        color: rgb(076, 061, 064); /*New color*/
    }
    h2{
        font-size: 3vmax;
        color: rgb(144, 117, 110); /*New color*/
    }
    p{
        color: rgb(144, 117, 110); /*New color*/
    }
    p:hover{ /*Text will change to white*/
        color: rgb(255, 255, 255);
        -webkit-transition: 1s 2s; /*Lasts in 1 sec, starts in 2 sec*/
    }
    /*Responsive design: Portrait-images*/
    .img-responsive-h{
        width: 100%;
    }
    /*Links to subpage 1 and 2*/
    #linkSubpage1, #linkSubpage2{
        text-decoration: none;
    }
    /*Read more-button*/
    #readMoreBtn{
        width: 60px;
    }
    /*--Navigation bar in subpage 2--*/
    #mainList{
        position: relative;
        padding: 0px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    ul ul{
        position: relative;
        left: 95%;
        top: -40px;
        display: none;
    }
    li:hover ul{
        display: block;
    }
    /*--end Navigation bar in subpage 2--*/
}
/*------end Step: Smart Phones------*/

/*------Transitions and styling by selectors------*/
#linkSubpage1, #linkSubpage2, a:visited{ /*Links to subpages*/
    color: rgb(0, 0, 0);
}
.col-6:hover{ /*1/2: Fade to new color..*/
    background-color: rgb(100, 100, 100);
    -webkit-transition: 2s 0s; /*Lasts in 2 sec, starts in 0 sec*/
}
.col-6{ /*2/2: ..and fade back to normal*/
    -webkit-transition: 2s 0s;
}

/*--Transition in subpag 1 and 2--*/
.col-12:hover{ /*1/2: Change color..*/
	background-color: rgb(189, 182, 174);
	-webkit-transition: 1s 0s;
}
.col-12{ /*2/2: ..and fade back to normal*/
    -webkit-transition: 1s 0s;
}
.img-subpage:hover{ /*1/2: Opacity..*/
    opacity: 0.2;
	-webkit-transition: 6s 0s;
}
.img-subpage{ /*2/2 ..and fade back to normal*/
    opacity: 1;
	-webkit-transition: all 1s 0s;
}
.img-subpage:active{
    width: 50%; /*img will shrimp to 50%*/
}

/*--"Test"-buttons in subpage 1--*/
#holdInBtn, #holdOverBtn, #clickBtn:hover{
    cursor: pointer; /*Shows a hand*/
}
#holdInBtn:active{
    background-color: rgb(238, 130, 238);
}
#holdInBtn:active + #holdOverBtn{ /*Hold down "holdInBtn, the "holdOverBtn will change"*/
    background-color: rgb(255, 255, 0);
    -webkit-transition: 2s 0s;
    -webkit-transform: scale(0.8);
}
#holdOverBtn:hover + #clickBtn{
    border: 2px dotted rgb(255, 255, 0);
    color: rgb(238, 130, 138);
    background-color: rgb(25, 25, 112);
}
#clickBtn:active{
    font-weight: bold;
    -webkit-transform: scale(0.8);
    background-color: rgb(0, 128, 128);
    /*-webkit-transform: rotateZ(-10deg);*/
}
/*--end "Test"-buttons in subpage 1--*/

/*----Color effects on the "Color"-list in subpage 2----*/
/*#1 "Fargar"*/
#liRed:hover{
    background-color: rgb(220, 20, 60);
}
#liOrange:hover{
    background-color: rgb(255, 127, 80);
}
#liGreen:hover{
    background-color: rgb(0, 128, 0);
}
/*#2 "Bær"*/
#liBlueberry:hover{
    background-color: rgb(0, 0, 205);
    color: rgb(200, 200, 200);
}
#liMulte:hover{
    background-color: rgb(255, 127, 80);
}
#liBerries:hover{
    background-color: rgb(25, 25, 112);
    color: rgb(200, 200, 200);
}
/*#3*/
#liMoose:hover{
    background-color: rgb(139, 69, 19);
}
#liFox:hover{
    background-color: rgb(255, 140, 0);
}
#liDeer:hover{
    background-color: rgb(184, 134, 11);
}
/*----end Color effects on the "Color"-list in subpage 2----*/
/*--end Transition in subpages--*/
/*------end Transitions and styling by selectors------*/