/*
Overskrifter er:    font-family: 'Raleway', sans-serif;
Afsnit er:          font-family: 'Montserrat', sans-serif;
Farvekoder er:

            logoblaa        #336699
            navbaggrund     #24232f
            hoverlinks      #
            tekstfarve      #
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f1f1f1;
}


h1, h2, h3, h4{
    color: #333;
    font-family: 'Raleway';
    
}

p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}


li, a, button {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: #ecf0f1;
    text-decoration: none;
    list-style: none;
}

button {
    background-color: rgba(33, 138, 132, 1);
    border: none;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    display: inline-block;
    margin: 4px 2px;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;    
}

/******* Nav bar ************/ 

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    background-color: #2e3e49;
    height: 100px;
}

.logo {
    max-height: 50px;
    cursor: pointer;
}

.nav_links {
    display: flex;
    flex-direction: row;
    list-style: none;
    font-size: 1.2em;
    white-space: nowrap;
}

.nav_links li {
    display: inline-block;
    padding: 0px 10px;
    font-size: 0.8em;
}

.nav_links li a {
    transition: all 0.3s ease 0s;
}

.nav_links li a:hover {
    color: #93a0ad;
}

li.dropdown {
    display: inline-block;
  }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }

  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }

.dropdown:hover .dropdown-content {
    display: block;
  }

/******* Panel top ************/


.paneltop {
    background-image: url(/img/js-code.png);
    background-color: #ecf0f1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;
    height: 200px;
}

.center-txt {
    font-family: "Raleway";
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1.5;
    color: #2e2e2e;
    text-align: center;
}

.center-txt p {
    margin-top: 1em;
}

@media (min-width: 768px) {
    
    .nav_links li {
        font-size: 1em;
        padding: 0px 20px;
    }

    .paneltop {
        height: 400px;
    }
    .center-txt {
        font-size: 1.2em;
    }
}

/******* Første grid *******/ 

.mgridcontainer {
    background-color: #f1f1f1;
    display: grid;
    grid-template-areas: 
    "title"
    "htmlcss"
    "javascript"
    "prototype"
    ;
}

.title {
    grid-area: title;
    background-color: #136c83;
    padding: 2em;
    position: relative;
    height: 13em;

}

@media screen and (max-width: 400px) {
    .panelmargin {
        margin-bottom: 1em;
    }
    
    .title {
        margin-bottom: 1em;
    }
  .paneltop { 
  height: 400px;}
}

.boks-overskrift {
    background-color: rgba(241,241,241, 1);
    font-weight: 400;
    line-height: 1.5;
    font-size: 1.2em;
    text-align: center;
    color: #2e2e2e;
    padding: 8px 0;
    margin: 0 2em;
    border-radius: .4em;
    position: relative;
    top: 20%;
    height: auto;
}

.cta-hd {   
    text-align: center;
    line-height: 1.5;
    color: white;
    text-transform: uppercase;
    font-weight: 400;
}

.kontakt-btn {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*font-variant: small-caps;*/
}

.kontakt-btn:hover {
    background-color: #2e3e49;
}

.htmlcss {
    grid-area: htmlcss;
    background-image: url(/img/portfolio1.jpeg);
}

.javascript {
    grid-area: javascript;
    background-image: url(/img/prototype.jpeg);
}

.prototype {
    grid-area: prototype;
    background-image: url(/img/js-code.png);
}

.htmlcss, .javascript, .prototype {
    margin-bottom: 1em;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 300px;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .mgridcontainer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: 
        "htmlcss javascript prototype"
        "title title title"
        ;
    }

    .htmlcss, .javascript, .prototype {
        margin: 20px;
    }

    .kontakt-btn {
        top: 60%;
    }
}

