/* ============================================================
   Global stylesheet – shared by ALL pages  |  Mobile‑first approach
   Comments are in English for clarity.  
   ============================================================ */

/* ---------- Reset / base layout ---------- */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
}

/* ------------------------------------------------------------
   Header (burger + centred logo)
   ------------------------------------------------------------ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 10px;
  background: rgb(0, 0, 0);
  z-index: 1000;
}

/* Burger icon */
.menu-icon {
  cursor: pointer;
  font-size: 2rem;
  color: rgb(75, 28, 41);
  z-index: 1500;
  top: 10px;
  left: 10px;
  position: absolute;
}

/* Logo inside header – horizontally centred */
header .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
}

/* Larger hero logo for the landing page */
.video-container > .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 200px;
}

/* ------------------------------------------------------------
   Slide‑in overlay menu (mobile full‑width, desktop sidebar)
   ------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  width: 25%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 10000;
}
.overlay.open {
  transform: translateX(0);
}

.overlay-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.menu-list a {
  color: rgb(245, 243, 230);
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}
.menu-list a:hover {
  opacity: 0.7;
}

/* Hover fallback (non‑JS) */
.menu-icon:hover + .overlay,
.overlay:hover {
  transform: translateX(0);
}

/* ------------------------------------------------------------
   Video hero container (index page)
   ------------------------------------------------------------ */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

#background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Rich text area (Privacy Policy, About Us, …)
   ------------------------------------------------------------ */
.text {
  top: 200px;
  width: 70%;
  color: rgb(75, 28, 41);
  line-height: 1.6;
  margin: 0 auto;
  position: relative;
}

.text h3 {
  margin-top: 20px;
  font-size: 1.25rem;
  text-decoration: underline;
}

.text h4 {
  margin: 1.2rem 0 0.75rem;
  font-size: 1.1rem;
}

.text p,
.text li {
  font-size: 0.95rem;
  text-align: left;
  margin: 0 0 1rem;
}

.text ul {
  padding-left: 1.2rem;
}
.text li {
  list-style: disc;
}

/* ------------------------------------------------------------
   Footer (links + copyright centred)
   ------------------------------------------------------------ */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgb(0, 0, 0);
  color: rgb(75, 28, 41);
  text-align: center;
  padding: 10px 0 8px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: bold;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer-bar a {
  color: rgb(75, 28, 41);
  text-decoration: none;
}
.footer-bar a:hover {
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
}

.gamelist {
  position: absolute;
  left: 50%;
  top: 200px;
  transform: translateX(-50%);
  width: 100%;
  color: rgb(75, 28, 41);
  text-align: center;
}

.gamelist a {
  font-size: 20px;
}

.gamelist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-link {
  display: block;
  color: rgb(75, 28, 41);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
}

.game-link:hover {
  cursor: pointer;
  color: rgb(245, 243, 230);
}

/* ------------------------------------------------------------
   Global styles for the game rusellaro page
   ------------------------------------------------------------ */

/* -------------- Contenitore generale --------------- */
.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 180px;
  gap: 24px;
}

/* -------- 1) Immagine del Play Store -------- */
.game .game-logo {
  margin-top: -75px;
  max-width: 200px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* -------- 2) Video -------- */
.video-container {
  width: 40%;
  max-width: 600px;
  margin-bottom: 50px;
  
}

.game-video {
  width: 100%;
  height: auto;
}

/* -------- 3) Due loghi affiancati -------- */
.logo-row {
  display: flex;
  gap: 2px; 
  justify-content: center;
  width: 90%; 
  max-width: 400px; 
  margin-bottom: 100px;
}

.small-logo1 {
  margin-top: -10px;
  max-width: 200px; 
  width: 100%;

  border-radius: 10px;
  
}
 .small-logo2 {
  margin-top: -10px;
  max-width: 200px; 
  width: 100%;
  border-radius: 10px;
}


.logo-row a {
  cursor: pointer;
}

.logo-row a img:hover {
  opacity: 0.8;
}

/* ------------------------------------------------------------










   Responsive styles for mobile devices
   (max-width: 425px)












   ------------------------------------------------------------ */

@media (max-width: 425px) {
  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
  }

  /* ------------------------------------------------------------
   Header (burger + centred logo)
   ------------------------------------------------------------ */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
    background: rgb(0, 0, 0);
    z-index: 1000;
  }

  /* Burger icon */
  .menu-icon {
    cursor: pointer;
    font-size: 2rem;
    color: rgb(75, 28, 41);
    z-index: 1500;
    top: 10px;
    left: 10px;
    position: absolute;
  }

  /* Logo inside header – horizontally centred */
  header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
  }

  /* Larger hero logo for the landing page */
  .video-container > .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 200px;
  }

  /* ------------------------------------------------------------
   Slide‑in overlay menu (mobile full‑width, desktop sidebar)
   ------------------------------------------------------------ */
  .overlay {
    position: fixed;
    inset: 0;
    width: 45%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 10000;
  }
  .overlay.open {
    transform: translateX(0);
  }

  .overlay-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }

  .menu-list a {
    color: rgb(245, 243, 230);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.2s;
  }
  .menu-list a:hover {
    opacity: 0.7;
  }

  /* Hover fallback (non‑JS) */
  .menu-icon:hover + .overlay,
  .overlay:hover {
    transform: translateX(0);
  }

  /* ------------------------------------------------------------
   Video hero container (index page)
   ------------------------------------------------------------ */
  .video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
  }

  #background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ------------------------------------------------------------
   Rich text area (Privacy Policy, About Us, …)
   ------------------------------------------------------------ */
  .text {
    top: 20px;
    width: 75%;
    max-width: 100%;
    color: rgb(75, 28, 41);
    line-height: 1.6;
    margin: 0 auto;
    position: relative;
    padding-bottom: 150px;
    margin-top: 200px;
  }

  .text h3 {
    margin-top: 20px;
    font-size: 1.25rem;
    text-decoration: underline;
  }

  .text h4 {
    margin: 1.2rem 0 0.75rem;
    font-size: 1.1rem;
  }

  .text p,
  .text li {
    font-size: 0.95rem;
    text-align: left;
    margin: 0 0 1rem;
  }

  .text .contact {
    margin-left: 7%;
    font-size: 0.8rem;
  }

  .text ul {
    padding-left: 1.2rem;
  }
  .text li {
    list-style: disc;
  }

  /* ------------------------------------------------------------
   Footer (links + copyright centred)
   ------------------------------------------------------------ */
  .footer-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: #000;
    color: rgb(75, 28, 41);
    text-align: center;
    padding: 10px 0 8px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    position: fixed;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    z-index: 100;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }

  .footer-bar a {
    color: rgb(75, 28, 41);
    text-decoration: none;
  }
  .footer-bar a:hover {
    text-decoration: underline;
  }

  .footer-copyright {
    text-align: center;
  }
}
