:root {
  --blue: #1da1f2;
  --green: #17bf63;
  --black: #000000;
  --gray: #eeeeee;
  --beige: #ffffff;
}

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

::selection {
  background-color: #eeeeee;
}

html {
  box-sizing: border-box;
  font-size: 62.5%; /* scaling down so that 1rem equals to 10px */
}

body {
  background-color: var(--beige);
  color: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 135rem;
  width: 95%;
}

a {
  color: #17bf63;
  text-decoration: underline;
}

h1 {
  font-size: 5.2rem;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -.025em;
}

ol,
ul {
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: square;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1rem, 1fr));
  grid-template-rows: repeat(auto-fit, minmax(1rem, 1fr));
/*  grid-column-gap: 4px;
  grid-row-gap: 4px;*/
  width: 100%;
  max-width: 300px;
  margin: 1rem;
}

.grid-item {
  border: 1px solid var(--gray);
  /*border-radius: 0.4rem;*/
  /*margin: .15rem;*/
  height: 10px;
  width: 10px;
  transition: all .5s ease-in;
}

/* homegrown functional CSS framework */

.flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.justify-around { justify-content: space-around !important; }

.bg-time-passed { background-color: var(--blue) !important; }

.bg-time-selected { background-color: var(--blue) !important; }

.text-center { text-align: center; }

.mb-0 { margin: 0 !important; }
.m-1 { margin: 1rem !important; }

.p-2 { padding: 2rem; }

.border-b-3 { border-bottom: 0.3rem solid !important; }
