@import url('https://fonts.googleapis.com/css2?family=Pangolin&display=swap');
    
* {
  box-sizing: border-box;
  scrollbar-color: #FF0000 #333333; /* Firefox scrollbar */
  scrollbar-width: thin; /* Firefox scrollbar */
}

body {
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Comic Sans MS', 'Pangolin', cursive;
  margin: 0;
  padding: 0;
  background-color: pink;
  color: #333;
  backdrop-filter: blur(5px);
  background-image: url("/img/grid.png");
  background-repeat: repeat;
  animation: slide 1000s linear infinite;
}

.back-button {
  position: absolute;
  top: 50px;
  left: 20px;
  transform: translateY(-50%);
  display: inline-block;
  background-color: #252525;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out;
}

.back-button:hover {
  background-color: #FF0FDF;
  transform: translateY(-50%);
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background-color: #333333;
}

body::-webkit-scrollbar-thumb {
  background-color: #FF0000;
  border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #C80000;
}

@keyframes slide {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 2005% -100%;
  }
}

header {
  background-color: #333;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

h1 {
  margin: 0;
  font-size: 48px;
  color: #FF0FDF;
  text-transform: uppercase;
  position: static;
  z-index: 2;
}

/* Minecraft-style text animation - positioned to the right of title */
.minecraft-text {
  position: absolute;
  top: 60%;
  right: 10%;
  transform: translateY(-50%) rotate(-5deg);
  font-size: 42px;
  font-weight: bold;
  color: red;
  text-shadow: 1.5px 1.5px 0 #000, -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000;
  animation: minecraft-pulse 4s ease-in-out infinite;
  opacity: 0.75;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes minecraft-pulse {
  0%, 100% {
    transform: translateY(-50%) rotate(-5deg) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-50%) rotate(-5deg) scale(1.05);
    opacity: 1;
  }
}

main {
  --s: 20px; /* control the size */
  --c1: #151515;
  --c2: #141414;

  --c:#0000 46.46%,var(--c1) 0 53.53%,#0000 0;
  --d:calc(10*var(--s)) calc(10*var(--s));
  --g:/var(--d) conic-gradient(at 40% 40%,#0000 75%,var(--c1) 0);
  background:
    conic-gradient(at 40% 40%,#0000 75%,var(--c2) 0) 
    calc(9*var(--s)) calc(9*var(--s))/
    calc(5*var(--s)) calc(5*var(--s)),
    calc(8*var(--s)) calc(8*var(--s)) var(--g),
    calc(3*var(--s)) calc(3*var(--s)) var(--g),
    linear-gradient( 45deg,var(--c)) 0 0/var(--d),
    linear-gradient(-45deg,var(--c)) 0 0/var(--d) var(--c2);
  flex-grow: 1;
  padding: 20px;
  text-align: center;
  background-color: #141414;
  margin: 0 auto;
  width: 82%;
  position: relative;
}

main::before,
main::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #FF0FDF;
}

main::before {
  left: 0;
}

main::after {
  right: 0;
}

.button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out;
  margin: 5px;
}

.button:hover {
  background-color: #FF0FDF;
}

hr {
  color: red;
  background-color: #FF0FDF;
  height: 2px;
  margin: 20px 20%;
  border-radius: 5px;
  border: none;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
}

footer p {
  margin: 0;
}

.amazing {
  color: red;
}

h2 {
  color: #fff;
}

p {
  color: #fff;
  margin: 20px 20%;
}

.button-wrapper {
  display: block;
  font-weight: normal
}

.twb {
  padding-bottom: 10px;
}

#popup-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 0, 0, 0.9);
  z-index: 9999;
  overflow: hidden;
}

#popup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

#dismiss-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #fff;
  color: #333;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* Collapsible changelog styles */
.collapsible {
  font-family: 'Comic Sans MS', 'Pangolin', cursive;
  background-color: #333;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 80%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 24px;
  margin: 20px auto;
  margin-bottom: -1px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.collapsible:hover {
  background-color: #FF0FDF;
}

.collapsible:after {
  content: '\002B'; /* Plus sign */
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
  margin-bottom: -1px;
}

.collapsible.active:after {
  content: "\2212"; /* Minus sign */
  margin-bottom: -1px;
}

.changelog-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  width: 80%;
  margin: 0 auto;
  border-radius: 0 0 5px 5px;
}

#changelog {
background-color: rgba(51, 51, 51, 0.15);
border-radius: 4px;
  color: white;
  white-space: pre-line;
  padding: 10px 10px;
  margin: 0;
}

@media (max-width: 500px), (max-height: 200px) {
  #popup-overlay {
    display: flex !important;
  }
}

.bgi {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  object-fit: none;
  z-index: -9999;
  opacity: 10%;
  transform: translate(-50%, -50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  main {
    width: 95%;
  }
  
  p, .collapsible, .changelog-content {
    margin: 20px 10%;
    width: 90%;
  }
  
  h1 {
    font-size: 36px;
  }
  
  .minecraft-text {
    font-size: 30px;
    right: 5%;
  }
}

.warning-symbol {
  color: yellow;
  display: inline;
}

    .categories-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 45px;
      margin: 30px 0;
	  align-items: flex-start;
    }
    
    .category {
      flex: 0 1 auto;
      max-width: 100%;
	  width: auto;
      background-color: rgba(51, 51, 51, 0.15);
      border-radius: 4px;
      padding: 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	  align-self: flex-start;
    }
    
    .category-title {
      color: #FF0FDF;
      font-size: 24px;
      margin-top: 0;
      margin-bottom: 15px;
      text-align: center;
      border-bottom: 2px solid #FF0FDF;
      padding-bottom: 8px;
	  word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
    }
    
    .category-buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    @media (max-width: 768px) {
      .categories-container {
        flex-direction: column;
        align-items: center;
      }
      
      .category {
        width: 90%;
        max-width: none;
      }
    }