body {
  font-family: Open Sans;
  font-size: 16px;
  line-height: 1.5;
  background-color: #072a49;
  color: #c94949;
}


svg {
  max-width: 280px;
  min-width: 190px;

  padding-bottom: 20px;
}

h1 {
  font-size: 48px;
}

nav a {
  font-size: 24px;
  letter-spacing: 1px;
  text-decoration: none;
  color: #c94949;
  display: block;
  transition: 0.4s ease;
}
.home.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

section.home {
  width: 100%;
  height: 100%;
  text-align: center;
  position: relative;
}

.home div {
  position: absolute;
  /*   margin: 14vh auto auto auto; */
  width: 100%;
}

/* section background colours */
.home.container {
  background-color: #072a49;
  text-align: left;
  align-items: center;
  padding-left: 10vw;
}

.mobilitea {
  background-image: url(mobilitea-bg.jpg);
  opacity: 0;
}
.iris {
  background-image: url(iris-bg.jpg);
  opacity: 0;
}

.nimbus {
  background-image: url(nimbus-vase-bg.jpg);
  opacity: 0;
}

.igs {
  background-image: url(a-brief-exchange-interchangeable-guiding-system.svg);
  opacity: 0;
}
.gba {
  background-image: url(gba-bg.jpg);
  opacity: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.75;
  background-repeat: no-repeat;
  background-position: 80% 50%;
  background-size: 900px 600px;
  transition: opacity 0.3s cubic-bezier(0.72, -0.01, 0.32, 0.84);
  pointer-events: none;
}

.bg-image.nimbus{
  background-position: 96% 50% !important;
}

/* hover effect using background image */
.link-underline {
  background-image: linear-gradient(rgba(201, 73, 73, 0.4), rgba(201, 73, 73, 0.4));
  background-repeat: no-repeat;
  background-size: 100% 0;
  background-position: 0% 80%;
}
.link-underline:hover,
.current {
  background-size: 100% 42%;
  transition: background-size 0.2s cubic-bezier(0, 1, 0.91, 0.65);
}

.home nav a {
  display: table;
}

.home nav:hover a,
header nav:hover a,
.sub-menu:hover a{
  opacity: 0.5;
  transition: opacity 0.3s cubic-bezier(0.72, -0.01, 0.32, 0.84);
}

.home nav a:hover,
header nav a:hover,
.sub-menu a:hover{
  opacity: 1;
}

.headings,
nav a {
  z-index: 3;
}

.home-footer{
  bottom: 48px;
  margin-bottom: 0;
  position: fixed;

}

/* <--- On project pages ---> */
header {
  height: 144px;
  width: 100vw;
  /*   	position: fixed; */
}

header img {
  padding: 20px 40px;
  width: 194px;
}

header nav,
footer nav {
  padding-right: 60px;
  margin-left: auto;
}

header nav a {
  margin-left: 40px;
  font-size: 18px;
}


.sub-menu-container {
    position: fixed;
    right: -100%;
    top: 0;
    width: 33vw;
    height: 100vh;
    background-color: #c94949;
    z-index: 4;
    transition: 0.6s ease-in-out;
}

.sub-menu{
        display: flex;
        flex-direction: column;
        width: 90%;
        margin-left: auto;
        transform: translateY(calc(50vh - 50%));
}

.sub-menu a {
    text-transform:uppercase;
    letter-spacing: 1px;
    transition: .1s ease;
}
.sub-menu a,
#close{
  font-size: 18px;
    color: #072a49;
}

/* When clicked, add the class of open */
.open {
    right: 0;
}

#close {
    content: "CLOSE";
    z-index: 10;
    position: absolute;
    top: 24px;
    right: 24px;
  cursor: pointer;
}

header,
header nav,
footer,
footer nav,
.copyright,
nav.social-links a {
  display: flex;
}

header,
footer,
nav.social-links a {
  align-items: center;
}

video{
  width: 100%;
  height: auto;
}

.video-hero {
    margin-left: auto;
    margin-right: auto;
    }

section.page-container {
  max-width: 1436px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 110px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}

.page-container h1 {
  position: absolute;
  line-height: 1.05;
  left: -80px;
  top: 34px;
  max-width: 540px;
}
.page-container p {
  color: #f4dbdb;
}

.project-info {
  width: 643px;
  margin-left: auto;
  margin-right: auto;
}

