@import "https://fonts.googleapis.com/css?family=Raleway";

:root {
  --gmprimary: #f5580f;
	--gmprimary-light: #f7a680;
  --gmprimary-dark: #ac3904;
	--light: #edf2f4;
	--dark: #2b2d42;
  --darker: #212333;
  --grey: #585858;
  --lightgrey: #a3a3a3;
}

html {
  -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
     -moz-animation: fadein 2s; /* Firefox < 16 */
      -ms-animation: fadein 2s; /* Internet Explorer */
       -o-animation: fadein 2s; /* Opera < 12.1 */
          animation: fadein 2s;
  cursor: default !important;
  scroll-behavior: smooth;
  background: var(--darker);
}

body {
  display: grid;
	font-family: 'Raleway', sans-serif;
	background: var(--light);
  overflow-x: hidden;
  perspective: 5000px;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

section {
  overflow: hidden;
}

input.bg-darker,
textarea.bg-darker {
  border-color: var(--darker);
}

#about {
  margin-top: 100vh;
}

#about, #headquarters, #contact, #footer {
  position: relative;
}

#aws-branding {
	height: 30px;
}

#hero .content {
  width: 70vw;
  height: 100vh;
  position: absolute;
  right: 0;
  overflow-x: hidden;
  transition: all ease .3s;
  z-index: 3;
  background-color: var(--light);
}

#hero .content .intro {
  margin-left: calc(30vw / 1.5);
  margin-right: 5em;
}

#hero .content .intro h1,
#hero .content .intro h4 {
  line-height: 1.8em;
}

#hero .graphics {
  position: relative;
  height: 100vh;
  width: 30vw;
  position: absolute;
  left: 0;
  transition: all ease .15s;
}

#map {
	display: block;
  height: 370px;
  width: 100%;
  border-radius: 0px 0px 10px 10px;
}

#profile {
  height: 400px;
  width: 400px;
  min-height: 400px;
  min-width: 400px;
  background-image: url('img/profile.jpg');
  background-position: center;
  background-size: cover;
  border-radius: 30px;
  margin-left: 30vw;
  transform-style: preserve-3d;
  z-index: 5;
}

.bg-about-bio {
  background-image: url('img/profile.jpg');
}

.bg-about-bio-alt {
  background-image: url('img/profile_alt.jpg');
}

.bg-about-exp {
  background-image: url('img/coding.jpg');
}

.bg-headquarters {
  background-image: url('img/cdo.jpg');
}

.bg-dark {
  background-color: var(--dark) !important;
}

.bg-darker {
  background-color: var(--darker) !important;
}

.bg-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-gmprimary {
  background-color: var(--gmprimary) !important;
}

.bg-gmprimary-dark {
  background-color: var(--gmprimary-dark) !important;
}

.bg-gmprimary-light {
  background-color: var(--gmprimary-light) !important;
}

.bg-gmprimary.pattern {
  background-image: url("img/pattern_orange.png");
}

.btn-darker {
  background-color: var(--darker);
  color: var(--light);
}

.btn-darker:hover,
.btn-darker:focus,
.btn-darker:active {
  background-color: black;
  color: var(--light);
}

.btn-gmprimary {
  color: white;
  background-color: var(--gmprimary);
  border-color: var(--gmprimary);
}

.btn-gmprimary:hover,
.btn-gmprimary:active,
.btn-gmprimary:focus {
  color: white;
  background-color: var(--gmprimary-dark);
  border-color: var(--gmprimary-dark);
}

.card {
  border-radius: 15px;
  z-index: 5;
  padding: 0;
}

.card.left {
  transform: translateX(-120%);
}

.card.right {
  transform: translateX(120%);
}

.card.bottom {
  transform: translateY(120%);
}

.card.slide-in.visible {
  animation: slide-in 1s ease forwards;
}

.card-header {
  background-color: transparent;
  border-bottom: none;
}

.card-header,
.card-body {
  padding: 2em;
}

.card-image {
  height: 200px;
  border-radius: 15px 15px 0px 0px;
}

.container {
  padding-top: 2.5em;
  padding-bottom: 2.5em;
  position: relative;
}

.container:first-of-type {
  padding-top: 5em;
}

.exp-icon {
  font-size: 2em;
  color: var(--lightgrey);
  transition: all ease .3s;
}

