*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --background-color: #fff;
  --text-color: #000;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  -moz-osx-font-smoothing: grayscale;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -webkit-justify-content: center;
  justify-content: center;
}

/* toggle-dark-mode { */
/*   position: fixed; */
/*   bottom: 0; */
/*   right: 0; */
/*   padding: 8px 16px; */
/*   border-radius: 8px; */
/*   background: transparent; */
/*   background-color: #424242; */
/*   border: none; */
/*   outline: none; */
/*   cursor: pointer; */
/*   font-size: 24px; */
/* } */

.toggleTheme {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.toggleTheme i {
  font-size: 20px;
}

.toggleTheme:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: #f9fafb;
}

.toggleTheme:active {
  transform: translateY(0) scale(0.95);
}

.dark-mode .toggleTheme {
  background-color: #1f2937;
  border-color: #374151;
  color: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-mode .toggleTheme:hover {
  background-color: #374151;
}

.dark-mode {
  background-color: #000;
  color: #fff;
}

.light-mode {
  background-color: #fff;
  color: #000;
}

.button1 {
  background-color: #fff;
  color: #000;
  position: fixed;
  bottom: 10px;
  right: 10px;
}

.dark-mode .button1 {
  background-color: #fff;
  color: #000;
}

.light-mode .button1 {
  background-color: #000;
  color: #fff;
}

.button2 {
  background-color: transparent;
  color: #000;
  border: none;
}

.dark-mode .button2 {
  background-color: transparent;
  color: #fff;
}

.light-mode .button2 {
  background-color: transparent;
  color: #000;
}

.button3 {
  background-color: #2c3e50;
  color: #fff;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -webkit-justify-content: center;
  justify-content: center;
}

body,
input {
  display: -webkit-flex;
  display: flex;
  font-family: "Avenir", "helvetica neue", helvetica, arial, sans-serif;
}

.age-label {
  color: #b0b5b9;
  font-size: 1.2rem;
  line-height: 1;
  margin: 0 0 0 2px;
}

.count {
  color: #494949;
  margin: 0;
  font-size: 6rem;
  line-height: 1;
  font-weight: 600;
  flex: 1;
}

.count sup {
  font-size: 2.4rem;
  margin-left: 7px;
}

#timer {
  display: flex;
  align-items: center;
  flex-direction: column;
}

label {
  display: block;
}

input,
button {
  padding: 0.375rem 0.75rem;
  font-size: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
}

input {
  margin-right: 0.5rem;
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
  border-radius: 0.25rem;
  border-color: #ccc;
  background-color: #fff;
}

button {
  outline: none;
  display: block;
  cursor: pointer;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  background-color: #0be;
}

#reset {
  margin-right: 10px;
  padding: 0.375rem 0.75rem;
  font-size: 1.5rem;
  color: #b0b5b9;
  border: none;
}

footer {
  padding-top: 0.5rem;
  display: -webkit-flex;
  -webkit-flex-direction: row;
  -webkit-justify-content: center;
}

.birth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.birth-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(45deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 0.8s ease-in;
}

.input-container {
  position: relative;
  margin: 2rem 0;
  width: 100%;
  max-width: 400px;
}

.date-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-family: inherit;
  font-weight: 500;
  color: #1f2937;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 0;
  cursor: pointer;
  outline: none;
  text-align: center;
}

.date-input:hover {
  border-color: #cbd5e1;
}

.date-input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.date-input:focus:hover {
  border-color: #3498db;
}

.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.3);
  opacity: 0.5;
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 4px;
}

.date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: #f1f5f9;
}

.submit-btn {
  background: linear-gradient(45deg, #2c3e50, #3498db);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dark-mode .birth-title {
  background: linear-gradient(45deg, #3498db, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-mode .date-input {
  background-color: #1f2937;
  border-color: #374151;
  color: #f9fafb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .date-input:hover {
  border-color: #4b5563;
}

.dark-mode .date-input:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.15), 0 4px 10px rgba(0, 0, 0, 0.2);
  background-color: #1f2937;
}

.dark-mode .date-input:focus:hover {
  border-color: #00f2fe;
}

.dark-mode .date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.9);
  opacity: 0.7;
}

.dark-mode .date-input::-webkit-calendar-picker-indicator:hover {
  background-color: #374151;
}

.dark-mode .submit-btn {
  background: linear-gradient(45deg, #3498db, #00f2fe);
}

.dark-mode .age-label {
  color: #6b7280;
}

.dark-mode .count {
  color: #e5e7eb;
}

.dark-mode .count sup {
  color: #9ca3af;
}