@font-face {
  font-family: "ducktype";
  src: url("media/fonts/ducktype.ttf");
}

* {
  font-family: "ducktype", Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #1b2021;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, sans-serif;
  background-color: #a9d8ff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  width: calc(100vw - 20px);
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
  flex: 1;
  overflow: hidden;
}

.centerer {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  margin: 20px auto;
  box-sizing: border-box;
  width: calc(100% - 20px);
  background-color: #42893a;
  position: relative;
  border: 2px solid #1b2021;
}

.header-logo {
  transform: scaleX(-1);
  position: absolute;
  width: 100px;
  top: -32px;
  left: -10px;
}

h1 {
  color: #0e7ee2;
  /* -webkit-text-stroke-width: 0.25px;
  -webkit-text-stroke-color: #1b2021; */
  margin: 0;
  margin-left: 70px;
  font-size: 38px;
  text-shadow: -1px -1px 0 #1b2021, 1px -1px 0 #1b2021, -1px 1px 0 #1b2021,
    1px 1px 0 #1b2021;
}
.wif {
  color: #f99a1c;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

a,
nav a,
.about a {
  text-decoration: none;
}

.btn {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 10px 15px;
  text-align: center;
  font-size: 24px;
  background-color: #f99a1c;
  color: #1b2021;
  border: 2px solid #1b2021;
}
.btn:focus {
  outline: none;
}

.clickable {
  background-color: #f99a1c;
  box-shadow: 0 3px #1b2021;
  transform: translateY(-3px);
}

.clickable:hover {
  background-color: #f1b668;
  box-shadow: 0 5px #1b2021;
  transform: translateY(-5px);
  cursor: pointer;
}

.clickable:active {
  background: #cf7e14;
  box-shadow: 0 2px #1b2021;
  transform: translateY(-2px);
}

nav .btn {
  margin-left: 10px;
}

.btn-icon {
  width: 20px;
  height: auto;
  stroke: #1b2021;
  fill: #1b2021;
}

.hero {
  position: relative;
  width: 100%;
  padding-top: 83.33%;
}
.live-now {
  position: absolute;
  top: 30px;
  right: 65px;
  transform: rotate(45deg);
  text-align: center;
  font-size: 30px;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.hero img {
  width: 100%;
}

.hero .duck {
  z-index: 10;
}

.glueBottle {
  position: absolute;
  right: 30%;
  bottom: 5%;
  width: 25px !important;
  height: auto;
  opacity: 0;
  display: block;
  z-index: 5;
}

.drop-glue {
  animation: dropAnimation 0.5s linear forwards;
}

@keyframes dropAnimation {
  0% {
    bottom: 5%;
    opacity: 1;
    transform: rotate(0deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    bottom: -35%;
    transform: rotate(90deg);
  }
}

.content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card {
  border-radius: 18px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: calc(50% - 20px);
  padding: 20px;
  background-color: #599959;
  border: 2px solid #1b2021;
  text-align: center;
  position: relative;
}

.card img {
  max-width: 80%;
}

.card.full-width {
  width: calc(100% - 20px);
}

.card-button {
  margin-top: 20px;
}
.card-button-title {
  margin-bottom: 20px;
}
.abut-ticker {
  position: absolute;
  bottom: 0px;
  right: 15px;
}

.nav2 {
  display: flex;
  width: calc(100% - 20px);
  margin: 30px 10px;
}

.nav2 .btn {
  flex: 1;
  margin-right: 10px;
}

.nav2 .btn:last-child {
  margin-right: 0;
}

.ca {
  font-size: 24px;
  word-break: break-all;
}

footer {
  background-color: #42893a;
  color: #1b2021;
  font-size: 18px;
  text-align: center;
  padding: 6px 10px;
  bottom: 0;
  width: 100%;
  border-top: 2px solid #1b2021;
  margin-top: 20px;
}

@media (max-width: 768px) {
  header,
  .content {
    flex-direction: column;
    align-items: center;
  }

  .header-logo {
    top: 0px;
    left: 0px;
  }

  header h1,
  header nav {
    text-align: center;
    margin-left: 0;
  }
  .card {
    width: calc(100% - 20px);
  }
  .about p {
    text-align: left;
  }

  footer {
    font-size: 18px;
    width: 100%;
  }
}

@media (max-width: 468px) {
  .nav2 {
    flex-direction: column;
    width: calc(100% - 20px);
  }
  .nav2 .tele {
    order: 2;
    margin: 0;
    margin-bottom: 15px;
  }
  .nav2 .xapp {
    order: 3;
    margin: 0;
  }
  .nav2 .buy {
    order: 1;
    margin: 0;
    margin-bottom: 15px;
  }
  .break {
    display: block;
  }
  .live-now {
    position: absolute;
    top: 10px;
    right: 35px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .header-logo {
    display: none;
  }
}

/* FLYING WIFFIN DUCK */

.duck-fly {
  height: 290px;
  width: auto;
  position: relative;
}

#flyingDuck {
  width: 290px;
  height: 290px;
  position: absolute;
  top: 25px; /* Starting position */
  left: -40%;
  background-image: url("media/imgs/duck-flying/duck-flys0.png");
  background-size: contain;
  background-repeat: no-repeat;
  animation: flyCycle 0.3s steps(5) infinite, hover 0.6s ease-in-out infinite;
  z-index: 10;
  overflow: hidden;
}

#flyingDuck.crash {
  animation: crash 0.3s steps(7) forwards;
  left: 45%;
}
#flyingDuck img {
  overflow: hidden;
  transform: translateZ(0);
}

@keyframes flyCycle {
  20% {
    background-image: url("media/imgs/duck-flying/duck-flys1.png");
  }
  40% {
    background-image: url("media/imgs/duck-flying/duck-flys2.png");
  }
  60% {
    background-image: url("media/imgs/duck-flying/duck-flys3.png");
  }
  80% {
    background-image: url("media/imgs/duck-flying/duck-flys4.png");
  }
  100% {
    background-image: url("media/imgs/duck-flying/duck-flys0.png");
  }
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  } /* Adjust for more/less hover */
}

@keyframes moveRight {
  from {
    left: -40%;
  }
  to {
    left: 45%;
  }
}

@keyframes crash {
  0% {
    background-image: url("media/imgs/duck-flying/duck-crash/duck-crash0.png");
  }
  17% {
    background-image: url("media/imgs/duck-flying/duck-crash/duck-crash1.png");
  }
  34% {
    background-image: url("media/imgs/duck-flying/duck-crash/duck-crash2.png");
  }
  51% {
    background-image: url("media/imgs/duck-flying/duck-crash/duck-crash3.png");
  }
  69% {
    background-image: url("media/imgs/duck-flying/duck-crash/duck-crash4.png");
  }
  87% {
    background-image: url("media/imgs/duck-flying/duck-crash/duck-crash5.png");
  }
  100% {
    background-image: url("media/imgs/duck-flying/duck-crash/duck-crash6.png");
  }
}

#preloadedImages {
  display: none;
}
.hidden {
  width: 1px;
  height: 1px;
}

h3 {
  text-align: center;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  display: hidden;
  z-index: 100;
}

.popup-content {
  background: #a9d8ff;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 50%;
  max-width: 90%;
  max-height: 90%;
}

.popup-cert {
  stroke: #1b2021;
  fill: #f99a1c;
}

.corner-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 75px;
  height: 75px;
  cursor: pointer;
  z-index: 100;
}

.hidden2 {
  display: none;
}
