/* Size toggle styling */
.size-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.size-toggle button {
  padding: 8px 15px;
  font-size: 16px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.size-toggle button:hover {
  background-color: #777;
}



body.dark-mode {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #131313, #5c5c5c); /* Dark gradient background */
  color: #eee; /* Light text for dark background */
  background-size: cover; /* Cover the entire background */
  background-repeat: no-repeat;
  min-height: 100vh; /* Ensure full viewport height */
}

body.dark-mode::before {
  content: '';
  position: fixed; /* Fixed position for background effect */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgb(35, 85, 124), rgba(0, 0, 0, 0.2)); /* Subtle radial gradient */
  mix-blend-mode: overlay; /* Blend mode for subtle effect */
  pointer-events: none; /* Make it non-interactive */
}

nav.dark-nav {
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent dark nav */
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
}

nav.dark-nav a {
  color: #eee;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
}

nav.dark-nav a:hover {
  transform: translateY(-5px);
  background-color: #555;
}

main.dark-main {
  padding: 40px 20px;
  max-width: 80%;
  margin: 40px auto;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark main */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.content-wrapper {
  text-align: center;
}

.main-title {
  font-size: 3em;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* General button styling */
button {
  background-color: #555;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #777;
  transform: scale(1.05);
}

/* General response and message containers */
#apiResponse {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 5px;
}

#message {
  margin-top: 20px;
  font-size: 1.2em;
  color: #ffcc00;
}
