html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    line-height: 1.5;
    color: #263b5e;
    font-weight: 400;
    font-family: "Raleway", sans-serif;
}

body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.7;
}

.spacer {
    flex: 1;
}

body a {
    color: #17b978;
    text-decoration: none;
}

body a:hover {
    color: #17b978;
    text-decoration: underline;
}

.img, .user-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.navbar-brand {
    font-weight: 900;
    font-size: 26px;
    position: relative;
    z-index: 0;
    font-family: "Raleway", sans-serif;
}

    .navbar-brand a {
        color: #051441;
    }
    .navbar-brand a:hover {
        color: #051441;
        text-decoration: none;
    }

.navbar-brand span {
    color: #17b978;
}

.navbar-nav {
    margin-left: auto !important;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.navbar-nav > .nav-item > .nav-link {
    font-size: 16px;
    line-height: 28.8px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    padding-left: 20px;
    padding-right: 20px;
    color: #051441 !important;
    font-weight: 600;
    opacity: 1 !important;
}

.navbar-nav > .nav-item > .nav-link span {
    position: relative;
    display: block;
    padding-bottom: 2px;
}

.navbar-nav > .nav-item > .nav-link span:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #17b978;
    visibility: visible;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

.navbar-nav > .nav-item > .nav-link:hover span:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    -o-transform: scaleX(1);
    transform: scaleX(1);
}
.navbar-nav > .nav-item > .nav-link:hover {
    text-decoration: none;
}

.footer {
    background-color: #000000;
    z-index: 0;
    padding: 1em 0;
    width: 100%;
    margin-top: 60px;
}

.footer h2.header {
    font-weight: normal;
    color: #fff;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
}
.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer ul
{
    list-style: none;
    padding-left: 0;
}

.footer ul > li {
    border-bottom: 1px solid #333;
    list-style-type: none;
    margin-bottom: 8px;
    padding-bottom: 8px;
    word-wrap: break-word;
    line-height: 22px;
}


@media (min-width: 768px) {
    .col-md {
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        max-width: 100%;
    }
}

main {
    padding-top: 40px;
}

.btn {
    border-radius: unset;
}

.btn-theme {
    color: #FFF;
    background-color: #17b978;
    border-color: #17b978;
    transition-duration: .5s;
    padding: .75rem 1.25rem;
}

    .btn-theme:hover {
        color: #000;
        background-color: #17af72;
        border-color: #16a96e;
        text-decoration: none;
    }

/* About me Page */

@media (min-width: 768px) {
    .pl-md-5, .px-md-5 {
        padding-left: 3rem !important;
    }
}

.about-page .img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: 400px;
}

.about-page h2 {
    font-size: 50px;
    font-weight: 700;
}

.book-block {
    width: 200px;
    height: 350px;
}

.book-wrapper {
    text-align: center;
}

.books-page .img {
    aspect-ratio: 5 / 8;
    width: 100%;
}

.books-page .img-wrapper {
    justify-content: center;
}

@media (min-width: 1185px) {
    .books-page .img {
        width: 75%;
    }
}
@media (min-width: 1382px) {
    .books-page .img {
        width: 50%;
    }
}

.books-page .book-title {
    text-transform: uppercase;
    font-size: 40px;
    font-weight: 700;
}

.book {
    flex-direction: column;
    display: flex;
    height: 100%;
}

.book-footer .btn {
    text-transform: uppercase;
}

.book-description
{
    flex: 1;
}

.striped-events > tr:nth-child(4n) {
    background-color: #f5f4fb;
}

.striped-events > tr:nth-child(4n-1) {
    background-color: #f5f4fb;
    border-bottom-color: #f5f4fb;
}

.striped-events > tr:nth-child(1) {
    background-color: unset;
    border-bottom-color: white;
}

.row-start {
    border-bottom-color: white;
}

    .row-start a {
        font-weight: bolder;
    }

    .row-start p:nth-child(1) {
        margin-bottom: unset;
        font-weight: bold
    }

.row-end > td {
    padding-bottom: 25px;
}

.bg-light {
    background: #f5f4fb !important;
}

.resource-block > div {
    padding: 35px;
}

.resource-block h4 {
    line-height: 1.3;
    font-size: 20px;
    font-weight: 700;
    position: relative;
}

.resource-block h4:after {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    content: '';
    width: 30px;
    height: 1px;
    background: #17b978;
    margin: 0 auto;
}

.resource-block p {
    margin-bottom: 25px;
}

.contact-wrapper h3 {
    line-height: 1.3;
    font-size: 20px;
    font-weight: 700;
    position: relative;
}

.contact-wrapper h3:after {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    content: '';
    width: 30px;
    height: 1px;
    background: #17b978;
    margin: 0 auto;
}

.form-control {
    border-radius: 0;
}

@media (min-width: 991.98px) {
    .navbar {
        background-color: white !important;
    }
}
@media (max-width: 991.97px) {
    .navbar-brand a {
        color: white;
    }
    .navbar-nav {
        flex-direction: column;
    }
    .navbar-nav > .nav-item > .nav-link {
        color: white !important;
        display: inline-block;
        padding-left: 0;
    }
    .bg-dark {
        background-color: black !important;
    }
    .navbar-toggler > span {
        border: none;
        color: rgba(255, 255, 255, 0.5) !important;
        cursor: pointer;
        padding-right: 0;
        text-transform: uppercase;
        font-size: 16px;
        letter-spacing: .1em;
    }
    .navbar-toggler {
        border: none;
        box-shadow: none !important;
    }
}