*{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

nav{
    background: #072640;
    height: 100px;
    width: 100%;
    position: fixed;
    z-index: 2;
    box-shadow: 0 0 30px 2px rgba(0,0,0,0.50);
  }

  nav ul{
    float: left;

    margin-left: 20px;
  }
  nav ul li{
    display: inline-block;
    line-height: 100px;
    margin: 0 30px;
  }
  nav ul li a{
    color: white;
    font-size: 20px;
    padding: 10px 35px;
    border-radius: 3px;
    text-decoration: none;
  }
  nav a.active, nav a:hover{
    background: #06365e;
    transition: .5s;
  }
  .checkbtn{
    font-size: 40px;
    color: white;
    float: right;
    line-height: 100px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
    margin-top: 25px;
  }
  #check{
    display: none;
  }
.heading{
    top: 5%;
    position: relative;
    text-align: center;
    color: white;
    background: black;
}
.heading img{
    width: 100%;
    max-height: 30vh;
    object-fit: cover;
    opacity: 0.4;
}
.heading h1{
    position: absolute;
    font-size: 55px;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.content{
    margin-top: 12%;
    margin-left: 20%;
    margin-right: 20%;
    font-size: 28px;
}
.uhendus{
    margin-top: 5%;
    color: white;
    display: inline-block;
    border: 25px #0466c8;
    border-style:solid;
    background-color: #0466c8;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
}
.footer {
    margin-top: 150px;
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 5%;
    padding-right: 5%;
    background: #00374d;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  .footer div {
    text-align: center;
    flex-basis: 50%;
  }
  
  .contact {
    flex-basis: 100%;
    margin-top: 20px;
  }
  
  .footer div h3 {
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
  }
  
  .links a {
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 20px;
  }
  
  .contact p {
    margin-bottom: 20px;
  }

@media only screen and (max-width: 980px){
  .checkbtn{
    display: block;
    margin-right: 40px;
  }
  .checkbtn i{
    font-size: 40px;
    margin-right: 20px;
  }
  nav{
    height: 90px;
  }
  nav ul{
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #00374d;
    top: 90px;
    left: -100%;
    text-align: center;
    transition: all .5s;
    z-index:2;
    margin-right: 20px;
    margin-left: 0px;
  }
  nav ul li{
    display: block;
    margin: 100px 0;
    line-height: 30px;
  }
  nav ul li a{
    font-size: 25px;
  }
  nav a:hover, nav a.active{
    background: none;
    color: white;
  }
  #check:checked ~ ul{
    left: 0;
  }
  .heading h1{
    position: absolute;
    font-size: 45px;
  }
  .content{
    margin-top: 17%;
    margin-left: 20%;
    margin-right: 20%;
    font-size: 22px;
  }
  }
  @media screen and (max-width: 600px){
  .uhendus{
      margin-top: 12%;
      font-size: 0.8em;
  }
  .content{
    margin-top: 25%;
  }
  }
  @media screen and (max-width: 490px){
    .footer{
      font-size: 12px;
    }
    .checkbtn{
      margin-right: 10px;
    }
    .content{
      margin-top: 35%;
    }
    }

    @media screen and (max-width: 350px){
    .heading h1{
      font-size: 30px;
    }
    .footer {
      display: block;
    }
    .links{
      margin-bottom: 60px;
    }
    .checkbtn i{
      font-size: 30px;
    }
    nav{
      height: 80px;
    }
    nav ul{
      top: 80px;
    }
  }
