/* --------------------------------

Primary style

-------------------------------- */
*,
*::after,
*::before {
  box-sizing: border-box;
}

html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100vh;
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: "Arial", sans-serif;
  color: white;
  background: rgb(181, 212, 255);
}

body > * {
  flex-shrink: 0;
}

a {
  text-decoration: none;
}

a:visited {
  color: rgb(72, 72, 72);
}

.body-container,
canvas {
  position: absolute;
  left: 0;
  top: 0%;
  z-index: -1;
  /* height: 100%;
  width: 100%; */
  /* flex-direction: column;
  display: flex; */
}

div,
div section {
  z-index: 0;
}

.container {
  background-position: right 50% top 0%;
  background-repeat: no-repeat;
  margin: 0 auto;
  flex-grow: 1;
  width: 100%;
  top: 0%;
  left: 50%;
  -ms-transform: translate(0%, 0%);
  transform: translate(0%, 0%);
}

.buttons-section {
  margin: 10px;
  position: static;
  text-align: center;
}

.response-section {
  margin: 60px auto;
  position: static;
  width: 60%;
}

button {
  background-color: white;
  border: none;
  color: black;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 4px 2px auto;
  border-radius: 24px;
}

div.left {
  text-align: left;
  float: left;
  clear: both;
  max-width: 400px;
  border-radius: 8px;
  padding-left: 4px;
  background-color: #d6d6d6;
  color: black;
  margin: 0.25rem 0;
  margin-left: 0;
  width: fit-content;
  position: relative;
  right: 20%;
}

div.right {
  text-align: left;
  float: right;
  clear: both;
  border-radius: 8px;
  padding-top: 0px;
  padding-left: 4px;
  background-color: #0099ff;
  color: #e0ecff;
  margin: 0.25rem 0;
  margin-right: 0;
  width: fit-content;
  max-width: 400px;
  position: relative;
  left: 20%;
}

div.left p,
div.right p {
  margin: 9px;
}

.header-section {
  text-align: center;
  position: static;
  top: 0%;
  width: 80%;
  float: center;
  margin: 2em auto;
}

.page-title {
  position: static;
  width: 100%;
  text-align: center;
  font-size: 1.5em;
}

.page-title p {
  margin-left: auto;
  margin-right: auto;
  width: 70%;
  text-align: center;
  text-shadow: 1px 1px 1px black;
}

.page-title h1 {
  text-shadow: 2px 2px 2px black;
}

.page-content {
  position: static;
  width: 100%;
  font-size: 2.2rem;
  font-weight: normal;
  color: rgb(72, 72, 72);
  min-width: 100px;
  font-family: "Inter", sans-serif;
}

