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

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  background-color: #2b2e4a; /* Dark background for the container */
  display: flex;
  flex-direction: column;
  gap: 2em;
  justify-content: center;
  align-items: center;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 0 30px 0 gray;
}

label {
  color: white;
  font-size: 22px;
}

.container p,
.container h1 {
  color: white;
  text-align: center;
}

#quote {
  font-size: 24px; /* Larger text for the quote */
  color: #ef8354; /* Color for the quote text */
  background-color: white; /* White background for better visibility */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 100%; /* Responsive width */
  max-width: 500px; /* Max width to keep it contained */
  text-align: center; /* Center align quote text */
}

button {
  padding: 20px 30px;
  background-color: #ef8354; /* Color for the button */
  color: white;
  font-size: 18px;
  border: none; /* Remove border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
}

button:hover {
  background-color: #d57a48; /* Darker shade on hover */
}

select {
  padding: 10px;
  background-color: #2b2e4a; /* Same as container for consistency */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* dark mode */
body.dark-mode button {
  background-color: #333;
}

body.dark-mode {
  background-color: #121212;
}

body.dark-mode .container {
  background-color: #1e1e1e;
  color: white;
}

body.dark-mode #quote {
  color: white; /* Change font color to white in dark mode */
  background-color: #2b2e4a; /* Optional: Change background to match dark theme */
}

body.dark-mode #author {
  color: white;
}

/* Make the buttons reponsive on smaller screens*/
.butns {
  display: flex;
  gap: 1rem;
}
@media screen and (max-width: 700px) {
  .butns {
    flex-direction: column;
  }
}

.btn {
  cursor: pointer;
}

.btnDisabled {
  cursor: not-allowed;
  opacity: 0.5; /* Make the button appear slightly transparent when disabled */
}


.header-icons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
}

.header-icons i {
  font-size: 24px;
  color: #ef8354;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-icons i:hover {
  color: #d57a48;
}

#favorite-quotes p {
  font-size: 20px;
  color: #ef8354;
  margin: 10px 0;
  text-align: center;
}

.favorite-quote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 5px;
  background-color: #f9f9f9;
  border-radius: 5px;
}


.delete-icon {
  font-size: 18px;
  color: #ef8354;
  cursor: pointer;
  transition: color 0.3s ease;
}

.delete-icon:hover {
  color: #d57a48;
}



/* author image */
.quote-container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 600px;
}

.quote-content {
  flex: 1;
}

#author {
  color: #ef8354;
  font-size: 18px;
  margin-top: 10px;
  text-align: center;
}

.author-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}