:root {
  --color-dark: hsl(206, 24%, 45%); /* #57768e */
  --color-darker: hsl(206, 24%, 25%); /* #30424f */
  --color-light: hsl(90, 71%, 97%);
  --color-computer: hsl(2, 100%, 85%);
  --font-title: p22-flw-exhibition, sans-serif;
  --font-main: noka, sans-serif;
  --footer-height: 74px;
  height: 100%;
}
body {
  min-height: 100%;
  font-family: var(--font-main);
  font-weight: 300;
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 0;
  margin: 0;
  font-size: 1em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
*,
*::before,
*::after {
  position: relative;
  box-sizing: border-box;
}
a {
  color: var(--color-light);
}
a:hover {
  color: hsl(8, 71%, 71%);
}
header,
main,
footer {
  width: 100%;
  padding: 4rem;
}
main {
  flex-grow: 1;
  padding-bottom: var(--footer-height);
}
footer {
  border-top: 1px solid var(--color-light);
  position: absolute;
  bottom: 0;
  font-size: small;
  text-transform: uppercase;
  text-align: right;
  padding-block: 1rem;
}

main section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
header {
  border-bottom: 1px solid var(--color-light);
  padding-bottom: 1rem;
}
hgroup {
  text-align: center;
}
h1 {
  font-family: var(--font-title);
  font-size: 5.61em;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1;
}
h2 {
  font-size: 4.209em;
}
h3 {
  font-size: 3.157rem;
}
h4 {
  font-size: 2.369rem;
}
h5 {
  font-size: 1.777rem;
}
h6,
.lead {
  font-size: 1.333rem;
}
button {
  border: 1px solid var(--color-light);
  border-radius: 0;
  padding: 0.5rem 1rem;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-main);
  font-weight: bold;
  cursor: pointer;
  background: none;
}
button:hover,
button:focus {
  background-color: var(--color-darker);
}
button:active{
  background-color: var(--color-light);
  color: var(--color-dark);
}
.small {
  font-size: 0.75rem;
}
.x-small {
  font-size: 0.563rem;
}
.results {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}
.board-dots,
.lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}
.board-dots button {
  width: 1rem;
  height: 1rem;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--color-light);
  border-radius: 100%;
}
.board-dots .user {
  background-color: var(--color-light);
}
.board-dots .pc {
  background-color: var(--color-computer);
}
.board-dots [id^="R2"] {
  grid-row: 2;
}

.board-dots [id^="R3"] {
  grid-row: 3;
}
.board-dots [id^="R4"] {
  grid-row: 4;
}
.board-dots [id$="C2"] {
  grid-column: 2;
}
.board-dots [id$="C3"] {
  grid-column: 3;
}

.lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  gap: 0;
}
.lines > div {
  background-color: hsla(90, 71%, 97%, 0.25);
  margin-left: 1rem;
  margin-top: 0;
}
.lines .active {
  background-color: hsla(90, 71%, 97%, 1);
}
.lines .horizontal {
  width: 4rem;
  height: 1px;
}
.lines .vertical {
  width: 1px;
  height: 4rem;
  margin-left: 0.5rem;
}

.lines #R1C2-R1C3 {
  grid-column: 2;
  margin-left: 1rem;
  margin-top: 0.5rem;
}
.lines #R1C2-R2C2,
.lines #R3C2-R4C2,
.lines #R4C2-R4C3 {
  grid-column: 2;
}
.lines #R3C3-R4C3 {
  grid-column: 3;
}
.lines div[id^="R1"].vertical {
  margin-top: 0;
}
.lines div[id^="R2"].horizontal {
  grid-row: 3;
  margin-top: 0;
}
.lines div[id^="R2"].vertical {
  grid-row: 4;
  margin-top: 0;
}
.lines div[id^="R3"].horizontal {
  grid-row: 5;
  margin-top: 0;
}
.lines div[id^="R3"].vertical {
  grid-row: 6;
  margin-top: 0;
}
.lines div[id^="R4"].horizontal {
  grid-row: 7;
  margin-top: 0;
}
