@font-face {
  font-family: 'Minecraft';
        src: url('/fonts/3_Minecraft-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'MinecraftBold';
    src: url('/fonts/3_Minecraft-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Minecraftia';
    src: url('/fonts/Minecraftia-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

img {
  color: transparent;
}

body {
    font-family: 'Minecraft', 'MinecraftBold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    /* overlay same brown used across the site (approx #55303B) from full at bottom to 50% at top */
    /* gradient using requested hex #1c1115: full at bottom, ~50% at top */
        background-image: linear-gradient(to top, #1c1115 0%, #1c1115E6 100%), url('/img/background.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
}

.background{
    background: var(--color-background);
    border-radius: var(--card-border-radius, 2px);
    border-color: var(--color-border-solid);
    border-style: solid;
    border-width: var(--card-border-width, 2px);
    padding-top: 1em;
    padding-bottom: 1.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
}

.container {
  text-align: center;
  padding: 0.5rem 2rem;
  margin: 7rem 6rem 0.5rem 6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1400px) {
  .container {
    margin: 5.5rem 3rem 4rem 3rem;
  }
}

@media (max-width: 900px) {
  .container {
    margin: 5rem 1.25rem 2.5rem 1.25rem;
    padding: 0.5rem 1rem;
  }
}

.container h1 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

p {
    font-family: 'Minecraft', 'MinecraftBold', sans-serif !important;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.btn {
  --btn-main-color: #72102c;
  --btn-main-rgb: 114, 16, 44;
  --btn-border-light: #ab133f;
  --btn-border-dark: #ab133f;
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--btn-main-color);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  border-top: 4px solid var(--btn-border-light);
  border-left: 4px solid var(--btn-border-dark);
  border-bottom: 4px solid var(--btn-border-dark);
  border-right: 4px solid var(--btn-border-dark);
  font-size: 1.1rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0.5rem;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--btn-main-rgb), 0.5);
}

.btn:active {
  transform: translateY(0);
  border-top-color: var(--btn-border-dark);
  border-left-color: var(--btn-border-light);
  border-bottom-color: var(--btn-border-light);
}

.features {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  flex: 1;
  min-width: 150px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  margin: 0;
}

.info-box {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    /* slightly smaller box */
    width: 70vw;
    max-width: 100%;
    gap: 2rem;
    margin-right: 0;
    margin-left: 0;
    /* shift 100px right and 100px up */
    transform: translate(180px, 10px);
}

.info-box-left{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    width: 70.5%;
    flex-shrink: 0;
    gap: 1rem;
    overflow: visible;
    /* add more vertical space for left section */
    min-height: 45vh;
    border-color: rgba(36, 23, 29, 0.9);
}

.info-box-image {
    position: relative;
    flex-shrink: 0;
    flex: 0 0 clamp(150px, 20%, 240px);
    max-width: none;
    max-height: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: visible;
}

.info-box-image img {
    position: absolute;
    left: -1.5rem;
    bottom: -1.15rem;
    width: clamp(550px, 45vw, 500px);
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left bottom;
    transform: none;
    transform-origin: left bottom;
}

.info-box-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.info-box-content-logo {
    display: block;
    position: absolute;
    top: -5.78rem;
    right: -2rem;
    height: 37rem;
    width: auto;
    max-width: 70%;
    object-fit: contain;
    transform: none;
    z-index: 5;
}

html.browser-zoom-out .info-box-content-logo {
    height: 33rem;
}

.info-box-content-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: black;
    padding-left: 1rem;
}

.info-box-content-actions .btn-offer {
    width: 320px;
    max-width: 100%;
    box-sizing: border-box;
    align-self: right;
}

/* stacked action buttons anchored to bottom-right of the left info box */
.info-box-content-actions-buttons {
    --info-action-text-size: 2.2rem;
    --info-action-btn-height: 6rem;
    position: absolute;
    right: 1rem;
    bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    z-index: 6;
}

.info-box-content-actions-buttons .btn-offer,
.info-box-content-actions-buttons .join-now-btn {
    height: var(--info-action-btn-height);
    padding: 0 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.info-box-content-actions-buttons .info-action-text {
    font-size: var(--info-action-text-size);
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    display: block;
    width: 100%;
    text-align: center;
}

.info-box-content-actions-buttons .btn-offer:disabled .info-action-text {
    transform: none;
}

.info-box-content-actions-buttons .join-now-btn .info-action-text {
    transform: none;
}

/* Reusable offer/CTA button – customize border colors per button via --btn-border-light and --btn-border-dark */
.btn-offer {
    --btn-main-color: #72102c;
    --btn-main-rgb: 114, 16, 44;
    --btn-border-light: #ab133f;
    --btn-border-dark: #ab133f;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    font-family: inherit;
    border-radius: 2px;
    border: none;
    border-top: 4px solid var(--btn-border-light);
    border-left: 4px solid var(--btn-border-dark);
    border-bottom: 4px solid var(--btn-border-dark);
    border-right: 4px solid var(--btn-border-dark);
    background: var(--btn-main-color);
    color: var(--color-background);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.8px;
}

.btn-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--btn-main-rgb), 0.5);
}

