@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
*,*::after,*::before{
  margin:0;
  padding:0;
  box-sizing: border-box;
}
html{
  font-family: 'Roboto', sans-serif;
  width:100vw;
  height:100vh;
  font-size: 1.2rem;
}

header{
 
  display: flex;
  width:100%;
  justify-content: center;
 
}
header img{
  max-width: 300px;

}

.aside{
  position: fixed;
  top:-30px;
  right:0;
  height:100vh;
  width:20vw;
  background-image: url(assets/assetsFeuille.svg);
  background-repeat: no-repeat;
  background-size:cover;
}
.flyer{
  position: fixed;
  top:10vh;
  left:0;
  height:100vh;
  width:25vw;
  background-image: url(assets/flyer.png);
  background-repeat: no-repeat;
  background-size: contain;
  
}
main{
  padding: 0 20vw;
}
.main-title{
  opacity: 0;
  font-size: 3rem;
  text-align: center;
  animation: opacity 0.5s 0.5s forwards linear;
}
.main-description{
  opacity: 0;
  text-align: center;
  margin:20px auto;
  max-width: 1000px;
  animation: opacity 0.5s 0.7s forwards linear;
}

.main-form{
  opacity: 0;
  display: flex;
  justify-content: center;
  gap:5px;
  animation: opacity 0.5s 1s forwards linear;
}
.main-form div{
  border: 2px solid#e9b62e;
  border-radius: 5px;
  padding: 5px;
}
.form-input{
  width: 16px;
  -moz-appearance: textfield;
  border: none;
  border-radius: 5px;
  text-align: end;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}
.form-input:focus{
  outline:0;
}
.form-button{
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  color:white;
  background-color: #8ec66c;
  border:none;
  border-radius: 5px;
  padding: 5px;
  text-shadow: 0px 0px 2px #000000;
}
.form-button:hover{
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

footer{
  opacity: 0;
  width:100%;
  position: fixed;
  left:0;
  bottom: 0;
  background-color:#8ec66c;
  padding: 15px 0;
  animation: opacity 0.5s 0.7s forwards linear;
}
.social {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap:  wrap;
}
.social li{
  width: 200px;
  margin-bottom: 10px;
}
.social li a {
  width:max-content ;
  display: flex;
  gap:10px;
  align-items: center;
  text-decoration: none;
  color:black;
  white-space: nowrap;
}
.social li a:hover{
  text-decoration: underline;
}

.social li a img{
  display: inline;
  max-width: 20px;
  max-height: 20px;
} 

.answer{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap:30px;
  opacity: 0;
  animation: answer 0.2s forwards linear;
  width:fit-content;
  margin: 25px auto;
  text-align:center;
  padding: 50px 25px;
  border: 3px solid#e9b62e;
  border-radius: 10px;
  background-color: white;
  color:black;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.result{
  white-space: nowrap;
}
.link-cotizUP{
 
  text-decoration: none;
  font-weight: 700;
  background-color: #8ec66c;
  color :white;
  border-radius: 5px;
  padding:10px;
 
  text-shadow: 0px 0px 2px #000000;
}
.link-cotizUP:hover{
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

@media screen and (max-width:1000px) {
  body{
    height:100%;
    width:100%;
    display: grid;
    grid-template-rows: 300px 1fr 100px;
    
  }
  footer{
    display: block;
    position: unset;
    margin-top: 20px;;
  }
  .social{
    background-color: #8ec66c;
  }
  .main-title{
    font-size: 2rem;
  }
  .aside{
    display: none;
  }

  .answer{
    margin:25px 0;
  }
}
@media screen and (max-width:500px){
  main{
    padding: 0 10px;
    
  }
}

@media screen and (max-height:850px){
  body{
    height:100%;
    width:100%;
    display: grid;
    grid-template-rows: 300px 1fr 100px;
    
  }
  footer{
    display: block;
    position: unset;
    margin-top: 20px;;
  }
  .aside{
    display: none;
  }
}

@keyframes answer {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}

@keyframes opacity{
  0%{
    transform: translateY(50px);
   opacity: 0;
  }
  50%{
    transform: translateY(25px);
    opacity: 0.5;
  }
  100%{
    transform: translateY(0);
    opacity: 1;
  }
}

