html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* Prevent scrolling on body */
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 20px;
}

body {
  font-family: "Minecraftia", Arial, sans-serif;
  background-size: cover;
  margin: 0;
  padding: 0px;
  color: #ffffff;
  zoom: 0.75;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#wrapper {
  height: 100%;
  overflow-y: auto; /* Enable vertical scrolling inside this div */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Flexbox for list container */
.list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

/* List headers */
.list-header {
  display: flex;
  justify-content: space-between;
  width: 80%;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  backdrop-filter: blur(3px);
}

/* Styling for individual rows */
.method-row {
  display: flex;
  justify-content: space-between;
  width: 80%;
  height: 100px;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: height 0.3s ease-in-out;
  backdrop-filter: blur(3px);
}

/* Width settings for each column */
.method-row div,
.list-header div {
  flex: 1;
  text-align: center;
}

.method-row div:first-child,
.list-header div:first-child {
  flex: 2;
}

.list-header div:nth-child(4),
.method-row div:nth-child(4) {
  flex: 0.7; /* Consistent allocation for "Buy" button */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .list-header,
  .method-row {
    flex-direction: column;
    width: 100%;
  }

  .method-row div,
  .list-header div {
    text-align: left;
    padding: 10px 0;
  }
}

#flexbox {
  display: flex;
  flex-direction: row;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  gap: 60px;
  padding: 30px;
}

img {
  transition: transform 0.3s ease-in-out;
}

img:hover {
  transform: scale(1.2);
}

#golden-dragon-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 10px;
  margin-left: 18.9%;
}

@font-face {
  font-family: "Minecraftia";
  src: url("/fonts/Minecraftia.ttf") format("truetype");
}

@font-face {
  font-family: "MinecraftRegular";
  src: url("/fonts/MinecraftRegular-Bmg3.otf") format("truetype");
}

label {
  font-size: 4em;
  display: flex;
  align-items: center;
  font-family: "MinecraftRegular", Arial, sans-serif;
}

.buy-button-container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.buy-button {
  background: linear-gradient(90deg, #0df437, #0ba20b);
  color: white;
  border: none;
  padding: 17px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.6em;
  font-weight: bold;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-family: "MinecraftRegular", Arial, sans-serif;
}

.buy-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(90deg, #39f352, #0eed33);
}

.buy-button:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.golden-dragon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding-bottom: 30px;
  padding-right: 30px;
}

.golden-dragon-img {
  width: 250px;
}

.scaled-content {
  transform: scale(0.75);
  transform-origin: top left;
  width: 100vw; /* was 133% before */
  overflow-x: hidden;
  max-width: 100%;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

@media (pointer: coarse) {
  html,
  body {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-origin: border-box !important;
    overscroll-behavior: none;
  }
}