.btn-offer:active {
    transform: translateY(0);
    border-top-color: var(--btn-border-dark);
    border-left-color: var(--btn-border-light);
    border-bottom-color: var(--btn-border-light);
}

.btn-offer:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-offer:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Button-specific outline colors – override --btn-border-light and --btn-border-dark */
.discord-btn {
    --btn-main-color: #7289da;
    --btn-main-rgb: 114, 137, 218;
    --btn-border-light: color-mix(in srgb, var(--btn-main-color) 78%, white 22%);
    --btn-border-dark: color-mix(in srgb, var(--btn-main-color) 70%, black 30%);
}

.youtube-btn {
    --btn-main-color: #ff0000;
    --btn-main-rgb: 255, 0, 0;
    --btn-border-light: color-mix(in srgb, var(--btn-main-color) 78%, white 22%);
    --btn-border-dark: color-mix(in srgb, var(--btn-main-color) 70%, black 30%);
}

.shop-btn {
    --btn-main-color: var(--color-green);
    --btn-main-rgb: var(--color-green-rgb);
    --btn-border-light: color-mix(in srgb, var(--btn-main-color) 78%, white 22%);
    --btn-border-dark: color-mix(in srgb, var(--btn-main-color) 70%, black 30%);
}

.socials-info{
    width: max-content;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    position: absolute;
    left: clamp(31rem, 26vw, 22rem);
    bottom: 0.7rem;
    transform: none;
    z-index: 6;
}

/* Make the SOCIALS heading larger and remove positional transforms */
.socials-info h3 {
    margin: 0;
    position: static;
    display: block;
    text-align: left;
    font-family: 'MinecraftBold', 'Minecraft', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    transform: none;
    letter-spacing: 0; 
}

.social-media-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    align-self: flex-start;
    transform: none;
}

.social-media-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    min-width: 3.2rem;
    min-height: 3.2rem;
    box-sizing: border-box;
    border-radius: 6px;
    background: transparent; /* remove visible box */
    border: none; /* ensure no border */
    box-shadow: none; /* remove any shadow */
    padding: 0;
}

.social-media-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-functions-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    gap: 1.75rem;
}

