* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
  font-family: 'Caveat Brush', cursive;
  color: #1a1a37;
}

img {
    display: block;    
}
#spinner:not([hidden]) {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 55, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

#spinner::after {
  content: "";
  width: 80px;
  height: 80px;
  border: 2px solid #f3f3f3;
  border-top: 3px solid #1a1a37;
  border-radius: 100%;
  will-change: transform;
  animation: spin 1s infinite linear
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 5px; 
  background-color: #c7dff7;
  height: 60px;
  
}
.top img {
  height: 80%; 
  object-fit: contain; 
}
.title {
  font-size: 25px;
  font-family: 'Caveat Brush', cursive;
  font-weight: lighter; 
}
.mid {
  display: flex;
  flex-direction: column;  
  justify-content: flex-start;
  align-items: center;
  min-height: 80.8vh;
  background-color: #9696ec;
}
.mid-text {
  font-size: 30px;
  padding-top: 50px;
}
.mid-input {
  width: 90%;
  text-align: center;
}
input {
  display: block;
  width: 100%;
  padding: 0.5rem 2rem;
  font-size: 1em;
  border-radius: 10px;
  border: 3pt solid #1a1a37; 
  margin-top: 80px;
  
  
}
.mid-input button {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 1em;
  margin-top: 15px;
}
.output {
  margin: 15px, auto;
  text-align: center;
  width: 80%;
  padding: 30px 0;
}
.output img {
  display: block;
  text-align: center;
  min-height: 10px;
  margin: auto;
}
.output p{
  font-family: 'Roboto', sans-serif;
  color: #fff;
  padding-top: 10px;

}
.output button{
  margin-bottom: 50px;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 10px;
  font-size: 1.2em;
  margin-top: 5px; 
}
.back {
  background-color: #c7dff7;
  color: #1a1a37 !important;
  font-weight: bold;
  margin-top: 10px;
  padding: 5px;
}

#footer {
  padding: 10px;
  background-color: #c7dff7;
  text-align: center;
}
#footer a {
  display: inline-block;
  margin-right: 18px;
  text-decoration: none;
  
}
#footer a:hover {
  color: #505057;
} 
  
@media only screen and (min-width: 481px) {
  .mid-text {
    font-size: 35px;
  }
  input {
    display: inline;
    width: 60%;
  }
  .output {
    width: 50%;
    
  }
 
} 

@media only screen and (min-width: 769px) {
  .mid-text {
    font-size: 50px;
    
  }
  input {
    width: 50%;
  }
 

} 