/* Reset back to defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  /*overflow-x: hidden;
  overflow-y: visible;*/
}

/* Importing fonts */
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit/Outfit-VariableFont_wght.ttf");
}

/* Smooth scrolling */
html {
  scroll-behavior:smooth;
  scrollbar-width: none; /* for Firefox */
  width: min(1920px, 100%);
  height: 100%;
  justify-content: center;
  margin: 0 auto;
  transform-origin: center;
  background-color: black;
}

/* Body styling */
body {
  background-color: #F5F5F5;
  /* hide scrollbar but allow scrolling */
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  overflow-y: scroll;
  overflow: -moz-scrollbars-none;
  font-size: 100%;
  text-align: center;
}

.odd-text,
.main-sections {
  background-color: white;
}

body::-webkit-scrollbar {
  display: none; /* for Chrome, Safari, and Opera */
}

/* Header styling */
header {
  position: fixed;
  background-color: white;
  width: min(1920px, 100%);
  max-width: 100%;
  z-index: 2;
}

.header-bar {
  max-width: 100%;
}

header .top {
  display: inline-block;
  margin: min(1em, 1vw) 0;
  float: left;
}

/* Icon styling */
#icon {
  width: 10%;
  padding-left: min(1em, 1vw);
}

header img {
  height: 3.5em;
  width: 3.5em;
  display: flex;
  align-items: center;
  filter: grayscale(100%) contrast(0%);
  transition: filter 0.5s;
}

header img:hover {
  filter: grayscale(0%);
}

/* Navigation styling */
header #navigation {
  width: 80%;
}

.nav-options {
  height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav li {
  display: inline-block;
  width: 8em;
}

nav a {
	text-decoration: none;
}

nav h4 {
  transform: scale(1);
  transition: transform 0.25s;
}

nav h4:hover {
  transform: scale(1.1);
  transition: transform 0.25s;
}

nav h4 {
	font-family: Outfit;
	font-weight: bold;
	font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  color: #565555;
}

#dropdown {
  display: none;
}

#socials {
  width: 10%;
  padding-left: min(7em, 6vw);
}

#socials li {
  list-style-type: none;
}

/* Main styling */
main {
  width: min(1920px, 100%);
  overflow-x: hidden;
}

.banner {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#landscape {
  width: min(1920px, 100vw);
  position: relative;
  display: none; /* Gets changed on resize */
}

#portrait {
  position: relative;
  height: min(873px, 100vh);
  width: min(1916px, calc(1916/873 * 100vh));
}

main h1 {
  margin: 0 0;
  text-transform: uppercase;
  font-family: Outfit;
  font-weight: bold;
  font-size: 128px;
  text-align: center;
}

/* Quote styling */
.odd-text {
  width: 90%;
  padding: min(13em, calc(5em + 5vw)) min(8em, 5vw);
  text-align: left;
  overflow-x: hidden;
  z-index: 1;
  margin: 0;
  width: 100%;
}

.odd-text h3 {
  width: 100%;
  font-family: Outfit;
  font-weight: bold;
  font-size: 45px;
  color: #944444;
}

.odd-text p {
  padding: 0.2em 0;
}

.main-sections {
  width: 100%;
  padding-left: min(2em, 2vw);
  padding-right: min(2em, 2vw);
  padding-bottom: 10em;
  padding-top: 5em;
}

h2 {
  font-family: Outfit;
  font-size: 80px;
  font-weight: bold;
  color: #792B2B;
  padding-bottom: 0.5em;
  text-align: left;
}

/* Services styling */
.example-subsection {
  display: flex;
  align-items: center;
}

.example-wrapper {
  overflow-x: scroll;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
  outline: 3px solid transparent;
}

.example-wrapper::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.example-websites {
  height: min(784px, 40vw);
  /*width: calc(400%);*/
  width: calc(400%);
  text-align: left;
}

.example-websites .media {
  display: inline-block;
  width: 100%;
}

#services .media {
  height: min(784px, 40vw);
  display: inline-block;
  width: 25%;
  float: left;
}

.media {
  display: inline-block;
  /*width: min(90em, 70vw);*/
  /*height: min(45em, 35vw);*/
  height: min(784px, 100%);
  width: 100%;
  margin: 0;
  position: relative;
  outline: 10px solid transparent;
  z-index: 1;
}

