@font-face {
  font-family: 'SuperFoods-2OxXo';
  src: url('fonts/SuperFoods-2OxXo.ttf') format('truetype');
}

.fonts-loading body {
  visibility: hidden;
}

.fonts-loaded body {
  visibility: visible;
  font-family: 'SuperFoods-2OxXo', Arial, sans-serif;
}


body {
  font-family: 'SuperFoods-2OxXo', Arial, sans-serif;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative; /* stacking context for fixed bg layers */
  overflow-x: hidden; /* prevent horizontal scrollbar during slight pans */
}

body::before {
  content: "";
  background-image: url('images/background.png');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
    margin: 0;
  padding: 0;
 /* Adjust this as needed for iPhones WORKING */
  /* Match overlay transform so layers stay aligned */
  transform: scale(1) translate3d(0, 0, 0);
  transform-origin: center 40%;
  transition: transform 15s ease;
  will-change: transform;

}

/* Force image swap using attribute selector to win specificity */
body[data-bg="burn"]::before {
  background-image: linear-gradient(135deg, rgba(255,154,0,0.28), rgba(255,64,0,0.18)), url('images/background_burn.png');
  background-blend-mode: color-burn;
  background-size: cover;
  background-position: center center;
}

/* Burn background overlay for quick fade swap */
body::after {
  content: "";
  /* Blend-mode overlay: gradient over burn image */
  background-image: linear-gradient(135deg, rgba(255,154,0,0.28), rgba(255,64,0,0.18)), url('images/background_burn.png');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0; /* above base bg (::before), below content */
  background-blend-mode: color-burn; /* key: blend overlay with bg image */
  /* Ken Burns base state */
  transform: scale(1) translate3d(0, 0, 0);
  transform-origin: center 40%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 15s ease;
  will-change: opacity, transform;
  pointer-events: none;
}

body.burn-bg-active::after {
  opacity: 1;
  /* Ken Burns active state: subtle zoom + slight upward pan */
  transform: scale(1.1) translate3d(0, -1.5%, 0);
}

/* Keep base background aligned with overlay during Ken Burns on larger screens */
body.burn-bg-active::before {
  transform: scale(1.1) translate3d(0, -1.5%, 0);
}

.ml9 {
  position: relative;
  font-weight: 200;
  font-size: 4em;
}

.ml9 .text-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 0.2em;
  padding-right: 0.05em;
  padding-bottom: 0.1em;
  overflow: hidden;
}

.ml9 .letter {
  transform-origin: 50% 100%;
  display: inline-block;
  line-height: 1em;
  color: #ffffff;
  transition: color 1s ease;
}

.ml9 .letter.blue {
  color: #69deff;
}

.ml9 .letter.orange {
  color: #ff9a00;
}

.brand-blue {
  color: #69deff;
}

.bot-brand {
  color: #ffffff;
  transition: color 1s ease;
}

.bot-brand.blue {
  color: #69deff;
}


a {    color: white;

   text-decoration: none !important;
}

a:hover {  font-weight:  900 !important;
  transition: opacity 0.3s ease !important;}
.no-bold-hover:hover { font-weight: 400 !important; }
.bot-brand:hover { font-weight: 400 !important; }

.fade-out-on-scroll {
  transition: opacity 0.5s;
}

.fade-out {
  opacity: 0;
}



header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
}

nav ul li {  padding: 1%;

}

nav ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a.active {
  color: white !important;
  font-weight:  900;
}

.nav-active { color: #69deff !important; }
.nav-active-orange { color: #ff9a00 !important; }

nav ul li a:hover {
  color: #69deff !important;

  transition: opacity 0.3s ease;
}

/* Ensure only external nav links don't remain blue after click */
.nav-external:visited { color: white !important; }
.nav-external:focus, .nav-external:focus-visible { color: white !important; }

nav ul li a:active {
    font-weight:  900;
  transition: opacity 0.3s ease;
}



.section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 80px;
  color: #ffffff;
  text-align: center;
  position: relative;
}

/* ... */

#home {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
padding: 0;  padding-top: 30px;

}


#join {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
padding: 0;
}

#tokenomics {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
padding: 0;
}

.content {
  width: 70%;
  z-index: 1;
  padding: 20px;
  border-radius: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  font-size: 1.2em;
}

/* ... */


.content h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.content h2 {
  color: #ffffff;
/*  font-size: 1.5rem;
  margin-bottom: 10px;*/
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}





#connect ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 20px;
}

#connect ul li {
  margin-left: 20px;
}

.content p {
    line-height: 1.8;
    margin-left: 16%;
    margin-right: 16%;
    color: white;
}

/* Burns phrase fade to orange */
.burns-animate { transition: color 0.8s ease; }
.burns-animate.orange { color: #ff9a00; }

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  font-size: 8.5rem;
  width: 100%;
  border-right: .15em solid #69deff;
  animation: typing 5s steps(40, end) forwards, blink-caret 1s step-end infinite;
}

@keyframes typing {
  0% {
    width: 0;
    border-right-color: #69deff;
  }
  100% {
    width: 100%;
    border-right-color: #69deff;
  }
}

