@font-face {
  font-family: minecrafter;
  src: url(../fonts/Minecrafter.Reg.ttf);
}

@font-face {
  font-family: MinecraftRegular;
  src: url(../fonts/MinecraftRegular-Bmg3.otf);
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: white;
}

img {
  max-inline-size: 100%;
  display: block;
}

.flex {
  display: flex;
  gap: 2rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #0e8d5d;
  position: relative;
}

.logo {
  max-width: 50px;
}

.primary-navigation {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  text-decoration: none;
  font-size: 1.5em;
  color: rgb(0, 0, 0);
  font-weight: 400;
  font-family: minecrafter;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 35em) {
  .mobile-nav-toggle {
    display: flex;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-family: MinecraftRegular;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }

  nav {
    display: block;
  }

  .primary-navigation {
    gap: 2rem;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    inset: 0;
    padding: 0;
    background: #0e8d5d;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 1000;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }
}

main {
  color: black;
  padding: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-height: 100vh;
}

h1 {
  font-size: 7rem;
  font-family: minecrafter;
  position: relative;
  color: black;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.column-1 h1:before {
  content: "";
  display: block;
  position: absolute;
  -webkit-filter: blur(20px);
  filter: blur(20px);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  background-image: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 1em,
      #12aa66 1em,
      rgb(8, 112, 36) 50%
    ),
    repeating-linear-gradient(
      45deg,
      #111626,
      #111626 1em,
      rgb(14, 130, 56) 1em,
      #571b3d 50%
    );
  background-size: 3em 3em, 2em 2em;
  animation-name: ani;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes ani {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 400% 0;
  }
}

.collage {
  display: flex;
  height: 70vh;
  justify-content: center;
  align-items: center;
}

.image {
  position: relative;
  margin: 0 -50px;
  z-index: 1;
  transition: 0.3s;
  height: 200px;
}

.image img {
  border-radius: 5px;
  border: 5px solid #fff;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
}

.image:hover {
  transform: translateY(-20px);
  z-index: 2;
}

.image:hover img {
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.3);
}

.image:first-of-type {
  rotate: 33deg;
}

.image:nth-of-type(2) {
  rotate: -24deg;
}

.image:nth-of-type(3) {
  rotate: 8deg;
}

main p {
  font-size: 1.5em;
  font-family: MinecraftRegular;
}

