/* Reset and general styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background-color: black;
}

.background {
  width: 100vw;
  height: 100vh;
  display: none;
}

/* Desktop background */
.background.desktop {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5px;
  position: relative;
  overflow: hidden;
  background-color: black; /* Fallback if image fails */
  z-index: 0;
}

.desktopBackground {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  display: block !important;
  visibility: visible !important;
}

/* Mobile background */
.background.mobile {
  background-image: url('../dragonm.png');
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Buttons Container (Desktop) */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 1; /* Above image */
}

/* General Button Styles (Mobile) */
.button {
  display: inline-block;
  padding: 15px 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 255, 163, 0.3);
  border: 2px solid #00ffa3;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

/* Ripple Effect on Click */
.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.button:active::before {
  width: 150px;
  height: 150px;
}

/* Hover Effects */
.button:hover {
  background: rgba(0, 255, 163, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.8);
  transform: translateY(-2px);
}

/* Desktop Buttons */
.buttond {
  display: inline-block;
  padding: 20px 40px;
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 255, 163, 0.3);
  border: 2px solid #00ffa3;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  position: relative;
  overflow: hidden;
  right: 20px;
  animation: pulse 2s infinite;
}

/* Ripple Effect on Click */
.buttond::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.buttond:active::before {
  width: 200px;
  height: 200px;
}

/* Hover Effects */
.buttond:hover {
  background: rgba(0, 255, 163, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.8);
  transform: translateY(-2px);
}

/* Individual button blocks for mobile */
.button-block {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.button-block2 {
  width: 250px;
  display: flex;
  justify-content: center;
  position: relative;
}

.button-block2.twitter {
  position: absolute;
  top: 10px;
}

.button-block2.mech {
  position: fixed;
  top:20%;
}

.button-block2.moon {
  position: absolute;
  bottom: 2%;
}

.button-block2.connect {
  position: absolute;
  bottom: 10%;
}

/* Mobile Buttons Specific Styling */
.button-block2 .button {
  width: 80%;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 12px;
  background: rgba(0, 255, 163, 0.3);
  border: 2px solid #00ffa3;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  animation: pulse 2s infinite;
}

/* Mint Button Styles */
.mint-button-container {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 998;
}

.mint-button {
  display: inline-block;
  padding: 15px 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 255, 163, 0.3);
  border: 2px solid #00ffa3;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

/* Ripple Effect on Click */
.mint-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mint-button:active::before {
  width: 200px;
  height: 200px;
}

/* Hover Effects */
.mint-button:hover {
  background: rgba(0, 255, 163, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.8);
  transform: translateY(-2px);
}

/* Wallet Button Styles (Desktop) */
.wallet-button-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.wallet-button {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 255, 163, 0.3);
  border: 2px solid #00ffa3;
  border-radius: 8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: pulse 2s infinite;
}

/* Ripple Effect on Click */
.wallet-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.wallet-button:active::before {
  width: 150px;
  height: 150px;
}

/* Hover Effects */
.wallet-button:hover {
  background: rgba(0, 255, 163, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.8);
  transform: translateY(-2px);
}

/* Mint Form Styles */
.mint-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 400px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999; /* Below popup (1000) but above other content */
}

.mint-form-content {
  padding: 20px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(0, 255, 163, 0.2));
  border: 3px solid #00ffa3;
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(0, 255, 163, 0.6);
  width: 100%;
  max-width: 350px;
  text-align: center;
  animation: glow 3s infinite;
}

.mint-form-content h2 {
  font-family: 'Bungee', sans-serif;
  font-size: 32px;
  color: #00ffa3;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 255, 163, 0.8);
}

.mint-form-content p {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(0, 255, 163, 0.5);
}

.mint-form-content .input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.mint-form-content label {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: #00ffa3;
  margin-bottom: 8px;
  text-shadow: 0 0 5px rgba(0, 255, 163, 0.5);
}

