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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  overflow-x: hidden;
}

header,
footer {
  background-color: #4a90e2;
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 2px solid #357ab8;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2rem;
  color: #fff;
}

.toggle-buttons {
  display: flex;
  gap: 0.5rem;
}

header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

header button:hover {
  transform: rotate(15deg);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
}

.timer-container {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #4a90e2;
}

.quote-section {
  width: 100%;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.quote-display {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  min-height: 120px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.6;
  position: relative;
}

.quote-display::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 2rem;
  color: #4a90e2;
}

.quote-input {
  width: 100%;
  height: 100px;
  padding: 1rem;
  border: 1.5px solid #4a90e2;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  resize: none;
  background-color: #fafafa;
  color: #333;
  transition: border-color 0.3s, background-color 0.3s;
}

.quote-input:focus {
  border-color: #357ab8;
  outline: none;
  background-color: #f0f8ff;
}

.correct {
  color: #28a745;
}

.incorrect {
  color: #dc3545;
  text-decoration: underline;
}

.buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

button {
  flex: 1;
  background-color: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #357ab8;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: #4a90e2;
}

.speed-display {
  font-size: 1.5rem;
  background-color: #e0f3ff;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  color: #4a90e2;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.cute-illustration {
  width: 150px;
  margin-top: 2rem;
}

.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

.dark-mode header,
.dark-mode footer {
  background-color: #333;
}

.dark-mode .quote-display {
  background-color: #2c2c2c;
  color: #f0f0f0;
}

.dark-mode .quote-input {
  background-color: #3a3a3a;
  border-color: #4a90e2;
  color: #f0f0f0;
}

.dark-mode button {
  background-color: #4a90e2;
  color: #1e1e1e;
}

.dark-mode .quote-display::before {
  color: #4a90e2;
}

.cute-mode body {
  background-color: #fff8f0;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

.cute-mode header,
.cute-mode footer {
  background-color: #f6a5c0;
  border-bottom: 2px solid #f3c6d4;
}

.cute-mode header h1 {
  color: #fff;
  font-size: 2.2rem;
}

.cute-mode .timer-container {
  color: #ff69b4;
}

.cute-mode .quote-display {
  background-color: #ffe4e1;
  border-radius: 1.5rem;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.3rem;
}

.cute-mode .quote-display::before {
  content: '💖';
  color: #ff69b4;
  font-size: 1.5rem;
}

.cute-mode .quote-input {
  background-color: #fff0f6;
  border-color: #ff69b4;
  border-radius: 1.5rem;
}

.cute-mode .quote-input:focus {
  background-color: #ffe4e1;
  border-color: #ff1493;
}

.cute-mode .buttons {
  gap: 2rem;
}

.cute-mode button {
  background-color: #ff69b4;
  border-radius: 2.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  font-family: 'Quicksand', sans-serif;
}

.cute-mode button:hover {
  background-color: #ff1493;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cute-mode .progress-container {
  background-color: #ffe4e1;
  height: 15px;
  border-radius: 7.5px;
}

.cute-mode .progress-bar {
  background-color: #ff69b4;
}

.cute-mode .speed-display {
  background-color: rgba(255, 105, 180, 0.1);
  border-radius: 1.5rem;
  color: #ff69b4;
  font-family: 'Quicksand', sans-serif;
}

.cute-mode .cute-illustration {
  animation: float 4s ease-in-out infinite;
}

.cute-mode .sparkles {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.cute-mode .sparkles::before,
.cute-mode .sparkles::after {
  content: '✨';
  position: absolute;
  font-size: 1.5rem;
  animation: sparkle 3s infinite ease-in-out;
}

.cute-mode .sparkles::before {
  top: 0;
  left: 25%;
  animation-delay: 0s;
}

.cute-mode .sparkles::after {
  top: 50%;
  left: 75%;
  animation-delay: 1.5s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  .quote-display {
    font-size: 1.1rem;
  }

  .quote-input {
    font-size: 1rem;
  }

  .buttons button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .speed-display {
    font-size: 1.2rem;
  }

  .cute-mode header h1 {
    font-size: 2.2rem;
  }
}

.cute-mode.dark-mode .quote-display {
  color: #000;
}

.cute-mode.dark-mode .quote-input {
  color: #000;
}

