body,html{
    margin:0px;
    height:100%;
    font-family:Arial;
    background-color:#e2e2e2;
}

header{
    height:100%;
    background-size:cover;
    background-position: center;
    overflow:hidden;
}

header img{
    width:100%;
    min-width:100%;
    min-height:100%;   
}

#head_title{
    position:absolute;
    color:#e2e2e2;
    top:15%;
    left:10%;
    width:80%;
}

header h1{
    font-size:6em;
    margin-bottom:0px;
}

header h2{
    font-size:2em;
    margin:0px;
    margin-left:6%;
}


#scroll{
    position:absolute;
    top:60%;
    left:20%;
    width:60%;
    text-align:center;
}

#scroll img, #scrolltop{
    height:50px;
    cursor:pointer;
}

#scrolltop{
    position:fixed;
    bottom:100px;
    right:30px;
    opacity:0;
}

#scroll:hover{
  -webkit-animation: bounce .3s infinite alternate;
  -o-animation: bounce .3s infinite alternate;
  -moz-animation: bounce .3s infinite alternate;
  animation: bounce .3s infinite alternate;
}
@-webkit-keyframes bounce {
  to { transform: scale(1.1); }
}
@-o-keyframes bounce {
  to { transform: scale(1.1); }
}
@-moz-keyframes bounce {
  to { transform: scale(1.1); }
}
@keyframes bounce {
  to { transform: scale(1.1); }
}

nav{
    position: absolute;
    height:70px;
    width:100%;
    bottom:0px;
    background-color: rgba(0, 0, 0, 0.8);
    text-align:center;
    z-index: 10;
}

nav h1{
    display:inline-block;
    color:white;
    width:150px;
    font-size:30px;
    margin:0px;
    padding-right:30px;
}

nav h1 span{
    color:#DE0702;   
}

nav ul{
    margin:0px;
    padding:0px;
    display:inline-block;
}

nav li{
    list-style-type: none;
    display:inline-block;
}

nav li a{
    text-decoration:none;
    display:inline-block;
    color:white;
    font-size:18px;
    padding-top:25px;
    padding-left:30px;
    padding-right:30px;
    height:45px;
}

#activate, nav li:hover{
    background-color:#1B3260;
}

#page{
    background-color:#fff;
    min-height:80%;   
    width:880px;
    margin:auto;
    border: solid 1px #f9f9f9;
    margin-bottom:2%;
    padding : 40px;
    color:#333b43;
    line-height: 140%;
}

#page h3{
    margin-top:0px;
    margin-bottom:10px;
    font-size:1em;
}

#photo{
    float:left;
    margin-right:20px;
}

footer{
    background-color:black;
    color:white;
    padding:10px;
    padding-bottom:20px;
}


/* Page */

.item{
    border-top: 1px solid #BDBDBD;
    padding-top: 20px;
    padding-bottom: 20px;
    min-height:200px;
    font-size:1em; 
    position: relative;
}

.item h4{
    font-size:1.5em;
    margin-top:10px;
    margin-bottom:20px;
    display: inline;
}

.item .tag{
    float: right;
    background-color: #eee;
    margin-left: 5px;
    font-size: 0.8em;
    font-weight: bold;
    padding: 4px;
    line-height: 0.8em;
    border-radius: 5px;
    color: #6B6B6B;
}

.itemimg{
    float: left;
    height: 200px;
    border: 1px solid #BDBDBD;
    margin-right: 20px;
}

.popup-gallery img{
    margin-top: 5px;
    margin-left: 2px;
    border: 1px solid #BDBDBD;
}

.white-popup {
  position: relative;
  background: #FFF;
  padding: 20px;
  width: auto;
  max-width: 500px;
  margin: 20px auto;
}

.myButton {
    -moz-box-shadow:inset 0px 1px 0px 0px #97c4fe;
    -webkit-box-shadow:inset 0px 1px 0px 0px #97c4fe;
    box-shadow:inset 0px 1px 0px 0px #97c4fe;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #3d94f6), color-stop(1, #1e62d0));
    background:-moz-linear-gradient(top, #3d94f6 5%, #1e62d0 100%);
    background:-webkit-linear-gradient(top, #3d94f6 5%, #1e62d0 100%);
    background:-o-linear-gradient(top, #3d94f6 5%, #1e62d0 100%);
    background:-ms-linear-gradient(top, #3d94f6 5%, #1e62d0 100%);
    background:linear-gradient(to bottom, #3d94f6 5%, #1e62d0 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#3d94f6', endColorstr='#1e62d0',GradientType=0);
    background-color:#3d94f6;
    -moz-border-radius:6px;
    -webkit-border-radius:6px;
    border-radius:6px;
    border:1px solid #337fed;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:12px;
    font-weight:bold;
    padding:2px 6px;
    text-decoration:none;
    text-shadow:0px 1px 0px #1570cd;
    position: absolute;
    right: 0px;
    bottom: 20px;
}
.myButton:hover {
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #1e62d0), color-stop(1, #3d94f6));
    background:-moz-linear-gradient(top, #1e62d0 5%, #3d94f6 100%);
    background:-webkit-linear-gradient(top, #1e62d0 5%, #3d94f6 100%);
    background:-o-linear-gradient(top, #1e62d0 5%, #3d94f6 100%);
    background:-ms-linear-gradient(top, #1e62d0 5%, #3d94f6 100%);
    background:linear-gradient(to bottom, #1e62d0 5%, #3d94f6 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#1e62d0', endColorstr='#3d94f6',GradientType=0);
    background-color:#1e62d0;
}
.myButton:active {
    position:absolute;
    bottom:21px;
}

#show_mobile_menu{
    display: none;
}



@media (max-width: 1000px) {

    header h1{
        font-size:2em;
        margin-bottom:0px;
    }

    header h2{
        font-size:0.75em;
        margin:0px;
        margin-left:6%;
    } 

    nav{
        padding-top: 0.5em;
        height: initial;
        text-align: left;
    }

    nav h1{
        font-size: 2em;
        width: inherit;
        padding: 0px;
        display: inline;
        padding-left:5%;
    }

    nav li{
       display: none;
    }
    nav ul{
        padding-top:1em;
        width: 100%;
    }

    .mobilemenu li{
        display: block;
    }

    .mobilemenu a{
        padding-left:10%;
        width: 100%;
    }

    #page{
        width: 85%;
        padding: 5%;
    }

    .itemimg{
        margin-top:1em;
        min-height: initial;
        height: initial;
        width: 50%;
    }

    #scrolltop{
        display: none;
    }

    #show_mobile_menu{
        display: inline-block;
        margin-right: 0.5em;
    }

    #show_mobile_menu div{
        margin-top:0.15em;
        height:0.12em;
        width: 0.8em;
        background-color: #fff;
        transition: 0.4s;
    }

        /* Rotate first bar */
    .change .bar1 {
        -webkit-transform: rotate(-45deg) translate(0em, 0em) ;
        transform: rotate(-45deg) translate(-0.2em, 0.18em) ;
    }

    /* Fade out the second bar */
    .change .bar2 {
        opacity: 0;
    }

    /* Rotate last bar */
    .change .bar3 {
        -webkit-transform: rotate(45deg) translate(0em, 0em) ;
        transform: rotate(45deg) translate(-0.2em, -0.18em) ;
    }

}

#cv{
    width:100%;
}