body {
    font-family: 'Poppins', Arial, sans-serif;
    text-align: center;
    background-color: #444;
    color: white;
    margin: 0;
    font-weight: 400;
}

footer {
    margin-top: 20px;
    padding: 10px;
    background: #333;
}

footer p {
  margin-top: 0;
}

header {
  background-color: #333;
  padding: 2px 0;
}

header .logo {
  height: 156px;
  width: auto;
  margin-right: 2px;
}

header .top-title {
  font-size: 25px;
  color: #f90;
  font-weight: bold;
}

header .game-title {
  font-size: 46px;
  font-weight: 900;
  margin-top: 5px;
}

html {
  scroll-behavior: smooth;
}


a[href^="mailto:"] {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

a[href^="mailto:"]:hover {
  color: orange;
}

h1, h2, h3 {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
/*
nav ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  justify-content: center; 
}
*/
nav a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  padding: 5px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: orange;
}
/*
nav li { 
  position: relative; 
  margin: 0 15px; 
}

nav li:hover .submenu {
  display: flex;
  opacity: 1;
  visibility: visible;
}
*/

/* === Centered Nav Bar === */

nav {
  width: 100%;
}
nav .menu {
  display: flex;
  gap: 60px;
  padding: 6px 0;
  justify-content: center;  /* flex-start for left aligned */
  padding-left: 0px; /* adjust for desired indentation */
}
nav .menu a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
}
nav .menu a:hover {
  color: #f90;
  transition: color 0.3s;
}


.bad {
  color: red;
  font-weight: bold;
}

.camera-section img {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  border-radius: 8px;
}

.camera-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.camera-setup-small {
  width: 100%;
  max-width: 350px !important;
  height: auto;
  border: 2px solid white;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

img.camera-setup-small:hover {
  transform: scale(1.01);
}

.container {
    padding: 20px;
}

.documentationParagraph {
  max-width: 800px;
  margin: 20px auto;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  color: #ddd;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 2px;
}

.footer-icon svg {
  fill: white;
  transition: fill 0.3s ease, transform 0.3s ease;
  border-radius: 30%;
  padding: 2px;
}

.footer-icon:hover svg {
  fill: orange;
  transform: scale(1.05);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin: 40px 15%; /* 15% margin left and right */
}

.gallery-item {
  width: 30%;
  min-width: 200px;
  max-width: 375px; /* Don't let images grow too much */
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border: 2px solid white;
  border-radius: 8px;
}

.gallery-item:hover {
  transform: scale(1.02);
}
.gallery-caption {
  margin-top: 5px; font-size: 15px;
}

.good {
  color: lightgreen;
  font-weight: bold; 
}

/* === Mobile Nav === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* default for fallback */
}

.header-inner .left-block {
  display: flex;
  align-items: center;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 26px 50px;
}

.header-top h1 {
  font-size: 35px;
  margin: 0;
  flex-grow: 0; /* Prevents expanding */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.language-switch {
  margin-left: auto;
  font-size: 14px;
  padding-top: 40px;
}
.language-switch a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.language-switch a:hover {
  color: orange;
}

.language-switch strong {
  color: orange;
}

.language-switch .facebook-icon {
  margin-right: 0px; /* reduced from 22px */
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.language-switch .facebook-icon:last-child {
  margin-right: 12px;
}

.language-switch .facebook-icon svg {
  fill: white;
  transition: fill 0.3s ease;
  border-radius: 30%;
  padding: 2px;
}
/*
.language-switch .facebook-icon svg {
  background-color: white;
}
*/
.language-switch .facebook-icon:hover svg {
  fill: orange;
  transform: scale(1.05);
}

.mobile-icons {
  display: none;
  gap: 16px;
  margin-top: 8px;
  justify-content: center;
}

.mobile-icon img {
  transition: transform 0.3s ease;
}

.mobile-icon:hover img {
  transform: scale(1.1);
}

.nav-background {
  background-color: #000;
}

.nav-wrapper {
  max-width: 900px;
  display: flex;
  justify-content: center;
  margin: 0 auto;              /* center horizontally */
  background-color: #000;      /* black menu strip */
}


.requirements-list {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
}

.requirements-list li { 
  margin-bottom: 2px; 
}

.section-gray {
  background-color: #3a3a3a;
  padding: 40px 20px;
}

.section-title {
  margin-top: 80px; /* instead of 40px */
  font-size: 26px;
}

.social-icons {
  display: inline-flex;
  gap: 8px;
  margin-right: 10px; /* space between icons and language switch */
  vertical-align: middle;
}

.social-icon svg {
  fill: white;
  transition: fill 0.3s ease, transform 0.3s ease;
  border-radius: 30%;
  padding: 2px;
}

.social-icon:hover svg {
  fill: orange;
  transform: scale(1.05);
}

.submenu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 10px;
  background: #333;
  border: 1px solid #555;
  padding: 5px;
  white-space: nowrap;
}

.submenu a {
  color: white;
  font-size: 15px;
  padding: 5px 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.submenu a:hover {
  color: orange;
}

.titles {
  line-height: 0.8;
  margin-left: 22px;
  text-align: left;  
}

/*
.top-title {
  font-size: 22px;
  color: #f90;
  font-weight: bold;
}
.game-title {
  font-size: 36px;
  font-weight: 900;
  margin-top: 6px;
}*/

.toc {
  margin-bottom: 30px;
  text-align: center;
}

.toc a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: orange;
}

.video-wrapper {
  position: relative;
  padding-bottom: 38%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}


/* ========================================
   Mobile Optimization (Max Width 950px)
======================================== */
@media (max-width: 900px) {

  header .language-switch .social-icons {
    display: none !important;
  }

  header {
    align-items: flex-start;
    flex-direction: row;
    padding: 10px 20px;
  }
  header .logo {
    height: 50px;
    margin-right: 10px;
  }

  header .top-title {
    font-size: 17px;
    align-self: center;
  }
  header .game-title {
    display: none;
  }


  /* Container padding */
  .container {
    padding: 10px;
  }

  .game-title {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Header top: center everything */
  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    position: relative;
  }

  /* Title smaller */
  .header-top h1 {
    font-size: 28px;
    margin-bottom: 5px;
  }

  /* Language switch small and centered under title */
  .language-switch {
    position: relative;
    margin-top: 5px;
    font-size: 10px;
    padding-top: 0px;
    padding-right: 6px;
  }

  .mobile-icons {
    display: flex !important;          /* use flex so gap works */
    gap: 8px;              /* increase spacing between icons */
    margin-top: 10px;
    margin-left: 0px;      /* align left with titles */
    justify-content: flex-start; /* keep them left aligned */
  }
  .social-icons {
    display: none !important;
  }
  .submenu {
    display: none !important;
  }

  .titles {
    display: block;
  }
/*
  .top-title {
    font-size: 18px;
  }
*/
  /* Navigation becomes vertical */
  /*
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin-top: 10px;
  }

  nav li {
    margin: 1px 0;
    padding: 2px 0;
  }
*/
  nav .menu {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 60px;
    width: 100%;
    left: 0;
    padding: 20px;
    align-items: center;
    z-index: 10;
  }
  nav.active .menu {
    display: flex;
  }

  /* Reduce paragraph and list font size */
  .requirements-list li,
  .container p,
  .gallery-caption {
    font-size: 13px;
  }

  /* Gallery images adapt better */
  .gallery-item {
    width: 80%;
  }

  /* Camera small images still behave correctly */
  .camera-setup-small {
    width: 80%;
  }
}