:root{
  --primary: #1D3160;
  --secondary: #E0E559;
  --light: #f2f2f2;
  --black: #000;
  --white: #fff;
}

header{
  position: fixed;
  top: 0;
  z-index: 1;
}

nav{
  position: fixed;
  width: 100vw;
  top: 1.5em;
  z-index: 1;
}

ul{
  padding-left: 0;
}

h1, h2, h3, h4, h5, h6, p{
  margin: 0;
}

a{
  text-decoration: none;
  color: var(--white);
}

a:hover{
  color: var(--white);
}

.display-flex{
  display: flex;
}

.text-right{
  text-align: right;
}

.color-white{
  color: var(--white);
}

.color-primary{
  color: var(--primary);
}

.color-secondary{
  color: var(--secondary);
}

.menu-items{
  display: flex;
  width: 100vw;
  list-style: none;
  background-color: var(--light);
}

.menu-items li{
  width: 20%;
}

.menu-items li a{
  display: block;
  text-align: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0.3em 0;
  border: 1px solid var(--primary);
}

.menu-items > li > a:hover,
.active{
  background-color: var(--secondary);
}

.btn-menu{
  display: none;
  align-items: center;
}

#main{
  margin-top: 4em;
  height: calc(100vh - 4em);
}

.title-1{
  font-size: 4rem;
}

.title-2{
  font-size: 3.5rem;
}

.title-3{
  font-size: 2.5rem;
  font-weight: 300;
}

.title-4{
  font-size: 2.5rem;
  font-weight: 600;
}

.title-5{
  font-size: 2rem;
}

.subtitle-1{
  font-size: 2.5em;
  line-height: 35px;
}

.subtitle-2{
  font-size: 1.5rem;
  font-weight: 600;
}

.subtitle-3{
  font-size: 2.3rem;
  font-weight: 400;
}

.subtitle-4{
  font-size: 2rem;
  font-weight: 600;
}

.subtitle-5{
  font-size: 1.8rem;
  font-weight: 400;
}

.subtitle-6{
  font-size: 2rem;
  font-weight: 600;
}

.subtitle-7{
  font-size: 1.6rem;
}

.paragraph-1{
  font-size: 1.2rem;
}

.text-center{
  text-align: center;
}

.text-justify{
  text-align: justify;
}

.text-wrap-2{
  overflow: hidden;
  text-overflow: ellipsis;
}

.font-size-2{
  font-size: 2.5rem;
}

.font-size-5{
  font-size: 5rem;
}

.h-btn{
  background-color: var(--secondary);
  border: none;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  width: 80%;
}

.h-btn:hover{
  color: var(--primary);
}

/* .h-btn-xl{
  font-size: 3rem;
  font-weight: 600;
  width: 100%;
} */

.border-left{
  border-left: 10px solid var(--secondary);
}

.border-bottom-2{
  width: fit-content;
  border-bottom: 10px solid var(--secondary);
}

.bar-bottom{
  border-bottom: 10px solid var(--secondary);
}

/* Slider styles */

.slider{
  width: 100%;
  margin: 1em 0 0;
  overflow: hidden;
}

.slider ul{
  display: flex;
  align-items: center;
  animation: slider 50s infinite linear;
  width: 320%;
}

.slider li{
  width: 20%;
  height: auto;
  margin: 0 0.5em;
  list-style: none;
}

.slider img{
  width: 100%;
  margin: auto;
}

