* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(to right, #e0eafc, #cfdef3);
}

.container {
  width: 100%;
  text-align: center;
  max-width: 500px;
  padding: 40px 30px;
  border-radius: 15px;
  background: white;
  box-shadow: 5px 6px 30px rgba(0, 0, 0, 0.4);
}

h1 {
  text-transform: uppercase;
  font-family: 'Times New Roman', Times, serif;
  color: #333;
  margin-bottom: 25px;
  font-size: 30px;
}

select, button, input {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  border-radius: 15px;
  border: 1px solid #ccc;
  font-size: 17px;
  transition: all 0.3s ease;
}

select:focus, input:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

button {
  cursor: pointer;
  background-color: #007BFF;
  color: white;
  border: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00448b;
}

#result {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 26px;
}

/* Dark mode */
body.dark-mode {
  background: linear-gradient(to right, #2c3e50, #4ca1af);
  color: #f0f0f0;
}

body.dark-mode .container {
  background-color: #1e1e2f;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode h1 {
  color: #f0f0f0;
}

body.dark-mode select, body.dark-mode input, body.dark-mode button {
  background-color: #2c2c3d;
  color: #f0f0f0;
  border: 1px solid #666;
}

body.dark-mode button {
  background-color: #5555ff;
  border: none;
}

body.dark-mode button:hover {
  background-color: #3333aa;
}
body.dark-mode select:focus, body.dark-mode input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.theme-toggle {
  background: none;
  color: #007BFF;
  border: 1px solid #3333aa;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  position: fixed;
  top: 20px;
  right: 20px;  
  z-index: 1000;
  padding: 8px 12px; 
  border-radius: 8px;
  width: auto; 
}

.theme-toggle:hover {
  background-color: #00448b;
  color: white;
}

body.dark-mode #toggle-theme {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

body.dark-mode #toggle-theme:hover {
  background-color: #fff;
  color: #3333aa;
}

#result.visible {
  display: block;
  opacity: 1;
}

/* Responsivenes */
@media (max-width: 600px) {
  .container {
    padding: 30px 20px;
  }

  h1 {
    font-size: 22px;
  }

  select, button, input {
    font-size: 16px;
    padding: 10px 12px;
  }
  .theme-toggle{
    left: 30px;
  }
} 