*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body{
  background: #2f425b;
}

.container{
  width: 500px;
  padding: 25px 25px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #eeece2;
  border: 0.5rem solid #cea154;
}

.container a{
  text-decoration: none;
  color: black;
}

.container h2{
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
}

.container h3{
  font-size: 1rem;
  margin-bottom: 3%;
  text-align: center;
}

.container input{
  width: 100%;
  height: 50px;
  outline: black;
  padding: 10px;
  margin: auto;
  margin-bottom: 10px;
  border-radius: 5px;
  border: black 0.2rem solid;
  text-align: center;
}

.container button{
  width: 50%;
  height: 50px;
  background: #cea154;
  border: 0;
  outline: 0;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  margin-left: 25%;
}

/*styling of the button and its show/hide animations*/
#downloadBtn{
  margin-bottom: 10px;
  max-height: 0;
  transition: max-height 1s;
  overflow: hidden;
}

#downloadBtn.show-btn{
  max-height: 50px;
}

/*styling of the button and its show/hide animations*/
#refreshBtn{
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s;
}

#refreshBtn.show-btn{
  max-height: 50px;
}


#generateBtn{
  margin-bottom: 10px;
}

/*the box that contains the QR code*/
#qrBox{
  width: 200px;
  border-radius: 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 2s;
}

#qrBox img{
  width: 100%;
  padding: 10px;
  border: 0.25rem solid #000000;
}

#qrBox.show-img{
  max-height: 325px;
  margin: 10px auto;
}


/*animation for text box to shake when zero length text is entered into box*/
.error{
  animation: shake 0.1s linear 10;
}

@keyframes shake{
  0%{
    transform: translateX(0);
  }
  25%{
    transform: translateX(-2px);
  }
  50%{
    transform: translateX(0);
  }
  75%{
    transform: translateX(2px);
  }
  100%{
    transform: translateX(0);
  }
}

/*bottom bar styling*/
.footer{
  font-size: 1rem;
  height: 1rem;
  background: #cea154;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
}

.footer a{
  text-decoration: none;
  color: black;
}

.footer a:hover{
  cursor: pointer;
}

/*styling for smaller screens to make container fit better*/
@media (max-width: 450px) {
  .container {
    width: 90%;
  }
  
  .footer{
    font-size: 0.75rem;
  }
}