
*{
  margin:0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;

}


 /*header */

 .header {
      min-height: 100vh;
      width: 100%;
      background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(pildid/kodulehtede_valmistamine.jpg);
      background-position: center;
      background-size: cover;
      position: relative;
 }

 
 

body {
    
    min-height: 100vh;
    margin: 0 auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: "Montserrat", sans-serif;
  }
  

  /*menu */

  nav {
    background-color: rgba(245, 245, 220, 0.114);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  }
  
  nav ul {
    width: 90%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  nav li {
    height: 50px;
  }
  
  nav a{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
  }

  nav a:hover{
    
    background-color: f0f0f0;
    color: rgb(255, 10, 10);
    transition: 1s ease-in;

  }

  nav ul a:first-child{
    margin-right: auto;
  }

  .logo{
    font-size: 22px;
    display: inline-block;
    
  }


  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: auto;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.377);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .menu-close{
    padding:30px 0 0 30px;
  }

  .sidebar li{
    width: 100%;
  }

  .sidebar a{
    width: 100%; 
  }

  .sidebar a:hover{
    background-color:rgba(245, 245, 220, 0.802); 
  }

  .menu-button{
    display: none;
  }

  @media(max-width: 800px) {
    .hideOnMobile{
      display: none;
    }
    .menu-button{
      display: block;
    }
    .text-box h1{
      font-size: 20px;
    }
  }

  @media(max-width: 400px){
    .sidebar{
      width: 100%;
    }
  }
  
   /*text box */

.text-box{
  width: 90%;
  color: aliceblue;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}

.text-box h1{
  font-size: 62px;
}


.text-box p{
  margin: 10px 0 40px;
  font-size: 14px;
  color: aliceblue;
}

.btn{
  display: inline-block;
  text-decoration: none;
  color: aliceblue;
  border: 1px solid aliceblue;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.btn:hover{
  border: 1px solid rgb(255, 10, 10);
  background: rgb(255, 10, 10);
  transition: 1s;
}


@media(max-width: 800px) {
  .text-box h1{
    font-size: 20px;
  }
}

 /*responsive grid */
 #uudised {padding-top: 0px;
    background-color: #f16f6f;}

   
    .card {
      padding: 2em;
      border: 1px solid red;
      border-radius: 10px;
      text-align: center;
    }

    .grid-container {
      display: grid;
      border: 1px solid red;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 15px;
      justify-content: center;
    }

    * {
      box-sizing: border-box;
  }
  
 /*footer grid */  
 .footer-card {
  padding: 2em;
  border: 0px solid rgb(64, 0, 255);
  border-radius: 10px;
  text-align: center;
}

.footer-container {
  display: grid;
  background-color: rgba(0, 0, 0, 0.61);
  border: 0px solid rgb(64, 0, 255);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.658);
}

* {
  box-sizing: border-box;
}

.logo {
  margin-top: 0;
  width: 30px;
  
}