.title {
  display: none; /* Hide the text title since we'll use an image */
}

.title-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 40px; /* Reduced space below logo */
  margin-top: -40px;
}

body {
  font-family: "Antique Olive", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #7285b1 30%, #dee7ef 100%);
  padding: 20px 0;
}

.container {
  text-align: center;
  background: transparent;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
  margin-top: -60px; /* Pull main content up */
}

.timer {
  font-family: "Solo Data D", sans-serif;
  font-size: 140px;
  margin: 10px 0; /* Reduced margins */
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.time-range {
  margin: 0 0 10px 0; /* Added bottom margin */
  font-size: 24px;
  color: #ffffff;
  opacity: 0.9;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px; /* Reduced top margin */
  width: 100%;
  max-width: 500px;
}

button {
  padding: 15px 40px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-family: "Antique Olive", sans-serif;
  min-width: 140px;
}

.start {
  background-color: #c7ffc5;
  color: #000000;
  font-weight: 500;
}

.start:hover {
  background-color: #b3e6b1;
  transform: translateY(-1px);
}

.pause {
  background-color: #c7ffc5;
  color: #000000;
  font-weight: 500;
}

.pause:hover {
  background-color: #b3e6b1;
  transform: translateY(-1px);
}

.cancel {
  background-color: #ff4444;
  color: #ffffff;
  font-weight: 500;
}

.cancel:hover {
  background-color: #ff3333;
  transform: translateY(-1px);
}

.message {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
  height: 24px;
  opacity: 0.9;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .timer {
    font-size: 100px;
  }

  .title-image {
    max-width: 160px;
    margin-bottom: 30px; /* Less space on mobile */
    margin-top: -30px;
  }

  .main-content {
    margin-top: -40px; /* Less shift up on mobile */
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

  button {
    width: 100%;
    max-width: 280px;
  }
}