.banner{
  background-image: url(../images/banner.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

#banner-2{
  margin-top: 4em;
  width: 100%;
  height: 15em;
  background-image: url(../images/SCADA_AIF.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

input[type=text], input[type=email], input[type=tel], textarea, select{
  font-weight: 600;
  font-size: 1.2rem;
  border: 1px solid var(--primary);
  margin: 0.5em;
  padding: 0.3em 1em;
  outline: none;
  width: 70%;
  color: var(--primary);
  -webkit-appearance: none;
}

#form-btn{
  width: 50%;
  font-size: 1.5rem;
}

.error{
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid #f00;
  color: #f00;
}

.result{
  border-radius: 5px;
  padding: 0.5em;
  width: 100%;
  line-height: 23px;
  letter-spacing: 2px;
}

.success{
  background-color: rgba(0, 255, 0, 0.1);
  border: 1px solid #00c200;
  color: #00c200;
}

@keyframes slider{
  0%{margin-left: 0%;}
  25%{margin-left: -55%;}
  50%{margin-left: -110%;}
  75%{margin-left: -165%;}
  100%{margin-left: -220%;}
}

@media only screen and (max-width: 991px){
  .title-1{
    font-size: 3.5rem;
  }
  
  .title-2{
    font-size: 3rem;
  }
  
  .title-3{
    font-size: 2rem;
    font-weight: 300;
  }
  
  .title-4{
    font-size: 2rem;
    font-weight: 600;
  }
  
  .subtitle-1{
    font-size: 2em;
    line-height: 35px;
  }
  
  .subtitle-2{
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  .subtitle-3{
    font-size: 2rem;
    font-weight: 400;
  }
  
  .subtitle-4{
    font-size: 1.7rem;
    font-weight: 600;
  }
  
  .subtitle-5{
    font-size: 1.7rem;
    font-weight: 400;
  }
  
  .subtitle-6{
    font-size: 2rem;
    font-weight: 600;
  }
}

@media only screen and (max-width: 890px){
  .title-1{
    font-size: 2.8rem;
  }
}

@media only screen and (max-width: 767px){

  #main{
    padding-top: 5em;
    height: auto;
  }

  .h-btn{
    width: 100%;
    margin-bottom: 2em;
  }
}

@media only screen and (max-width: 730px){

  nav{
    background-color: var(--light);
    border-bottom: 1px solid var(--primary);
  }

  .btn-menu{
    display: flex;
    justify-content: center;
    margin-top: 0.2em;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.5rem;
  }

  .menu-items{
    position: fixed;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 100vw;
    height: 100vh;
    top: calc(100vh + 1000px);
    left: 0;
    text-align: center;
    background-color: var(--white);
    border-top: 1px solid var(--primary);
    transition: all .7s;
  }

  .menu-items li{
    width: 100%;    
  }

  .menu-items li a{
    display: block;
    text-align: center;
    color: var(--primary);
    background-color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.3em 0;
    border: none;
  }

  .menu-items li{
    padding: 0.5em 0;
  }
}


@media only screen and (max-width: 600px){
  header{
    display: none;
  }

  nav{
    top: 0;
  }

  #banner-2{
    margin-top: 1.5em;
  }

  #main{
    margin-top: 2.5em;
  }
}

@media only screen and (max-width: 500px){
  .title-1{
    font-size: 3.3rem;
  }
  
  .title-2{
    font-size: 2.8rem;
  }
  
  .title-3{
    font-size: 1.8rem;
    font-weight: 300;
  }
  
  .title-4{
    font-size: 1.8rem;
    font-weight: 600;
  }
  
  .subtitle-1{
    font-size: 1.8em;
    line-height: 35px;
  }
  
  .subtitle-2{
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .subtitle-3{
    font-size: 1.8rem;
    font-weight: 400;
  }
  
  .subtitle-4{
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .subtitle-5{
    font-size: 1.5rem;
    font-weight: 400;
  }
  
  .subtitle-6{
    font-size: 1.8rem;
    font-weight: 600;
  }
}

@media only screen and (max-width: 390px){
  .title-1{
    font-size: 2.5rem;
    font-weight: 600;
  }
}

@media only screen and (max-width: 350px){
  .title-1{
    font-size: 2.3rem;
    font-weight: 600;
  }
  
  .title-2{
    font-size: 2rem;
  }
  
  .title-3{
    font-size: 1.5rem;
    font-weight: 300;
  }
  
  .title-4{
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .subtitle-1{
    font-size: 1.5em;
    line-height: 35px;
  }
  
  .subtitle-2{
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .subtitle-3{
    font-size: 1.5rem;
    font-weight: 400;
  }
  
  .subtitle-4{
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  .subtitle-5{
    font-size: 1.3rem;
    font-weight: 400;
  }
  
  .subtitle-6{
    font-size: 1.5rem;
    font-weight: 600;
  }

  .paragraph-1{
    font-size: 1.1rem;
  }

  .h-btn{
    font-size: 1.5rem;
  }
}