/* needed for modern web dev */
* {
  box-sizing: border-box;
}


/* Cluegen Bar */
/* Style the horizontal bar */
.cluegen-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
}

/* Style the buttons */
.cluegen-btn {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
}

/* Style for Button 1 */
#cluegen-btn-generate {
  background-color: rgb(60, 90, 110);
  color: white;
}

/* Style for Button 2 */
#cluegen-btn-player {
  background-color: rgb(110, 103, 23);
  color: white;
}

/* Style for Button 3 */
#cluegen-btn-edit {
  background-color: rgb(60, 90, 110);
  color: white;
}

/* Style for modal */
#how-to-use-link {
  color: #93b5f7;
  text-decoration: none;
  text-align: center;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  justify-content: center;
  align-items: center;
  display: block;
  margin-bottom: 1em;
}

#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  border-radius: 5px;
  display: none;
}

@media (max-width: 600px) {
  #modal {
    width: 90%;
  }
}

#close {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}


.sliding-container {
  overflow:hidden;
}

/* Style the clue list container */
.clue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Style the clue bubbles */
.clue-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #28732a;
  border-radius: 50px;
  padding: 20px;
  color: white;
  min-width: 200px;
  text-align: center;
  transition: 0.3s;
}

/* Style the clue text */
.clue-text {
  font-size: 3vw;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Style the word list */
.word-list {
  font-size: 2vw;
  color: #FFFFFF;
  font-family: Arial, Helvetica, sans-serif;
}

/* Responsive design */
@media (min-width: 600px) {
  .clue-bubble {
    flex-basis: 33%-20px; /* to account for the left and right padding */
  }
  .clue-text {
    font-size: 16px; /* max 16px */
  }
  .word-list {
    font-size: 16px; /* max 16px */
  }
}

@media (max-width: 500px) {
  .clue-bubble {
    flex-basis: 100%;
  }
  .clue-text {
    font-size: 5vw;
  }
  .word-list {
    font-size: 5vw;
  }
}



/* Style the card grid */
#grid {
  position: relative;
  top: 0;
  transition: top 0.5s;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

#grid .card {
  padding: 10px;
  position: relative; /* necessary for the transparent div */
  background-color: rgb(110, 103, 23);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  flex-grow: 1;
}

@media (max-width: 599px) {
  #grid .card {
    flex-basis: 100%; /* For less than 400px screens */
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  #grid .card {
    flex-basis: calc(50% - 10px); /* For 600px to 900px screens */
  }
}

@media (min-width: 900px) {
  #grid .card {
    flex-basis: calc(20% - 10px); /* For greater than 900px screens */
  }
}

#grid input[type='text'] {
  text-align: center;
  border-radius: 5px;
  border: 1px solid #999999;
  color: #FFFFFF;
  font-size: 2vw;
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  background-color: transparent;
}

@media (max-width: 599px) {
  #grid input[type="text"] {
    font-size: 6vw;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  #grid input[type="text"] {
    font-size: 3vw;
  }
}

.transp {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
