body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  margin: 0;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
}

.game-container {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.footer {
  box-sizing: border-box;
  margin: 20px auto 0;
  max-width: 100%;
  padding: 15px;
  text-align: center;
  width: 500px;
}

.contact {
  color: #888;
  font-size: 14px;
  margin-top: 30px;
  max-width: 100%;
  width: 600px;
}

h1 {
  text-align: center;
}

.game-header h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 1em;
}

.game-header p {
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 20px;
  max-width: 100%;
  text-align: center;
  width: 600px;
}

.message {
  margin-bottom: 15px;
  margin-top: 10px;
}

.game-group {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
  max-width: 600px;
}

.group-name {
  font-size: 1.2em;
  font-weight: 700;
}

.group-members {
  font-size: 1em;
}

.game-board {
  grid-gap: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 8px;
  width: 100%;
}

.game-item {
  align-items: center;
  background-color: #efefe6;
  border: none;
  border-radius: 5px;
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 800;
  min-height: 70px;
  justify-content: center;
  min-width: calc(25vw - 15px);
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  width: 100%;
  height: 22.5vw;
}

.game-item.selected {
  background-color: #5a594e;
  color: #fff;
}

.game-group {
  background-color: #fbd400;
  box-sizing: border-box;
  margin-bottom: 0;
  padding-bottom: 20px;
  width: 100%;
}

.btn-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  width: 100%;
}

.game-btn {
  background-color: initial;
  border: 1px solid #000;
  border-radius: 25px;
  color: #000;
  cursor: pointer;
  font-size: 1em;
  height: 50px;
  margin: 0.5em 0;
  width: 100%;
}

.submit-btn {
  background: #000;
  border: none;
  color: #fff;
}

@media (min-width: 600px) {
  .game-board {
    grid-template-columns: repeat(4, 1fr);
    width: 600px;
  }
  .game-item {
    min-width: auto;
    width: 140px;
  }
  .btn-wrapper {
    flex-direction: row;
    justify-content: space-between;
    max-width: 600px;
  }
  .game-btn {
    width: 160px;
  }
}

@media (max-width: 600px) {
  .game-header {
    max-width: 100%;
  }
  .game-container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .game-item {
    font-size: 14px;
  }
}

.disclaimer {
  color: #888;
  font-size: 14px;
  margin-top: 30px;
  max-width: 100%;
  width: 600px;
}

.congratulations {
  background-color: #fff;
  border-radius: 15px;
  margin: 20px 0;
  padding: 20px;
  text-align: center;
}

.congratulations h2 {
  color: #0047ab;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
}

.congratulations p {
  color: #0047ab;
  font-size: 1.5em;
}

@media only screen and (max-width: 600px) {
  .game-item.size-8 {
    font-size: 13px;
  }
  .game-item.size-more {
    font-size: 12px;
  }
}



@media screen and (min-width: 768px) {
.game-item {
    min-height: 70px;
    height: 80px;
}
}



/* Apply styles for the original button size */

/* Apply styles for the small size when the button is clicked */
.game-item.clicked {
  transform: scale(0.8);
}

.game-item {
    background: radial-gradient(circle, rgba(164, 210, 242, 0.75) 0%, rgba(105, 172, 223, 0.75) 100%);
    box-shadow: inset 0vh 0vh 0vh 0vh rgb(126 151 188 / 75%), 0vh 1.5px 1px 0px rgba(0, 0, 0, 0.5);
    color: #1D3C4C !important;
}

.game-item.selected {
color: #fff !important;
    background: radial-gradient(circle, rgba(1, 56, 113, 0.75) 0%, rgba(0, 45, 91, 0.75) 100%) !important;
    box-shadow: inset 0vh 0vh 1.5vh 0.75vh rgba(0, 25, 70, 0.5), 0vh 0.25vh 1vh 0vh rgba(0, 0, 0, 0.5);
}