body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  background: linear-gradient(to bottom right, #D9EEF3, #c7dce1);
}

.container {
  background-color: #ffffff;
  padding-left: 40px;
  padding-right: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-left: 23%;
}

.heading h1 {
  background-color: #B1F0F7;
  color: #fff;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 10px;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.time-re {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 20px;
  background-color: #B1F0F7;
  padding: 10px;
  border-radius: 10px;
}

.time-re h2 {
  font-size: 1.5rem;
  color: #007bff;
}

.time-selection {
  font-size: 1.2rem;
  height: 50px;
  width: 150px;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 5px;
  background-color: #f0f8ff;
  transition: border-color 0.3s, background-color 0.3s;
}

.time-selection:focus {
  border-color: #007bff;
  background-color: #e0f7ff;
  outline: none;
}

#text-to-type {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #ccc;
  background-color: #f9f9f9;
  width: 96%;
  max-height: 380px;
  overflow-y: auto;
  color: #333;
  line-height: 1.6;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  animation: glow 1.5s infinite ease-in-out;
}

textarea {
  width: 100%;
  font-size: 1.2rem;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #ccc;
  background-color: #f4f8fc;
  margin-bottom: 20px;
  resize: none;
  font-weight: bold;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.3s, background-color 0.3s;
}

textarea:focus {
  border-color: #007bff;
  background-color: #e9f0fd;
  outline: none;
}

button {
  padding: 12px 25px;
  font-size: 1.2rem;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 160px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#results p {
  font-size: 1.2rem;
  margin: 5px 0;
  font-weight: 600;
}

#overlay.hidden {
  display: none;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.overlay-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease;
}

.overlay-content h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
}

.overlay-content p {
  font-size: 1.4rem;
  color: #333;
  font-weight: bold;
  margin: 10px 0;
}

.overlay-content button {
  width: 150px;
  font-size: 1.1rem;
  margin-top: 20px;
  background-color: #007bff;
}

.overlay-content button:hover {
  background-color: #007bff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

footer {
  height: 50px;
  width: 100%;
  font-size: 1rem;
  text-align: center;
  color: #555;
  font-weight: 600;
  background-color: #f0f8ff;
  padding: 10px 0;
  position: relative;
}

footer h2 {
  font-size: 1rem;
  color: #000000;
  margin: 0;
}
