/* Base styles */
body {
  font-family: 'Fresca', sans-serif;
  background-color: #3B3B3B;
  text-align: center;
}



input[type="text"] {
  font-family: 'Fresca', sans-serif;
  font-size: 16px; /* Base font size */
  width: 2em; /* Initial width for each input box */
  margin-right: 5px; /* Margin between input boxes */
}

.container {
  max-width: 75%;
  margin: 0 auto;
  padding: 20px;
  background-color: #FAFAFA;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container img {
  max-width: 100%; /* Ensure the image does not exceed its container's width */
  height: auto; /* Maintain the aspect ratio of the image */
  display: block; /* Remove extra space under the image */
  margin: 0 auto; /* Center the image horizontally (optional) */
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Adjust gap as needed */
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-container a {
  flex: 1 1 calc(50% - 60px); /* Two images per row with a gap */
}

h1 {
  color: #333;
}

button {
  padding: 10px 20px;
  background-color: #2E2E2E;
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #424242;
}

#message {
  font-weight: bold;
  margin-top: 20px;
}

.riddle-text {
  margin-top: 20px;
  font-size: 1.2rem;
}

.letter-boxes {
  margin-top: 20px;
}

.letter-boxes {
  display: flex;
  flex-wrap: nowrap;           /* Prevent wrapping */
  overflow-x: auto;            /* Scroll if overflow */
  justify-content: center;
  gap: 6px;
  padding: 10px;
}


.letter-boxes input {
  width: 40px; /* Adjust width as needed */
  height: 40px; /* Adjust height as needed */
  font-size: 1.5rem; /* Adjust font size as needed */
  text-align: center;
  margin: 5px;
}

/* Add this CSS for the gap between words */
.word-gap {
  width: 30px; /* Adjust width as needed */
  display: inline-block;
}


/* Default styles for links (desktop) */
a {
  color: #2E2E2E; /* Change link color */
  text-decoration: none; /* Remove underline */
  font-size: 18px; /* Change font size */
}

/* Hover effect for links (desktop) */
a:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #424242; /* Change color on hover */
}


/* Special link styles */
a.special-link1 {
  color: #701E0E; /* Specific color for special links */
  text-decoration: none; /* Remove underline */
  font-size: 18px; /* Change font size */
}

/* Hover effect for links with the class "special-link1" */
a.special-link1:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #424242; /* Change color on hover for special links */
}

a.special-link2 {
  color: #157024; /* Specific color for special links */
  text-decoration: none; /* Remove underline */
  font-size: 18px; /* Change font size */
}

a.special-link2:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #424242; /* Change color on hover for special links */
}

a.special-link3 {
  color: #1B1570; /* Specific color for special links */
  text-decoration: none; /* Remove underline */
  font-size: 18px; /* Change font size */
}

a.special-link3:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #424242; /* Change color on hover for special links */
}

a.special-link4 {
  color: #701567; /* Specific color for special links */
  text-decoration: none; /* Remove underline */
  font-size: 18px; /* Change font size */
}

a.special-link4:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #424242; /* Change color on hover for special links */
}

a.special-link5 {
  color: #CC8800; /* Specific color for special links */
  text-decoration: none; /* Remove underline */
  font-size: 18px; /* Change font size */
}

a.special-link5:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #424242; /* Change color on hover for special links */
}

a.special-link6 {
  color: #2E2E2E; /* Specific color for special links */
  text-decoration: none; /* Remove underline */
  font-size: 28px; /* Change font size */
}

a.special-link6:hover {
  text-decoration: none; /* Add underline on hover */
  color: #424242; /* Change color on hover for special links */
}

#riddle-answer {
    width: 100%;
    max-width: 500px;
    font-size: 1.2em;
    box-sizing: border-box;
}

.riddle p {
    font-size: 1.2em;
}

.letter-box {
    display: inline-block;
    width: 20px;
    height: 30px;
    border: 1px solid black;
    margin: 2px;
    text-align: center;
    font-size: 1.2em;
    line-height: 30px;
}

.letter-box-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}


/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup Content */
.popup-content {
  background-color: #fff;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.9; /* Adjust transparency here */
}

.popup-content h1 {
  margin-bottom: 15px;
  font-size: 1.8em;
}

.popup-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.popup-content ul li {
  margin: 10px 0;
  font-size: 1.2em;
}

.popup-content a {
  color: #007bff;
  text-decoration: none;
}

.popup-content a:hover {
  text-decoration: underline;
}

.popup-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #0056b3;
}



/* Media queries for mobile */
@media (max-width: 768px) {
  input[type="text"] {
    font-size: 10px; /* Reduce font size for smaller screens */
    width: 1.5em; /* Adjust width to fit within smaller screens */
    margin-right: 3px; /* Reduce margin between input boxes */
  }

  /* Mobile styles for links */
  a {
    color: #2E2E2E; /* Change link color for mobile */
    text-decoration: none; /* Add underline for mobile */
    font-size: 14px; /* Change font size for mobile */
  }

  /* Hover effect for links on mobile */
  a:hover {
    text-decoration: underline; /* Remove underline on hover for mobile */
    color: #424242; /* Change color on hover for mobile */
  }
  .image-container {
    display: block;
  }

  .image-container a {
    display: block;
    margin-bottom: 20px; /* Space between images */
  }

  .image-container img {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .letter-box {
    width: 20px;
    height: 30px;
    font-size: 0.9rem;
    line-height: 30px;
  }
}


.letter-box-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Disable zooming and allow normal scaling */
@viewport {
  width: device-width;
  zoom: 1.0;
  user-zoom: fixed; /* Prevent zooming */
  min-zoom: 1.0;
  max-zoom: 1.0;
}
