@font-face {
    font-family: 'Minecraft';
    src: url('https://db.onlinewebfonts.com/t/6ab539dc835db13f8cce09c3d4926861.woff2') format('woff2');
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Minecraft', sans-serif;
    text-transform: lowercase;
    user-select: none;
    -webkit-user-select: none;
}

.credits {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 20;
    color: #FFF;
    font-size: 18px;
    text-shadow: 2px 2px #000;
}

.credits .name {
    color: #FF5555;
}

#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bg-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border: none !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
}

.title-img {
    position: fixed;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 480px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.ui-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding-top: 60px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFF;
    font-size: 18px;
    text-shadow: 2px 2px #000;
}

#mapid {
    font-family: 'Minecraft';
    background-color: #1a1a1a;
    border: 3px solid #555;
    color: #FFFF55;
    padding: 8px;
    width: 70px;
    text-align: center;
    outline: none;
    font-size: 18px;
}

.mc-button {
    font-family: 'Minecraft', arial;
    background-color: #7e7e7e;
    border: 4px solid;
    border-color: #cfcfcf #373737 #373737 #cfcfcf;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    text-shadow: 2px 2px #373737;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-sizing: border-box;
    text-transform: lowercase;
    display: inline-block;
}

.mc-button:hover {
    background-color: #8c8c8c;
    border-color: #dfdfdf #474747 #474747 #dfdfdf;
    outline: 2px solid white;
}

.mc-button:active {
    background-color: #4e4e4e;
    border-color: #373737 #cfcfcf #cfcfcf #373737;
    padding-top: 12px;
    padding-bottom: 8px;
    outline: none;
}

.map-preview-wrapper {
    position: relative;
    padding: 30px;
    background-image: url('map.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container canvas {
    background-color: #000;
    image-rendering: pixelated;
    width: 200px;
    height: 200px;
    display: block;
    border: none;
}