.join-button {
  display: flex;
  align-items: center;
  padding: 24px 60px;
  font-size: 2.5em;
  font-weight: bold;
  font-family: MinecraftRegular;
  color: white;
  background-color: #228b22;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 35em) {
  .mobile-nav-toggle {
    display: flex;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-family: MinecraftRegular;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }

  nav {
    display: block;
  }

  .primary-navigation {
    gap: 2rem;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    background: #0e8d5d;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 1000;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }
}

@media (max-width: 768px) {
  main {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
    max-height: none;
  }

  .column-1,
  .column-2 {
    width: 100%;
  }

  h1 {
    font-size: 3rem;
    text-align: center;
    line-height: 1.2;
  }

  main p {
    font-size: 1.2rem;
    text-align: center;
  }

  .join-button {
    font-size: 1.5rem;
    padding: 1rem 2rem;
  }

  .collage {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    align-items: center;
  }

  .image {
    margin: 0;
    height: auto;
    rotate: 0deg !important;
  }

  .image img {
    width: 100%;
    height: auto;
    max-width: 400px;
  }
}

.join-button {
  display: flex;
  align-items: center;
  padding: 24px 60px;
  font-size: 2.5em;
  font-weight: bold;
  font-family: MinecraftRegular;
  color: white;
  background-color: #228b22;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.join-button:hover {
  background-color: #1a6e1a;
  transform: scale(1.05);
}

.join-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.join-popup-content {
  background: white;
  color: black;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  min-width: 250px;
  max-width: 90%;
}

.join-popup-content h2 {
  margin-bottom: 1rem;
}

.join-option {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 1.2rem;
  font-family: MinecraftRegular;
  background: #0e8d5d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.join-option:hover {
  background: #0b6b47;
}

.close-popup {
  margin-top: 1rem;
  background: #ccc;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.close-popup:hover {
  background: #aaa;
}

@media (max-width: 600px) {
  .join-popup-content {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .join-option {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

.about-page {
  padding: 2rem 5%;
  color: black;
  margin-top: 2rem;
  gap: 4em;
}

.about-blurb {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.about-blurb h1 {
  font-family: minecrafter;
  font-size: 3rem;
  margin-bottom: 1rem;
  background-color: inherit;
}

.about-blurb p {
  font-size: 1.2rem;
  font-family: MinecraftRegular;
  line-height: 1.6;
}

.staff-article {
  max-width: 900px;
  margin: 0 auto;
}

.staff-article h2 {
  font-family: minecrafter;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  margin-top: 0;
}

.staff-member {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.staff-member img {
  flex-shrink: 0;
  border-radius: 5px;
  border: 3px solid #0e8d5d;
}

.staff-info h3 {
  font-family: MinecraftRegular;
  margin: 0 0 0.5rem 0;
}

.staff-info h3 span {
  font-size: 0.9rem;
  color: #555;
}

.staff-info p {
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .about-blurb h1 {
    font-size: 2rem;
  }

  .about-blurb p {
    font-size: 1rem;
  }

  .staff-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .staff-member img {
    width: 80px;
    height: 80px;
  }

  .staff-info h3 {
    font-size: 1.2rem;
  }

  .staff-info p {
    font-size: 0.95rem;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: white;
  background-color: #f5f5f5;
}

img {
  max-inline-size: 100%;
  display: block;
}

.flex {
  display: flex;
  gap: 2rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #0e8d5d;
  position: relative;
}

.logo {
  max-width: 50px;
}

.primary-navigation {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  text-decoration: none;
  font-size: 1.5em;
  color: rgb(0, 0, 0);
  font-weight: 400;
  font-family: minecrafter;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 35em) {
  .mobile-nav-toggle {
    display: flex;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-family: MinecraftRegular;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }

  nav {
    display: block;
  }

  .primary-navigation {
    gap: 2rem;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    inset: 0;
    padding: 0;
    background: #0e8d5d;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 1000;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }
}

.tutorials-page {
  padding: 2rem 5%;
  color: black;
}

.tutorials-page h1 {
  font-family: minecrafter;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  background-color: inherit;
}

.choice-panel {
  position: fixed;
  inset: 0;
  background: #0e8d5d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.choice-content {
  text-align: center;
  color: white;
}

.choice-btn {
  display: block;
  width: 250px;
  margin: 1rem auto;
  padding: 1rem;
  font-size: 1.2rem;
  font-family: MinecraftRegular;
  background: white;
  color: #0e8d5d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.choice-btn:hover {
  background: #ddd;
  transform: scale(1.05);
}

.filter-panel {
  text-align: center;
  margin-bottom: 1rem;
}

.filter-btn {
  background: #0e8d5d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: MinecraftRegular;
}

.filter-btn:hover {
  background: #0b6b47;
}

.search-container {
  text-align: center;
  margin-bottom: 2rem;
}

#command-search {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #0e8d5d;
  border-radius: 5px;
  font-family: MinecraftRegular;
}

.command-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.command-list li {
  background: white;
  color: black;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  font-family: MinecraftRegular;
}

.command-list strong {
  color: #0e8d5d;
}

.join-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 4000;
}

.join-popup-content {
  background: white;
  color: black;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  min-width: 250px;
  max-width: 90%;
}

.join-popup-content h2 {
  margin-bottom: 1rem;
  font-family: minecrafter;
}

.join-option {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 1.2rem;
  font-family: MinecraftRegular;
  background: #0e8d5d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.join-option:hover {
  background: #0b6b47;
}

.close-popup {
  margin-top: 1rem;
  background: #ccc;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.close-popup:hover {
  background: #aaa;
}

#platform-instructions {
  text-align: left;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  font-family: MinecraftRegular;
  color: black;
}

#platform-instructions p {
  margin-bottom: 1rem;
}

#back-to-platforms {
  background: #0e8d5d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

#back-to-platforms:hover {
  background: #0b6b47;
}

@media (max-width: 600px) {
  .tutorials-page h1 {
    font-size: 2rem;
  }

  #command-search {
    width: 90%;
  }

  .join-popup-content {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .join-option {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

.platform-guide {
  display: none;
}
.platform-guide.active {
  display: block;
}

.gallery-page {
  padding: 2rem 5%;
  color: black;
  text-align: center;
}

.gallery-page h1 {
  font-family: minecrafter;
  font-size: 3rem;
  margin-bottom: 2rem;
  background: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.lightbox:target {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  font-family: MinecraftRegular;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
  .gallery-page h1 {
    font-size: 2rem;
  }
}

.gallery-page {
  display: grid;
  grid-template-columns: 1fr;
}

.gallery-page h1 {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 1rem;
  }

  .gallery-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .lightbox img {
    max-width: 95%;
    max-height: 70%;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    padding: 0.5rem 0.8rem;
  }
}
