@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
  padding-top: 50px;
}

.middle-div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 20px;
  max-width: 800px;
  width: 100%;
  animation: fadeIn 2s ease-in-out;
}

.logo-block {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 20px;
}

.logo-block .image {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.block {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Remove transition and hover effects */
  transition: none !important;
}

/* Completely remove hover effects */
.block:hover {
  transform: none !important;
  filter: none !important;
  opacity: inherit !important;
  scale: none !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.block1 {
  animation-delay: 0.5s;
}

.block2 {
  animation-delay: 0.7s;
}

.block3 {
  animation-delay: 0.9s;
}

.block-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  transition: none !important; /* Remove any existing transitions */
  transform: none !important;
}

.block-image:hover {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  scale: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Make sure only the first photo is visible initially */
.block1 {
    opacity: 1 !important; /* Left photo visible immediately */
    transform: translateY(0) !important;
}

.block2, 
.block3 {
    opacity: 0 !important; /* Middle and right photos hidden initially */
    transform: translateY(0) !important;
    transition: opacity 1s ease-in-out !important;
}

/* Show photos when they have the 'visible' class */
.block2.visible, 
.block3.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Remove conflicting animations that make all blocks visible */
.block1, .block2, .block3 {
    animation: none !important;
    animation-delay: none !important;
}

/* Only allow the fade-in animations when explicitly added by JavaScript */
.block2.visible {
    animation: fadeInMiddle 1s ease-out !important;
}

.block3.visible {
    animation: fadeInLast 1s ease-out !important;
}

.text-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite, slideUp 1s ease-out 1.1s forwards;
  opacity: 0;
  transform: translateY(50px);
}

.shadow-dance-text {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.4);
}

.skip-block {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
  animation: slideUp 1s ease-out 1.3s forwards;
  opacity: 0;
  transform: translateY(50px);
}

.skip-block a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

.skip-block a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

/* Connection message styling */
.connection-message {
    transition: opacity 0.5s ease-in-out;
}

.connection-message.fade-out {
    opacity: 0;
}

/* Optional: Add a subtle animation to the first photo */
.block1 {
    opacity: 1;
    animation: fadeInFirst 1s ease-in-out;
}

@keyframes fadeInFirst {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Optional: Add entrance animations for the revealing photos */
.block2.visible {
    animation: fadeInMiddle 1s ease-out;
}

.block3.visible {
    animation: fadeInLast 1s ease-out;
}

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

@keyframes fadeInLast {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6),
      0 0 30px rgba(255, 255, 255, 0.4);
  }
  50% {
    text-shadow: 
      0 0 20px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 255, 255, 0.6);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .middle-div {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .shadow-dance-text {
    font-size: 1.5rem;
  }
  
  .logo-block .image {
    max-width: 250px;
  }
}
