@import url("../root/root.css");

#egg-modal-container {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--duck-pink);
  background-color: var(--go-btn-gradient);
    background: var(--egg-menu-gradient);

  z-index: 9999;
  overflow-y: auto;
  flex-direction: column;
  transform: translateX(100%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.33, 1.02, 0.46, 0.99),
    opacity 0.5s cubic-bezier(0.33, 1.02, 0.46, 0.99);
  justify-content: flex-start;
  align-items: flex-start;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-family: var(--font-main);
  font-weight: 600;
}

#egg-modal-container.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.25);
}

#egg-modal {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

#egg-btn,
#close-egg-btn {
  display: none;
}

/* =====================
/* EGG MENU LINKS */
/* ===================== */
.egg-links {
  position: relative;
  width: clamp(1rem, 50vw, 60rem);
  top: 25px;
  left: 60px;
  padding: clamp(0.8rem, 1vw, 1rem);
  color: var(--duck-charcoal);
  background-color: var(--duck-white);
  border-radius: 2.7rem;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.26);
  margin-bottom: 0.4rem;
}

.egg-game-links {
  position: relative;
  width: clamp(1rem, 50vw, 60rem);
  top: 25px;
  left: 60px;
  padding: clamp(0.8rem, 1vw, 1rem);
  color: var(--duck-charcoal);
  background-color: var(--duck-yellow);
  border-radius: 2.7rem;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.26);
  margin-bottom: 0.4rem;
}

.egg-tools {
  position: relative;
  width: clamp(1rem, 50vw, 60rem);
  top: 25px;
  left: 60px;
  padding: clamp(0.8rem, 1vw, 1rem);
  color: var(--duck-white);
  background-color: var(--duck-charcoal);
  border-radius: 2.7rem;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.26);
  margin-bottom: 0.4rem;
}

.egg-links i,
.egg-game-links i,
.egg-tools i {
  padding-left: 1rem;
  margin-right: 1.2em;
}

.egg-links,
.egg-game-links,
.egg-tools {
  display: flex;
  align-items: center;
  padding-left: 3rem;
  padding-right: 2rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-radius: 2.7rem;
  font-size: 1.13em;
  transition: box-shadow 0.18s cubic-bezier(0.4, 1.4, 0.6, 1),
    transform 0.14s cubic-bezier(0.4, 1.4, 0.6, 1), background 0.18s;
  box-shadow: 0 10px 32px 0 rgba(44, 44, 44, 0.13),
    0 2px 4px rgba(44, 44, 44, 0.06);
}

.egg-links {
  background: linear-gradient(
    90deg,
    var(--duck-white) 60%,
    var(--duck-whiter) 100%
  );
}

.egg-game-links {
  background: linear-gradient(
    90deg,
    var(--duck-yellow) 70%,
    var(--duck-yellow-light) 100%
  );
}

.egg-tools {
  background: linear-gradient(
    90deg,
    var(--duck-charcoal) 60%,
    #3a3d56 100%
  );
}

.egg-links i,
.egg-game-links i,
.egg-tools i {
  font-size: 1.36em;
  margin-right: 1.4em;
  margin-left: -0.5em;
  transition: transform 0.17s cubic-bezier(0.4, 1.6, 0.6, 1.5);
}

.egg-links:hover,
.egg-game-links:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 44px rgba(44, 44, 44, 0.2);
  filter: brightness(1.05);
  background: linear-gradient(90deg, #f8f9fb 60%, #e3e4e8 100%);
}

.egg-tools:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 44px rgba(44, 44, 44, 0.2);
  filter: brightness(1.05);
  background: linear-gradient(90deg, #1f2233 60%, #3a3d56 100%);
}

.egg-links:focus,
.egg-game-links:focus {
  outline: 2px solid var(--duck-charcoal);
  outline-offset: 2px;
}

.egg-tools:focus {
  outline: 2px solid var(--duck-white);
  outline-offset: 2px;
}

/* =====================
/* EGG LINKS ANIMATION */
/* ===================== */
#egg-modal-container .egg-links,
#egg-modal-container .egg-game-links,
#egg-modal-container .egg-tools {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s cubic-bezier(0.33, 1.02, 0.46, 0.99),
    transform 0.5s cubic-bezier(0.33, 1.02, 0.46, 0.99);
}

#egg-modal-container.show .egg-links,
#egg-modal-container.show .egg-game-links,
#egg-modal-container.show .egg-tools {
  opacity: 1;
  transform: translateX(0);
}

#egg-modal-container.show li:nth-child(1) a {
  transition-delay: 0.03s;
}
#egg-modal-container.show li:nth-child(2) a {
  transition-delay: 0.06s;
}
#egg-modal-container.show li:nth-child(3) a {
  transition-delay: 0.09s;
}
#egg-modal-container.show li:nth-child(4) a {
  transition-delay: 0.12s;
}
#egg-modal-container.show li:nth-child(5) a {
  transition-delay: 0.15s;
}
#egg-modal-container.show li:nth-child(6) a {
  transition-delay: 0.18s;
}
#egg-modal-container.show li:nth-child(7) a {
  transition-delay: 0.21s;
}
#egg-modal-container.show li:nth-child(8) a {
  transition-delay: 0.24s;
}
#egg-modal-container.show li:nth-child(9) a {
  transition-delay: 0.27s;
}
#egg-modal-container.show li:nth-child(10) a {
  transition-delay: 0.3s;
}
#egg-modal-container.show li:nth-child(11) a {
  transition-delay: 0.33s;
}
#egg-modal-container.show li:nth-child(12) a {
  transition-delay: 0.36s;
}
#egg-modal-container.show li:nth-child(13) a {
  transition-delay: 0.39s;
}
#egg-modal-container.show li:nth-child(14) a {
  transition-delay: 0.42s;
}
#egg-modal-container.show li:nth-child(15) a {
  transition-delay: 0.45s;
}
#egg-modal-container.show li:nth-child(16) a {
  transition-delay: 0.48s;
}
#egg-modal-container.show li:nth-child(17) a {
  transition-delay: 0.51s;
}
#egg-modal-container.show li:nth-child(18) a {
  transition-delay: 0.54s;
}
#egg-modal-container.show li:nth-child(19) a {
  transition-delay: 0.57s;
}
#egg-modal-container.show li:nth-child(20) a {
  transition-delay: 0.60s;
}

@media (min-width: 801px) {
  #egg-btn,
  #close-egg-btn {
    display: none !important;
  }
}

/* =====================
/* EGG MENU MOBILE */
/* ===================== */
@media (max-width: 800px) {
  .egg-toggle {
    display: flex;
    align-items: center;
    height: 100%;
  }

  #egg-btn,
  #close-egg-btn {
    min-width: 4.4rem;
    min-height: 4.4rem;
    font-size: 2rem;
    margin-right: 0.1rem;
    color: var(--duck-white);
    cursor: pointer;
    z-index: 99001;
    display: inline-block;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 78%;
    right: 0.1rem;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
  }

  #egg-btn {
    opacity: 1;
    pointer-events: auto;
  }

  #egg-modal {
    gap: 2px;
  }

  .egg-links,
  .egg-game-links,
  .egg-tools {
    font-size: 1.2rem;
  }
}

@media (max-width: 479px) {
  #egg-btn,
  #close-egg-btn {
    top: 85%;
  }
}
