.timer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.containerr {
  padding: 25px 30px;
  border-radius: 15px;
  width: 100%;
  text-align: center;
}

#timer {
  font-size: 10rem;
  margin: 20px 0;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
}

.mode-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #7F55B1;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  flex: 1;
}

.mode-buttons button.active, .mode-buttons button:hover {
  background: #F49BAB;
}

#start-btn {
  padding: 12px 0;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #FFE1E0;
  color: #f793a5;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
}

#start-btn:hover {
  background: #ffc6c4;
}

#settings-btn {
  margin-top: 16px;
  padding: 8px 0;
  width: 25%;
  border: none;
  border-radius: 10px;
  background: #636e72;
  color: white;
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#settings-btn:hover {
  background: #3d4548;
}

/* Settings Panel */

.settings-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 25px;
  border-radius: 12px;
  margin-top: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settings-row label {
  flex: 1 0 120px;
  font-size: 1.1rem;
}

.time-input-group {
  display: flex;
  gap: 8px;
  flex: 2 0 200px;
}

.time-input-group input {
  width: 60px;
  padding: 8px 10px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: none;
  outline: none;
  text-align: center;
  background: #333;
  color: #eee;
}

.time-input-group input:focus {
  box-shadow: 0 0 8px #00ffd0;
}

#save-settings {
  padding: 12px;
  font-size: 1.2rem;
  border-radius: 8px;
  background: #00b894;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center;
  width: 50%;
}

#save-settings:hover {
  background: #019875;
}

#alertContainer {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 90%;
}

@media (max-width: 500px) {
  .settings-row label {
    flex: 1 0 10px;
    font-size: 1.1rem;
  }
}

@media (max-width: 500px) {
  #timer {
    flex-direction: column;
    align-items: flex-start;
    font-size: 100px;
  }
}

@media (max-width: 500px) {
  .time-input-group {
    display: flex;
    gap: 8px;
    flex: 0 0 50px;
  }
}

@media (max-width: 500px) {
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .time-input-group {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .time-input-group input {
    width: 80px;
  }
}

@media (max-width: 500px) {
  #save-settings {
    width: 100%;
  }
}

