@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

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

body {
  font-family: 'Outfit', sans-serif;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  background-color: #1a1a1a;
}

img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.65) saturate(1.2);
  transition: opacity 1s ease-in-out;
}

.hidden {
  display: none !important;
}

#center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

h2#clock {
  font-size: 8rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -3px;
  text-align: center;
}

h1#greeting {
  font-size: 3rem;
  font-weight: 400;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
}

input[type="text"] {
  padding: 15px 25px;
  width: 320px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  width: 340px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

input[type="submit"] {
  display: none;
}

#weather {
  position: absolute;
  top: 25px;
  right: 30px;
  text-align: right;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 18px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

#weather:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.35);
}

#weather span:first-child {
  font-weight: 600;
  margin-bottom: 4px;
}

#quote {
  position: absolute;
  bottom: 40px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

#quote:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.3);
}

#quote span:last-child {
  font-size: 0.95rem;
  opacity: 0.8;
  font-style: italic;
}

/* ToDo List */
#todo-form {
  margin-top: 10px;
  margin-bottom: 20px;
}

#todo-list {
  list-style: none;
  margin-top: 10px;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  padding: 0 5px;
}

#todo-list::-webkit-scrollbar {
  width: 6px;
}

#todo-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

#todo-list li {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s, background 0.2s;
  animation: fadeIn 0.3s ease-out;
}

#todo-list li:hover {
  transform: scale(1.02);
  background: rgba(0, 0, 0, 0.45);
}

#todo-list li button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  font-size: 1.1rem;
  padding: 5px;
  border-radius: 50%;
}

#todo-list li button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

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

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  h2#clock {
    font-size: 5rem;
  }

  h1#greeting {
    font-size: 2.2rem;
  }

  input[type="text"] {
    width: 280px;
    font-size: 1rem;
  }

  input[type="text"]:focus {
    width: 300px;
  }

  #weather {
    top: 15px;
    right: 15px;
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  #quote {
    font-size: 1rem;
    bottom: 20px;
    padding: 15px;
    width: 90%;
  }

  #todo-list {
    max-height: 200px;
  }
}