body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

h1 {
  margin-bottom: 30px;
}

button {
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

#dinner-recommendation {
  margin-top: 30px;
  font-size: 20px;
  font-weight: bold;
}

.dinner-item {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

/* Light Mode */
body {
  background-color: #f0f0f0;
  color: #333333;
}

.container {
  background-color: #ffffff;
}

button {
  background-color: #007bff;
  color: #ffffff;
}

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

.dinner-item {
  background-color: #eeeeee;
}

/* Dark Mode */
body.dark-mode {
  background-color: #4a235a;
  color: #ffffff;
}

body.dark-mode .container {
  background-color: #5b2c6f;
}

body.dark-mode button {
  background-color: #8e44ad;
  color: #ffffff;
}

body.dark-mode button:hover {
  background-color: #9b59b6;
}

body.dark-mode .dinner-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  position: absolute;
  top: 20px;
  right: 20px;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display:none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked + .slider {
  background-color: #8e44ad;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}