* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 30em;
  max-width: 90%;
}

input {
  width: 100%;
  font-family: monospace;
  font-size: clamp(1.2rem, 2vw, 2rem);
  border: 2px solid #000;
  padding: 5px;
  border-radius: 4px;
  text-align: center;
  background-color: white;
  letter-spacing: 0.1em;
  transition: background-color 200ms ease;
}

input:focus {
  outline: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

.icon {
  width: clamp(32px, 5vw, 40px);
  height: clamp(32px, 5vw, 40px);
  display: block;
  pointer-events: none;
  transition: transform 150ms ease, opacity 150ms ease;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease;
}

@media (hover: hover) {
  .icon-btn:hover {
    opacity: 0.6;
  }
}

.icon-btn.flash .icon {
  opacity: 0.2;
  transform: scale(0.85);
}
