* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.page {
  max-width: 1600px;
  min-height: 100vh;
  background-color: lightblue;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px;
}

.block_1 {
  width: 600px;
  height: 350px;
  border: 2px solid black;
  background: linear-gradient(145deg, wheat, #e6cba0);
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  border-radius: 15px;
  transition: transform 0.3s;
}

.block_1:hover {
  transform: scale(1.02);
}

.block_1 h1 {
  width: 500px;
  border: 2px solid red;
  font-size: 36px;
  margin-bottom: 20px;
  background: white;
  border-radius: 10px;
  padding: 15px;
}

.buttons {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 10px;
}

button {
  padding: 10px 20px;
  font-size: 22px;
}

.block_2 {
  width: 400px;
  height: 500px;
  border: 2px solid black;
  background: linear-gradient(145deg, wheat, #e6cba0);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  border-radius: 15px;
  transition: transform 0.3s;
}

.block_2:hover {
  transform: scale(1.02);
}

.title {
  font-size: 24px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 2px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.clock {
  width: 300px;
  height: 300px;
  border: 10px solid black;
  border-radius: 50%;
  background-color: white;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
}

.hand {
  position: absolute;
  top: 50%;
  transform-origin: 100%;
  transform: rotate(90deg);
  border-radius: 3px;
}

.hour-hand {
  width: 35%;
  height: 8px;
  background: black;
  left: 15%;
}

.minute-hand {
  width: 45%;
  height: 6px;
  background: black;
  left: 5%;
}

.second-hand {
  width: 48%;
  height: 3px;
  background: red;
  left: 2%;
}

.center-dot {
  width: 20px;
  height: 20px;
  background: black;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.block_3 {
  width: 600px;
  height: 300px;
  border: 2px solid black;
  background-color: wheat;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 50px;
}

.digital-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.digit {
  width: 60px;
  height: 80px;
  overflow: hidden;
  background: #ccc;
  position: relative;
}

.digit-column {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.5s ease;
}

.digit-column div {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: bold;
}

.dots {
  font-size: 48px;
  font-weight: bold;
}

.block_4 {
  width: 400px;
  height: 500px;
  border: 2px solid black;
  background: linear-gradient(145deg, wheat, #e6cba0);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  border-radius: 15px;
  transition: transform 0.3s;
}

.block_4:hover {
  transform: scale(1.02);
}

.next-date {
  font-size: 28px;
  color: #333;
  border: 2px solid #4CAF50;
  padding: 20px;
  min-width: 300px;
  text-align: center;
  background: white;
  border-radius: 10px;
}

.ask-date {
  cursor: pointer;
}

.block_5 {
  width: 700px;
  height: 500px;
  border: 2px solid black;
  background: linear-gradient(145deg, wheat, #e6cba0);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
  border-radius: 15px;
  transition: transform 0.3s;
}

.block_5:hover {
  transform: scale(1.02);
}

.timer-display {
  font-family: monospace;
  font-size: 36px;
  font-weight: bold;
  background: black;
  color: #0f0;
  padding: 20px;
  border-radius: 10px;
  letter-spacing: 5px;
  box-shadow: 0 0 20px #0f0;
  border: 2px solid #0f0;
}

.timer-buttons {
  display: flex;
  gap: 10px;
}

.timer-btn {
  font-size: 18px;
  padding: 10px 20px;
  cursor: pointer;
}

#startBtn {
  background-color: #4caf50;
  color: white;
}
#pauseBtn {
  background-color: #ff9800;
  color: white;
}
#resetBtn {
  background-color: #f44336;
  color: white;
}

.btn, .timer-btn {
  border: none;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.2);
  transition: all 0.2s;
  cursor: pointer;
}

.btn:hover, .timer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 12px rgba(0,0,0,0.3);
}

.btn:active, .timer-btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}