@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Space+Grotesk&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(to bottom, #3a9bdc, #1c3f78, #1c3f78);
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Header */

header, h1, h2, h3, h4, h5, h6 {
  font-family: 'Bungee', cursive;
}

header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: white;
}

header img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: #f3f3f3;
  font-family: 'Bungee', cursive;
  text-align: center;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  flex: 1;
  background: transparent;
  border-radius: 0;
  color: white;
  position: relative;
  align-items: stretch;
}

/* Sidebar */
.sidebar {
  width: 220px;
  padding-right: 2rem;
  border-right: 2px solid white;
  background-color: transparent;
  margin-left: -2rem;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.sidebar a {
  display: block;
  margin-bottom: 1rem;
  color: #e0e6f8;
  text-decoration: none;
  font-family: 'Bungee', cursive;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar a:hover {
  transform: scale(1.05);
  color: #ffcc00;
  text-decoration: underline;
}

/* Main Content */
main {
  flex: 1;
  max-width: calc(100% - 220px);
  margin: 0 auto;
  padding-left: 2rem;
  background-color: transparent;
  color: white;
}

main h1 {
  margin-bottom: 1rem;
}

main hr {
  border: none;
  border-top: 3px solid #ffcc00;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

main a {
  color: #a3c1f7;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

main a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0, 85, 170, 0.5);
  text-decoration: underline;
}

a.button, button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  background-color: #d4a700;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
}

a.button:hover, button:hover {
  transform: scale(1.08);
  color: #e0e6f8;
  box-shadow: 0 0 12px #d4a700;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: auto;
}

/* Map */
.fullscreen-button {
  display: inline-block;
  margin-bottom: 10px;
  background-color: #d4a700;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.fullscreen-button:hover {
  background-color: #d4a700;
}

.zoom-container {
  aspect-ratio: 1 / 1; 
  height: 80vh;
  overflow: hidden;
  position: relative;
  border: 2px solid #ffcc00;
  border-radius: 8px;
}

.zoom-map {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  display: block;
}

/* Players Page*/

.player-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid white;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease-in-out;
}

.player-card:hover {
  transform: translateY(-4px);
}

.player-icon {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
}

/* 1 Column */
@media (max-width: 480px) {
  .players-grid {
    grid-template-columns: 1fr;
  }

  .player-icon {
    width: 48px;
    height: 48px;
  }

  .player-card {
    padding: 0.75rem;
  }
}


.player-link {
  color: inherit;           
  text-decoration: none;    
  display: inline-block;    
  cursor: pointer;
}

.player-link:hover h3 {
  text-decoration: underline;  
}

.player-link:hover,
.player-link:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* Hide Hamburger On PC */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1001;
}

.sidebar img {
  display: none;
}

.close-sidebar {
  display: none;
}

.build-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: left;
  padding-top: 0.7rem;
}

.build-gallery img {
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.build-gallery img:hover {
  transform: scale(1.05);
}

.addon-gallery {
  display: flex;
  flex-direction: column; 
  gap: 1.5rem; 
  padding-top: 0.7rem;
}

.addon-gallery img {
  width: 80%; 
  max-width: 400px; 
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.addon-gallery img:hover {
  transform: scale(1.02);
}

.addon-gallery p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.addon-item a {
  text-decoration: none;
  color: inherit;
}

.addon-item a:hover h3 {
  text-decoration: underline;
}

:fullscreen img {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  background: black;
}

:-webkit-full-screen img {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  background: black;
}

.toggle-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid white;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  padding-top: 0.7rem;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.toggle-title {
  position: relative;
  padding: 1rem 1.25rem 1rem 2.5rem;
  background-color: #1c3f78;
  color: white;
  font-family: 'Bungee', cursive;
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid #ffcc00;
  transition: background-color 0.2s ease;
}

.toggle-title:hover {
  background-color: #2b4f90;
}

.toggle-title::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid white;
  transition: transform 0.3s ease;
}

.toggle-section.active .toggle-title::before {
  transform: translateY(-50%) rotate(90deg);
}

.toggle-content {
  display: none;
  padding: 1rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.03);
  color: white;
  font-size: 1rem;
  line-height: 1.6;
}

.toggle-section.active .toggle-content {
  display: block;
}




/* Mobile Format */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background-color: #1c3f78;
    padding: 2rem;
    padding-top: 3rem;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    margin-left: 0;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar img {
    display: block;
    max-width: 300px; 
    width: 80%;      
    margin: 0.15rem 0 1.8rem 0;
    user-select: none; 
    pointer-events: none; 
  }

  .hamburger {
    position: absolute;
    top: 1.2rem;
    right: 3.5rem;
    z-index: 900;
  }

  .menu-toggle {
    position: absolute;
    top: 3.8rem;
    right: 1rem;
    display: block;     
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 900;

    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    line-height: 1;
    user-select: none;
  }

  .menu-toggle:hover,
  .menu-toggle:focus {
    outline: none;
    box-shadow: none;
  }

  main {
    max-width: 100%;
    padding-left: 1rem;
    margin: 0 auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
  }

  header img {
    width: 80vw;
    max-width: 300px;
    height: auto;
  }

  .subtitle {
    margin: 0;
    font-size: 1.3rem;
    white-space: normal;
    text-align: center;
  }

  header {
    position: relative;
    text-align: center;
    padding: 1rem 1rem;
  }
  .zoom-container {
  height: 40vh;
  }

  .close-sidebar {
    all: unset;
    position: absolute;
    top: 2.5rem;
    right: 1.5rem;
    font-size: 4rem;
    color: white;
    cursor: pointer;
    z-index: 1101;

    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
  }

  .close-sidebar:hover,
  .close-sidebar:focus {
    outline: none;
    box-shadow: none;
  }

  .build-gallery img {
    max-width: 300px;
  }
    
}
