:root {
  --bcg-color: #ddfffe;
  --primary-color: #00cdc9;
  --border-radius: 8px;
  --secondary-color: #1e272e;
  --border-color: #011329;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bcg-color);
}
body::selection {
  background: 0 0;
}
/* Go Home */
.go-home {
  position: absolute;
  width: 40px;
  height: auto;
  top: 40px;
  right: 40px;
}
.go-home a svg {
  transition: all ease 0.3s;
}
.go-home:hover a svg {
  scale: 0.9;
}
.box {
  background-color: var(--primary-color);
  padding: 30px;
  width: 400px;
  border-radius: var(--border-radius);
}

.qr-header h1 {
  font-size: 26px;
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.qr-header input {
  width: 100%;
  margin-block: 12px;
}

.qr-header input,
select {
  padding: 8px;
  border-radius: var(--border-radius);
  background: #dff9fb;
  font-size: 18px;
  outline: none;
  border: 2px solid var(--border-color);
}

.qr-header label {
  color: var(--secondary-color);
  font-size: 20px;
}

.qr-header div {
  display: flex;
  justify-content: space-between;
}

.qr-footer {
  display: flex;
  justify-content: center;
}
.qr-footer a {
  position: relative;
  background-color: var(--secondary-color);
  text-decoration: none;
  font-size: 20px;
  padding: 14px 36px;
  margin-inline: 2px;
  color: white;
  font-weight: 600;
  overflow: hidden;

  border-radius: var(--border-radius);
}

.qr-body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.qr-body canvas {
    background: white;
    padding: 15px;
  border: 0.5px solid var(--border-color);
  border-radius: var(--border-radius);
}

.qr-body img {
  max-width: 100%;
  max-height: 100%;
  margin-block: 10px;
  padding: 15px;
  background: white;
  border: 0.5px solid var(--border-color);
  border-radius: var(--border-radius);
}

@media screen and (max-width: 520px) {
  .box {
    width: 80%;
  }
  .qr-footer a {
    padding: 12px;
    font-size: 16px;
  }
}
.qr-footer {
  position: relative;
  border: none;
  border-radius: 5px;
  padding: 10px 25px;
  cursor: pointer;
  transition: all 0.2s;
}

.qr-footer > * {
  display: inline-flex;
  justify-content: center;
  height: 100%;
  transition: all 0.2s;
}

.ripple {
  position: absolute;
  background-color: #00cdc9;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: 0.8s linear forwards rippleEffect;
}

@keyframes rippleEffect {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }

  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}
