@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap");

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

body {
  background: url("batman.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: 'Orbitron', sans-serif;
  height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
  animation: bgMove 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes bgMove {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -50px); }
}

.clock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  z-index: 1;
}

.clock > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideIn 0.8s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heading {
  color: #FFD700;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.8),
    0 0 20px rgba(255, 215, 0, 0.5),
    0 0 30px rgba(255, 215, 0, 0.3);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5); }
  50% { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.8); }
}

.time {
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
  color: #FFD700;
  font-size: 100px;
  font-weight: 900;
  width: 200px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.9),
    inset 0 1px 2px rgba(255, 215, 0, 0.1),
    0 0 40px rgba(255, 215, 0, 0.2);
  border: 2px solid #2a2a2a;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.time::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s;
}

.time:hover::before {
  left: 100%;
}

.time:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 1),
    0 0 60px rgba(255, 215, 0, 0.4);
  border-color: #FFD700;
}

.controls {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

#timezone, #toggle-format {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  color: #FFD700;
  border: 2px solid #2a2a2a;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#timezone:hover, #toggle-format:hover {
  border-color: #FFD700;
  box-shadow: 
    0 4px 20px rgba(255, 215, 0, 0.3),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

#ampm {
  position: absolute;
  top: 50%;
  left: calc(100% + 50px);
  transform: translateY(-50%);
  color: #FFD700;
  font-size: 60px;
  font-weight: 900;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.alarm-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 25px;
  border: 2px solid #FFD700;
  background: #222;
  color: #FFD700;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10;
}

.alarm-btn:hover {
  background: #333;
  border-color: #FFA500;
}

.alarm-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  border: 2px solid #FFD700;
  padding: 25px;
  border-radius: 8px;
  z-index: 1000;
  width: 320px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.alarm-form p {
  color: #FFD700;
  margin-bottom: 15px;
  font-size: 15px;
  font-family: Arial, sans-serif;
}

.time-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #FFD700;
  font-size: 18px;
}

.time-inputs input {
  width: 65px;
  padding: 10px;
  background: #0a0a0a;
  color: #FFD700;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.time-inputs input:focus {
  outline: none;
  border-color: #FFD700;
}

.time-inputs select {
  padding: 10px;
  background: #0a0a0a;
  color: #FFD700;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  cursor: pointer;
}

.time-inputs select:focus {
  outline: none;
  border-color: #FFD700;
}

#saveAlarm, #cancelAlarm {
  padding: 10px 20px;
  margin: 5px;
  background: #0a0a0a;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

#saveAlarm:hover {
  background: #2a2a00;
}

#cancelAlarm:hover {
  background: #2a0000;
  border-color: #ff6666;
  color: #ff6666;
}

#alarmList {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 2px solid #FFD700;
  padding: 15px;
  border-radius: 8px;
  min-width: 320px;
  max-width: 400px;
  color: #FFD700;
  font-size: 14px;
  z-index: 10;
  font-family: Arial, sans-serif;
}

#alarmList p {
  text-align: center;
  color: #888;
  font-size: 13px;
}

.alarm-item {
  padding: 10px;
  margin: 8px 0;
  background: #0a0a0a;
  border: 1px solid #444;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alarm-item:hover {
  border-color: #FFD700;
  background: #111;
}

.alarm-item span {
  font-size: 14px;
}

.alarm-item button {
  background: transparent;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.alarm-item button:hover {
  background: #2a0000;
  border-color: #ff6666;
  color: #ff6666;
}

#alarmOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.alarm-popup {
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
  border: 2px solid #FFD700;
  border-radius: 18px;
  padding: 45px 60px;
  text-align: center;
  box-shadow:
    0 0 60px rgba(255, 215, 0, 0.35),
    0 8px 40px rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.alarm-popup h2 {
  color: #FFD700;
  font-size: 36px;
  margin-bottom: 15px;
}

.alarm-popup p {
  color: #FFD700;
  font-size: 22px;
  margin-bottom: 25px;
}

#stopAlarmBtn {
  background: #111;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 14px 35px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#stopAlarmBtn:hover {
  background: #FFD700;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.alarm-popup.ringing {
  animation: alarmShake 0.5s infinite;
}

