@import url("https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gasoek+One&display=swap");

body, html {
  margin: 0;
  padding: 0;
  font-family: "Dela Gothic One", "Gasoek One", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: transparent;
}

.no-scroll {
  overflow-y: hidden;
}

.nav-buttons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}

.logo-button {
  width: 200px;
  height: 100px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.logo-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.center-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.center-buttons button {
  font-family: "YOUR_ENGLISH_FONT_NAME", sans-serif;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: black;
  transition: color 0.3s;
}

.center-buttons button:hover {
  color: #ff1569;
}

@media (max-width: 728px) {
  .logo-button {
    width: 64px;
    height: 64px;
  }

  .logo-button img {
    content: url('assets/hsg-logos/HSG-S.png');
  }

  .center-buttons button {
    font-size: 0.8rem;
  }
}

.landing {
  display: flex;
  flex-direction: column;
}

.page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.page-1 {
  background-color: #fbfbf2;

}

.page-2 {
  background-color: #ff1569;
  overflow: hidden;

}

.page-3 {
  background-color: #28262c;
  overflow: hidden;

}

.page-4 {
  background-color: #171614;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;

}

.page-1-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  padding-top: 120px;
}

.page-1-grid-item {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  overflow: hidden;
  position: relative;
  width: relative;
  height: 140px;
}

.page-1-grid-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  position: absolute;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

@media (max-width: 980px) and (min-width: 769px) {
  .page-1-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-1-grid-item:nth-child(1),
  .page-1-grid-item:nth-child(4),
  .page-1-grid-item:nth-child(6),
  .page-1-grid-item:nth-child(0) {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-1-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 200px;
  }
  
  .page-1-grid-item img {
    width: 100px;
    height: 100px;
  }
  .page-1-grid-item {
    height: 40px;
  }
  
  .page-1-grid-item:nth-child(1),
  .page-1-grid-item:nth-child(3),
  .page-1-grid-item:nth-child(4),
  .page-1-grid-item:nth-child(7),
  .page-1-grid-item:nth-child(8),
  .page-1-grid-item:nth-child(9),
  .page-1-grid-item:nth-child(0),
  .page-1-grid-item:nth-child(21),
  .page-1-grid-item:nth-child(13),
  .page-1-grid-item:nth-child(14),
  .page-1-grid-item:nth-child(15),
  .page-1-grid-item:nth-child(20) {
    display: none;
  }
}

.dynamic-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -66%);
  font-size: clamp(110px, 8vw, 100px);
  color: #ff1569;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.letter {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
  .dynamic-title {
    font-size: 12vw;
    white-space: nowrap;
  }
  .letter {
    min-width: 52px;
  }
}

.smashbox {
  position: relative;
  width: 100%;
  height: 100vh;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.platforms {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(1, 40px);
  gap: 8px;
  justify-content: center;
  align-content: center;
  justify-items: center;
  z-index: 10;
}

.platform-disables {
  position: absolute;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 86px;
  justify-content: center;
  align-content: center;
  justify-items: center;
  z-index: 10;
  pointer-events: none;
}

.platforms img {
  width: 120px;
  height: 40px;
  transition: transform 0.15s ease;
}

.platform-disables img {
  width: 120px;
  height: 40px;
}

.platforms a:hover img {
  transform: scale(1.1);
}

.player-container {
  width: 400px;
  height: 80px;
  position: fixed;
  bottom: 20px;
  left: 20px;
  align-items: center;
  padding: 0;
  cursor: grab;
  user-select: none;
  transition: width 0.3s ease, left 0.3s ease, bottom 0.3s ease;
  z-index: 220;
}

@media (max-width: 768px) {
  .player-container {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
  }
}

iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  padding-top: 100px;
}

.grid-item {
  all: unset;
  display: flex;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.grid-item:active {
  transform: scale(0.98);
}

.grid-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  will-change: transform;
}

.grid-item:hover > img {
  transform: scale(1.1);
}

