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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f7f7;
  color: #333;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 600;
  color: #222;
}

#quote-container {
  width: min(600px, 90%);
  min-height: 160px; 
  padding: 20px;
  border: 2px solid #aaa;
  border-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  text-align: center;
  margin-top: 1rem;
}

#quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  max-width: 90%;
  overflow-wrap: break-word; 
}

#author {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #555;
}

#new-quote {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background: #0078ff;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

#new-quote:hover {
  background: #005fcc;
}

label {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}

#autoplay-status {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #777;
}

hr {
  margin: 2rem 0;
  width: 80%;
  border: none;
  border-bottom: 1px solid #ddd;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 320px;
}

form input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 6px;
}

form button {
  padding: 0.6rem;
  background: #28a745;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover {
  background: #208f39;
}
