@import "../global.css";

main {
  width: 100%;
  margin-inline: auto;
  margin-top: 9rem;
  padding-inline: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.timer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.timer input {
  height: 80px;
  width: 60px;
  font-size: 4.5rem;
  padding: 0.5rem;
  outline: none;
}

.timer input::-webkit-inner-spin-button,
.timer input::-webkit-outer-spin-button {
  display: none;
}

.timer p {
  font-size: 4.5rem;
}

#sec-in-tens {
  order: 4;
}

#sec-in-ones {
  order: 5;
}

.buttons {
  display: flex;
  gap: 1rem;
}

button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  text-transform: capitalize;
  letter-spacing: 1px;
  border-radius: 5px;
  border: 1px solid #999;
  outline: none;
  background-color: rgb(0, 183, 255);
  color: #fff;
  box-shadow: 3px 3px 5px rgb(0 0 0 /0.1);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

button:hover {
  transform: scale(105%);
  background-color: rgb(0 183 255 / 0.8);
}

p span {
  font-weight: bold;
}

.timer-started {
  background-color: rgb(238, 238, 238);
  border: 0;
  pointer-events: none;
}

.disable-btn {
  color: #999;
  background-color: rgb(0 183 255 / 0.8);
  cursor: not-allowed;
}

.disable-btn:hover {
  transform: none;
}
