* {
  /* box-sizing: border-box; */
}

html {
  font-size: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  margin: auto;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  padding: 48px;
  gap: 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-label {
  font-size: 30px;
  border: none;
  background-color: transparent;
  border-radius: 100%;
}

#theme-button {
  display: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px;
  border-radius: 10px;
  box-shadow: 0 0 20px #888888;
}

body:has(#theme-button:checked) form {
  background-color: #1c1c1c;
  color: white;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  cursor: pointer;
}

input,
select {
  padding: 12px 10px;
  cursor: pointer;
}

body:has(#theme-button:checked) input, select {
  background-color: #383838;
  color: white;
  border-color: #444444;
}

body:has(#theme-button:checked) input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert();
}

input[type="color"] {
  width: 100%;
  padding: 0;
  height: 48px;
}

fieldset {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 16px;
}

input[type="submit"] {
  margin-top: 8px;
  padding: 16px;
  color: white;
  background-color: #4caf50 !important;
  border: none;
  border-radius: 8px;
  font-weight: bold;
}

input[type="submit"]:hover {
  background-color: #45a049 !important;
}