#consultancy {
  background-color: black;
}

#retail {
  background-color: #792B2B;
}

#manufacturing {
  background-color: blue;
}

#resume {
  background-color: green;
}

.caption {
  text-align: center;
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s;
}

.caption:hover {
  transform: translateY(-50%) scale(1.1);
}

.caption h1,
.caption h2 {
  height: 1.5em;
  text-transform: none;
  text-align: center;
  width: auto;
  color: white;
  margin: 0 auto;
  position: relative;
}

.caption h1 {
  padding: 0;
  font-size: min(50px, 5vw);
}

.caption h2 {
  font-size: min(35px, 3.5vw);
}

.arrow {
  font-size: min(100px, 10vw);
  width: min(1em, 12vw);
  height: min(3em, 80vh);
  z-index: 1;
}

.arrow span:hover {
	color: black;
  cursor: pointer;
}

/*
video {
  width: 100%;
  text-align: center;
}
*/

span {
  position: relative;
  color: #8E8989;
  top: 50%;
  width: min(1em, 5vw);
  height: 1.25em;
  display: inline-block;
  transform: translateY(-50%) scaleY(2);
}

/* Introduction to team section styling */
#services-team {
  position: relative;
  width: 100%;
  padding-top: 0;
  text-align: right;
}

/* Team styling */
#team .team-member {
  display: inline-block;
  width: 45%;
  margin: 0 2em;
  vertical-align: top;
}

.team-member div {
  width: 40%;
  display: inline-block;
  vertical-align: top;
}

#roger-profile {
  width: 39%;
}

.left {
  /*float: left;*/
}

.right {
  /*float: right;*/
}

.text {
  height: 100%;
  font-family: Outfit;
  margin: 0% 5em;
}

.text h3 {
  font-weight: 550;
  font-size: 32px;
}

.text h4 {
  margin-top: 0.5em;
  font-weight: 550;
  font-size: 20px;
}

.text h5 {
  margin-top: 2em;
  font-weight: 550px;
  font-size: 20px;
  color: #9D4141;
  line-height: 1.5em;
}

.profile {
  text-align: center;
}

/* Careers styling */
#careers {
  padding-left: 0;
  padding-right: 0;
  width: min(1920px, 100vw);
}

#careers h2 {
  padding-left: min(2em, 2vw);
  padding-right: min(2em, 2vw);
}

.body-text {
  position: relative;
  width: max(1920px, 100%);
  max-width: 100%;
  overflow-x: hidden;
}

#careers .body-text:before {
  content: "positions";
  z-index: 0;
  position: relative;
  left: -0.10em;
  top: -0.25em;
  font-family: Outfit;
  font-size: 450px;
  font-weight: 550;
  color: #903434;
  opacity: 50%;
  max-width: 100vw;
  width: max(1920px, 100vw);
  overflow-x: hidden;
}

#careers .body-text:after {
  content: "coming";
  z-index: 0;
  position: relative;
  right: -0.5em;
  font-family: Outfit;
  font-size: 450px;
  font-weight: 550;
  color: #903434;
  opacity: 50%;
  max-width: 100vw;
  width: max(1920px, 100vw);
  overflow-x: hidden;
}

#careers p {
  font-family: Outfit;
  font-weight: bold;
  font-size: 20px;
  text-align: left;
  position: relative;
  line-height: 2.5em;
  width: min(57.5em, 80vw);
  margin: 0 auto;
  /*top: -15em;*/
}

/* Contact us styling */
#contact {
}

#contact h2 {
  z-index: -1;
}

#contact .body-text {
  background-image: url('./images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  overflow: hidden;
}

form {
  position: relative;
  top: -5em;
  right: 8em;
  padding-top: 5em;
  height: 1080px;
  margin: 0 10em;
  font-family: Outfit;
  font-size: 16px;
  text-align: left;
}

form p {
  position: relative;
  top: -3em;
  left: 5em;
}

input::placeholder,
textarea::placeholder,
textarea,
input[type=submit],
input[type=text],
input[type=email] {
  font-family: Outfit;
  font-size: 16px;
}

