@font-face {
  font-family: SeuratProBold;
  src: url(/font/FOT-Seurat-Pro-B.otf) format('truetype');
}

@font-face {
  font-family: MarioFont;
  src: url(/font/MARIO_Font_v3_Solid.otf) format('truetype');
}

@font-face {
  font-family: MarioMaker;
  src: url(/font/MARIOMAKER.otf) format('truetype'),
}

/* styles.css */
html, body {
  min-height: 100%;
}
html {
  background: transparent;
}
body {
  margin: 0;
  overflow-x: hidden;
  /* Hide the scrolling diamond container overflow */
  background: linear-gradient(to bottom, #52B2D9 0%, #FFC50A 100%);
  /* Body background now fills the full page height while scrolling */
  animation: fadeLoop 20s linear infinite;
  /* Apply fade to the body */
}

.diamond-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  /* Changed from 3s to 12s to maintain the 80px/sec travel speed */
  animation: diagonalScroll 12s linear infinite reverse; 
}

@keyframes diagonalScroll {
  0% {
    transform: translate(0, 0);
  }
  100% {
    /* 12 tiles * 80px spacing = 960px */
    transform: translate(-960px, -960px); 
  }
}

.diamond {
  width: 60px;
  height: 60px;
  background-color: transparent;
  position: absolute;
  transform-origin: center center;
  transform: rotateZ(45deg);
}

.diamond-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateZ(-45deg);
  transform-origin: center center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Outline the opaque parts of background PNGs with black */
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);
  -webkit-filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);
}

.main-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 20px;
}

.logo {
  -webkit-filter: drop-shadow(8px 8px 8px #000);
  filter: drop-shadow(8px 8px 8px #000);
  width: 400px;
}

.hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.hero-header .logo {
  margin: 0;
}

.hero-header .introduction {
  margin: 0;
  max-width: 820px;
}

.introduction {
  display: inline-block;
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 1.2rem 1.6rem;
  border-radius: 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-family: 'MarioMaker';
  font-size: 1.35rem;
  line-height: 1.6;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.menu-buttons {
  padding: 10px 20px;
  margin: 10px;
  font-size: 1em;
}

.text-bttn-adjust {
  text-decoration: none;
  color: inherit;
}

.video-titles {
  font-size: 1.5em;
  text-align: center;
  font-family: MarioFont;
}

iframe {
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes animatedGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes neonPulse {

  0%,
  100% {
    box-shadow:
      0 0 10px #ffffff,
      0 0 20px #ffffff,
      0 0 30px #ffffff,
      0 0 40px #ffffff;
  }

  50% {
    box-shadow:
      0 0 5px #ffffff,
      0 0 10px #ffffff,
      0 0 15px #ffffff,
      0 0 20px #ffffff;
  }
}

@keyframes buttonGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes footerGradientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}



/* Intro text under the logo on all pages */
.introduction {
  display: inline-block;
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 1.2rem 1.6rem;
  border-radius: 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-family: 'MarioMaker';
  font-size: 1.35rem;
  line-height: 1.6;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.video-titles {
  font-family: MarioMaker;
  color: white;
  text-shadow: rgb(0, 0, 0) 3px 3px;
  font-size: xx-large;
}

.announcement-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.video-container {
  flex: 1 1 440px;
  min-width: 320px;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.video-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.menu-buttons {
  background: linear-gradient(-45deg, #FFC50A, #52B2D9, #FFC50A);
  background-size: 200% 200%;
  animation: buttonGradientShift 4s ease infinite;
  color: white;
  padding: 14px 24px;
  font-family: 'SeuratProBold';
  text-shadow: #000000 2px 2px;
  font-size: medium;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgb(0, 0, 0);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

/* Zoom on hover */
.menu-buttons:hover {
  transform: scale(1.08);
  box-shadow: inset 0 0 0 2px rgb(0, 0, 0), 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Click effect */
.menu-buttons:active {
  transform: scale(0.95);
  box-shadow: inset 0 0 0 2px rgb(0, 0, 0), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.text-bttn-adjust {
  color: white;
}


.text-bttn-adjust {
  color: white;
}

iframe {
  display: block;
  margin: 0 auto;
}

.guidelines {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  border: 2px solid #ffffff;
  border-radius: 3rem;
  font-family: 'MarioMaker';
  color: #ffffff;
  background: linear-gradient(45deg, #FFC50A, #52B2D9);
  text-align: left;


  box-shadow:
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 30px #ffffff,
    0 0 40px #ffffff;
  animation: neonPulse 2s ease-in-out infinite;
}


.guidelines h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-shadow: #000000 3px 3px;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

.guidelines ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guidelines ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: #000000 3px 3px;
}

.guidelines ul li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: #fff;
}

.guidelines ol {
  position: relative;
  font-size: 0.95rem;
  font-family: 'SeuratProBold';
  color: #000000;
}

.guidelines ul li:hover {
  transform: translateX(5px);
  transition: transform 0.2s ease;
}

.applicationform {
  max-width: 920px;
  margin: 2rem auto;
  padding: 1.6rem 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  font-family: 'MarioMaker';
  color: #ffffff;
  background: linear-gradient(145deg, rgba(255, 197, 10, 0.95), rgba(82, 178, 217, 0.95));
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(255, 255, 255, 0.25);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

.applicationform h2 {
  margin-bottom: 1.5rem;
  font-size: 1.45rem;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* 🟣 Google Form SCALATO */
.google-form {
  width: 100%;
  max-width: 860px;
  min-height: 1350px;
  height: 1400px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.8rem;
  margin: 0 auto;
  display: block;
  transform: scale(1);
  transform-origin: top center;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  background: #ffffff;
}

.neon-border {
  animation: neonPulse 2s ease-in-out infinite;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-header {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .hero-header .logo,
  .logo {
    width: 95vw;
    max-width: 320px;
  }

  .introduction {
    max-width: 5vw;
    margin-top: 1rem;
    padding: 1rem 1.3rem;
    font-size: 0.90rem;
    line-height: 1.2;
  }

  .video-titles {
    font-size: 1.7rem;
  }

  .announcement-layout {
    flex-direction: column;
    align-items: center;
  }

  .video-container {
    max-width: 94vw;
    min-width: 0;
    margin-bottom: 2rem;
  }

  .guidelines,
  .applicationform {
    width: 95vw;
    max-width: 98vw;
    margin: 1.5rem auto;
    padding: 1.4rem 1rem;
    border-radius: 1.8rem;
  }

  .menu-buttons {
    padding: 15px 9px;
    font-size: 0.95rem;
  }

  .text-bttn-adjust {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0.10rex auto;
    justify-content: center;
  }

  .applicationform h2 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .google-form {
    transform: scale(1);
    /* niente zoom su mobile */
    height: 2100px;
    border-radius: 1.3rem;
  }

  footer {
    padding: 18px 5px;
  }
}

footer {
  background: linear-gradient(180deg, #FFC50A 0%, #52B2D9 35%, #52B2D9 65%, #FFC50A 100%);
  background-size: 100% 300%;
  animation: footerGradientShift 6s ease-in-out infinite;
  box-shadow: 0 -20px 30px rgba(0, 0, 0, 0.6);
  padding: 5px;
  text-align: center;
  font-family: 'MarioMaker';
  position: relative;
  z-index: 1;
}

footer h1 {
  font-size: 34px;
  margin-bottom: 15px;
  color: white;
  text-shadow: black 2px 4px;
}

footer p {
  font-size: 16px;
  font-family: 'SeuratProBold';
}