/** @format */

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

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow: hidden;
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.time-display {
  text-align: center;
  z-index: 10;
}

.time {
  font-size: clamp(4rem, 20vw, 12rem);
  font-weight: 300;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 1rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.time:hover {
  transform: scale(1.05);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.time:active {
  transform: scale(0.98);
}

.date {
  font-size: clamp(0.8rem, 4vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

/* Font variations */
.time.font-inter {
  font-family: "Inter", sans-serif;
}

.time.font-jetbrains {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
}

.time.font-playfair {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

.time.font-roboto {
  font-family: "Roboto Mono", monospace;
  font-weight: 300;
}

.time.font-space {
  font-family: "Space Mono", monospace;
  font-weight: 400;
}

.time.font-oswald {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
}

.time.font-montserrat {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

.time.font-orbitron {
  font-family: "Orbitron", monospace;
  font-weight: 400;
}

.time.font-righteous {
  font-family: "Righteous", cursive;
  font-weight: 400;
}

.time.font-quicksand {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}

.time.font-fredoka {
  font-family: "Fredoka One", cursive;
  font-weight: 400;
}

.time.font-comfortaa {
  font-family: "Comfortaa", cursive;
  font-weight: 300;
}

.time.font-josefin {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
}

.time.font-architects {
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
}

.time.font-indie {
  font-family: "Indie Flower", cursive;
  font-weight: 400;
}

/* Background color variations */
body.bg-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.bg-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body.bg-green {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body.bg-orange {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

body.bg-red {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

body.bg-dark {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.bg-pink {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

body.bg-teal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.bg-sunset {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

body.bg-ocean {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

body.bg-forest {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

body.bg-lavender {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

body.bg-coral {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

body.bg-sky {
  background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
}

body.bg-midnight {
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

body.bg-rose {
  background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
}

body.bg-emerald {
  background: linear-gradient(135deg, #00b894 0%, #55a3ff 100%);
}

body.bg-gold {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

body.bg-azure {
  background: linear-gradient(135deg, #0984e3 0%, #00cec9 100%);
}

body.bg-crimson {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

body.bg-violet {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

body.bg-amber {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

/* Animation for font changes */
@keyframes fontChange {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.font-change {
  animation: fontChange 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive design */
@media (max-width: 768px) {
  .time {
    font-size: clamp(3.5rem, 25vw, 10rem);
  }
  
  .date {
    font-size: clamp(0.9rem, 5vw, 1.1rem);
  }
}

@media (max-width: 480px) {
  .time {
    font-size: clamp(3rem, 30vw, 8rem);
  }

  .date {
    font-size: clamp(0.8rem, 6vw, 1rem);
  }
}

@media (max-width: 320px) {
  .time {
    font-size: clamp(2.5rem, 35vw, 6rem);
  }
  
  .date {
    font-size: clamp(0.7rem, 7vw, 0.9rem);
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
