@charset "utf-8";
/* CSS Document */

body {
    background: #F1EFED;
    margin: 0 20px;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 150%;
    color: #656669;
}

img.firstimg {
    max-width: inherit!important;
}

header {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: url(../images/header_bg.png);
    height: 90px;
    border-radius: 0 0 10px 10px;
    border: 1px solid #e6e3d0;
    border-top: 0;
    position: relative;
    z-index: 2;
}

.img-responsive {
    max-width: 100%;
    display: block;
}

.logo {
    padding: 5px 20px;
}

nav {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: url(../images/menubar_bg.png);
    border-radius: 5px;
    position: relative;
    top: -10px;
    z-index: 1;
    padding: 2px 0;
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    top: 3px;
    left: 10px;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    line-height: 45px;
    font-size: 15px;
    color: #E9EAEB;
    text-decoration: none;
    padding: 5px 10px;
}

nav ul li a:hover {
    background: #4988bf;
    padding: 5px 10px;
    border-radius: 5px;
}

nav ul li.active a {
    background: #4988bf;
    padding: 5px 10px;
    border-radius: 5px;
}

.main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    flex-direction: row;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.item-page {
    width: 100%;
    max-width: 620px;
    padding: 10px;
}

aside {
    width: 100%;
    max-width: 250px;
    padding: 10px;
}

.item-page img {
    max-width: 100%;
    height: auto!important;
}

.page-header h2 {
    font-size: 25px;
}

.egdoc h3 {
    background: #4988bf;
    color: #fff;
    padding: 15px 10px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #285f90;
    margin-bottom: 0;
}

.custom.egdoc {
    background: rgb(78,133,193);
    background: linear-gradient(360deg, rgba(78,133,193,1) 7%, rgba(103,164,216,1) 100%);
    padding: 10px 15px;
    border-radius: 0 0 10px 10px;
    color: #fff;
}

.egdoc.bottom h3 {
    margin-top: 0;
}

.custom.egdoc a {
   color: #fff;
    text-decoration: none;
}

.custom.egdoc a:hover {
    color: #285f90;
    text-decoration: underline;
}

footer {
    width: 100%;
    max-width: 900px;
    margin:20px auto;
    display: flex;
    justify-content: space-between;
}

.leftmod, .rightmod {
    width: 48%;
}

.rightmod .moduletable {
    height: 100%;
}

.lastfooter {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background: #4988bf;
    border-radius: 10px;
    align-items: center;
    padding: 20px 0;
}

@media only screen and (max-width: 768px) {
    .item-page {
        max-width: 400px;
    }
}

@media only screen and (max-width: 600px) {
    .main {
        flex-direction: column;
    }
    table {
        width: 100%!important;
    }
    ul {
        padding: 0 10px;
    }

    .item-page img {
        max-width: 90%!important;
        width: 100%;
    }

    .item-page {
        width: 100%;
        max-width: 320px;
        padding: 10px;
    }

    .leftmod, .rightmod {
        width: 100%;
        margin-bottom: 20px;
    }

    footer {
        flex-direction: column;
    }

    aside {
        width: 100%;
        max-width: 94%;
        padding: 10px;
    }

    header {
        height: auto;
    }

    nav ul {
        margin: 10px 0 0;
    }

    nav ul li a {
        line-height: 30px;
        color: #000;
        padding: 5px 10px;
    }

    nav {
        background: transparent;
    }
}