.main-functions-container .btn-offer {
    width: 100%;
    box-sizing: border-box;
    min-height: 4rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-functions-container .discord-btn,
.main-functions-container .youtube-btn,
.main-functions-container .shop-btn {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    color: #fff;
    text-shadow: 1px 2px 0 color-mix(in srgb, currentColor 40%, black 60%);
    isolation: isolate;
}


/* New: separate boxed cards for each main function button */
.function-card {
    background: var(--color-background);
    border: none;
    padding: 0.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    max-width: none;
}


.main-functions-container {
    /* stack the function cards vertically */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.9rem;
}

.function-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.function-card .btn-offer {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.4rem; /* larger padding for a fuller look */
    font-size: 2rem;
    height: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-functions-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    .function-card {
        width: 100%;
        flex: 1 1 auto;
        max-width: none;
        padding: 0.5rem;
    }
    .function-card .btn-offer {
        height: auto;
        padding: 0.9rem 1.1rem;
        font-size: 1.15rem;
    }

    .info-box-image {
        position: static;
        flex: 0 0 auto;
        max-width: 30%;
        max-height: 30vh;
    }

    .info-box-image img {
        position: relative;
        left: auto;
        bottom: auto;
        width: auto;
        max-width: 115%;
        max-height: 45vh;
    }

    .socials-info {
        position: static;
        left: auto;
        bottom: auto;
        align-items: flex-end;
        width: auto;
    }

    .social-media-icons {
        justify-content: center;
        align-self: center;
    }
}

.main-functions-container .discord-btn::before,
.main-functions-container .youtube-btn::before,
.main-functions-container .shop-btn::before {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-functions-container .discord-btn::before {
    background-image: url("/img/discord_button_background.webp");
}

.main-functions-container .youtube-btn::before {
    background-image: url("/img/youtube_button_background.webp");
}

.main-functions-container .shop-btn::before {
    background-image: url("/img/shop_button_background.webp");
    inset: -60%;
    background-repeat: repeat;
    background-size: 400px 200px;
    background-position: 0 0;
    transition: none;
    animation: shopButtonBgLoop 5s linear infinite;
    will-change: background-position;
}

.main-functions-container .shop-btn::after {
    content: "";
    position: absolute;
    inset: -60%;
    z-index: -1;
    background-image: url("/img/shop_button_background.webp");
    background-repeat: repeat;
    background-size: 400px 200px;
    background-position: 0 0;
    animation: shopButtonBgLoop 5s linear infinite;
    animation-delay: -2.5s;
    pointer-events: none;
    will-change: background-position;
}

.main-functions-container .discord-btn:hover::before,
.main-functions-container .youtube-btn:hover::before {
    /* move background image further right and slightly up on hover */
    transform: translate(25px, -10px);
}

@keyframes shopButtonBgLoop {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400px -200px;
    }
}

.main-functions-container .discord-btn:hover,
.main-functions-container .youtube-btn:hover,
.main-functions-container .shop-btn:hover {
    transform: translateY(-2px);
}

.special-offers-container {
    margin-top: 3.5rem;
    margin-bottom: 0;
    width: 70vw;
    max-width: 100%;
    transform: translate(180px, -20px);
}

.special-offers-container .special-offer-card {
    box-shadow: -3px 0 0 0 #1e0408, 3px 0 0 0 #1e0408;
}

.special-offers-container h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.special-offers-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

.special-offer-card {
    background: var(--color-background);
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    margin-top: 0.25rem;
    min-height: 26.5rem;
    flex: 0 1 calc((100% - (1rem * 3)) / 4);
}

.special-offer-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(var(--color-primary-rgb), 0.3);
}

.offer-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    background: var(--color-secondary);
    color: var(--color-background);
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    font-size: 0.55rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(var(--color-primary-rgb), 0.4);
}

.offer-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.offer-actions form {
  margin: 0;
}

.special-offer-image-box {
    width: 100%;
    max-width: 92%;
    aspect-ratio: 1 / 1;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 0.6rem;
    padding: 0;
}

.special-offer-image-box img {
    width: auto;
    height: 100%;
    object-position: center bottom;
    object-fit: contain;
    box-shadow: none;
    transform-origin: center bottom;
}

/* Box-size modifiers (set per-product in the admin panel via "Img: size" button) */
.special-offer-image-box--small {
    max-width: 55%;
    aspect-ratio: 1 / 1;
}

.special-offer-image-box--large {
    max-width: 100%;
    aspect-ratio: 4 / 3;
}

/* Fallback placeholder when a product has no image uploaded yet. */
.product-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 6rem;
    background:
        repeating-linear-gradient(45deg,
            color-mix(in srgb, var(--color-background) 85%, white 15%) 0 12px,
            color-mix(in srgb, var(--color-background) 92%, white 8%) 12px 24px);
    border-radius: 6px;
    opacity: 0.55;
}

.special-offer-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.45rem;
}

.special-offer-card .gem-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text);
    margin: 0.5rem 0 0.3rem 0;
    font-family: 'MinecraftBold', 'Roboto', sans-serif;
}

