@keyframes background-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

#pagewrapper {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    overflow: hidden;
}

h1 {
    margin-bottom: 5px;
    margin-top: 1em;
}

p {
    margin-top: 8px;
}

.menuitem {
    padding: 4px;
    color: white;
}

.menuitem:hover {
    transform: translate(10px, 10px);
    transition: transform 0.3s;
    z-index: 1;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

#item-0 {
    background-color: #0b0b0b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#item-0:hover {
    background-color: rgb(24, 26, 27);
}

#item-1 {
    background: rgb(131,58,180);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), linear-gradient(135deg, rgba(131,58,180,1) 12%, rgba(253,29,29,1) 53%, rgba(252,176,69,1) 90%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: background-animation 18s ease infinite;
}

#item-1:hover {
    background: linear-gradient(135deg, rgba(131,58,180,1) 12%, rgba(253,29,29,1) 53%, rgba(252,176,69,1) 90%);
    background-size: 400% 400%;
}

#item-2 {
    background-color: cadetblue;
}

#item-2:hover {
    background: rgb(150,234,192);
    background: linear-gradient(315deg, rgba(150,234,192,1) 0%, rgba(78,230,155,1) 12%, rgba(95,158,160,1) 100%); 
}

#item-3 {
    background: rgb(2,0,36);
    background: linear-gradient(160deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%); 
    filter: grayscale(40%);
}

#item-3:hover {
    filter: grayscale(0%);
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    text-decoration: none;
    color: white;
}

a:active {
    text-decoration: none;
    color: white;
}

#footer {
    color: white;
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 5px;
    z-index: 2;
}

@media (max-width: 669px) {
    #pagewrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        height: 200%;
    }

    .menuitem:hover {
        transform: none;
    }
}