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

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

@keyframes element-hover {
    from {scale: 0%;} to {scale: 100%;}
}

body {
    background-color: black;
    color: white;
    font-family: 'Minecraft';    
}

body h2 {
    text-align: center;
    margin-top: 5%;
    font-weight: normal;
}

header h1 {
    font-family: 'Minecrafter';
    font-weight: 100;
    font-size: 60px;
}

header a {
    font-size: xx-large;
    border: 2px black solid;
    position: relative;
    text-decoration: none;
    text-align: center;
    margin: 1pc;
}

header a img {
    position: absolute;
    width: 100%;
    height: 100%;
}

header a span {
    font-size: large;
    font-weight: normal;
    z-index: 100;
    position: relative;
    margin-left: 5%;
    margin-right: 5%;
    left: 5px;
    bottom: 5px;
    color: white;
}

header a:hover {
    border: 2px white solid;
}

header a:hover > img {
    content: url(/files/img/button-hover.png);
}

.center-text {
    text-align: center;
}

.container {
    width: 100%;
    overflow: hidden;
}

.container ul {
    display: flex;
    justify-content: center;
}

.container ul li {
    display: block;
    list-style: none;
    border-radius: 20px;
    float: left;
    width: 400px;
    height: 400px;
    margin: 40px 40px 0px 5px;
    background-color: rgba(255, 255, 255, 0.17);
    transition: transform 0.2s;
    transition-timing-function: ease;
}

.container ul li img {
    width: 45%;
    margin-top: 15%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.container ul li h1 {
    width: auto;
    text-align: center;
    vertical-align: auto;
    font-weight: normal;
    letter-spacing: 2px;
}

.container ul li {
    transition: transform 0.2s, background-color 0.2s;
}

.container ul li:hover {
    cursor: pointer;
    transform: scale(1.1);
    background-color: rgba(255, 166, 0, 0.422);
}

.container ul #stcm {
    transition: transform 0.2s, background-color 0.6s, color 0.6s, font-weight 0.6s;
}

.container ul #stcm:hover {
    background-color: rgba(164, 0, 219, 0.189);
    color: rgb(180, 0, 221);
}

.container ul #stcm:hover > h1 {
    font-weight: bold;
    text-shadow: rgb(204, 0, 255) 0 0 15px;
    transition: text-shadow 0.8s;
}

#background-image {
    display: block;
    margin-top: 10%;
    position: absolute;
    width: 50%;
    left: 25%;
    -webkit-mask-image: -webkit-gradient(linear, left 600, left top, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
    mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}

@media screen and (max-width:1200px) {
    .container ul li {
        width: 40%;
        margin: 20px;
    }
}