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


body {
    background-color: #000000;
}

body.animate-in {
    -webkit-animation: fadeIn .8s ease-in;
    animation: fadeIn .8s ease-in;
}


@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@font-face {
    font-family: 'Denigan';
    src: url("../denigan/Denigan.ttf");
}

header {
    margin: 0;
    padding: 20px 0;
    overflow: hidden;
    background-color: #000;
    position: fixed;
    top: 0;
    left:0;
    width: 100%;
    border-bottom: 1px solid #3c3c3c;  
}

.clear { 
    clear: both;
}

p {
    font-family: Lato, Helvetica, Arial,sans-serif; 
    font-size: 1em;
    font-weight: 300;
}


h1 {
    font-size: 40px;
    font-family: Alex Brush, sans-serif;
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
    float: left;
    margin-left: 2%;
}

h2 {
   font-family: Lato, Arial,sans-serif;
   font-size: 22px;
   letter-spacing: 1px;
   font-weight: 300;
   /*text-transform: capitalize;*/
}

h3 {
   font-family: Lato, Helvetica,Arial,sans-serif;
   font-weight: 400;
   font-size: 15px;
}

a {
    font-family: Lato, Helvetica, Arial,sans-serif; 
    font-size: 1.2em;
    font-weight: 300;
}


.flex_content {
    position: relative;
    width: 100%;
    height: auto;
    display: -webkit-flex; /* Safari */
    -webkit-justify-content: space-around; /* Safari 6.1+ */
    display: flex;
    justify-content: space-between;
    padding: 0; 
}

/*========= center content ==========*/

.center {
    width: 100%;
    height: 100vh; 
    color: #fff;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 2%;
    background-image: url(../images/nattehimmel.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.center .animate-in {
    -webkit-animation: fadeIn .8s ease-in;
    animation: fadeIn .8s ease-in;
}

.center_home {
    width: 100%;
    height: 100vh; 
    color: #000000;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 2%;
    background-image: url(../images/night_sky.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.center_home .animate-in {
    -webkit-animation: fadeIn .8s ease-in;
    animation: fadeIn .8s ease-in;
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*========= home ==========*/

.center_content_home {
    margin: 3% auto auto 10%;
    width: 78%;
    position: relative;
}

.center_content {
    margin: 10% auto auto 10%;
    width: 78%; 
}

.center_content h2 {
    margin-bottom: 2%;
}

.center_content_text {    
    width: 100%;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 5;  
}

.center_content_text p {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
    display: none;  
}

.center_content_text p:first-child {
    padding-top: 12%; 
}

.balloon {
  position: absolute;
  left: 0px;
  top: 0px;
  width: auto;
  z-index: 1;
  animation: flying 120s linear infinite;
}

figure.balloon img {
    width: 50%;
    height: 50%; 
}


.center_content_text p .animate-in {
    -webkit-animation: fadeIn .5s ease-in;
    animation: fadeIn .5s ease-in;
}

.animate-out {
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
    opacity: 0;
}

@keyframes flying {
  0%   {width: 10%; left:0px; top:0px;}
  100% {width: 50%; left:60%; top:0px;}
}

/*=========  mobile mobile mobile mobile ==========*/


@media only screen and (max-width: 700px) {

    @keyframes flying {
      0%   {width: 20%; left:0px; top:0px;}
      100% {width: 55%; left:60%; top:0px;}
    }
}


/*========= projekter og webdesigns ==========*/

h2.work_h2 {
    width: 72%;
    margin: 2% auto 1% auto;
    font-size: 1.2em;  
}
h2.work_h2 span {
    font-size: 0.65em;
    font-style: italic;
    margin-left: 1%;  
}

.center_content_work {
    padding: 1% 10%;
    margin: 1% auto 0 auto;
    border: 1px solid grey;
    border-radius: 5px;
    width: 72%;
    height: 75%;
    position: relative;
}


.vertical_align {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}



/*========= tablet tablet tablet tablet ==========*/


@media only screen and (max-width: 1000px) and (min-height: 200px) {    
    .center_content_work {
        padding: 1% 1%;
        margin: 1% auto 0 auto;
        border: none;
        border-radius: none;
        width: 98%;
        height: 90%;
        position: relative;
    }

    .vertical_align {
        position: relative;
        top: 3%;
        transform: translateY(0%);
    }

    h2.work_h2 {
        width: 98%;
        margin: 6% auto 2% auto; 
    }

}

/*========= tablet 700px ==========*/ 

@media only screen and (max-width: 700px) and (min-height: 800px) {    
  .vertical_align {
    position: relative;
    top: 3%;
    transform: translateY(0%);
  }
}

   



/*=========  mobile mobile mobile mobile ==========*/


@media only screen and (max-width: 700px) {

    .center {
        width: 100%;
        margin-right: 10px;
    }
    

    h2.work_h2 {
    width: 98%;
    margin: 6% auto 1% auto;   
    }

}


/*=========  mobile 500px ==========*/

@media only screen and (max-width: 500px) {

    a {
        font-size: 1em;
    }

    .center_content_text p {
        font-size: 1em;
        margin-right: 10px;
    }

    .center_content_work {
        height: auto;
        padding: 8% 1%;
        border: none;
        border-radius: none;
    }

    .center_content_work main.vertical_align {
        position: relative;
        top: 0;
        transform: translateY(0);  
        }
        
}


/*=========  mobile 360px ==========*/


@media only screen and (max-width: 360px) and (min-height: 580px) {

    .center {
        width: 90%;
        margin: auto;  
    }
}