:root {
  --borderRadius: 90%;
  --borderWidth: solid black 0.33em;
  --darkModeBorderWidth: solid rgb(248, 241, 241) 0.33em;
  --darkModeTextColor: rgb(248, 241, 241);
  --baseGreen: #73c973;
  --lightUpGreen: #d0e9d0;
  --baseRed: #ff5733;
  --lightUpRed: #fcacac;
  --baseYellow: #fcf45c;
  --lightUpYellow: #f1f1cf;
  --baseBlue: #5e5edd;
  --lightUpBlue: #b6d0eb;
  --backGroundPink: rgb(252, 196, 205);
  --darkModeBackground: rgb(49, 47, 47);
}

.hidden {
  display: none !important;
}

body {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cal Sans", sans-serif;
  background-color: var(--backGroundPink);
  color: black;
}

header {
  position: fixed;
  top: 0;
  align-items: center;
  font-size: 1.1em;
}

h1 {
  margin-bottom: -0.25em;
}

button {
  background-color: white;
  border: solid black 0.15em;
  font-weight: bold;
}

#points-display,
#highscore-display {
  display: inline-block;
}

#points-display {
  margin-right: 0.5em;
  margin-bottom: -1em;
}

#highscore-display {
  margin-left: 0.5em;
  margin-bottom: -1em;
}

#mode-switcher {
  margin-left: 0.5em;
  font-size: 1.1em;
  border-radius: 15%;
}

#game-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#play {
  margin: 1em 0 -0.75em 0;
  font-size: 1.45em;
  height: auto;
  width: auto;
  text-align: center;
}

#game-info-text,
#play {
  display: flex;
}

main {
  margin-top: 10.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
}

#game-info-text {
  text-align: center;
}

#game-container {
  width: 45vh;
  height: 45vh;
}

#game-box-row1,
#game-box-row2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 50%;
}

.game-box {
  width: 100%;
  height: 100%;
}

#game-box1 {
  box-shadow: -5px -10px 20px 5px rgb(28, 143, 28) inset;
  border-top-left-radius: var(--borderRadius);
  background-color: var(--baseGreen);
  border: var(--borderWidth);
  border-right: none;
  border-bottom: none;
}
#game-box1:hover {
  background-color: var(--lightUpGreen);
}

#game-box2 {
  box-shadow: 5px -10px 20px 5px rgb(167, 35, 35) inset;
  border-top-right-radius: var(--borderRadius);
  background-color: var(--baseRed);
  border: var(--borderWidth);
  border-bottom: none;
}

#game-box2:hover {
  background-color: var(--lightUpRed);
}

#game-box3 {
  box-shadow: -5px 10px 20px 5px rgb(179, 179, 10) inset;
  border-bottom-left-radius: var(--borderRadius);
  background-color: var(--baseYellow);
  border: var(--borderWidth);
  border-right: none;
}

#game-box3:hover {
  background-color: var(--lightUpYellow);
}

#game-box4 {
  box-shadow: 5px 10px 20px 5px rgb(59, 59, 216) inset;
  border-bottom-right-radius: var(--borderRadius);
  background-color: var(--baseBlue);
  border: var(--borderWidth);
}

#game-box4:hover {
  background-color: lightblue;
}

#round-button {
  font-size: 1.5em;
  margin-top: 5.5em;
  position: absolute;
  top: 70%;
}

footer {
  margin-top: 5em;
  position: fixed;
  top: 85%;
  font-size: 0.75em;
}

a:visited {
  color: black;
}

.dark-mode {
  color: var(--darkModeTextColor);
  background-color: var(--darkModeBackground) !important;
  button {
    background-color: rgb(49, 47, 47);
    color: var(--darkModeTextColor);
    border: solid var(--darkModeTextColor) 0.15em;
  }
  #game-box1,
  #game-box2,
  #game-box3,
  #game-box4 {
    border: var(--darkModeBorderWidth);
  }
  a:visited {
    color: var(--darkModeTextColor);
  }
}