.item-icons {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item-icon {
  background: #000000;
  border-radius: 8px;
  width: 60px;
  height: 60px;
}

.grid-item:hover .item-icons {
  opacity: 1;
}

@media (max-width: 980px) and (min-width: 769px) {
  .content-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .item-icons {
  opacity: 1;
  }
  
  .grid-item:hover > img {
  transform: none;
  }
  
  .item-icon {
  width: 40px;
  height: 40px;
  }
}

.email-link {
  text-decoration: underline;
  color: #FFFFFF;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-family: sans-serif; 
}

.email-link:hover {
  color: #FF1569;
}

@media (hover: none) {
  .email-link:hover {
    color: inherit;
  }
}

.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  z-index: 1000;
}

.floating-button {
  background: #000000;
  border-radius: 16%;
  padding: 8px;
  animation: floatAnim 2s ease-in-out infinite alternate;
  width: 40px;
  height: 40px;
}

.floating-button img {
  width: 100%;
  height: 100%;
}

@keyframes floatAnim {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(var(--float-distance, 5px));
  }
}

.floating-button:hover {
  animation: none !important;
}

@media (max-width: 768px) {
  .floating-buttons {
    bottom: 100px;
  }
  .floating-button {
    border-radius: 16%;
    padding: 4px;
  }
  .floating-button img {
    width: 100%;
    height: 100%;
  }
}

/* CUTE TOUCH */
.flying-leek {
  position: fixed;
  top: -200px;
  bottom: -200px;
  width: 160px;
  height: 160px;
  background-size: cover;
  animation: fly-leek 4s ease-in-out infinite;
  z-index: 300;
}

@keyframes fly-leek {
    from {
        top: -200px;
    }
    to {
        top: 100vh;
    }
}

.heart {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-image: url('assets/games/heart.svg');
    background-size: cover;
    opacity: 1;
    z-index: 1200;
    animation: heartFadeOut 2s forwards;
    pointer-events: none;
}

@keyframes heartFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#heartCounter {
  position: fixed;
  top: -16px;
  right: 0;
  font-size: 30px;
  display: flex;
  z-index: 200;
}

#heartIcon {
  width: 100px;
  height: 100px;
}

#heartCount {
  position: fixed;
  top: 12px;
  right: 80px;
  color: #FFFFFF;
  text-shadow: 
    2px 2px 0 black,
    -2px -2px 0 black,
    2px -2px 0 black,
    -2px 2px 0 black;
}

@media (max-width: 768px) {
  #heartCounter {
    top: 4px;
    font-size: 20px;
  }
  #heartIcon {
    width: 66px;
    height: 66px;
  }
  #heartCount {
    top: 22px;
    right: 56px;
  }
}

/* MAIN POPUP */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  z-index: 200;
  pointer-events: auto;
  overflow: auto;
}

.popup-container.open {
  display: block;
  pointer-events: auto;
}

.popup-container.open ~ body {
  overflow: hidden;
}

.popup-container.open .fade {
  display: block;
}

.fade {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  pointer-events: auto;
  overflow: block;
}

.pattern {
  position: fixed;
  width: 100%;
  height: calc(100% + 200px);
  background: repeating-linear-gradient(
    116deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.1) 4px,
    rgba(255, 255, 255, 0.1) 8px
  );
  z-index: 201;
  pointer-events: none;
  overflow: block;
}

.popup-content {
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
  width: 420px;
  background: black;
  border-radius: 16px;
  padding: 16px;
  padding-top: 0;
  z-index: 202;
  margin-top: 40px;
  margin-bottom: 120px;
  pointer-events: auto;
  height: auto;
}

.popup-title {
  font-size: 1.6rem;
  max-height: 20px;
  color: white;
}

.popup-text {
  font-family: sans-serif;
  font-size: 1.0rem;
  text-align: justify;
  margin-top: 10px;
  color: white;
}

.popup-dynamic-image {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .popup-content {
    width: 320px;
    margin-top: 30px;
    margin-bottom: 200px;
  }
  
  .popup-title {
  font-size: 1.2rem;
  }
  
  .popup-text {
  margin-top: 40px;
}
}