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

html {
  width: 100%;
  height: 100%;
}

body { 
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: 'Open Sans',Helvetica,Arial,sans-serif;
  color: #ffffff;
  background-color: #87ceeb; /* Sky blue */
}

#site-bg {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: #87ceeb; /* Sky blue */
  background-image: url("/assets/images/clouds.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  opacity: 0;
  /* animation from /assets/js/waitload.js */
}

#site-bg-alt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: #4682B4; /* Steel blue */
  background-image: url("/assets/images/dna.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  opacity: 0;
  /* animation from /assets/js/bgshift.js */
}

.section {
  overflow: hidden;
}

.panel-content {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.panel-content .bg {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  border-radius: 26px;
}

.name {
  font-size: 52px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(1, 1);
}

.greeting {
  font-size: 35px;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(1, 1);
}

.portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#main.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 700px;
  height: 525px;
}

#main.panel .panel-content {
  animation-name: fade-in-back;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.445, 0.050, 0.550, 0.950);
  animation-fill-mode: forwards;
  background-color: #cbc3e3; /* Light purple */
}

#main.panel .panel-content #main-bg.bg {
  background-color: #cbc3e3; /* Light purple */
  background-image: url("/assets/images/iridescent.png");
  opacity: 0;
  /* animation from /assets/js/waitload.js */
}

#main.panel .panel-content #main-bg-alt.bg {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #008000; /* Green */
  background-image: url("/assets/images/chip.jpg");
  opacity: 0;
  /* animation from /assets/js/bgshift.js */
}

#main.panel .panel-content .name {
  position: absolute;
  top: 20%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0;
}

#main.panel .panel-content .name h1 {
  font-size: 52px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

#main.panel .panel-content .greeting {
  position: absolute;
  top: 35%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  text-align: center;
}

#main.panel .panel-content .portrait {
  position: absolute;
  top: 65%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-image: url("/assets/images/bryan_happy.jpg");
  box-shadow: 0 0 0 0;
  opacity: 0;
  /* animation from /assets/js/waitload.js */
}

#hidden.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  opacity: 0;
}

#hidden.panel .panel-content .bg {
  background-color: #c0c0c0; /* Silver */
}

#hidden.panel .panel-content .portrait {
  position: absolute;
  top: 40%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background-position-x: 50%;
  background-position-y: 25%;
}

#hidden.panel .panel-content .greeting {
  position: absolute;
  top: 75%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 25px;
}

#hidden.panel .panel-content .greeting::before {
  content: "Click on me!";
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-in-back {
  0% {
    transform: perspective(700px) translateZ(80px);
    opacity: 0;
  }
  100% {
    transform: translateZ(0);
    opacity: 1;
  }
}

@keyframes fade-in-back-main-portrait {
  0% {
    transform: perspective(700px) translateZ(80px) translate(-50%, -50%);
    opacity: 0;
  }
  100% {
    transform: translateZ(0) translate(-50%, -50%);
    opacity: 1;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
}

@keyframes fade-in-return {
  0% {
  }
  100% {
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width: 768px) {
  #main.panel {
    width: 70vw;
    height: 385px;
    max-width: 513px;
    min-width: 300px;
  }

  #main.panel .panel-content .name {
    font-size: 38px;
  }

  #main.panel .panel-content .name h1 {
    font-size: 38px;
  }

  #main.panel .panel-content .greeting {
    font-size: 25px;
  }

  #main.panel .panel-content .portrait {
    width: 110px;
    height: 110px;
  }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
  #main.panel {
    width: 513px;
    height: 385px;
  }

  #main.panel .panel-content .name {
    font-size: 38px;
  }

  #main.panel .panel-content .name h1 {
    font-size: 38px;
  }

  #main.panel .panel-content .greeting {
    font-size: 25px;
  }

  #main.panel .panel-content .portrait {
    width: 110px;
    height: 110px;
  }
}

@media screen and (max-width: 1200px) and (min-width: 1025px) {
  #main.panel {
    width: 600px;
    height: 450px;
  }
  
  #main.panel .panel-content .name {
    font-size: 45px;
  }

  #main.panel .panel-content .name h1 {
    font-size: 45px;
  }

  #main.panel .panel-content .greeting {
    font-size: 30px;
  }

  #main.panel .panel-content .portrait {
    width: 129px;
    height: 129px;
  }
}
