@keyframes background-movement {
    from { background-position: 0% 0%; }
    to { background-position: 400px 400px }
}

.moving-body-background {
    padding: 0;
    margin: 0;
    background-image: url(./pattern_tile.png);
    background-color: mintcream;
    animation: background-movement 20s infinite linear;
}

main {
    margin-top: 60px;
    padding-top: 30px;
    padding-bottom: 90px;
    overflow: hidden;
    min-height: calc(100vh - (60px + 60px)); /* 100vh - (navbar height + footer height) */
}

#main-navbar {
    position: fixed;
    top: 0;
    padding: 16px 16px;
    height: 60px;
    width: 100vw;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0px, rgba(0, 0, 0, 0.4) calc(100% - 8px), rgba(0, 0, 0, 0) 100%);
    text-align: center;
    color: white;
    z-index: 1000;
}

#main-navbar:hover {
    background-image: linear-gradient(to bottom, rgba(0, 0, 63, 0.5) 0px, rgba(0, 0, 63, 0.4) calc(100% - 8px), rgba(0, 0, 0, 0) 100%);
    transition-duration: 5s;
}

#main-navbar a {
    color: inherit;
}

#main-navbar a:hover {
    font-weight: bold;
    text-decoration: none;
}

#main-navbar a:visited {
    color: inherit;
}

#main-navbar a:active {
    color: inherit;
}

#main-footer {
    bottom: 0;
    padding: 22px 16px;
    width: 100%; /* Somehow 100vw is the whole screen width (screen-screen; so it's the same even if the window was resized; the one that changes with the display resolutin) and not the viewport width (no window borders, scrollbars, etc.) :c */
    height: 60px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0px, rgba(0, 0, 0, 0.4) calc(100% - 8px), rgba(0, 0, 0, 0) 100%);
    z-index: 1000;
}

#main-footer:hover {
    background-image: linear-gradient(to top, rgba(0, 0, 63, 0.5) 0px, rgba(0, 0, 63, 0.4) calc(100% - 8px), rgba(0, 0, 0, 0) 100%);
    transition-duration: 5s;
}

#main-footer p {
    margin-bottom: 0;
    color: white;
}

@media only screen and (max-width: 500px) {
    #center {
        width: 100vw;
        top: calc(50vh - 125px);
    }
}
@media only screen and (min-width: 501px) {
    #center {
        width: 500px;
        left: calc(50vw - 250px);
        top: calc(50vh - 70px); /* Calculated height is 140px*/
    }
}

#center {
    position: absolute;
    text-align: center;
    color: orange;
    text-shadow: darkgray 2px 2px 5px;
    overflow-wrap: break-word;
}

#center:hover {
    color: dodgerblue;
}

.center-header {
    font-size: 2.5rem;
}

.card {
    box-shadow: gray 2px 2px 5px
}

a.nostyle, a.nostyle:hover, a.nostyle:active, a.nostyle:visited {
    color: inherit;
    text-decoration: inherit;
}