@import url("style.css");

/* --------------------------------- Parent Div --------------------------------- */
.sub-body5{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(to top, #fddfcd 0%, #ffeaed 99%, #ffeaed 100%);
  }

main{
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;

}


/* ------------------------------ Rotated Text ------------------------------ */
#rotated-text{
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.6em;
  text-transform: uppercase;
  animation: rotation 60s infinite linear 0s;
  margin-right: 5px;
  position: absolute;
}


@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

#rotated-subtitle{
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 6.9em;
  text-transform: uppercase;
  animation: inverse-rotation 200s infinite linear 0s;
  color: rgb(255, 255, 255);
  position: relative;
}

@keyframes inverse-rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-359deg);
  }
}

#rotated-subtitle .hide{
  opacity: 0;
}

/* ---------------------------------- Form ---------------------------------- */
main form{
  width: 380px;
  height: 475px;
  background-color: white;
  position: absolute;
  border-radius: 25px;
  box-shadow:  10px 10px 50px #d7b6a1,
  -10px -10px 50px #d9bcbf;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 3%;
}

main form input, main form button{
  border:none;
  outline: none;
  width: 100%;
  background: none;
  font-size: 1.1em;
}

main form input{
  border-bottom: 2px solid rgb(201, 201, 201);
  font-family: "Manager";
  border-radius: 0;
}

main form button{
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

main form button:hover{
  color: lightcoral;
}


/* ----------------------------- Media Querries ----------------------------- */
@media only screen and (max-width: 834px){

  main .container{
    grid-template-columns:repeat(auto-fit,minmax(100%, 1fr));
    grid-template-rows: 1fr 1fr;
  }

  main .right{
    grid-row-start: 1;
  }

  main .left{
    align-items: center;
  }

  main .left p:first-of-type{
    font-size: 3em;
    text-align: center;
  }

  main .left p:first-of-type br{
    display: none;
  }

  main .left p:last-of-type{
    font-size: 2em;
    text-align: center;
  }

  main .left .index-txt-2 br{
    display: none;
  }

  main .left #c-left-btn{
    animation-delay: 0s;
    opacity: 1;
  }


  main .right img:first-of-type{
    z-index: 5;
    animation: float 6s ease-in-out infinite;
  }
  
  main .right img:nth-of-type(2){
    z-index: 4;
    top: 43%;
    right: 35%;
    height: 45%;
  }
  
  main .right img:last-of-type{
    top: 25%;
    left: 50%;
    height: 60%;
  }

}

/* ------------------------------ Media Queries ----------------------------- */
@media only screen and (max-width: 576px){
  main form{
    padding: 5%;
  }
}

@media only screen and (max-width: 375px){
  main form{
    width: 90%;
    height: 65%;
  }
}