.case-btn {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

button:hover, button:focus {
	background-color: #2e3e49;
	text-decoration: none;
}

.introduktion {
    margin: 2em;
    padding: 2em;
    background-color: white;
    opacity: .9;
}

.introduktion h2 {
    margin-bottom: 1em;
}

.introduktion a {
    color: #336699;
}

@media screen and (max-width: 400px) {
  .introduktion {
  	margin: .1em;
  }
  .artikelafsnit {
  	padding: .1em;}
}

/*********  Footer   *********/

.footergrid {
    background-color: #2e2e2e;
    padding: 2em;
    display: flex;
    flex-direction: row;
    justify-content: space-around;

}
.footergrid li {
    font-size: 1em;
    line-height: 1.6;
    padding-right: 0 1em;
}

.footergrid h3 {
    margin-bottom: 1em;
    color: #ecf0f1;
}


.col-2 {
    display: none;
}

@media screen and (min-width: 760px) {
    
    .footergrid {
        justify-content: space-around;
    }
    
    
    .col-2 {
        display: inline-block;
    }
}


/************* Undersider - cases *************/

article {
    background-color: white;
    margin-bottom: 3em;
}


.artikelgrid {
    padding: 2em;
    display: grid;
    grid-template-areas: 
    "kol2"
    "artikel"
    "metoder";
}

.afsnitgrid {
    grid-area: artikel;
    padding: 0 1em;
}

.kolonne2 {
    grid-area: kol2;
}

.metoder {
    display: none;
}

.artikelfoto {
    width: 100%;
    height: auto;
    border-radius: 50%;
    padding: 10%;
    opacity: .8;
}

.artikeloverskrift {
    padding: 15px 0;
}

.artikelafsnit {    
    margin: 10px 0;
}

.art-img {
    width: 100%;
    height: auto;
    border-radius: .5em;
    margin-bottom: 1em;
}

.video {
    padding-bottom: 2em;
    width: 100%;
    height: 300px;
}

.storm {
    background-image: url(/img/prototype.jpeg);
}

.eksternlink {
    color: #333;
    text-decoration-line: underline;
}

@media screen and (min-width: 760px) {
    .artikelgrid {
        margin: 3em;
        padding: 1em 0;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "artikel kol2";
    }

    .afsnitgrid {
        margin-right: 1em;
    }

    .artikelafsnit {
        padding-bottom: 10px;
    }

    .artikelfoto {
        width: 80%;
        position: relative;
        left: 10%;
    }

    .video {
        padding-bottom: 2em;
        width: 100%;
        height: 380px;
    }

    .metoder {
        display: inline-block;
        padding: 1em;
    }
}


/************* Undersider - om mig *************/

.ommigknap {
 text-align: center;
 margin: 2em 0;  
}


.imagetxt {
    line-height: 1.5;
    font-weight: 400;
}

.twofrgrid {
    grid-area: todele;
}

.onefrgrid {
    grid: endel;
    padding: 2em;
}

.onefrgrid img {
    border-radius: 50%;
}

.miggrid {
    margin: 2em;
    display: grid;
    background-color: white;
    padding: 0 1em;
    grid-template-areas: 
    "endel"
    "todele";
}

.miggrid h2, h3 {
    color: #336699;
}


@media screen and (min-width: 768px) {
    .miggrid {
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
    "todele endel";
    padding-top: 2em;
}

}

/***** Ikongrid - om mig ****/

.ikonoverskrift {
    grid-area: titel;
    padding: 2em 0;
    justify-self: center;
}

.firsticon {
    grid-area: icon1;
}

.secondicon {
    grid-area: icon2;
}

.thirdicon {
    grid-area: icon3;
}

.fourticon {
    grid-area: icon4;
}

.icongrid {
    margin: 2em;
    background-color: white;
    padding: 1em 2em;
    display: grid;
    grid-template-areas: 
    "titel"
    "icon1"
    "icon2"
    "icon3"
    "icon4";
}

.icongrid h3 {
    color: #336699;
    margin: 1em 0;
}

.icongrid p {
    margin-bottom: 2em;
}

.icongrid img {
    width: 150px;
    height: 150px;
}

@media screen and (min-width: 768px) {
    .icongrid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas: 
        "titel titel titel titel"
        "icon1 icon2 icon3 icon4";
        grid-column-gap: 20px;
    }

    .ikonoverskrift {
        font-size: 1.3em;
    }
}