body {
  font-family: "Roboto", sans-serif;
  background-color: #f7f9fc;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 10px;
}

h1 {
  font-size: 28px;
  background-color: hsl(32, 100%, 69%);
  color: #360303;
  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;
}

.ins-overlay-content {
  max-height: 80vh; /* Use 80% of the viewport height */
  overflow-y: auto; /* Enable vertical scrolling */
  padding-right: 15px; /* Additional padding to prevent content overlap with scrollbar */
  box-sizing: border-box; /* To include padding in the total width */
  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 {
  color: #333;
}

.overlay-content p {
  font-size: 16px;
  color: #555;
}

.overlay-content button {
  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: 18px;
  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;
}

#buttonContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Creates a gap between buttons for modern browsers */
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-family: "Roboto", sans-serif;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

button:hover {
  transform: translateY(-5px); /* gives a subtle lift effect */
}

#showInstructions {
  background: linear-gradient(45deg, #ffb703, #ff9a00);
}

#showInstructions:hover {
  background: linear-gradient(45deg, #ff9a00, #ffb703);
}

#mainCloseButton {
  background: linear-gradient(45deg, #e63946, #d32f2f);
}

#mainCloseButton:hover {
  background: linear-gradient(45deg, #d32f2f, #e63946);
}

#closeInstructionButton {
  background: linear-gradient(45deg, #e63946, #d32f2f);
}

#closeInstructionButton:hover {
  background: linear-gradient(45deg, #d32f2f, #e63946);
}

.overlay-content button {
  background-color: #4cc9f0;
  margin-top: 10px;
}

.overlay-content button:hover {
  background-color: #3ea8dc;
}

.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 */
}

.ins-overlay-content ul {
  list-style-type: none;
  padding-left: 0;
  text-align: left;
}

.ins-overlay-content li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.ins-overlay-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3a85ff;
  font-size: 1.5em;
  line-height: 0.8em;
}

@media (max-width: 600px) {
  .word {
    font-size: 20px;
    padding: 8px;
  }
  #status,
  #score {
    font-size: 18px;
  }
  .ins-overlay-content {
    max-height: 80vh; /* Use 80% of the viewport height */
    width: 400px;
    overflow-y: auto; /* Enable vertical scrolling */
    box-sizing: border-box; /* To include padding in the total width */
    position: absolute;
    top: 50%;
    left: 50%;
  }
}
