* {box-sizing: border-box}

html, body {
  margin: 0;
  height: 100%; /* can also use viewport units (height: 100vh) */
  font-family: Helvetica, Arial, Verdana, sans-serif;
  font-size: 100%;
}

body {
  overflow: hidden;
}

p {
  font-size: 0.81rem;
  font-style: normal;
  line-height: 30px;
  font-weight: normal;
  font-variant: normal;
}

h2 {
  color: #666666;
}

h3 {
  line-height: 12px;
  color: #666666;
  font-style: oblique;
  font-variant: normal;
}

h5 {
  font-size: 0.84rem;
  line-height: 3px;
  letter-spacing: 0.5px;
  color: #006699;
  font-variant: normal;
}

hr {
  color: #006699;
  font-variant: normal;
}

#container {
  display: -webkit-flex;
  display: flex; /* displays flex-items (children) inline */
  -webkit-flex-direction: column;
  flex-direction: column; /* stacks them vertically */
  height: 100%; /* needs to take the parents height, alternative: body {display: flex} */
}

main {
  -webkit-flex: 1;
  flex: 1; /* takes the remaining height of the "container" div */
  overflow: auto; /* to scroll just the "main" div */
  background-color:#ffffcc;
}

aside {
  height: 100%; /* takes the visible area of the "main" div */
  overflow: auto; /* recommended */
  color: #333333;
  padding: 54px 18px;
  background-color: #ffffcc;
}

section {
  height: 100%; /* takes the visible area of the "main" div */  
  overflow: auto; /* recommended */
  color: #333333;
  padding: 54px 18px;
  background-color: #ffffcc;
}

.logo-container {
  display: -webkit-flex;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

header {
  border-style: solid;
  border-width: 0 0 6px 0;
  border-color: #f1f1f1;
  padding: 18px;
  background-color: #cccc99;
}

nav {
  border-style: solid;
  border-width: 0 0 6px 0;
  border-color: #f1f1f1;
  background-color: #336666;
}

aside:last-child {border: none}
section:last-child {border: none}

footer {
  padding: 4px 6px 3px 12px;
  border-style: solid;
  border-width: 6px 0 0 0;
  border-color: #f1f1f1;
  background-color: #006699;
  color: #ffffcc;
  z-index: 2;
}

.opennav {
  padding: 3px 9px;
  color: #f1f1f1;
  cursor:pointer;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 71.4px;
  left: 0;
  background-color: #996699;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 9px 9px 9px 18px;
  text-decoration: none;
  font-size: 18px;
  color: #d1d1d1;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 18px;
  font-size: 24px;
  margin-left: 51px;
}

.sidenav a.lang {
  position: absolute;
  bottom: 156px;
  font-size: 15px;
}

#main {
  transition: margin-left .5s;
  padding: 18px;
}

@media screen and (max-height: 450px) {
  .sidenav {
    top: 0;
    left: 0;
    padding-top: 15px;
    overflow-y: auto;
  }

  .sidenav a {
    font-size: 15px;
  }

  .sidenav a.lang {
    bottom: 120px;
    font-size: 13.5px;
  }
}

img {
  display: block;
  height: auto;
}

img.logo {
  width: 100%;
  padding: 0 12px;
}

img.logotop {
  margin: 0;
  max-width: 100%;
}

img.portfolio {
  padding: 45px 0 150px;
  margin-left: auto;
  margin-right: auto;
  vertical-align: middle;
}

video {
  max-width: 100%;
  height: auto;
}

#logotype {
  color: #006699;
  letter-spacing: 3px;
}

#copy {
  font-size: 0.6rem;
  line-height: 15px;
  overflow: hidden;
}

#email {
  color: #006699;
  text-decoration: none;
}

.mySlides {
  display: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #ffffff;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 6px;
  margin-top: -12px;
  color: #999999;
  font-weight: bold;
  font-size: 0.8rem;
  transition: 0.6s ease;
  border-radius: 0 2px 2px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background-color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: #999999;
  color: #f1f1f1;
}

/* Caption text */
.caption {
  color: #666666;
  font-size: 0.8rem;
  line-height: 27px;
  padding: 9px 12px;
  position: absolute;
  bottom: 0;*
  width: 100%;
  text-align: left;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #666666;
  font-size: 0.61rem;
  padding: 6px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  margin: 0 1.5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@media screen and (min-width: 813px) {
  main {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  aside {
    -webkit-flex: 1 30%;
    flex: 1 30%;
    height: auto;
  }

  section {
    -webkit-flex: 1 70%;
    flex: 1 70%;
    height: auto;
    padding: 60px;
  }

  img.logo {
    padding: 0 180px;
  }

  .prev, .next {
    padding: 12px;
    margin-top: -21px;
    font-size: 0.90rem;
    border-radius: 0 3px 3px 0;
  }

  .caption {
    font-size: 0.90rem;
    line-height: 30px;
    padding: 30px 30px 18px;
  }

  .numbertext {
    font-size: 0.69rem;
    padding: 21px 30px;
  }

  .dot {
    height: 15px;
    width: 15px;
  }
}

@media screen and (min-width: 1200px) {
  p {
    font-size: 0.93rem;
    line-height: 36px;
  }

  h3 {
    line-height: 15px;
  }

  h5 {
    font-size: 0.96rem;
    line-height: 6px;
  }

  aside {
    padding: 60px 30px;
  }

  section {
    padding: 144px;
  }

  .prev, .next {
    padding: 12px;
    margin-top: -21px;
    font-size: 0.90rem;
    border-radius: 0 3px 3px 0;
  }

  .caption {
    font-size: 0.90rem;
    line-height: 30px;
    padding: 30px 30px 18px;
  }

  .numbertext {
    font-size: 0.69rem;
    padding: 21px 30px;
  }

  .dot {
    height: 15px;
    width: 15px;
  }
}