@keyframes alarmShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* 11:11 WISH POPUP - CLEAN BATMAN THEME */
#wishOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
  backdrop-filter: blur(8px);
}

.star {
  position: absolute;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 4px #FFD700;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.wish-container {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 3px solid #FFD700;
  border-radius: 20px;
  padding: 50px 60px;
  max-width: 600px;
  text-align: center;
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 0.4),
    inset 0 0 30px rgba(255, 215, 0, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.5s ease;
  z-index: 10;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wish-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: url('batman.jpg') center/contain no-repeat;
  opacity: 0.08;
  z-index: -1;
  filter: brightness(1.5);
}

.wish-time {
  font-size: 90px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 
    0 0 30px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 25px;
  font-family: 'Orbitron', Arial, sans-serif;
  letter-spacing: 15px;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { 
    text-shadow: 
      0 0 30px rgba(255, 215, 0, 0.8),
      0 0 60px rgba(255, 215, 0, 0.4);
  }
  50% { 
    text-shadow: 
      0 0 40px rgba(255, 215, 0, 1),
      0 0 80px rgba(255, 215, 0, 0.6),
      0 0 100px rgba(255, 215, 0, 0.3);
  }
}

.wish-quote {
  font-size: 18px;
  color: #e0e0e0;
  line-height: 1.8;
  margin: 30px 0;
  font-family: Georgia, serif;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

.wish-button {
  margin-top: 35px;
  padding: 16px 45px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-family: 'Orbitron', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.wish-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 35px rgba(255, 215, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #FFA500, #FFD700);
}

.wish-button:active {
  transform: translateY(-1px);
}

.wish-granted {
  font-size: 32px;
  color: #FFD700;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6);
  animation: fadeInScale 0.6s ease;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wish-granted span {
  font-size: 18px;
  color: #b0b0b0;
  display: block;
  margin-top: 20px;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.wish-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 100001;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  color: #FFD700;
}

@keyframes particleFloat {
  to {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}
/* MOBILE RESPONSIVE - FIXED */
@media (max-width: 768px) {
  body {
    background-position: center center;
    background-attachment: scroll;
  }
  
  .clock {
    flex-direction: row; /* KEEP HORIZONTAL */
    gap: 15px;
    transform: translate(-50%, -50%) scale(0.55);
  }
  
  .time {
    width: 130px;
    height: 110px;
    font-size: 60px;
  }
  
  .heading {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  
  #ampm {
    left: calc(100% + 20px);
    font-size: 35px;

  }
  
  .controls {
    top: 15px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  #timezone, #toggle-format {
    padding: 8px 16px;
    font-size: 11px;
    margin-left: 0px;
  }
  
  .alarm-btn {
    bottom: 15px;
    padding: 8px 20px;
    font-size: 12px;
  }
  
  #alarmList {
    bottom: 60px;
    min-width: 90%;
    max-width: 90%;
    padding: 12px;
  }
  
  .alarm-form {
    width: 90%;
    max-width: 320px;
    padding: 20px;
  }
  
  .wish-container {
    padding: 35px 30px;
    max-width: 85%;
  }
  
  .wish-time {
    font-size: 65px;
    letter-spacing: 10px;
  }
  
  .wish-quote {
    font-size: 15px;
    padding: 0 10px;
  }
  
  .wish-button {
    padding: 14px 35px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .clock {
    flex-direction: row; 
    gap: 10px;
    transform: translate(-50%, -50%) scale(0.45);
  }
  
  .time {
    width: 110px;
    height: 95px;
    font-size: 50px;
  }
  
  .heading {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  
  #ampm {
    font-size: 30px;
  }
  
  .wish-container {
    padding: 25px 20px;
    max-width: 90%;
  }
  
  .wish-time {
    font-size: 50px;
    letter-spacing: 6px;
  }
  
  .wish-quote {
    font-size: 13px;
    line-height: 1.6;
  }
  
  .wish-button {
    padding: 12px 28px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .clock {
    gap: 8px;
    transform: translate(-50%, -50%) scale(0.4);
  }
  
  .time {
    width: 100px;
    height: 85px;
    font-size: 45px;
  }
}