@media screen and (max-width:900px){
  .nav-links {
    
    width: 70%;
   
  }
  #main > div > div{
    width:100%;
    float:none;
  }
  #maininner{
    display:flex;
    flex-direction: column;
  } 
  img{
    width: 500px;
    height:400px;
  }
  input{
    display:block;
    margin:20px auto;
  }
  .picture{
    order:1;
  }
  .text{
    order:2;
  }
  #contact{
    width:80%;
  }
 
}

@media screen and (max-width: 700px) {
  #contact{
    width:100%;
  }
 
}
@media screen and (max-width: 600px) {
  .nav-links {
    position: absolute;
    right: 0px;
    height: 60vh;
    top: 70px;
    width: 250px;
    flex-direction: column;
    display:none;
    transition: transform 0.5s ease-in;
    background-color: #fbfeff;
    z-index: 20;
  }
  .nav-links li {
    opacity: 0;
  }
  .nav-links  a {
    color: #191820;
    
  }
  .nav-links a:hover {
    width:0px;
    background:none;
    z-index:50;
    transition:none;
    color:#800020;
    font-size:14px;
  }
  

  .burger {
   display: block;
    cursor: pointer;
  }
  .nav-active {
    box-shadow: 0px 4px 8px 200vw rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
    display:flex;
  }
  .companyname {
    font-size: 20px;
  }
   
   
    
}

@media screen and (max-width:500px){
  img{
    width: 100%;
    height:400px;
  }
  .cont{
    margin:15px;
  }
  #contact{
    width:100%;
    flex-direction: column;
  }
  #grid-container {
    grid-template-rows: 70px auto auto 60px;
    
  }

}
@media screen and (max-width:400px){
  img{
    width: 100%;
    height:300px;
  }
  input{
    width:80%;
  }
  textarea{
    width:80%;
  }
 
}
@media screen and (max-width:300px){
  img{
    width: 100%;
    height:200px;
  }
  input{
    width:90%;
  }
  textarea{
    width:90%;
  }
 
}