html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    /*overflow-x: hidden;*/
}

a:not(.magic) {
    text-decoration: none;
    width: 50%;
    height: 50%;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
}

img {
    width: 60%;
    max-height: 80%;
    object-fit: contain;
    transition: transform .5s ease;
}

#database { background-color: #181617; background-image: url(/images/simple-circuit-board.jpg);  background-position: center; }
#games { background-image: linear-gradient(rgb(202, 0, 0) , rgb(255, 0, 76)); }
#joelgle, #jing { background-image: linear-gradient(#ffffff , #dfdfdf); }
#youtube { background-image: linear-gradient(rgb(0, 0, 0) , rgb(39, 39, 39)); }
#castaway { background-color: #0c0c0c; }
#twitter { background-color: #17a2f2; }
#twitch { background-color: #9147ff; }

#logo {
    width: 100%;
    height: 100vh;
    transition: rotate .1s ease;
}

#games img { width: 70%; }

#logo img {
    width: 30vw;
    max-height: 15vh;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 1;
}

a:hover img { transform: scale(0.9); }
#logo:hover img { transform: scale(1.09); }
#twitter:hover img, #twitch:hover img { transform: rotate(10deg); }

@media screen and (max-width: 800px),
       print and (orientation : portrait) {
    /* For mobile phones: */
    a:not(.magic) {
        width: 100%;
        height: 25%;
        float: left;
        display: flex;
        justify-content: center;
        align-items: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    
    img {
        width: 60%;
        max-height: 40%;
        object-fit: contain;
        transition: transform .5s ease;
    }

    #logo img {
        width: 60vw;
        max-height: 10vh;
    }
}