:root {
    --space: 10px;
}

@font-face {
    font-family: lib;
    src: url(../font/LiberationSans-Regular.ttf);
}

body {
    background: url(../bg/dragon.gif);
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
}

#navbar-center {
    display: block;
    margin: auto;
    width: 75%;
}

.navbar > * {
    width: 33%;
}

.navbar > img {
    max-width: 158px;
}

.navbar > button {
    width: 200px;
    height: 50px;
    align-self: center;
    background-color: rgba(52, 148, 204, 0.911);
    border-color: rgba(73, 97, 110, 0.911);
}

.content {
    background-color: rgba(59, 99, 122, 0.753);
    text-align: center;
    margin-top: var(--space);
    margin-bottom: var(--space);
    padding: var(--space);
    color:white;
}

.content > p {
    max-width: 100ch;
    display: block;
    margin: auto;
    margin-top: var(--space);
    margin-bottom: var(--space);
    font-family: lib, sans-serif;
    letter-spacing: 0.3ch;
    font-size: 14px;
}

.content > p > a {
    color:cadetblue;
}

.grid {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: repeat(4, 25%);
    margin-bottom: 40px;
}

.grid-item, .grid-item-small {
    background-color: rgba(59, 99, 122, 0.753);
    gap: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.grid-item > img {
    max-width: 90%;
    align-self: center;
    margin: 15px;
}

.grid-item-small > img {
    max-width: 60%;
    align-self: center;
    margin: 15px;
}

#path {
    grid-row: 1 / 3;
}

#em {
    grid-row: 2 / 4;
    grid-column: 4 / 5;
}

.top {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 200px;
    background-color: rgba(52, 148, 204, 0.911);
    margin: 25px;
    font-size: 24px;
    font-family:'Arial Narrow', Arial, sans-serif;
    text-align: center;
}

.top:hover {
    background-color: rgb(52, 148, 204);
}

@media only screen and (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 33.3%);
    }
    #em {
        grid-column: 3 / 4;
    }
    .navbar > button {
        width: 120px;
        height: 50px;
    }
}

@media only screen and (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 50%);
        margin-bottom: 80px;
    }
    .grid-item > img {
        max-width: 80%;
        align-self: center;
        margin: 5px;
    }
    .grid-item-small > img {
        max-width: 80%;
        align-self: center;
        margin: 5px;
    }
    #em {
        grid-column: 2 / 3;
    }
    .navbar > button {
        width: 60px;
        height: 20px;
        align-self: center;
        background-color: rgba(52, 148, 204, 0.911);
        border-color: rgba(73, 97, 110, 0.911);
        font-size: 10px;
    }
}
@media only screen and (max-width: 600px) {
    .grid {
        grid-template-columns: 100%;
        gap: 0;
    }
    #em {
        grid-column: 1 / 2;
    }
    #path {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }
    .content > p {
        max-width: 90ch;
        letter-spacing: 0.175ch;
        font-size: 12px;
    }
}