*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-image: linear-gradient(to right, rgb(253, 253, 253), rgb(243, 243, 243));
}

nav {
    background: #222;
}

ul {
    padding-left: 2rem;
    padding-right: 2rem;
}

.navmenu {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.navmenu li {
    font-size: 16px;
    padding: 15px 0px;
    display: block;
}

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

a:hover {
    color: cornflowerblue;
}

.navcontact {
    color: white;
}

.container {
    max-width: 800px;
    margin-top: 2em;
    margin-bottom: 6em;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.footer {
    position: fixed;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    bottom: 0;
}

@keyframes moveUpDown {
    0% {
        transform: translateY(20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.show {
    opacity: 1;
    animation: moveUpDown .5s ease-in-out;
    transition: opacity 1s;
}

/*Mobile compatibility*/
.togglemobilebars {
    order: 1;
}

.navmenu .navitem {
    width: 100%;
    text-align: center;
    order: 3;
    display: none;
}

.navmenu .navcontact {
    order: 2;
    width: 100%;
    text-align: left;
}

.navitem.active {
    display: block;
}

@media all and (min-width: 795px) {
    .navitem {
        display: block;
        width: auto;
    }

    .navmenu .togglemobilebars {
        display: none;
    }

    .navmenu .navitem {
        order: 1;
        width: auto;
        display: block;
    }

    .navmenu li {
        padding: 15px 10px;
    }

    .navmenu .navcontact {
        width: auto;
        text-align: right;
    }
}

.togglemobilebars {
    cursor: pointer;
}

.mobilebars {
    background: #999;
    display: inline-block;
    height: 2px;
    position: relative;
    width: 18px;
}

.mobilebars:before, .mobilebars:after {
    background: #999;
    content: "";
    display: inline-block;
    height: 2px;
    position: absolute;
    width: 18px;
}

.mobilebars:before {
    top: 5px;
}

.mobilebars:after {
    top: -5px;
}

@media (max-width: 795px) {
    a:hover {
        color: white;
    }

    a:active {
        color: cornflowerblue;
    }
}

@media (min-width: 311px) {
    .navmenu .logo {
        color: white;
        font-weight: bold;
        letter-spacing: .25em;
    }
}

@media (max-width: 310px) {
    .navmenu .logo {
        color: white;
        font-weight: bold;
        letter-spacing: .1em;
    }
}

@media (max-width: 403px) {
    li.navcontact {
        font-size: 10px;
    }
}