.mint-form-content input {
  padding: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  width: 80px;
  border: 2px solid #00ffa3;
  border-radius: 8px;
  background: rgba(0, 255, 163, 0.1);
  color: #ffffff;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.4);
}

.mint-form-content input:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.8);
  background: rgba(0, 255, 163, 0.2);
}

.mint-form-content input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mint-form-content button {
  padding: 12px 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 255, 163, 0.3);
  border: 2px solid #00ffa3;
  border-radius: 10px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.mint-form-content button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ripple Effect on Click */
.mint-form-content button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 163, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mint-form-content button:active::before {
  width: 150px;
  height: 150px;
}

/* Hover Effects */
.mint-form-content button:hover:not(:disabled) {
  background: rgba(0, 255, 163, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.8);
  transform: translateY(-2px);
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Above mint form */
}

.popup-content {
  text-align: center;
  padding: 30px;
  background: linear-gradient(145deg, #21206e, #55b2f4);
  border: 5px solid #3f21ed;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(20, 1, 112, 0.4);
}

.popup-content h1 {
  font-family: 'Bungee', sans-serif;
  font-size: 56px;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgb(63, 63, 63);
}

.popup-content h2 {
  font-family: 'Audiowide', sans-serif;
  font-size: 36px;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
}

.popup-content button {
  display: inline-block;
  padding: 15px 40px;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 255, 163, 0.3);
  border: 2px solid #00ffa3;
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.5);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: pulse 2s infinite;
}

/* Ripple Effect on Click */
.popup-content button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.popup-content button:active::before {
  width: 200px;
  height: 200px;
}

/* Hover Effects */
.popup-content button:hover {
  background: rgba(0, 255, 163, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 163, 0.8);
  transform: translateY(-2px);
}

/* Pulsing Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.5), 0 0 20px rgba(0, 255, 163, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.8), 0 0 30px rgba(0, 255, 163, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.5), 0 0 20px rgba(0, 255, 163, 0.3);
  }
}

/* Glow Animation */
@keyframes glow {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.4), 0 0 40px rgba(0, 255, 163, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 163, 0.6), 0 0 60px rgba(0, 255, 163, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.4), 0 0 40px rgba(0, 255, 163, 0.2);
  }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .background.desktop {
    display: none !important;
  }
  .background.mobile {
    display: flex !important;
  }
  .popup {
    display: none; /* Hide popup on mobile */
  }
  .wallet-button-container {
    display: none; /* Hide desktop connect button on mobile */
  }
  .mint-button {
    padding: 12px 40px;
    font-size: 20px;
    position: fixed;
    top: 12%;
  }
  .mint-form {
    max-width: 90%;
  }
  .mint-form-content {
    width: 100%;
    padding: 15px;
  }
  .mint-form-content h2 {
    font-size: 24px;
  }
  .mint-form-content p,
  .mint-form-content label {
    font-size: 14px;
  }
  .mint-form-content input {
    width: 60px;
    font-size: 12px;
    padding: 6px;
  }
  .mint-form-content button {
    padding: 10px 25px;
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .background.mobile {
    display: none !important;
  }
  .background.desktop {
    display: flex !important;
  }
  .button-block2.connect {
    display: none; /* Hide mobile connect button on desktop */
  }
}

@media (max-width: 480px) {
  .mint-button {
    padding: 10px 30px;
    font-size: 18px;
  }
  .mint-button-container {
    bottom: 10px;
  }
  .mint-form-content {
    width: 90%;
    padding: 12px;
  }
  .mint-form-content h2 {
    font-size: 20px;
  }
  .mint-form-content p,
  .mint-form-content label {
    font-size: 12px;
  }
  .mint-form-content input {
    width: 50px;
    font-size: 10px;
  }
  .mint-form-content button {
    padding: 8px 20px;
    font-size: 14px;
  }
}

.popup-image {
  max-width: 150px;
  max-height: 150px;
  margin: 0 auto 20px;
  display: block;
}

@media (max-width: 768px) {
  .popup-image {
    max-width: 80px;
    max-height: 80px;
  }
}