.special-offer-card .gem-info {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    margin: 0 0 0.8rem 0;
    gap: 0.5rem;
}

.special-offer-card .gem-label {
    font-size: 1.4rem;
    color: #888;
    font-family: 'MinecraftBold', 'Roboto', sans-serif;
    font-weight: normal;
    line-height: 1.2;
}

.special-offer-card .gem-bonus {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-green);
    font-family: 'MinecraftBold', 'Roboto', sans-serif;
    line-height: 1.2;
}

.offer-feature-list {
    list-style: none;
    margin: 0.35rem 0 0.75rem;
    padding: 0;
    width: 100%;
}

.offer-feature-list li {
    font-family: 'Minecraftia', 'Minecraft', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.35;
    margin: 0.12rem 0;
    text-transform: none;
    text-align: center;
    letter-spacing: 0.03em;
    text-shadow: none;
    font-synthesis: none;
}

.offer-feature-list li strong {
    font-size: 1em;
    font-weight: 700;
    line-height: inherit;
    text-transform: none;
    letter-spacing: inherit;
    text-shadow: none;
    font-synthesis: none;
}

/* DB description on home / bundles cards (max 3 lines) */
.special-offer-card .offer-description-snippet,
.shop-bundle-card .offer-description-snippet {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
    margin: 0.35rem 0 0.75rem;
    padding: 0;
    width: 100%;
    font-family: 'Minecraftia', 'Minecraft', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.03em;
}

.special-offer-buy-btn {
    width: 100%;
    margin-top: auto;
    min-height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.8px;
}

.special-offer-buy-btn:hover {
    transform: none;
    box-shadow: 0 0 0 2px rgba(var(--btn-main-rgb), 0.35), 0 0 20px 6px rgba(var(--btn-main-rgb), 0.55);
}

.offer-price {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.new-price {
    color: var(--color-primary);
    font-size: 1.05rem;
}

.special-offer-card .btn-offer {
    width: 100%;
    margin: 0;
}

@media (max-width: 1100px) {
    .special-offer-card {
        flex: 0 1 calc((100% - 0.75rem) / 2);
    }
}

@media (max-width: 640px) {
    .special-offer-card {
        flex: 1 1 100%;
    }
}

.view-all-products {
    margin-top: 0rem;
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--card-border-radius, 2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: var(--card-border-width, 2px) solid var(--color-border-solid);
}

.view-all-products h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.view-all-products p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.view-all-products .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    margin-top: auto;
}

.view-all-products .view-all-products-btn {
    min-height: var(--info-action-btn-height, 3.5rem);
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.view-all-products .view-all-products-btn .info-action-text {
    font-size: var(--info-action-text-size, 1.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.name-bonus-green {
    color: var(--color-green);
}

/* ── Page load animations ───────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Elements stay hidden until JS adds .page-loaded to <body> on window.load */
.info-box-left,
.function-card,
.special-offer-card,
.view-all-products,
.special-offers-container {
  opacity: 0;
}

.page-loaded .info-box-left {
  animation: fadeSlideUp 0.5s ease both;
}

.page-loaded .function-card { animation: fadeSlideUp 0.5s ease both; }
.page-loaded .function-card:nth-child(1) { animation-delay: 0.05s; }
.page-loaded .function-card:nth-child(2) { animation-delay: 0.15s; }
.page-loaded .function-card:nth-child(3) { animation-delay: 0.25s; }

.page-loaded .special-offer-card { animation: fadeSlideUp 0.45s ease both; }
.page-loaded .special-offer-card:nth-child(1) { animation-delay: 0.3s; }
.page-loaded .special-offer-card:nth-child(2) { animation-delay: 0.4s; }
.page-loaded .special-offer-card:nth-child(3) { animation-delay: 0.5s; }
.page-loaded .special-offer-card:nth-child(4) { animation-delay: 0.6s; }

.page-loaded .view-all-products {
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: 0.45s;
}

/* Special offers container fades in as a whole — uses opacity-only to preserve its translate() */
@keyframes fadeInOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.page-loaded .special-offers-container {
  animation: fadeInOnly 0.5s ease both;
  animation-delay: 0.3s;
}