input[type=submit] {
  background-color: #A6313A;
  border: 1px solid black;
  color: white;
  padding: 0.5em;
  border-radius: 0.5em;
  margin-top: 1em;
  width: fit-content;
}

textarea:focus,
input:focus {
  outline: none;
}

input[type=submit]:hover {
  color: black;
}

.text-input {
  padding: 0.5em;
  width: min(30em, 80vw);
}

textarea {
  padding: 0.5em;
  width: min(30em, 80vw);
  height: 10em;
}

#contact p {
  margin-top: 12em;
  margin-left: -5em;
  font-family: Outfit;
  font-weight: bold;
  font-size: 20px;
  text-align: left;
  position: relative;
  line-height: 2.5em;
}


/* Footer styling */
footer {
  background-color: #A6313A;;
  /*position: absolute;*/
  clear: right;
  margin: 0 auto;
  width: min(1920px, 100%);
  max-width: 100%;
  /*top: 455em;*/
}

footer h6 {
  color: white;
  font-weight: normal;
  font-family: Outfit;
  font-size: 15px;
  text-align: left;
}

@media only screen and (max-width: 1919px) {

  /*header {
    height: 3vw;
  }

  header nav {
    height: 3vw;
  }

  header #navigation {
    height: 3vw;
    top: 0;
  }

  .nav-options {
    height: 3vw;
  }
  */

  #icon {
    top: 0.35vw;
    left: 0.5vw;
  }

  header img {
    height: 3vw;
    width: 3vw;
  }

  .nav-options {
    height: 3vw;
  }

  /*
  video {
    width: 1920px;
  }
  */

  /*
  main {
    margin-top: 7vh;
  }
  */

  #left {
    top: calc(20vw - min(1.5em, 40vh));
  }

  #right {
    bottom: calc(20vw + min(1.5em, 40vh));
  }

  #team .team-member {
    display: block;
    margin: 10vh 0;
    width: 100%;
  }

  #team .profile {
    width: 40vw;
  }

  #team .text {
    width: 50vw;
    margin: 0 0vw;
  }

  #careers .body-text::before,
  #careers .body-text::after {
    font-size: 300px;
  }

}

@media only screen and (max-width: 1200px) {

  #careers .body-text::before,
  #careers .body-text::after {
    font-size: 250px;
  }

  #contact {
    background-position: center center;
  }
}

@media only screen and (max-width: 1000px) {

  .nav-options li h4 {
    font-size: min(14px);
  }

  .nav-options li {
    width: 17.5vw;
    /*font-size: 12px;*/
  }

  #careers .body-text::before,
  #careers .body-text::after {
    font-size: 200px;
  }
}

@media only screen and (max-width: 800px) {

  .nav-options li h4 {
    font-size: min(12px);
  }

  #careers .body-text::before,
  #careers .body-text::after {
    font-size: 150px;
  }
}

@media only screen and (max-width: 700px) {

  .nav-options li h4 {
    font-size: min(10px);
  }
}

@media only screen and (max-width: 600px) {

  #navigation {
    display: none;
  }

  #dropdown {
    display: inline-block;
    width: 80%;
    justify-content: center;
  }

  #dropdown .nav-options {
    overflow: hidden;  /* Hide the element content, while height = 0 */
    height: 0;
    opacity: 0;
    transition: height 1000ms 0ms, opacity 1000ms 0ms;
  }

  #dropdown:hover .nav-options {
    display: block;
    height: auto;
    width: auto;
    margin: 0 auto;
    padding-top: 1vw;
    opacity: 1;
  }

  .nav-options li {
    display: block;
    margin: 1vw auto;
    width: 100%;
  }

  .nav-options li h4 {
    font-size: 16px;
  }

  .hamburger img {
    position: relative;
    width: 3vw;
    height: 3vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .hamburger img:hover {
    filter: invert(1);
  }

  html {
    width: 100vw;
    max-width: 100vw;
  }

  #careers .body-text::before,
  #careers .body-text::after {
    font-size: 100px;
  }
}

@media only screen and (max-width: 400px) {

  .odd-text {
    width: 100vw;
  }

  #careers {
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  #careers .body-text::before,
  #careers .body-text::after {
    font-size: 50px;
  }
}