.page-content div {
  background: white;
  text-align: center;
  background-color: white;
  margin-top: 0.5em;
  padding: 1em;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.job-title {
  font-size: 1.5em;
  font-weight: bold;
}

.job-subtitle {
  font-weight: bold;
}

.page-content .job {
  width: 80%;
  text-align: left;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 1em;
  padding: 1em;
  padding-left: 2em;
  padding-right: 2em;
  background-color: rgba(256, 256, 256, 0.8);
  color: black;
}

.page-content .job .work-imgs {
  text-align: center;
  width: 100%;
  height: 30% !important;
  margin-left: auto;
  margin-right: auto;
  padding: none !important;
}

.page-content .job .work-imgs-right {
  text-align: center;
  width: 100%;
  height: 30% !important;
  margin-left: auto;
  margin-right: auto;
  padding: none !important;
}

.work-img-right {
  text-align: center;
  max-width: 48%;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.work-img {
  max-width: 48%;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.header {
  font-size: 6rem;
  line-height: 1.2;
  font-weight: 300;
}

@media only screen and (min-width: 850px) {
  .header-section {
    margin: 5em auto;
    margin-left: 0;
  }
  .response-section {
    max-width: 400px;
  }
  div.left {
    margin: 0.25rem 0;
    right: 27.5%;
  }
  div.right {
    margin: 0.25rem 0;
    left: 27.5%;
  }
}

@media only screen and (max-width: 850px) {
  .header-section {
    position: absolute;
    margin: 5em auto;
    margin-left: 0;
    top: 130px;
  }
  .buttons-section {
    top: 20%;
  }

  .response-section {
    top: 25%;
  }
  div.left {
    margin: 0.25rem 0;
    right: 26%;
  }
  div.right {
    margin: 0.25rem 0;
    left: 26%;
  }
}

@media only screen and (max-width: 580px) {
  div.left {
    margin: 0;
    width: fit-content;
    max-width: 360px;
    right: 30%;
  }
  div.right {
    margin: 0;
    width: fit-content;
    max-width: 360px;
    left: 30%;
  }
  .page-title {
    font-size: 1em;
  }
  .buttons-section {
    top: 30%;
  }
  .response-section {
    top: 45%;
  }
  .work-img {
    width: 100%;
    max-width: 100%;
    display: block;
  }
  .work-img-right {
    width: 100%;
    max-width: 100%;
    display: block;
  }
}

@media only screen and (max-width: 400px) {
  div.left {
    margin: 0;
    width: fit-content;
    max-width: 340px;
  }
  div.right {
    margin: 0;
    width: fit-content;
    max-width: 340px;
  }
  .nav a {
    font-size: 1em;
  }
  .page-content div {
    font-size: 0.7em;
  }
}

.words-wrapper {
  display: inline-block;
  position: relative;
}
.words-wrapper b {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  text-align: center;
  left: 0;
  top: 0;
  text-shadow: 2px 2px 2px black;
}
.words-wrapper b.is-visible {
  position: relative;
}
.no-js .words-wrapper b {
  opacity: 0;
}
.no-js .words-wrapper b.is-visible {
  opacity: 1;
}

.header.rotate .words-wrapper {
  -webkit-perspective: 300px;
  -moz-perspective: 300px;
  perspective: 300px;
}
.header.rotate i,
.header.rotate em {
  display: inline-block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.header.rotate b {
  opacity: 0;
}
.header.rotate i {
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform: translateZ(-20px) rotateX(90deg);
  -moz-transform: translateZ(-20px) rotateX(90deg);
  -ms-transform: translateZ(-20px) rotateX(90deg);
  -o-transform: translateZ(-20px) rotateX(90deg);
  transform: translateZ(-20px) rotateX(90deg);
  opacity: 0;
}
.is-visible .header.rotate i {
  opacity: 1;
}
.header.rotate i.in {
  -webkit-animation: cd-rotate-in 0.4s forwards;
  -moz-animation: cd-rotate-in 0.4s forwards;
  animation: cd-rotate-in 0.4s forwards;
}
.header.rotate i.out {
  -webkit-animation: cd-rotate-out 0.4s forwards;
  -moz-animation: cd-rotate-out 0.4s forwards;
  animation: cd-rotate-out 0.4s forwards;
}
.header.rotate em {
  -webkit-transform: translateZ(20px);
  -moz-transform: translateZ(20px);
  -ms-transform: translateZ(20px);
  -o-transform: translateZ(20px);
  transform: translateZ(20px);
}

.no-csstransitions .header.rotate i {
  -webkit-transform: rotateX(0deg);
  -moz-transform: rotateX(0deg);
  -ms-transform: rotateX(0deg);
  -o-transform: rotateX(0deg);
  transform: rotateX(0deg);
  opacity: 0;
}
.no-csstransitions .header.rotate i em {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}

.no-csstransitions .header.rotate .is-visible i {
  opacity: 1;
}

@-webkit-keyframes cd-rotate-in {
  0% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(90deg);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0deg);
  }
}
@-moz-keyframes cd-rotate-in {
  0% {
    opacity: 0;
    -moz-transform: translateZ(-20px) rotateX(90deg);
  }
  60% {
    opacity: 1;
    -moz-transform: translateZ(-20px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    -moz-transform: translateZ(-20px) rotateX(0deg);
  }
}
@keyframes cd-rotate-in {
  0% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(90deg);
    -moz-transform: translateZ(-20px) rotateX(90deg);
    -ms-transform: translateZ(-20px) rotateX(90deg);
    -o-transform: translateZ(-20px) rotateX(90deg);
    transform: translateZ(-20px) rotateX(90deg);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(-10deg);
    -moz-transform: translateZ(-20px) rotateX(-10deg);
    -ms-transform: translateZ(-20px) rotateX(-10deg);
    -o-transform: translateZ(-20px) rotateX(-10deg);
    transform: translateZ(-20px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0deg);
    -moz-transform: translateZ(-20px) rotateX(0deg);
    -ms-transform: translateZ(-20px) rotateX(0deg);
    -o-transform: translateZ(-20px) rotateX(0deg);
    transform: translateZ(-20px) rotateX(0deg);
  }
}
@-webkit-keyframes cd-rotate-out {
  0% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0);
  }
  60% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-100deg);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-90deg);
  }
}
@-moz-keyframes cd-rotate-out {
  0% {
    opacity: 1;
    -moz-transform: translateZ(-20px) rotateX(0);
  }
  60% {
    opacity: 0;
    -moz-transform: translateZ(-20px) rotateX(-100deg);
  }
  100% {
    opacity: 0;
    -moz-transform: translateZ(-20px) rotateX(-90deg);
  }
}
@keyframes cd-rotate-out {
  0% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0);
    -moz-transform: translateZ(-20px) rotateX(0);
    -ms-transform: translateZ(-20px) rotateX(0);
    -o-transform: translateZ(-20px) rotateX(0);
    transform: translateZ(-20px) rotateX(0);
  }
  60% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-100deg);
    -moz-transform: translateZ(-20px) rotateX(-100deg);
    -ms-transform: translateZ(-20px) rotateX(-100deg);
    -o-transform: translateZ(-20px) rotateX(-100deg);
    transform: translateZ(-20px) rotateX(-100deg);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-90deg);
    -moz-transform: translateZ(-20px) rotateX(-90deg);
    -ms-transform: translateZ(-20px) rotateX(-90deg);
    -o-transform: translateZ(-20px) rotateX(-90deg);
    transform: translateZ(-20px) rotateX(-90deg);
  }
}

/* /navigation */
.nav {
  overflow: hidden;
  background-color: rgb(181, 212, 255);
}

.nav a {
  float: left;
  text-align: center;
  padding: 1em 1em;
  text-decoration: none;
  font-size: 1.25em;
  color: white;
  text-shadow: 1px 1px 1px black;
}

.nav a:hover {
  background-color: aliceblue;
  color: black;
  text-shadow: none;
}

.nav a.active {
  background-color: rgb(143, 203, 255);
  color: white;
  text-shadow: none;
}

/* footer */
.footer {
  position: relative;
  bottom: 0;
  height: 50px;
  width: 100%;
  background-color: rgb(47, 165, 76);
  color: white;
  text-align: center;
  margin-top: 50px;
}
