@import url('https://fonts.googleapis.com/css2?family=Rubik+Distressed&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tiro+Telugu&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya&display=swap');

html {
  scroll-behavior: smooth;
  background: rgb(2, 0, 36);
  background: linear-gradient(85deg, rgba(2, 0, 36, 0.8520542005864846) 0%, rgba(9, 96, 121, 0.8604575619310224) 53%, rgba(0, 123, 119, 0.5719421557685574) 100%);
  font-family: 'Alegreya', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  font-size: 5rem;
  font-family: 'Rubik Distressed', cursive;
  border: 2rem;
  margin: 2rem;
}

h2 {
  text-align: center;
  font-size: 2rem;
  border: 2rem;
  margin: 2rem;
}

#question {
  height: 40px;
  position: relative;
  top: 23%;
  left: 8%;
  background: #2C3441;
  border-radius: 40px;
  border: 1px solid black;
  padding: 7px 10px 10px;
  width: 35%;
  margin: 0 25%;
  box-shadow: 0 4px 7px 0;
}

#question #ricerca {
  font-size: 1.3rem;
  width: 200px;
  border: none;
  outline: none;
  padding: 0 10px;
  background: none;
  color: #d5d8d8;
  margin: 0 0 0 10px;
}

#question #submit {
  position: relative;
  top: 0.4px;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  float: right;
  width: 35px;
  border-radius: 50%;
  background-color: #536179;
  color: white;
}

.nocity {
  border: 2px solid red;
  border-radius: 25px;
  text-align: center;
  margin-top: 9px;
  color: red;
  background: #F0F0F0;
}

#title {
  display: flex;
  justify-content: center;
  font-size: 4rem;
  margin-top: 5%;
  font-family: 'Tiro Telugu', serif;
}

#ris {
  background-image: url("https://cdn.pixabay.com/photo/2017/06/14/08/20/map-of-the-world-2401458__480.jpg");
  background-size: cover;
  background-position: top;
}

#ris,
#ris2,
#ris3 {
  display: none;
  width: 80%;
  border: 5px solid black;
  border-radius: 15px;
  margin: 50px auto;
  flex-wrap: wrap;
  font-size: auto;
}

#ris .card {
  border-radius: 15px;
  backdrop-filter: blur(5px);
  width: 20%;
  margin: 2.3%;
  display: block;
  overflow: auto;
  box-shadow: 0 4px 7px 0;
  animation: rotate 4s cubic-bezier(.54, .13, .30, .37);
}

@keyframes rotate {
  0% {
    transform: rotateY(0turn);
  }

  100% {
    transform: rotateY(3turn);
  }
}

#ris .card h3,
#ris .card h4 {
  text-align: center;
  margin: 5%;
}

#ris .card #progress {
  width: 70%;
  margin-left: 15%
}

#ris2 {
  padding: 2%;
  font-size: 1.3rem;
  background-image: url("https://media.istockphoto.com/photos/crumpled-white-paper-background-picture-id464475134?k=20&m=464475134&s=612x612&w=0&h=TzX9WI0_t9HKGVYui-ohXFbGLmOKNe-3NpFUkk10nKs=");
  background-size: cover;
}

#ris3 {
  width: 40%;
  background-image: url("https://media.istockphoto.com/photos/crumpled-white-paper-background-picture-id464475134?k=20&m=464475134&s=612x612&w=0&h=TzX9WI0_t9HKGVYui-ohXFbGLmOKNe-3NpFUkk10nKs=");
  background-size: cover;
  padding: 2%;
  font-size: 1.3rem;
  justify-content: center;
}

footer {
  position: absolute;
  top: 93%;
  width: 100%;
  padding: 7px;
  margin-top: 20px;
  text-align: center;
  background: #4D4D4D;
  color: white;
}

footer p {
  background: #4D4D4D;
}

/*TABLET*/
@media only screen and (min-width:768px) and (max-width:1023px) {
  h2 {
    font-size: 1.8rem;
  }

  #title {
    font-size: 3rem;
    margin: 3% 0 3% 0;
  }

  footer {
    position: absolute;
    top: 100%;
  }
}

/*MOBILE*/
@media only screen and (max-width:768px) {
  h1 {
    font-size: 3rem;
  }

  #question {
    box-shadow: 0 2px 4px 0;
  }

  #title {
    font-size: 2.3rem;
  }

  #ris3 {
    font-size: 1.5rem;
  }

  footer {
    position: absolute;
    top: 100%;
    max-height: auto;
  }
}
