* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #1e3c72, #2a5298, #4776e6, #6a82fb);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 800px;
  width: 90%;
  z-index: 1;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.clock {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.digit-container {
  position: relative;
  width: 60px;
  height: 100px;
  perspective: 200px;
}

.digit {
  position: absolute;
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.top {
  background: linear-gradient(#4a4a4a, #222);
  border-radius: 10px 10px 0 0;
  transform: rotateX(0deg) translateZ(25px);
}

.bottom {
  background: linear-gradient(#222, #4a4a4a);
  border-radius: 0 0 10px 10px;
  transform: rotateX(-90deg) translateZ(25px);
}

.flip-out {
  animation: flipOut 0.6s ease-in-out;
}

.flip-in {
  animation: flipIn 0.6s ease-in-out;
}

@keyframes flipOut {
  0% { transform: rotateX(0deg) translateZ(25px); opacity: 1; }
  100% { transform: rotateX(90deg) translateZ(25px); opacity: 0; }
}

@keyframes flipIn {
  0% { transform: rotateX(-90deg) translateZ(25px); opacity: 0; }
  100% { transform: rotateX(0deg) translateZ(25px); opacity: 1; }
}

.separator {
  font-size: 3rem;
  margin: 0 5px;
  align-self: center;
}

.jokes {
  margin-top: 30px;
  line-height: 1.8;
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.joke {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.8;
}
