 * {
  margin: 0;
  padding: 0;
 }

 html {
  font-family: oswald;
  font-size: 10px;
 }

 .team {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background-color: #ccc;
  position: relative;
 }

 .team img.color {
  position: absolute;
  bottom: 0;
  right: -15%;
  height: 56%;
  z-index: 1;
  /*animation: color 6s linear infinite;*/
 }

 .team img.gray {
  position: absolute;
  bottom: 0;
  left: -70%;
  height: 110%;
  opacity: 0.8;
  animation: gray 6s linear infinite;

 }

 .team .title {
  position: absolute;
  top: 12%;
  left: 0;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: text 6s linear infinite;
 }

 .team h1 {
  font-size: 6.5rem;
  color: rgb(1, 1, 160);
 }

 .team h2 {
  font-size: 2.5rem;
  text-transform: none;
  color: rgb(1, 1, 160);
 }


 @media (orientation: landscape) {

    .team {
    width: 100%;
    height: 96vh;
   }
  .team img.color {
   right: 5%;
   height: 40%;
  }
  .team img.gray {
   bottom: -10%;
   left: 0;
   height: 120%;
   width: 100%;
  }
  .team .title {
   width: 100%;
   right: auto;
   left: auto;
  }
 }

 @media (orientation: portrait) {

    .team {
    width: 100%;
    height: 50vh;
   }
   .team img.color {
   right: 5%;
   height: 25%;
   bottom: 5%;
  }
  .team img.gray {
   bottom: 0;
   left: 0;
   height: 100%;
   width: 100%;
  }
  .team .title {
   top: 15%;
   width: 100%;
   right: auto;
   left: auto;
  }
  .team h1 {
    font-size: 4rem;
    margin-top: 5%;
   }
  
   .team h2 {
    font-size: 2.5rem;
    text-transform: none;
   }
}


 /*@keyframes color {
  0% {
   transform: translateX(0);
   opacity: 0;
  }

  8% {
   opacity: 0;
  }

  13% {
   opacity: 1;
  }

  87% {
   opacity: 1;
  }

  92% {
   opacity: 0
  }

  100% {
   transform: translateX(-5%);
   opacity: 0;
  }
 }*/

 @keyframes gray {
  0% {
   transform: translateX(0) scale(1);
   opacity: 0;
  }

  8% {
   opacity: 0;
  }

  13% {
   opacity: .2;
  }

  87% {
   opacity: .2;
  }

  92% {
   opacity: 0
  }

  100% {
   transform: translateX(5%) scale(1.1);
   opacity: 0;
  }
 }

 @keyframes text {
  0% {
   transform: scale(1);
   opacity: 0;
  }

  8% {
   opacity: 0;
  }

  13% {
   opacity: 1;
  }

  87% {
   opacity: 1;
  }

  92% {
   opacity: 0
  }

  100% {
   transform: scale(1.1);
   opacity: 0;
  }
 }

 nav {
  background-color: rgb(1, 1, 160);
  padding: 25px 50px 340px 50px;  
  /*margin: 20px 0;*/
}

nav ul {
  list-style: none;
}

nav ul li {
  float: left;
  width: 100%;
}

nav ul li a {
   display: block;
   margin-left: 2px;
   margin-bottom: 20px;
   border: 5px solid white;
   font-size: 33px;
   color: white;
   text-decoration: none;
   text-transform: none;
   text-align: center;
}

nav ul li a:hover {
color: yellow;
border-color: yellow;
}

@media (orientation: portrait) {

  nav ul li {
    float: left;
    width: 100%;
  }  
  nav {
    padding: 15px 10px 200px 10px;  
    /*margin: 20px 0px;*/
  }
  
  nav ul li a {
     display: block;
     margin-left: 2px;
     margin-top: 30x;
     margin-bottom: 10px;
     border: 3px solid white;
     font-size: 20px;
  }
}

main {
float: none;
width: 90vw;
background-color: white;
}

main p {
 font-size: 15px;
 text-align: right;
 margin-top: 10px;
}

main article h2 {
margin-top: 40px;
margin-bottom: 40px;
margin-left: 60px;
font-size: 50px;
text-transform: uppercase;
color: rgb(1, 1, 160);
text-align: center;   
}

main article p {
font-size: 25px;
margin-top: 10px;
margin-bottom: 20px;
margin-left: 100px;
margin-right: 20px;
text-align: left;
width: 100%;
line-height: 1cm;
}

main article p a {
 text-decoration: solid;
 color: rgb(1, 1, 160);
}

main article p a:hover {
 color: yellow;
}

footer {
background-color: rgb(1, 1, 160);
width: 100%;
padding: 10px 0px;
margin-top: 5px;
margin-bottom: 0;
margin-left: 0;
margin-right: -50px;
}

footer p { 
text-transform: none;
font-size: 14px;
text-align: left;
line-height: 0.7cm;
color: white;
margin-right: 20px;
margin-left: 20px;
}

footer p i {
  text-transform: none;
}

footer p a {
 color: white;
 text-decoration: underline;
 text-transform: none;
}

footer p a:hover {
 color: yellow;
}

@media (max-width: 1400px) {
 h1 {
   font-size: 40px;
 }
 h1:nth-of-type(2) {
   font-size: 30px;
   top: 2%;
  left: 0%;
 }
 nav ul li a {
   font-size: 25px; 
  }
 }

 @media (max-width: 1120px) {
 nav ul li a {
   font-size: 20px; 
  }
 }

@media (max-width: 1024px) {
 main article h2 {
  text-align: center;
  margin-left: 30px;
 }
 main article p {
  margin-left: 30px;
 }
}

@media (max-width: 960px) {
 nav {
  padding: 15px 45px 160px 45px; 
    }
 nav ul li {
  width: 100%;
    }
 nav ul li a {
  margin-left: 2px;
  margin-bottom: 0px;
  margin-top: 2px;
  border: 2px solid white;
  font-size: 20px;
 } 
 main article p {
  margin-left: 28px;
 }
}

@media (max-width: 670px) {
 h1 {
  font-size: 33px;
  margin-left: 0;
  }
 h1:nth-of-type(2) {
  font-size: 33px;
  top: 2%;
  left: 0;
  }
 nav {
  padding: 15px 45px 160px 45px; 
  }
 nav ul li a {
  font-size: 16px;
 } 

 footer p {
  text-transform: none;
  font-size: 10px;
  line-height: 0.4cm;
 }
}

@media (max-width: 540px) {
 main article p {
  font-size: 20px;
  line-height: 0.5cm;
  margin-top: 15px;
  margin-left: 20px;
 }
 nav {
  padding: 15px 45px 140px 45px; 
  }
}

@media (max-width: 415px) {
 main article h2 {
  font-size: 20px;
  margin-top: 30px;
  margin-left: 20px;
 }
 main article p {
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 25px;
 }
}

@media (max-width: 412px) {
 main article h2 {
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 20px;
 }
 main article p {
  font-size: 14px;
}
}

@media (max-width: 300px) {
 nav ul li a {
  font-size: 13px;
 } 
 nav {
  padding: 15px 45px 120px 45px; 
  }

 footer p {
  text-transform: none;
  font-size: 8px;
  line-height: 0.3cm;
}
}

@media (max-width: 280px) {
  .team h1 {
    font-size: 20px;
   }
  
   .team h2 {
    font-size: 15px;
   }
}
