body {
  font-family: "Comic Sans MS", "Fredoka One", sans-serif;
  background-color: #f7f9fc;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 20px;
}

h1 {
  font-size: 28px;
  background-color: #ff9f00;
  color: #fff;
  padding: 20px;
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sentence {
  margin: 20px;
}

.selected {
  background-color: #4caf50 !important;
  color: #fff !important;
  transform: scale(1.1);
}

.word {
  cursor: pointer;
  background-color: #ffd699;
  padding: 10px;
  margin: 5px;
  display: inline-block;
  border-radius: 8px;
  font-size: 25px;
  transition: background-color 0.3s, transform 0.3s;
}

.word:hover {
  background-color: #ffc266;
  transform: scale(1.05);
}

#score {
  font-size: 30px;
  background-color: #4caf50;
  color: #fff;
  padding: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
}

#status {
  font-size: 20px;
  color: #4caf50;
  margin: 10px;
}

#selectAdjective {
  font-size: 20px;
  color: #5b03ff;
  margin: 15px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  border-radius: 10px;
}

.overlay-content h2 {
  font-family: "Fredoka One", cursive;
  color: #333;
}

.overlay-content p {
  font-size: 16px;
  color: #555;
}

.overlay-content button {
  font-family: "Comic Sans MS", "Fredoka One", sans-serif;
  background-color: #ffcc00;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin: 5px;
  font-size: 18px;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s;
}

.overlay-content button:hover {
  background-color: #ffa600;
  transform: scale(1.05);
}

.description-container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
}

p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.highlight {
  color: #ff9f00;
  font-weight: bold;
}
button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}
/* Main Close Button styling */
#mainCloseButton {
  background: linear-gradient(45deg, #ff7675, #d63031);
  margin-top: 20px;
  display: block; /* This makes the button take up the full line, i.e., not inline with any other element */
  width: 150px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#mainCloseButton:hover {
  background: linear-gradient(45deg, #d63031, #ff7675);
  transform: scale(1.05);
}

#mainCloseButton:active {
  transform: scale(1);
  opacity: 0.8;
}
.progress-bar-container {
  width: 100%;
  background-color: #f9f9f9; /* Lighter gray for better contrast */
  padding: 3px;
  border-radius: 15px; /* Rounded corners */
  margin-top: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* Inset shadow for depth */
  border: 1px solid #e0e0e0; /* Slight border for definition */
  max-width: 700px;
  margin-left: auto; /* Auto margin to center horizontally */
  margin-right: auto; /* Auto margin to center horizontally */
}

.progress-bar {
  height: 20px;
  width: 0;
  background: linear-gradient(
    to right,
    #48e0a4,
    #317b7f
  ); /* Gradient fill from teal to dark teal */
  border-radius: 12px; /* Keeps it within the container */
  text-align: right;
  line-height: 20px; /* Same as height */
  color: white;
  transition: width 0.3s ease; /* Smooth animation for width change */
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* A bit of shadow for the moving bar */
}

@media (max-width: 600px) {
  .word {
    font-size: 20px;
    padding: 8px;
  }
  #status,
  #score {
    font-size: 18px;
  }
}
