body {
  font-family: Arial, sans-serif;
  background-color: #2c3e50;
  color: #ecf0f1;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

h1 {
  margin-top: 50px;
  font-size: 5em;
  font-weight: 900;
  letter-spacing: 3px;
}

img {
  width: 300px;
  height: auto; /* Maintains aspect ratio */
}

textarea {
  width: 40%;
  height: 100px;
  margin-bottom: 50px;
  border: none;
  margin-top: 50px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #7f8c8d;
  background-color: #34495e;
  color: #ecf0f1;
  transition: background-color 0.3s ease; /* Add transition */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7),
      -1px -1px 5px rgba(26, 26, 26, 0.7);
}

textarea:focus {
  background-color: #2c3e50; /* Change color on focus */
}

#startButton {
  margin-bottom: 10px;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  background-color: #27ae60;
  color: #ecf0f1;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Add transition for box-shadow */
  box-shadow: 0 0px 6px rgba(26, 26, 26, 0.7);
}

#startButton:hover {
  background-color: #2ecc71;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add box-shadow on hover */
}

/* Previous CSS */

#speedControl {
  width: 100%;
  height: 20px;
  border-radius: 20px;
  margin: 20px;
  -webkit-appearance: none; /* This is necessary to style the track in Webkit browsers */
  background: #27ae60; /* This is the same color as the start button */
}

#speedControl::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #27ae60; /* This is the color of the thumb */
  border: 0.2px solid rgba(16, 16, 16, 0.9);
  box-shadow: 1px 1px 3px #000000, -0.5px -0.5px 3px #1a1a1a;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: -3.55px; /* Adjusts the vertical position of the thumb */
}

#speedControl::-webkit-slider-thumb:hover {
  background: #33e07b; /* Slightly lighter color on hover */
}

#speedControl::-webkit-slider-runnable-track {
  width: 100%;
  height: 20px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4),
      -0.5px -0.5px 2px rgba(26, 26, 26, 0.1);
  background: #27ae60; /* This is the same color as the start button */
  border-radius: 20px;
  border: 0.2px solid rgba(16, 16, 16, 0.9);
}

#wpmDisplay {
  margin-bottom: 10px;
  color: #ecf0f1;
  font-weight: 900;
  letter-spacing: 3px;
}

#wordDisplay {
  width: 40%;
  height: 50px;
  font-size: 2em;
  font-weight: bold;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #7f8c8d;
  border-radius: 8px;
  background-color: #34495e;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9),
      -1px -1px 5px rgba(26, 26, 26, 0.8);
  color: #ecf0f1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.marquee {
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.overlay-left {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to left, #2c3e50, rgba(255, 255, 255, 0));
  z-index: 2;
}
.overlay-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to right, #2c3e50, rgba(255, 255, 255, 0));
  z-index: 2;
}

.marquee-content {
  display: flex;
  width: 100%;
  animation: marquee 20s linear infinite;
}

.icon {
  margin: 10px 100px;
  height: 50px;
}

i {
  font-size: 50px;
}

@keyframes marquee {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-50%);
  }
}


