/* Reset & Base */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f2f2f2;
  transition: background-color 0.3s ease;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* Main Container */
.container {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background-color: white;
  border-radius: 15px;
  text-align: center;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.dark-mode .container {
  background-color: #1e1e1e;
}

.main-title {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Dropdown Styling */
.dropdown-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 20px auto;
}

#categoryDropdown {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 2px solid black;
  width: 100%;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
  text-align-last: center;
}

body.dark-mode #categoryDropdown {
  background-color: #1e1e1e;
  color: white;
  border: 2px solid white;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

/* Hint Display */
.hint-display {
  background-color: #eee;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

body.dark-mode .hint-display {
  background-color: #2b2b2b;
}

/* Buttons */
.buttons {
  margin-bottom: 10px;
}

.buttons button {
  margin: 5px;
  padding: 10px 15px;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.buttons button:hover {
  background-color: #555;
}

/* Saved Hints */
.saved-hints {
  margin-top: 20px;
  text-align: left;
  flex-grow: 1;
}

/* Footer */
.footer {
  margin-top: 30px;
  font-size: 15px;
  text-align: center;
  color: #888;
}

/* Dark Mode Switch */
.switch {
  position: absolute;
  top: 20px;
  right: 20px;
}

.switch input {
  display: none;
}

.slider {
  position: relative;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  display: inline-block;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

input:checked + .slider::before {
  transform: translateX(18px);
}

input:checked + .slider {
  background-color: #555;
}