.half {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.project-info div.left-half-l, .project-info div.right-half-l {
    padding-right: 3%;
    padding-left: 3%;
    width: 100%;
}

.left-half-l {
  padding-right: 24px;
}

.right-half-l {
  padding-left: 24px;
}

.page-container div {
  padding-top: 24px;
  padding-bottom: 24px;
}

div.page-hero {
  padding-top: 0;
}

div.ptb0 {
  padding-top: 0;
  padding-bottom: 0;
}

.fade{
  opacity: 0;
  transition:opacity 0.7s ease;
}

.visible{
  opacity: 1;
}

footer {

  padding-top: 24px;
  margin-bottom: 48px;
  line-height: 1;
  width: 100%;
  position: relative;
    z-index: 2;
}

.copyright {
  padding-left: 64px;
}
.copyright span {
  letter-spacing: 1px;
  padding-left: 3px;
}

nav.social-links a {
  margin-left: 11px;
}

.social-links::before {
  content: ' ';
  width: 1px;
  height: 180px;
  position: absolute;
  background-color: rgb(201, 73, 73);
  right: 70px;
  bottom: 46px;
}

/* <--- About Page ---> */
a{
  text-decoration: none;
color: #f4dbdb;
}

.about-info{
  max-width: 448px;
  width: 25%;
}

div.about-info {
    position: absolute;
    top: 138px;
    width: 448px;
}

/* window height - header height */
section.about-container {
    min-height: calc(100vh - 144px); 
    padding-bottom: 88px;
}

div.profile-bg-container {
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.profile-bg {
    content: " ";
    position: relative;
    max-width: 694px;
    max-height: 655px;
    width: 36vw;
    height: 60vh;
    background-color: rgba(78, 52,52,0.63);
      right: -80px;
    z-index: -1;
}

.nobreak{
  white-space: nowrap;
}

div.profile-bg,
div.profile{
    padding: 0;
}

div.profile {
    position: absolute;
    bottom: -100px;
    left: -124px;
    max-height: 495px;
}

.profile img {
    height: auto;
    max-height: 495px;
    width: 23vw;
    max-width: 415px;
    min-width: 300px;
}

/* <--- Responsive: Large Laptops ---> */
@media (max-width: 1440px) {
.profile-bg {
    width: 28vw;
/*     right: calc(-78vw + 48%); */
  right: 0;
    height: 57vh;
}
  
  div.profile {
  bottom: -48px;
  }
  
}

/* <--- Responsive: Tablets/Laptops ---> */
@media (max-width: 1024px) {
  section.about-container{
    width: 75%;
  }
  
  div.about-info{
    width: 300px;
  }
  
  .bg-image {
    background-size: 50%;
}
  
  
  .project-info {
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
}

  .page-container h1 {
    font-size: 36px;
    left: -60px;
}
  
}

@media screen and (max-width: 1024px) and (max-height:768px) {
  section.about-container{
        min-height: 768px;
  }
}

/* <--- Responsive: Mobiles ---> */
@media (max-width: 480px) {
/* <--- On Home page : Mobiles --->  */
  .bg-image {
    background-size: cover;
}

.bg.gba {
    background-position: 75%;
}

.bg.creature-clusters {
    background-position: center;
}

.bg.iris {
    background-position: 15% 0%;
}

.bg.mobilitea {
    background-position: 86% 0;
}

.home nav a {
    font-size: 14px;
}

.home.container {
    padding-left: 5vw;
}

  .home-footer{
    bottom: 20px;
  }
  
/* <--- On About pages : Mobiles --->   */
.about-container div {
    position: unset;
}
  
  div.profile-bg {
    background: none;
    }

.profile img,
div.profile-bg {
    width: 100%;
}

div.about-info {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4%;
}
  
.page-container div.profile-bg-container,
.page-container div.profile,
.page-container div.profile-bg {
    padding: 0;
}


.profile-bg {
    height: 100%;
}
  
  section.about-container {
   padding-bottom: 0;
}
  
/* <--- On project pages : Mobiles --->   */
   
  section.page-container {
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
  }

  header {
    height: 110px;
  }

  header img {
    padding: 24px;
    width: 64px;
  }

  header nav a {
    font-size: 14px;
    margin-left: 20px;
  }

  header nav {
    padding-right: 20px;
  }
  
  .sub-menu-container{
    width: 100vw;
  }
  
  .sub-menu-container a,
  #close{
    font-size: 14px;
    font-weight: 600;
  }
  
  .page-container h1 {
    position: unset;
    font-size: 24px;
    width: 100%;
    text-align: center;
    padding-bottom: 12px;
  }

  body {
    font-size: 14px;
  }

  .half {
    display: block;
  }

  .page-container div {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .half div:first-child {
    padding-top: 0;
  }

  .half div:last-child {
    padding-bottom: 0;
  }

  .project-info {
    width: 100%;
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-hero {
    position: relative;
  }
  .page-hero::before,
  div.about-info::before{
    content: ' ';
    background-color: rgb(201, 73, 73);
    position: absolute;
    top: 0;
    right: 0;
    height: 1px;
    width: 100%;
  }

  .project-info div.left-half-l, 
  .project-info div.right-half-l,
  .left-half-l {
    padding-right: 0;
  }
  .project-info div.left-half-l, 
  .project-info div.right-half-l,
  .right-half-l {
    padding-left: 0;
  }

  .social-links::before{
    height: 1px;
    width: 92%;
    right: 4%;
    bottom: 24px;
  }

  section.page-container {
    margin-bottom: 16px;
  }

  footer {
    margin-bottom: 16px;
    z-index: 4;
  }

  #email img{
    height: 12px;
  }
  
  .copyright {
    padding-left: 4%;
  }

  .social-links  {
    padding-right: 4%;
  }

  .social-links img {
    height: 14px;
  }

  nav.social-links a {
    margin-left: 7px;
  }
}
