body {
  height: 120vh;
  background: linear-gradient(
    to bottom,
    #fffb00 0%,
    #ffd000 25%,
    #ff9900 75%,
    #ff7300 100%
  );
  background-repeat: no-repeat;
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.main-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  height: 100px;
  box-shadow: 4px 4px 10px #000000;
  backdrop-filter: blur(10px);
  border-radius: 4px;
  color: #000000;
}

h1 {
  text-transform: uppercase;
  text-align: center;
  font-size: 40px;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4rem;
}

#greeting-container {
  text-align: center;
}

.digital-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 60%;
  height: 200px;
  background: transparent;
  backdrop-filter: 18px;
  box-shadow: 4px 4px 10px #000000;
  border-radius: 4px;
}

.hour-container,
.minute-container,
.second-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70%;
  width: 60%;
  gap: 0.5rem;
}

.number-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #166d05;
  height: 75%;
  width: 60%;
  border-radius: 6px;
  border: 2px solid #fff;
  font-weight: 600;
  box-shadow: 4px 4px 12px #000000d0;
}

.time-container {
  font-weight: 600;
  font-size: 20px;
}

.number-container > p {
  font-size: 46px;
}

.cronometer-btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

#cronometerBtn {
  position: relative;
  width: 145px;
  height: 70px;
  border-radius: 22px;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #000;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease-in;
}

#cronometerBtn::after {
  content: "";
  position: absolute;
  background: #fff;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: all 0.3s ease;
}

#cronometerBtn:hover::after {
  width: 100%;
}

#cronometerBtn:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

#cronometerBtn:active {
  transform: scale(0.85);
  opacity: 0.7;
}

#desactiveBtn {
  position: relative;
  width: 145px;
  height: 70px;
  border-radius: 22px;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #000;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

#desactiveBtn:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

#desactiveBtn::after {
  content: "";
  position: absolute;
  background: #fff;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: all 0.3s ease;
}

#desactiveBtn:hover::after {
  width: 100%;
}

#desactiveBtn:active {
  transform: scale(0.85);
  opacity: 0.7;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-top: 3.5rem;
  font-style: italic;
  text-align: center;
}

@media (min-width: 280px) and (max-width: 420px) {
  .main-title {
    width: 60%;
  }

  .digital-clock {
    width: 95%;
    gap: 1rem;
  }

  .number-container {
    width: 85%;
  }

  .time-container > p {
    font-size: 16px;
  }

  .cronometer-btn-container {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (min-width: 280px) and (max-width: 460px) {
  #greeting-container > h2 {
    font-size: 22px;
    width: 270px;
  }

  .main-title {
    padding: 0 7rem;
  }
}

@media (min-width: 420px) and (max-width: 768px) {
  .number-container {
    width: 75%;
  }

  .digital-clock {
    width: 80%;
  }
}
