#onlinePanel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0px;
}

#gameUrl {
  display: flex;
  width: 100%;
  max-width: 400px;
  margin-bottom: 5px;
}

#gameUrl-input {
  flex-grow: 1;
  padding: 10px;
  font-size: medium;
  height: 40px;
  border: 1px solid #cccccc;
  border-radius: 4px 0 0 4px;
  color: #333;
  background-color: #f9f9f9;
}

.shareButton {
  padding: 10px 15px;
  border: none;
  border-radius: 0 4px 4px 0;
  background: #04AA6D;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: medium;
}

.shareButton i {
  margin-right: 5px; /* Adds some space between the icon and the text */
}

.shareButton:hover {
  background-color: #00ce82;
}

.shareButton:active {
  background-color: #038a56;
}

.copy-confirmation {
  color: #04AA6D;
  font-size: 0.9em;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s linear;
}

.multiplayer-status {
  display: none;
  color: black;
  font-size: medium;
  margin-bottom: -20px;
}

@media screen and (orientation: portrait) {
  #onlinePanel {
    padding: 10px;
    align-items: center;
  }
  #gameUrl {
    flex-direction: column;
    width: auto; /* Allows the container to adapt to the width of its parent */
  }
  #gameUrl-input {
    width: 100%; /* Full width of the container */
    margin-bottom: 10px; /* Space between input and button */
    border-radius: 4px; /* Adjusted radius for standalone input */
    font-size: 3vw;
  }
  .shareButton {
    width: 100%; /* Full width of the container */
    border-radius: 4px; /* Adjusted radius for standalone button */
    font-size: 3vw;
  }
  .copy-confirmation {
    text-align: center; /* Centers the confirmation message */
  }
  .multiplayer-status {
    font-size: 3.5vw;
  }
}

  @keyframes fadeBackground {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgb(206, 206, 206); }
}

.awaitingOpponent {
    animation: fadeBackground 2s ease-in-out infinite;
}

.darkGreyText {
  color: rgb(121, 121, 121);
}

@keyframes pulse {
  0% {
      transform: scale(1);
      opacity: 1;
  }
  50% {
      transform: scale(1.05);
      opacity: 0.7;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

.waiting-animation {
  background-color: grey; /* Grey out the button */
  color: white;
  padding: 13px 20px;
  border: 1px black;
  border-radius: 5px;
  font-size: larger;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center; /* center the content vertically */
  text-align: center;
  gap: 0.8vw;
  font-family: 'Roboto', Courier, monospace;
  animation: pulse 1.5s infinite;
}