body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 3rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='60' height='60' fill='%23080811'/%3E%3Crect x='0' y='59' width='60' height='1' fill='%23111118'/%3E%3Crect x='59' y='0' width='1' height='60' fill='%23111118'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
  background-color: #080811;    
}
::selection {
  background: #557;
  color: rgb(195, 195, 205);
}
.container {
    padding: 2rem;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-rows: repeat(10, 1fr);
    grid-template-columns: auto auto;
    grid-column-gap: 1rem;
    grid-row-gap: 0.5rem;
    
    font-family: sans-serif;
}
h1 {
    grid-column: 1 / 3;
    font-weight: 300;
    margin: 0;
    justify-self: center;
    align-self: flex-start;
    grid-row: span 2;
    color: rgb(195, 195, 205);
    font-family: 'Cascadia Mono', sans-serif;
}
label {
    font-family: 'Cascadia Mono', sans-serif;
    font-size: 1rem;
    align-self: flex-end;
    color: rgb(195, 195, 205);
}
input {
    max-width: 10ch;
    padding: 0.75rem;
    font-size: 1.25rem;
    border-radius: 1rem;
    appearance: textfield;
    grid-row: span 2;
    background: hsl(240, 16%, 12%);
    border: 1px solid hsl(240, 12%, 20%);
    color: rgb(195, 195, 205);
    font-family: 'Cascadia Mono';
}
input:focus {
    border: 1px solid #557;
    outline: none;
}
label#hours-label, label#minutes-label {
    grid-row: 4 / 5;
}
input#hours, input#minutes {
    grid-row: 5 / 7;
}
label#decimal-label {
    grid-row: 8 / 9;
}
input#decimal {
    grid-row: 9 / 11;
}

footer {
  color: rgb(195, 195, 205);
  font-family: 'Cascadia Mono';
  text-align: center;
}

footer a {
  color: rgb(195, 195, 205);
}

footer a:hover {
  color: #557;
}

@media (prefers-color-scheme: light) {
  body {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='60' height='60' fill='%23eeeeff'/%3E%3Crect x='0' y='59' width='60' height='1' fill='%23e4e4f4'/%3E%3Crect x='59' y='0' width='1' height='60' fill='%23e4e4f4'/%3E%3C/svg%3E");
  }
  h1 {
    font-weight: 500;
  }
  h1, label, input {
    color: #446;
  }

  input {
    background: hsl(240, 24%, 84%);
    border: 1px solid hsl(240, 20%, 78%);
  }
  input:focus {
    border: 1px solid #99d;
  }
  ::selection {
  background: #99d;
  color: #446;
  }

  footer, footer a {
    color: #446;
  }

  footer a:hover {
    color: #99d;
  }


}