@font-face {
  font-family: 'Minecraft';
  src: url('../fonts/minecraft.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
}

main {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111030;
  background: linear-gradient(151deg, rgba(17, 16, 48, 1) 0%, rgba(25, 10, 36, 1) 50%, rgba(20, 7, 26, 1) 100%);
}

.container {
  font-family: 'Minecraft';
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 100vh;
  width: 100%;
}

.mcbutton-wrapper {
  margin-top: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 440px;
  height: 250px;
  justify-content: center;
  align-items: center;
  background-image: url('../images/bg.png');
  background-size: 100% 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  z-index: 3;
}

.offercraft {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.offercraft span {
  font-family: 'Minecraft';
  font-size: 2.5rem;
  color: #3F3F3F;
  user-select: none;
  pointer-events: none;
  margin-bottom: 2px;
}

.offercraft img {
  margin-top: 6px;
  width: 32px;
  height: 32px;
  pointer-events: none;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.mcbutton-backend {
  font-family: 'Minecraft';
  font-size: 30px;
  pointer-events: all;
  position: relative;
  z-index: 5;
}

.mcbutton-backend a {
  text-decoration: none;
}

.mcbutton-back {
  background-color: #1d4d13;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.mcbutton {
  width: 365px;
  height: 80px;
  background-color: #1e1e1f;
  color: white;
  font-weight: 100;
  letter-spacing: 1px;
  border: 6px solid #1e1e1f;
  border-top: 14px solid #1e1e1f;
  user-select: none;
  pointer-events: none;
}

.mcbutton-front {
  background-color: #3c8527;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  box-shadow:
  inset 0 6px #639d52,  /* top */
  inset 6px 0 #639d52,  /* left */
  inset 0 -6px #4f913c, /* bottom */
  inset -6px 0 #4f913c; /* right */
  cursor: pointer;
  pointer-events: none;
}

@media (hover: hover) {
  .mcbutton-front:hover {
    background-color: #377926;/* #2a641c; */
    margin-bottom: 16px;
    pointer-events: all;
    box-shadow:
    inset 0 6px #6ea55e,  /* top */
    inset 6px 0 #6ea55e,  /* left */
    inset 0 -6px #549443, /* bottom */
    inset -6px 0 #549443; /* right */
    /* inset 0 6px #7fa277,  /* top */
    /* inset 6px 0 #7fa277,  /* left */
    /* inset 0 -6px #699260, /* bottom */
    /* inset -6px 0 #699260; /* right */
  }

  .shop .mcbutton-front:hover {
    background-color: #FFD700;
    box-shadow:
      inset 0 6px #FFF8DC,  /* top */
      inset 6px 0 #FFF8DC,  /* left */
      inset 0 -6px #FFD700, /* bottom */
      inset -6px 0 #FFD700; /* right */
  }

  .map .mcbutton-front:hover {
    background-color: #7B8BF0;
    box-shadow:
      inset 0 6px #9BA3F5,  /* top */
      inset 6px 0 #9BA3F5,  /* left */
      inset 0 -6px #7B8BF0, /* bottom */
      inset -6px 0 #7B8BF0; /* right */
  }

  .youtube .mcbutton-front:hover {
    background-color: #FF4D4D;
    box-shadow:
      inset 0 6px #FF6666,  /* top */
      inset 6px 0 #FF6666,  /* left */
      inset 0 -6px #FF4D4D, /* bottom */
      inset -6px 0 #FF4D4D; /* right */
  }
}

.mcbutton-front.active {
  background-color: #265e1b; /* #1d4d13 */
  margin-bottom: 0;
  box-shadow:
  inset 0 6px #75946f,  /* top */
  inset 6px 0 #75946f,  /* left */
  inset 0 -6px #5b7e54, /* bottom */
  inset -6px 0 #5b7e54; /* right */
}

.shop .mcbutton-front.active {
  background-color: #d3ae5e;
  box-shadow:
    inset 0 6px #dbcaa5,  /* top */
    inset 6px 0 #dbcaa5,  /* left */
    inset 0 -6px #cfb581, /* bottom */
    inset -6px 0 #cfb581; /* right */
}

.map .mcbutton-front.active {
  background-color: #4d57c9;
  box-shadow:
    inset 0 6px #6673c7,  /* top */
    inset 6px 0 #6673c7,  /* left */
    inset 0 -6px #5966b9, /* bottom */
    inset -6px 0 #5966b9; /* right */
}

.youtube .mcbutton-front.active {
  background-color: #ac0025;
  box-shadow:
    inset 0 6px #ca5a72,  /* top */
    inset 6px 0 #ca5a72,  /* left */
    inset 0 -6px #b6475f, /* bottom */
    inset -6px 0 #b6475f; /* right */
}

.mcbutton-back:hover {
  background-color: #1d4d13;
}

.mcbutton-backend.active {
  padding-top: 8px;
}

.mcbutton.active {
  border-top: 6px solid #1e1e1f;
}

.small-buttons-row {
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.small-button .mcbutton {
  width: 110px;
  height: 45px;
}

.small-button img {
  width: 40px;
  height: 40px;
}

.small-button .mcbutton-front img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

/* Different colors for each small button */
.shop .mcbutton-front {
  background-color: #fccf6e;
  box-shadow:
    inset 0 6px #ffebbf,  /* top */
    inset 6px 0 #ffebbf,  /* left */
    inset 0 -6px #fadb9c, /* bottom */
    inset -6px 0 #fadb9c; /* right */
}

.map .mcbutton-front {
  background-color: #5A66EC;
  box-shadow:
    inset 0 6px #7483e2,  /* top */
    inset 6px 0 #7483e2,  /* left */
    inset 0 -6px #6a79db, /* bottom */
    inset -6px 0 #6a79db; /* right */
}

.youtube .mcbutton-front {
  background-color: #FF0038;
  box-shadow:
    inset 0 6px #ff7190,  /* top */
    inset 6px 0 #ff7190,  /* left */
    inset 0 -6px #d4536f, /* bottom */
    inset -6px 0 #d4536f; /* right */
}

.shop .mcbutton-back {
  background-color: #d3ad5c;
}

.map .mcbutton-back {
  background-color: #4a54c9;
}

.youtube .mcbutton-back {
  background-color: #9b0022;
}

/* Responsive design for mobile */
@media (max-width: 440px) {
  .mcbutton-wrapper {
    width: 410px;
  }
}

@media (max-width: 390px) {
  .mcbutton-wrapper {
    transform: scale(0.85);
  }
}

@media (max-width: 335px) {
  .mcbutton-wrapper {
    transform: scale(0.73);
  }
}

.modpack-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background-color: #C7C7C7;
  position: relative;
  z-index: 3;
  padding: 2rem;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,

    calc(100% - 10px) 10px,
    100% 10px,

    100% calc(100% - 10px),

    calc(100% - 10px) calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,

    10px calc(100% - 10px),
    0 calc(100% - 10px),

    0 10px,
    10px 10px
  );
}

.modpack-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 10px;
  background: #FAFBF9;
}

.modpack-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 10px;
  background: #626262;
}

