/* Reset back to defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

p {
  font-size: 16px;
}

html {
  scroll-behavior:smooth; /* Smooth scrolling */
  scrollbar-width: none; /* for Firefox */
  background-color: #161A1D;
  color: white;
  font-family: Outfit, Times;
}

body {
  /* hide scrollbar but allow scrolling */
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  overflow-y: scroll;
  overflow: -moz-scrollbars-none;
  width: min(1920px, 100vw);
  margin: 0 auto;
  justify-content: center;
  background-color: #0B0B45;
}

body::-webkit-scrollbar {
  display: none;
}

/* Header styling */
header {
  /*outline: 1px solid white;*/
  width: min(1920px, 100vw);
  position: fixed;
  height: auto;
  display: flex;
  align-items: center;
  z-index: 2;
  overflow: visible;
}

.header-div {
  top: 0;
  display: inline-block;
  margin: 0 min(1em, 1vw);
  padding: 0 min(1em, 1vw);
}

header::before {
  content: "";
  width: min(1920px, 100vw);
  position: absolute;
  top: 0;
  height: 95%;
  background-repeat: no-repeat;
  background-color: #444444;
  border-bottom: 1px solid white;
  opacity: 0.85;
}

.header-div div {
  display: inline-block;
  margin: min(1em, 1vw);
}

/* Navigation bar styling */
#navigation {
  width: 80%;
}

nav div {
  width: auto;
  overflow: visible;
}

nav div a {
  text-decoration: none;
  color: white;
  z-index: 2;
  overflow: visible;

}

nav div a p {
  transform: scale(1);
  transition: transform 0.5s;
  text-transform: uppercase;
  overflow: visible;
}

nav div a p:hover {
  transform: scale(1.05);
  transition: transform 0.5s;
}

/* Socials styling */
#social-wrapper {
  width: 20%;
}

.socials {
  width: auto;
  float: right;
}

.socials div {
  display: inline-block;
  width: auto;
  margin: min(0.5em, 0.5vw);
}

.socials div a img {
  width: 2em;
  -webkit-filter: grayscale(100%) contrast(500%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%) contrast(500%) invert(1);
  transition: filter 0.5s, -webkit-filter 0.5s;
}

.socials div a img:hover {
  -webkit-filter: invert(0);;
  filter: grayscale(0%);
}

/* Banner styling */
main {
  z-index: 1;
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  height: min(1080px, 100vh);
  background-image: url("../images/banner.jpg");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.banner::after {
  content: "";
  position: absolute;
  left: 0%;
  width: min(1920px, 100vw);
  height: min(1080px, 100vh);
  background-repeat: no-repeat;
  background-size: 1920px 1080px;
  background-position: 50% 0;
  background-color: black;
  opacity: 0.65;
}

.banner,
.banner::after {
  min-height: 100vh;
  overflow-x: hidden;
}

.banner-title {
  text-align: center;
  z-index: 1;
  margin: 0 5em;
}

.banner-title h1 p {
  /*font-weight: 100;*/
  font-weight: 100;
  font-size: 100px;
}

/* Personal projects section styling */
.main-section {
  padding: min(6.5em, 6.5vw) 0 min(2em, 2vw) 0;
}

.main-section h2 {
  font-size: 40px;
  color: white;
  margin: min(3em, 3vw) min(5em, 5vw) min(1em, 1vw) 2.5em;
}

.sub-section {
  margin-bottom: 5vw;
  display: flex;
  align-items: center;
}

.project-information {
  display: inline-block;
  width: calc(40%);
  animation: moveIn 1s;
}

.sub-section h3 {
  display: block;
  font-size: 25px;
  margin-top: min(2em, 2vw);
  margin-bottom: min(1em, 1vw);
}

.languages-used {
  display: block;
}

.languages-used img {
  width: 2em;
  margin-right: 0.5vw;
}

.languages-used .html,
.languages-used .css {
  filter: invert(1) hue-rotate(180deg);
}

.languages-used .css {
  width: calc(2em * 240/339);
  margin-right: calc(0.5vw + 1em - 240/399 * 1em);
}

.project-information-section h4 {
  margin: min(2em, 2vw) 0 min(1em, 1vw) 0;
}

.text {
  font-weight: 200;
}

.display {
  text-align: center;
  overflow: visible;
  /*
  display: flex;
  align-items: center;
  justify-content: center;
  */
}

.text,
.display {
  margin: 2em auto;
  margin-bottom: 5em;
}

.levels-wrapper {
  float: left;
  position: relative;
}

.level {
  width: auto;
}

#elevator-program {
  font-size: 20px;
  text-align: center;
}

#elevator-title {
  color: transparent;
}

.elevator-component {
  display: inline-block;
}

.elevators-wrapper,
.passengers-wrapper,
.buttons-wrapper {
  float: left;
}

.elevator {
  display: inline-block;
}

.shaft {
  border: 1px solid white;
  overflow: visible;
}

#elevator-name,
#elevator-title,
#passengers-title {
  margin-bottom: 2vh;
}

.floor-waiting-area {
  color: white;
  height: 20px;
  overflow: hidden;
}

.request {
  width: 40%;
  height: 1em;
  display: inline-block;
  overflow: hidden;
}

.request img {
  position: relative;
  top: -0.25em;
  transform: rotate(90deg);
  height: 10px;
  width: 15px;
}

.buttons-wrapper {
  margin-top: 2vh;
}

form input {
  font-family: Outfit;
  color: white;
  margin-top: 1vh;
  border: transparent;
  border-radius: 1em;
  width: auto;
  padding: 0.5em 1em;
}

#elevators-next input {
  background-color: green;
}

#elevators-reset input {
  background-color: red;
}

/*
#taaurus .text {
  height: min(80vh, calc(0.8 * 1080px));
}
*/

/*
#taaurus-website {
  height: min(80vh, calc(0.8 * 1080px));
}
*/

iframe {
  height: 100%;
  overflow-x: hidden;
}

#desktop-taaurus {
  aspect-ratio: 16/9;
}

#phone-taaurus {
  display: none;
  aspect-ratio: 9/8;
}

@media only screen and (max-width: 1920px) {
  html {
    width: min(1920px, 100vw);
    position: absolute;
    left: 0;
  }

  header {
    /*outline: 1px solid white;*/
    width: 100vw;
    position: fixed;
    height: auto;
    display: flex;
    align-items: center;
    z-index: 2;
  }

  body {
    margin: 0;
  }

  .sub-section {
    display: block;
    margin-bottom: 5em;
  }

  .project-information {
    display: block;
    width: 80%;
  }
}

/* Key frames */
@keyframes moveIn {
  0% {
    opacity: 0;
    transform: translateY(200%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}
