body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
  margin: 0;
}

.score,
#counterwrap
{
    display: none;
}

a {
  color: #000;
}

#game-container {
  width: calc(90vmin - 80px); /* Subtracting 20px to ensure some margin; adjust as needed */
  height: calc(90vmin - 80px); /* Use vmin to ensure it takes the smaller dimension of the viewport */
  margin: 40px; /* This margin is half of what we subtracted to ensure it's centered and has some space around */
  border: 10px solid rgba(0,0,0,0);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0 auto;
  box-sizing: border-box;
}

h1 {
  margin: 5px;
  text-align: left;
  border-bottom: 0;
}

#logo {
  width: 250px;
  margin: 0 auto;
}

#game-footer {
  text-align: center;
  margin-top: 120px;
  margin-bottom: 20px;
}

#game-footer,
#game-footer a {
  color: #aaa;
}

.image-wrapper,
#interactions {
  display: inline-block;
  width: 33.33%;
  background-color: white;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

#game-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.15s ease;
  opacity: 1;
}

#interactions {
  margin: 20px auto;
  text-align: center;
}

#headline {
  font-weight: bold;
  font-size: 1.5em;
  text-align: center;
  font-family: verdana, 'Trebuchet MS', sans-serif;
  color: #555;
}

#again-button {
  padding: 5px;
  padding-top: 15px;
  padding-bottom: 15px;
  font-weight: bold;
  color: green;
  margin-bottom: 20px;
  border: 1px solid #999;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  cursor: pointer;
  margin: 10px;
}

.restart-button {
  margin-top: 15px;
  font-size: 1.2em;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 20px;
}

.game-instructions {
  color: #888;
  padding: 5px;
}

.confetti {
  position: fixed;
  top: 0;
  width: 10px;
  height: 10px;
  z-index: 9999;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #fff;
  opacity: 1;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fall {
  0% {
    top: -10px;
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100vh;
    transform: rotate(720deg);
    opacity: 0;
  }
}

@media (orientation: portrait) {
  #game-container {
    width: 100%;
    height: auto;
    margin: 0;
    border: 4px solid rgba(0,0,0,0);
  }

  .page, .all
  {
    margin-left: 0 !important;
    left: 0 !important;
    padding-left: 0 !important;
  }

  .all {
    margin-left: 5px !important;
  }

  #navigation {
    width: 60% !important;
  }

  #footer {
    top: 280px !important;
  }

  .image-wrapper,
  #interactions {
    display: inline-block;
    width: 50%;
    background-color: white;
    box-sizing: border-box;
  }

  #game-footer {
    margin-top: 20px;
  }
}
