body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

#main-container {
  text-align: center;
  margin-top: 50px;
}

#todo-display h1 {
  font-size: calc(2/3 * 100vh); /* Initial calculation for large size */
  max-height: 66vh; /* Two thirds of the viewport height */
  margin: 0;
  padding: 20px;
  overflow: hidden; /* Prevent text from overflowing */
  display: flex; /* Enable flexbox for this item */
  justify-content: center; /* Center text horizontally */
  align-items: center; /* Center text vertically */
}

#todo-input {
  width: 300px;
  height: 150px;
  margin-top: 20px;
}

#edit-button, #done-button, #save-button {
  margin-top: 20px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius:10px;
}
#edit-button {
  font-size: 0.7em;
}
#done-button {
  font-size: 2em;
}
#save-button {
  font-size: 1em;
}
#buttons {
  position: fixed;
  bottom: 100px;
  left: 50%; /* Center the element from the left */
  transform: translateX(-50%); /* Offset it by half of its width to the left */
}
/* Light theme styles (default) */
body {
  background-color: #f0f0f0;
  color: #111;
}

/* Dark theme styles */
body.dark-mode {
  background-color: #333;
  color: #f0f0f0;
}

/* Button that looks good on both dark and light themes */
.toggle-theme-btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #ffffff;
  color: #333;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .toggle-theme-btn {
  background-color: #222;
  color: #ffffff;
}

@keyframes tip-and-rotate {
  from {
    opacity: 1;
    transform: rotate(0deg);
  }
  to {
    opacity: 0;
    transform: rotate(-360deg);
  }
}

.poof-animation {
  animation: tip-and-rotate 0.5s forwards; /* This animation will make the element tip and rotate off */
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pop-in-animation {
  animation: popIn 0.5s forwards; /* Animation will make new element pop in */
}
