/**
 * E-book
 * CSS 1.0
 */

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #e5e5e5;
    font-size: 14px;
    letter-spacing: 1px;
}

.center {
    width: 1150px;
    margin: 0 auto;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
}

/** ------ Nav ------ **/
nav {
    background: rgb(62,62,168);
    background: linear-gradient(90deg, rgba(62,62,168,1) 0%, rgba(7,188,224,1) 30%, rgba(7,188,224,1) 70%, rgba(62,62,168,1) 100%);
}

ul.social {
    display: grid;
    grid-template-columns: 40px 40px 1fr;
    grid-column-gap: 5px;
    padding: 5px 15px;
    list-style: none;
}
ul.social a > img {
    display: block;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 8px;
}
ul.social a:hover >img { border: 2px solid #f24611; }

/** ------ Header ------ **/
header {
    height: 90px;
    padding: 45px 0;
    background-image: url("images/banner.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    text-align: left;
}
header a {
    display: block;
    padding: 0 110px;
    font-size: 28px;
    color: #00a200;
    text-decoration: none;
}
header a:hover { color: rgba(62,62,168,1); }

/** ------ Menu ------ **/
.menu {
    display: block;
    margin: 10px 0;
    background: rgb(0, 172, 206);
}
.menu:after {
    display: block;
    content: '';
    clear: both;
}
.menu ul {
    display: block;
    float: right;
    list-style: none;
}
.menu ul > li { float: left; }
.menu ul a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-left: 10px solid #fff;
}
.menu ul a:hover { background: rgba(62,62,168,1); }

/** ------ Main ------ **/
main {
    display: grid;
    grid-template-columns: 335px 1fr;
    grid-column-gap: 10px;
}
main > .sidebar, main > .content {
    height: 600px;
    border: 1px solid rgba(62,62,168,1);
}
main > .sidebar { overflow: scroll; }
main > .content { background-color: #f1f1f1; }

.sidebar ul { list-style: none; }
.sidebar ul > li { padding: 0 5px; }
.sidebar ul > li.chapter { background: rgb(77, 77, 206); }
.sidebar ul > li.chapter > a, .sidebar ul span { color: #ffffff; }
.sidebar ul span, .sidebar ul a {
    display: block;
    padding: 5px;
}
.sidebar ul a {
    color: #545454;
    text-decoration: none;
}
.sidebar ul a:hover {
    background: rgb(0, 172, 206);
    color: #fff;
}

/** ------ Footer ------ **/
footer {
    display: block;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgb(62,62,168);
    background: linear-gradient(90deg, rgba(62,62,168,1) 0%, rgba(7,188,224,1) 30%, rgba(7,188,224,1) 70%, rgba(62,62,168,1) 100%);
    text-align: right;
}
footer span {
    color: #fff;
    font-weight: bold;
}