:root {
    --main-bg-color: #faf9f7;
    --dark-bg-color: #d6d6d6;
    --light-text-color: #8d8ea1;
    --card-padding: 1.2em;
    --primary-text-color: #323663;
}

body {
    font-family: sans-serif;
    background: var(--main-bg-color);
}

h2, h3, #close {
    color: var(--primary-text-color);
}

h2 {
    font-weight: 300;
    text-align: center;
}

#close {
    border: none;
    border-radius: 50%;
    font-weight: 500;
    font-size: 1em;
    height: 40px;
    width: 40px;
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: #e3e3ed;
}

#qr {
    width: 70%;
    height: 70%;
    margin: 1.5em;
}

#random {
    width: 60%;
    height: 60%;
    margin: 0 auto 1.5em;
}

.card {
    background-color: white;
    border-radius: 0.5em;
    padding: var(--card-padding);
    margin: auto 9%;
    box-shadow: 0px 2px 2px 0px #0000003b;
}

.bottom {
    text-align: center;
}

h4 {
    font-weight: 100;
    color: var(--light-text-color);
    margin: 0;
}

h3 {
    font-size: 1.6em;
    margin-top: 0.5em;
    font-weight: 400;
}

hr {
    margin: auto calc(-1 * var(--card-padding));
    border-top: 1px solid var(--dark-bg-color);
    border-bottom: none;
}

#dot {
    margin: 20px auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: black;
}

/* Animation */
.fade-in {
    animation: fadeIn ease 0.8s;
    animation-iteration-count: infinite;
  }
  
  @keyframes fadeIn {
    0% {
      opacity:0;
          filter: brightness(0) saturate(0);
    }
    100% {
      opacity:1; 
      filter: brightness(1) saturate(1);
    }
  }
  