.modpack-wrapper .border-left {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 10px;
  background: #FAFBF9;
}

.modpack-wrapper .border-right {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  width: 10px;
  background: #626262;
}
.modpack-buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
}

.modpack-button .mcbutton {
  width: auto;
  height: auto;
  border-top: 6px solid #1e1e1f;
}

.modpack-button .mcbutton-front img {
  width: 8rem;
  height: 8rem;
  margin: 1rem;
  object-fit: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.modpack-wrapper .offercraft {
  margin-top: -12px;
  width: 100%;
  text-align: left;
}

.modpack-wrapper .offercraft img {
  margin-top: 0;
}

.modpack-wrapper .offercraft span {
  font-size: 2rem;
  margin: 0 auto 6px 0;
}

.modpack-wrapper .offercraft .small-button .mcbutton {
  height: 32px;
  width: 32px;
}

.modpack-wrapper .offercraft .small-button .mcbutton img {
  width: 24px;
  height: 24px;
}

.modpack-wrapper .offercraft {
  margin-bottom: 0;
}

.offercraft-link {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

@media (max-width: 800px) {
  .modpack-button .mcbutton-front img {
    width: 7rem;
    height: 7rem;
  }
}

@media (max-width: 730px) {
  .modpack-button .mcbutton-front img {
    width: 6rem;
    height: 6rem;
  }
}

@media (max-width: 665px) {
  .modpack-button .mcbutton-front img {
    width: 5rem;
    height: 5rem;
  }
}


@media (max-width: 592px) {
  .modpack-button .mcbutton-front img {
    width: 4rem;
    height: 4rem;
  }
}

@media (max-width: 535px) {
  .modpack-buttons-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .modpack-button .mcbutton-front img {
    width: 6rem;
    height: 6rem;
  }
}

@media (max-width: 360px) {
  .modpack-button .mcbutton-front img {
    width: 4rem;
    height: 4rem;
  }
  .offercraft-link img {
    display: none;
  }
}