* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   }
  
   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: 35%;
    left: 35%;
    height: 55%;
    z-index: 1;
    /*opacity: 0.5;*/
    /*animation: color 6s linear infinite;*/

   }
  
   .team img.gray {
    position: absolute;
    bottom: 0;
    left: -70%;
    height: 100%;
    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;
    color: rgb(1, 1, 160);
    text-transform: none;
   }
  
  
   @media (orientation: landscape) {
     .team {
    width: 100%;
    height: 96vh;
   }
    .team img.color {
     right: 5%;
     left: 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%;
     left: 5%;
     height: 25%;
     /*width: 90%;*/
     bottom: 5%;
    }
    .team img.gray {
     bottom: 0;
     left: 0;
     height: 100%;
     width: 100%;    
     /*top: 25%;
     bottom: 0;
     left: 0;
     height: 50%;
     width: 97%;*/
    }
    .team .title {
     top: 5%;
     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: .5;
    }
  
    87% {
     opacity: .5;
    }
  
    92% {
     opacity: 0
    }
  
    100% {
     transform: translateX(7%) scale(1.2);
     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 0px;*/
  }
  
  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 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
   }
 
    main h1 {
    flex-basis: 10vh;
    text-align: center;
    color: rgb(1, 1, 160);
    font-size: 50px;
    font-family: sans-serif;
    margin-top: 50px;
   }

   main p {
    margin-top: 30px;
    line-height: 1cm;
    text-align: center;
    text-transform: none;
    color: black;
    font-size: 40px;
    font-family: sans-serif;
   }

main section {
    /* jako element elastaczny */
    margin-top: 20px;
    margin-bottom: 60px;
    flex-grow: 1;
    /* kontener flex */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
   }
 
main section>div {
    flex-basis: 47%;
   }
 
main section div img {
    width: 100%;
   }

 p {
     margin-top: -60px;
       margin-bottom: 30px;
       font-family: arial, sans-serif;
       font-weight: 600;
       font-size: 30px;
       text-align: center;
       text-transform: uppercase;
       text-decoration: solid;
   }

main section div a {
     text-decoration: none;
     text-align: left;
     text-transform: none;
     color: rgb(1, 1, 160);
     font-size: 30px;
     font-family: Arial, sans-serif;
     margin-top: 20px;
     margin-bottom: 50px;
   }
main section div a:hover {
   color: yellow;
 }

@media (orientation: portrait) {
   main h1 {
    flex-basis: 10vh;
    font-size: 30px;
    margin-top: 35px;
    margin-bottom: 0;
    
   }
   main p {
    margin-top: 5px;
    line-height: 1cm;
    color: black;
    font-size: 25px;
   }
  main section {
    /* jako element elastaczny */
    margin-top: 20px;
    margin-bottom: 20px;
   }
   main section>div {
    flex-basis: 100%;
    padding: 15px;
   }
   p {
    margin-top: -20px;
    margin-bottom: 15px;
    font-size: 20px;
}

main section div a {
     font-size: 20px;
     margin-top: 10px;
     margin-bottom: 30px;
   }  
}

 footer {
  background-color: rgb(1, 1, 160);
  width: 100%;
  padding: 15px 0px;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: -50px;
  }
  
  footer p { 
  text-transform: none;
  font-size: 14px;
  text-align: left;
  line-height: 0.5cm;
  color: white;
  margin-top: 10px;
  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 (orientation: portrait) {
   footer {
  width: 100%;
  padding: 10px 0px;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: -50px;
  }
  
  footer p { 
  font-size: 12px;
  margin-top: 10px;
  margin-right: 20px;
  margin-left: 20px;
  }
}
  