@keyframes blink-caret {
  0%, 50% { border-color: transparent }
  100% { border-color: #69deff }
}



.blinking-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 0 }
  100% { opacity: 1 }
}


#connect {
    flex-direction: row;
    justify-content: flex-start;
  text-align: center;

}

#connect p {
display: inline-flex;
padding-bottom: 20px;
}

#connect img {
  display: block;
  margin: 20px;
  width: 60px;
  transition: transform 0.5s ease;
}

#connect img:hover {
  transform: rotate(360deg);
}

.scroll-animation {
  opacity: 0;
}

#counter1 {display: inline-block;
font-size:  6rem;}


.uniswap-logo {
  width: 60px;
  max-width: 60px;
  height: auto;
  display: block;
  margin: 20px;
}





.contract-address {
 font-size: 0.7rem;
    color: white;
}


.uniswap-logo-container {
  display: inline-block;
  text-align: center;
}

.uniswap-logo-container a {
  display: inline-block;
  transition: transform 0.3s;
}

.uniswap-logo-container a:hover {
  transform: scale(1.02);
}

#backToHome:hover .uniswap-logo {
  animation: spinIn 0.5s ease-out both;
}

#backToHomeHodl:hover 
.uniswap-logo {
  animation: spinIn 0.5s ease-out both;
}

#installActionBtn:hover .uniswap-logo {
  animation: spinIn 0.5s ease-out both;
}

/* Spin-in for back button when shown */
@keyframes spinIn {
  from { transform: rotate(360deg) scale(0.9); opacity: 0.7; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}

.spin-in {
  animation: spinIn 0.5s ease-out both;
}



footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.copyright {
  text-align: center;
  font-size: 10px;
  margin-top: 20px;
  color: white;
}

.disclaimer {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
  color: white;
}




/* First mobile breakpoint*/



@media only screen and (max-width: 991px)

{


#counter1 {display: inline-block;
font-size:  3rem;

}

#connect img {
  display: block;
  margin: 15px;
  width: 50px;
  transition: transform 0.5s ease;
}

.uniswap-logo {
  width: 50px;
  max-width: 50px;
  margin: 15px;
}





@media only screen and (max-width: 767px) {
  body::before {
    background-image: url(images/background_mobile.png);
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Disable Ken Burns transition on mobile */
    transition: none !important;
    will-change: auto !important;
  }
  
  /* iPhone-specific adjustments - working*/
  body.iphone::before,
  body.iphone::after {
    background-attachment: scroll !important; /* iOS Safari: avoid jitter */
  }

  /* Mobile: use overlay for burn with fade transition */
  body::after {
    content: "";
    background-image: linear-gradient(135deg, rgba(255,154,0,0.28), rgba(255,64,0,0.18)), url('images/background_mobile_burn.png');
    background-blend-mode: color-burn;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    pointer-events: none;
    z-index: 0;
  }
  body.burn-bg-active::after { opacity: 1; }
  /* Base remains the same mobile bg so the swap back is instant */
  body.burn-bg-active::before {
    background-image: url(images/background_mobile.png);
    background-blend-mode: normal;
  }

  /* Keep the burn image visually centered on mobile; remove upward pan */
  body.burn-bg-active::after,
  body.burn-bg-active::before {
    transform: none;
  }



#home {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
padding: 0;  padding-top: 60px;

}


  /* The rest of your mobile styles */

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 2%;
}


#connect img {
  display: block;
  margin: 10px;
  width: 40px;
  transition: transform 0.5s ease;
}

/* Back button image size on mobile to match other buttons */
.uniswap-logo {
  width: 40px;
  max-width: 40px;
  margin: 10px;
}

.disclaimer {
    text-align: center;
    font-size: 10px;
    margin-top: 20px;
    color: white;
}

.contract-address {
    font-size: 0.5rem;
    color: white;
}

.content {

width:  100%;
}

.content h1 {
font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 60px;
}

.content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.content p {
    line-height: 1.2;
    margin-left: 3%;
    margin-right: 3%;
    color: white;
    font-size: 0.7em;
}

#counter1 {display: inline-block;
font-size:  2rem;}






#tokenomics {
    flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}


#connect {
  align-items: center;
  text-align: center;
  margin-bottom: 140px;
}

#join {
    flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}


    nav ul li {
        font-size: smaller;
            padding: 2%;
}
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 2%;
}


.section {
  min-height: 55vh;
}


 





}

/* Debug overlay styles */
#debugPanel {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  max-height: 40vh;
  overflow: auto;
  background: rgba(0,0,0,0.65);
  color: #0ff;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px;
  border: 1px solid rgba(0,255,255,0.3);
  z-index: 9999;
}
#debugPanel hr { border: 0; border-top: 1px solid rgba(0,255,255,0.2); margin: 6px 0; }
#debugGrid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,255,0.05) 1px, transparent 1px);
  background-size: 10px 10px, 10px 10px;
  pointer-events: none;
  z-index: 9998;
}





