html,
body {
  position: relative;
  width: 100%;
  height: 100%;
}

:root {
  --text-color: #333;
  --text-light-color: #838383;
  --input-size: 1.8em;
  --accent-color: #0059b8;
  --gray-color: #c4c4c4;

  --light-mode-pressed-shadow: inset -1px -1px 6px #ffffff,
    inset 1px 1px 6px #cccccc;
  --light-mode-shadow: 1px 1px 4px #cccccc, -1px -1px 4px #ffffff;
}

:root {
  --border-radius: 8px;
  --input-size: 2.4em;
  --font-size: 1em;
}

@media all and (min-width: 768px) {
  :root {
    --input-size: 1.8em;
    --font-size: 0.9em;
  }
}

body {
  color: var(--text-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, Ubuntu, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

h2,
h3,
h4,
h5,
h6 {
  width: auto;
  font-size: 1.2rem;
  margin: 0;
  margin-bottom: 0.5em;
  color: var(--text-color);
  border-radius: var(--border-radius);
  padding: 5px;
  border-bottom: 2px solid var(--accent-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:visited {
  color: var(--accent-color);
}

a:hover {
  text-decoration: underline;
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
}

label {
  display: block;
}

input,
select,
button {
  border-radius: var(--border-radius);
  background: white;
  border: 1px solid white;
  color: currentColor;
  line-height: var(--input-size);
  height: var(--input-size);
  min-width: var(--input-size);
  box-shadow: var(--light-mode-shadow);
  padding: 0 1em;
  margin: calc(var(--input-size) / 6);
  font-weight: bold;
  font-size: var(--font-size);
  transition: box-shadow 200ms ease;
}

input::placeholder {
  line-height: var(--input-size);
  color: var(--text-light-color);
  height: var(--input-size);
}

button:hover,
input:hover,
select:hover {
  outline: none;
  border: 1px solid currentColor;
}

input:focus,
select:focus {
  outline: 0;
  border: 1px solid currentColor;
  box-shadow: var(--light-mode-pressed-shadow);
}

button:focus {
  outline: 0;
  border: 1px solid currentColor;
}

button:active {
  box-shadow: var(--light-mode-pressed-shadow);
}

input[type='checkbox']:not(:checked):focus {
  box-shadow: var(--light-mode-shadow);
}

input[type='checkbox']:checked {
  box-shadow: var(--light-mode-pressed-shadow);
}

select:disabled,
input:disabled,
button:disabled {
  background: var(--gray-color);
}

select {
  appearance: none;
  -moz-appearance: none;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2333333f' fill-opacity='.941' d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px top 50%;
  background-size: 1em;
  padding-right: 2em;
}

select::-ms-expand {
  display: none;
}

input[type='color'] {
  background: white;
  padding: calc(var(--font-size) / 4);
  width: var(--input-size);
  height: var(--input-size);
}

input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: var(--input-size);
  height: var(--input-size);
  display: flex;
  padding: 0;
}

/* Utility classes */
.accent-color {
  color: var(--accent-color);
}

.hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flex {
  display: flex;
}

.tab {
  display: none;
}
.tab:target {
  display: block;
}
.tab:target ~ #tracker {
  display: none;
}

.icon-button {
  color: currentColor;
  border: 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon {
  width: var(--font-size);
  height: var(--font-size);
}
