:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-size: 40px;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

h5 {
  font-size: 0.8em;
  font-weight: 500;
  margin:0;
}

#app {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  padding: 2rem;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.25s;
}
button[disabled], button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:hover:not(:disabled, [disabled]) {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

input[type="radio"] {
  appearance: none;
  background-color: #242424;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 0.8em;
  height: 0.8em;
  border: 0.05em solid #fff;
  border-radius: 50%;
  margin-right: 0.25rem;
}

input[type="radio"]:checked {
  background-color:  #646cff;
  border: 0.05em solid #fff;
}

input[type="radio"]:focus {
  outline: 0.1em solid #646cff;
}

code {
  font-family: monospace;
  font-size: 0.6rem;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  white-space: pre;
}

.modes-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 920px;
  min-height: 16rem;
}

.modes {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
}

.manual-locks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.lock {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
}

.expiry {
  width: 230px;
}

.countdown {
  font-family: monospace;
}

.auto-locks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 8rem;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
}

.lock-status {
  font-size: 0.75em;
}

.lock-status > span {
  font-family: monospace;
}

@media (max-width: 768px) {
  #app {
    padding: 1rem;
  }

  .lock {
    flex-direction: column;
  }
}