html {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  touch-action: manipulation;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#party-button {
  margin: 2.5vw;
  background-size: 400%;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}

#party-button-image {
  height: 30vw;
}

#party-button:active {
  transform: translateY(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#party-button:hover {
  animation: rainbow 5s ease infinite;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.title h1 {
  font-size: xx-large;
  color: #00ced1; /* Higher contrast teal color */
  text-align: center;
  text-shadow: 3px 3px #008b8b, 6px 6px #20b2aa, 9px 9px #5f9ea0; /* Darker shadows for higher contrast */
  animation: rainbow-text 3s infinite;
  margin: 0px;
}

h4 {
  margin-top: 5vw;
  margin-bottom: 5vw;
}

@keyframes rainbow-text {
  0%, 100% {
      color: #0057d1; /* Primary blue */
      text-shadow: 3px 3px #1e90ff, 6px 6px #4682b4, 9px 9px #4169e1; /* Blue shades */
  }
  20% {
      color: hotpink; /* Pink */
      text-shadow: 3px 3px #ff69b4, 6px 6px #ff1493, 9px 9px #db7093; /* Various shades of pink */
  }
  40% {
      color: yellow; /* Yellow */
      text-shadow: 3px 3px #ffd700, 6px 6px #ffec8b, 9px 9px #f0e68c; /* Yellow shades */
  }
  60% {
      color: #ff6347; /* Coral/Red */
      text-shadow: 3px 3px #ff4500, 6px 6px #ff7f50, 9px 9px #ff8c69; /* Various shades of coral/red */
  }
  80% {
      color: #ff69b4; /* Pink */
      text-shadow: 3px 3px #db7093, 6px 6px #ff1493, 9px 9px #ff69b4; /* Pink shades */
  }
}

.title {
  text-align: center;
}

.box-container{
  background-color:#fff;
  display:grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 1 / 1;
  grid-row: auto auto;
  grid-column-gap: 2vw;
  grid-row-gap: 2vw;
  width: 98vw;
  .box{
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: x-large;
  }
}

.box {
  display: flex;
  flex-direction: column;
}

a:link { 
  text-decoration: none; 
} 
a:visited { 
  text-decoration: none; 
} 
a:hover { 
  text-decoration: none; 
} 
a:active { 
  text-decoration: none; 
}

#connections {
  background-color: hotpink;
}

#mini {
  background-color: rgb(0, 110, 255);
}

#strands {
  background-color: rgb(255, 34, 34);
}

#wordle {
  background-color: yellow;
}

.icon {
  height: 25vw;
  margin-bottom: 2vw;
}

.back-button {
  position: absolute;
  top: 0px;
  left: 0px;
  background: none;
  border: none;
  cursor: pointer;
}

.back-button:focus {
  outline: none;
}

.back-button-image {
  height: 14vh;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: xx-large;
  font-weight: bold;
  height: 9vh;
}

#keyboard-cont {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(0, 110, 255);
  padding-top: 10px;
  padding-bottom: 10px;
}

#keyboard-cont div {
  display: flex;
}

.first-row {
  display: flex;
  width: 100vw;
  height: 40px;
  justify-content: center;
}

.second-row {
  display: flex;
  width: 90vw;
  height: 40px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.third-row {
  display: flex;
  width: 95vw;
  height: 40px;
  justify-content: center;
}

.keyboard-button {
  font-weight: 400;
  font-size: large;
  margin: 0 1px;
  cursor: pointer;
  text-transform: uppercase;
  flex: 1;
  outline: none;
  border: none;
  background-color: #7ddcff;
  padding: 0px;
}

.enter-button {
  font-weight: 400;
  font-size: small;
  margin: 0 1px;
  cursor: pointer;
  text-transform: uppercase;
  flex: 1;
  outline: none;
  border: none;
  background-color: #7ddcff;
  padding: 4px;
}