.exp-icon:hover {
  transform: scale(1.3);
  color: var(--gmprimary);
}

.form-control.bg-darker:focus {
  border-color: var(--darker);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(255,255,255,.25);
}

.shadow {
  -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,.2) !important;
	-moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,.2) !important;
	box-shadow: 0px 0px 30px 0px rgba(0,0,0,.2) !important;
}

.shadow-inset {
  -webkit-box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,.4) !important;
	-moz-box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,.4) !important;
	box-shadow: inset 0px 0px 30px 0px rgba(0,0,0,.4) !important;
}

.text-light {
  color: var(--light) !important;
}

.text-gmprimary {
  color: var(--gmprimary) !important;
}

.title {
  font-weight: bolder;
  font-size: 3em;
  margin-bottom: 30px;
}

@media screen and (min-width: 2600px) {
  #hero .content {
    width: 60vw;
  }

  #hero .content .intro {
    margin-left: 0;
  }

  #hero .graphics {
    width: 40vw;
  }

  #profile {
    margin-left: 40vw;
  }
}

@media screen and (min-width: 1900px) {
  #hero .content .intro {
    margin-left: 10%;
  }
}

@media screen and (max-width: 1366px) {
  #profile {
    height: 240px;
    width: 240px;
    min-height: 240px;
    min-width: 240px;
    border-width: 8px;
  }
}

@media screen and (max-width: 991px) {
  #about {
    margin-top: 0px;
  }

  #hero .content {
    width: 100vw;
    height: 70vh;
    min-height: 70vh;
    float: none;
    position: relative;
  }
  #hero .graphics {
    width: 100vw;
    height: 30vh;
    float: none;
    position: relative;
  }

  #hero .content .intro {
    margin-top: 70px;
    margin-left: 3em;
    margin-right: 3em;
    text-align: center;
  }

  #hero .content .intro h1 {
    font-size: 2.3em;
    line-height: 1.3em;
  }

  #hero .content .intro h4 {
    font-size: 1.3em;
  }

  #profile {
    height: 200px;
    width: 200px;
    min-height: 200px;
    min-width: 200px;
    border-width: 5px;
    margin-left: unset;
    margin-top: 30vh;
  }

  .container {
    padding-top: 3em;
    padding-bottom: 3em;
  }
}

@keyframes slide-in{
  to { transform: translate(0); }
}

.fade-out {
  animation: fadeOut ease 5s;
  animation-fill-mode: forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}


/* ### LOADER ### */

#loader-container.hidden {
  display: none !important;
}

#loader-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--darker);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader  {
  animation: rotate 1s infinite;  
  height: 50px;
  width: 50px;
}

.loader:before,
.loader:after {   
  border-radius: 50%;
  content: '';
  display: block;
  height: 20px;  
  width: 20px;
}
.loader:before {
  animation: ball1 1s infinite;  
  background-color: var(--gmprimary-dark);
  box-shadow: 30px 0 0 var(--gmprimary);
  margin-bottom: 10px;
}
.loader:after {
  animation: ball2 1s infinite; 
  background-color:var(--gmprimary-light);
  box-shadow: 30px 0 0 var(--gmprimary);
}

@keyframes rotate {
  0% { 
    -webkit-transform: rotate(0deg) scale(0.8); 
    -moz-transform: rotate(0deg) scale(0.8);
  }
  50% { 
    -webkit-transform: rotate(360deg) scale(1.2); 
    -moz-transform: rotate(360deg) scale(1.2);
  }
  100% { 
    -webkit-transform: rotate(720deg) scale(0.8); 
    -moz-transform: rotate(720deg) scale(0.8);
  }
}

@keyframes ball1 {
  0% {
    box-shadow: 30px 0 0 var(--gmprimary);
  }
  50% {
    box-shadow: 0 0 0 var(--gmprimary);
    margin-bottom: 0;
    -webkit-transform: translate(15px,15px);
    -moz-transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 var(--gmprimary);
    margin-bottom: 10px;
  }
}

@keyframes ball2 {
  0% {
    box-shadow: 30px 0 0 var(--light);
  }
  50% {
    box-shadow: 0 0 0 var(--light);
    margin-top: -20px;
    -webkit-transform: translate(15px,15px);
    -moz-transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 var(--light);
    margin-top: 0;
  }
}