@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 {
    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: 4px 0 8px 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);
    }
}