@font-face {
  font-family: "Atkinson Hyperlegible";
  src:
    local("Atkinson Hyperlegible Next"),
    local("Atkinson Hyperlegible"),
    url("AtkinsonHyperlegibleNext-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src:
    local("Atkinson Hyperlegible Next"),
    local("Atkinson Hyperlegible"),
    url("AtkinsonHyperlegibleNext-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 800;
}

:root {
  font-family: "Atkinson Hyperlegible", sans-serif;

  --bg: black;
  --text: white;
  --pink: #ff3781ff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: white;
    --text: black;
  }
}

body {
  margin: 0;
  text-align: center;
}

#color-mode {
  position: absolute;
  top: 20px;
  left: 20px;
}

#color-mode~label {
  position: absolute;
  top: 20px;
  left: 50px;
  color: var(--text);
  transition-duration: 50ms;
  transition-property: color;
}

#dark-label {
  display: none;
}

#color-mode:checked~main {
  --bg: white;
  --text: black;
}

#color-mode:checked~label {
  color: black;
}

@media (prefers-color-scheme: light) {
  #color-mode:checked~main {
    --bg: black;
    --text: white;
  }

  #color-mode:checked~label {
    color: white;
  }

  #dark-label {
    display: initial;
  }

  #light-label {
    display: none;
  }
}

main {
  min-height: 100vh;
  width: 100vw;
  background: var(--bg);
  color: var(--text);
  transition-duration: 50ms;
  transition-property: background, color;
}

h1 {
  margin: 0;
  padding: 22px;
  font-size: xxx-large;
}

h1 span {
  display: inline-block;
}

img {
  max-width: 384px;
  width: 80%;
}

#header {
  font-size: x-large;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

#triangle {
  margin-inline: -70px;
}

#left,
#right {
  color: var(--pink);
  width: fit-content;
}

table {
  width: 40%;
  border-collapse: collapse;
}

th,
td {
  padding: 4px 8px;
}

tr {
  border-bottom: 2px solid var(--pink);
}

tr:last-child {
  border: none;
}

#table-box {
  display: flex;
  justify-content: space-evenly;
  align-items: start;
}

.body-text {
  max-width: 80%;
  margin: auto;
  text-align: justify;
}

#bricks {
  margin: 2rem;
  filter: contrast(120%);
  filter: saturate(120%);
}

#buttons {
  max-width: 80%;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#buttons img {
  width: 88px;
  height: 31px;
}

@media screen and (width <=970px) {
  h1 {
    padding-top: 54px;
  }
}

@media screen and (width <=750px) {

  h1 {
    font-size: xx-large;
  }

  #triangle {
    order: -1;
  }

  #header {
    flex-direction: column;
    align-items: center;
  }

  #left,
  #right,
  #saturday-schedule,
  #sunday-schedule {
    width: 80%;
    float: unset;
    margin: 20px auto 20px auto;
  }

  #table-box {
    flex-direction: column;
    align-items: center;
  }
}