* {
    box-sizing: border-box;
}

body {
    font-family: 'Indie Flower', cursive;
    font-family: 'Yellowtail', cursive;
    background: rgba(232, 240, 181, 0.671);

}


.container {
    margin: 0 auto;
}

header {
    min-height: 70px;
    background:rgba(88, 112, 115, 0.918);
    font-weight: 700;
    font-size: large;
  }
  
  header a{
    text-decoration: none;
  }

  header a h4{
    margin-top: 8px;
    font-size: 1em;
    color: #333;
  }
  
  header a h5{
    font-size: 0.8em;
    color: #333;
  }
  
  header ul{
    list-style: none;
    min-height: 70px;
  }
  
  header ul li{
    padding: 16px;
  }
  
  header ul li a{
    color:rgb(107, 8, 38);
    display: block;
    padding-right:24px;
    width: 80px;
  }
  
  nav a::after{
    content: " ";
    height: 2px;
    width: 0%;
    display: block;
    background:rgb(107, 8, 38);
    transition: 1000ms;
    margin: 0 auto;
  }
  
  nav a:hover:after{
    width: 100%;
  }
  
  header ul li a:hover {
    color:rgb(107, 8, 38);
  }

main {
    background-image: url(img/contect.jpeg);
    background-size: cover;
    background-position: center;
    height: 1000px;
    z-index: 500;
    width: 100%;
}

main .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    position: sticky;
    z-index: 500;
    top: 0;
    left: 0;
}

main form {
    background: rgba(126, 126, 126, 0.219);
    box-shadow: 0px 5px 15px 5px #000000;
    color: rgb(56, 56, 56);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

main .container form h2 {
    color: rgb(255, 255, 255);
}

main .container form label {
    font-size: large;
    color: aliceblue;
}

main .container form input {
    border: solid rgb(107, 8, 38) 2px;
    border-radius: 8px;
    outline: none;
    width: 80%;

}
main .container form textarea {
  border: solid rgb(107, 8, 38) 2px;
  border-radius: 8px;
  outline: none;
  width: 90%;
  height: 190px;

}

main .container form button {
    color: rgb(107, 8, 38);
    border: solid rgb(77, 73, 73) 4px;
    border-radius: 32px;
    margin: 24px;
}

main .container form button:hover {
    background: rgb(107, 8, 38);
    color: rgb(255, 255, 255);
    border: solid rgb(116, 111, 111) 4px;
}

footer {
    min-height: 50px;
    background: rgb(221, 221, 221);
    color: rgb(30, 64, 82);
    border-top: solid 2px rgb(105, 105, 105);
}

footer ul li {
    padding-left: 32px;
}

footer .container ul li a .icon {
    font-size: 1.5em;
    min-height: 50px;
    color: rgb(30, 64, 82);
    width: 30px;
}

footer .container ul li a .icon :hover {
    font-size: 2em;
    color: rgba(105, 45, 31, 0.822);
}

@media (max-width:768px) {
  body {
    font-family: sans-serif;
  }

  header a h5{
    font-size: 0.4em;
    color: #333;
  }
  header a h4{
    margin-top: 8px;
    font-size: 0.7em;
    color: #333;
  }
      header .burger {
        display: block;
        font-size: 2em;
      }
    
      header nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(105, 45, 31, 0.952);
        width: 100%;
        max-width: 260px;
        transform: translate(0, -200%);
        transition: 1000ms;
        z-index: 999;
        padding: 0 !important;
      }
    
      header .nav_open {
        transform: translate(0, 0);
      }
    
      header nav ul {
        flex-direction: column;
      }
    
      header nav ul li {
        text-align: center;
        border-bottom: 1px solid grey;
        height: 70px;
      }
    
      header nav ul li:hover {
        background: rgba(170, 152, 134, 0.548);
      }
    
      header nav ul li a {
        color: rgba(255, 255, 255, 0.918);
        width: 200px;
      }
    
      header nav ul :nth-child(6) {
        border: none;
      }
    
      header nav ul li a:hover {
        color: rgba(255, 255, 255, 0.918);
      }
      nav a::after {
        display: none;
      }
      main form{
        margin-top: 40%;
        padding: 0 !important;
      }
  main form .boxs{
    flex-direction: column;
    height: 450px;
padding: 0 !important;
  }
  main .container form input {
    width: 110%;
}
main .container form textarea {
margin: 0 !important; 
  width: 110%;
}

main .container {
  min-height: 300px;
  justify-content: center;
  position: static;
  z-index: 500;
  top: 0;
  left: 0;
}

main .container form h2 {
  color: rgb(107, 8, 38);
}
}        