@font-face {
  font-family: 'Minecraft';
  src: url('../fonts/Minecraft.ttf');
}

@font-face {
  font-family: 'Minecraft Regular';
  src: url('../fonts/Minecraft-Regular.otf');
}

a {
    text-decoration: none;
}

body {
    background-image: url(../images/panorama.png);
    background-repeat: repeat-x;
    background-size: auto 100%;
    animation: panorama 15s linear infinite;
    backdrop-filter: blur(5px);
    font-family: 'Minecraft Regular', 'Minecraft', monospace;
}

@keyframes panorama {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: calc(-1 * var(--panorama-width)) 0;
    }
}

h1 {
    color: #fff;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 30px;
    text-shadow: 4px 4px #3f3f3f;
}

.content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin-top: 0;
}

.server-list {
    background: rgba(0,0,0,0.5);
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
    height: 73vh;
    margin-top: 125px;
    box-shadow:
        0 3px 0 rgba(255,255,255,0.25),
        0 -3px 0 rgba(255,255,255,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
}

.server {
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    width: 55vw;
    height: 125px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 4px solid transparent;
    user-select: none;
}

.server.selected {
    background-color: #000;
    border-color: #fff;
}

.server-img {
    max-height: 100%;
}

.buttons {
    width: 100%;
    height: 13vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.btn {
    background-image: url(../images/texture.png);
    color: #fff;
    width: 350px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #000;
    box-shadow:
        inset 4px 4px 0 rgba(255,255,255,0.25),
        inset -4px -8px 0 rgba(0,0,0,0.25);
    font-size: 26px;
    text-shadow: 4px 4px #3f3f3f;
    user-select: none;
    cursor: pointer;
}

.btn:not(.inactive):hover {
    border-color: #fff;
}

.btn.inactive {
    box-shadow: none;
    cursor: default;
    position: relative;
    z-index: 0;
    filter: brightness(0.5);
    pointer-events: none;
}

.btn.inactive::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

@media only screen and (max-width: 1000px) {
    .server {
        width: 75vw;
    }
}

@media only screen and (max-width: 759px) {
    .content {
        padding-top: 21px;
    }

    h1 {
        top: 91px;
    }

    .btn {
        width: 40vw;
    }
}

@media only screen and (max-width: 600px) {
    .server {
        width: 85vw;
    }
}

@media only screen and (max-width: 500px) {
    h1 {
        min-width: 90vw;
        text-align: center;
    }

    h1,
    .server,
    .btn {
        font-size: 5vw;
    }
}

@media only screen and (max-width: 395px) {
    .content {
        padding-top: 42px;
    }

    h1 {
        top: 112px;
    }
}

