/*
Theme Name: Thomistic Commentaries
Author: Ateeq Chouhan
Author URI: https://www.upwork.com/o/profiles/users/~01e62daf2a0163158e/
Version: 1.0
*/
* {
    box-sizing: border-box;
}
body{
    margin: 0px;
    padding: 0px;
    font-family: 'Roboto', sans-serif;
}
.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
main{
    overflow: hidden;
    overflow: visible; /* mathias@jpg.no, may 2020 */
}
a{
    text-decoration: none;
}

/*Header */

#header-nav {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 4;
    background-color: white;
    border-bottom: 1px solid #dde2e5;
}
.navbar{
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: .5rem 1rem;
}
#header-nav  .logo img {
    display: block;
    margin: 0;
    max-width: 200px;
    height: 63px;
}
.navbar-toggler {
    background: none;
    border: 0;
    padding: 0;
    width: 24px;
    cursor: pointer;
    z-index: 1;
    outline: none;
}
.navbar-toggler span {
    display: block;
    border: 1px solid #444;
    margin: 5px 0;
    position: relative;
    transition: .2s;
}
.navbar-toggler.open {
    position: unset;
    z-index: 60;
    top: 9px;
    left: 0;
}
.navbar-toggler.open span {
    background: #007bff;
    border: 2px solid #007bff;
}
.navbar-toggler.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.navbar-toggler.open span:nth-child(2) {
    opacity: 0;
}
.navbar-toggler.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 7px;
}
#header-nav  #navbar {
    background-color: #24373b;
    height: 100%;
    min-height: 100vh;
    padding: 81px 0 0;
    position: fixed;
    top: 0;
    left: -500px;
    transition: left 350ms;
    width: 320px;
    display: block;
}
#header-nav  #navbar.show {
    left: 0;
    z-index: 1;
    width: 399px;
}

@media(max-width: 576px) {
    #header-nav #navbar.show {
        max-width: 375px;
    }
}
.navbar-nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    margin: 0;
    list-style: none;
    overflow: auto;
    overflow-x: hidden;
    height: 100%;
}
.navbar-nav::-webkit-scrollbar-track{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    /*border-radius: 10px;*/
    background-color: #F5F5F5;
}

.navbar-nav::-webkit-scrollbar{
    width: 12px;
    background-color: #F5F5F5;
}

.navbar-nav::-webkit-scrollbar-thumb{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #6c7ae0;
}

.navbar__item{
    display: block;
    position: relative;
    padding: 0 15px;
}
.navbar__link {
    font-size: 16px;
    text-transform: uppercase;
    background-color: transparent;
    color: #dde2e5;
    padding: 20px 15px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    display: block;
    text-decoration: none;
}
.navbar__link:hover {
    background-color: #2b4044;
}
.navbar__small {
    text-transform: none;
    font-size: 12px;
    color: #007bff;
}
.disabled .navbar__small {
    color: #0059b9;
}
.navbar__title{
    font-size: 16px;
    text-transform: uppercase;
    background-color: transparent;
    color: #dde2e5;
    padding: 20px 15px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    margin: 0;
    position: relative;
}
.navbar__title:before {
    content: "";
    background-image: url(../images/down-arrow-white.svg);
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    position: absolute;
    right: 15px;
    margin-top: 5px;
    transform: rotate(270deg);
    transition: transform 0.5s ease-in-out 0s; 
}
.navbar__title:hover {
    background-color: #2b4044;
    cursor: pointer;
}
.navbar__title.open:before {
    transform: rotate(360deg);
    transition: transform 0.5s ease-in-out 0s; 
}
.nav__submenu{
    padding: 0;
    display: none;
}
.nav__submenu .navbar__link{
    font-size: 15px;
}
.disabled{
    font-size: 15px;
    cursor: context-menu;
    color: grey;
    text-transform: uppercase;
    background-color: transparent;
    padding: 20px 15px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    display: block;
    text-decoration: none;
}
.disabled:hover {
    background-color: transparent !important;
}


/*banner*/

.banner{
    background: #007bff;
    padding: 50px 0;
    position: relative;
    top: 80px;
    margin-bottom: 80px;
}
.banner__heading{
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-align: center;
}
.banner__title{
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-align: center;
    text-transform: uppercase;
}
.banner__subtitle{
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-align: center;
    margin: 10px 0;
}
.banner__des{
    font-size: 14px;
    font-weight: normal;
    color: white;
    text-align: center;
    margin: 10px 0;
}

/*Footer*/

.footer{
    padding: 5px 0;
    background: #000000;
}
.footer__title{
    font-size: 14px;
    font-weight: normal;
    color: white;
    text-align: center;
    line-height: 1.5;
}
.footer__link{
    color: white;
    text-decoration: underline;
}
.footer__link:hover {
    color: white;
}


/*Home Page Styling*/


/*BookInfo*/

.bookinfo-content{
    padding: 60px 0 10px 0;
    background-color: #f1f1f1;
}
.bookinfo-heading{
    font-size: 30px;
    margin: 0px auto 50px auto;
    color: #333333;
    font-weight: lighter;
    text-align: center;
    border-bottom: 1px solid #333333;
    width: fit-content;
    text-transform: uppercase;
}
.bookinfo-detail{
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-flow: row wrap;
}
.bookinfo{
    width: 40%;
    text-align: center;
    margin-bottom: 80px;
    box-shadow: 5px 0px 30px #cccccc;
    border-radius: 30px;
    padding: 50px 60px 20px 60px;
    background-color: #ffffff;
}
.bookinfo__title{
    font-size: 30px;
    margin: 0px 0px 20px 0px;
    color: #333333;
    font-weight: lighter;
}
.bookinfo__percent{
    font-size: 16px;
    text-transform: capitalize;
    color: #fbf49a;
    font-weight: lighter;
    text-decoration: underline;
    margin-left: 10px;
}
.bookinfo__percent:hover {
    color: #efe467;
}
.bookinfo__btn{
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6c7ae0;
    border-radius: 20px;
    padding: 10px 40px;
    margin-bottom: 20px;
}
.bookinfo__btn--disabled {
    filter: grayscale(1);
    pointer-events: none;
}
.bookinfo__link{
    font-size: 20px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
.bookinfo__icon{
    width: auto;
    height: 30px;
    margin-right: 10px;
}
.bookinfo--disabled{
    background-color: #efebeb;
    filter: grayscale(1);
}
.bookinfo--disabled a{
    cursor: context-menu;
}

@media(max-width: 1199px) {
    .bookinfo{
        width: 45%;
    }
}
@media(max-width: 991px) {
    .bookinfo{
        width: 48%;
        padding: 50px 20px 20px 20px;
    }
}
@media(max-width: 768px) {
    .bookinfo{
        width: 66%;
        padding: 50px 60px 20px 60px;
    }
}
@media(max-width: 575px) {
    .bookinfo{
        width: 100%;
    }
    .banner__title{
        font-size: 25px;
    }
}
@media(max-width: 475px) {
    .bookinfo{
        padding: 50px 20px 20px 20px;
    }
}


/*Update Page Styling*/


/*Updates*/

.updates-content{
    padding: 60px 0 30px 0;
    background-color: #f1f1f1;
}
.updates, .like_updates {
    width: 100%;
    padding: 0px 20px;
    background-color: #f1f1f1;
    margin-bottom: 20px;
    border: 1px solid #bbbcbd;
    border-radius: 5px;
}
.updates.active,
.updates.open, 
.like_updates.open {
    background-color: #ffffff;
}
.updates__title{
    font-size: 20px;
    margin: 0;
    position: relative;
    font-weight: 500;
    color: #121a26;
    padding: 10px 0;
    cursor: pointer;
}
.updates__title::before {
    content: "";
    background-image: url(../images/down-arrow.svg);
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    opacity: 0.5;
    position: absolute;
    right: 0px;
    margin-top: 5px;
}
.updates.active .updates__title::before ,
.updates.open .updates__title::before {
    content: "";
    background-image: url(../images/add.svg);
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    opacity: 0.5;
    position: absolute;
    right: 0px;
    margin-top: 0px;
    transform: rotate(45deg);
}
.updates__tab{
    display: none;
    width: 100%;
    margin-top: 25px;
}
.updates__table{
    display: table;
    border-collapse: collapse;
    width: 100%;
    margin: 22px 0 32px 0;
    line-height: 1.2;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 25px 0 rgba(0,0,0,.15);
    -moz-box-shadow: 0 0 25px 0 rgba(0,0,0,.15);
    overflow: hidden;
}
.updates__link{
    display: block;
    width: fit-content;
    font-size: 20px;
    margin: 0;
    position: relative;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border: none;
    background-color: #6c7ae0;
    border-radius: 20px;
    padding: 10px 40px;
    margin-bottom: 20px;
}
thead{
    font-size: 18px;
    color: #fff;
    background-color: #6c7ae0;
    color: #ffffff;
}
thead th{
    padding-top: 18px;
    padding-bottom: 18px;
}
tbody{
    text-align: center;
    font-size: 15px;
    color: gray;
}
tbody tr:nth-child(even){
    background-color: #f8f7fe;
}
tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
}
@media(max-width: 425px) {
    .updates {
        padding: 10px;
    }
    thead{
        font-size: 13px;
    }
    tbody{
        font-size: 12px;
    }
}


/*Sundays Page Styling*/


/*Sundays*/

.sundays-content{
    padding: 60px 0 40px 0;
    background-color: #f1f1f1;
}
.sundays-body{
    padding: 30px 20px;
    background-color: #ffffff;
    border: 1px solid #bbbcbd;
    margin-bottom: 20px;
}
.sundays{
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.2;
    padding: 10px 0px;
    margin-bottom: 12px;
    border-bottom: 1px solid #bbbcbd;
}
.sundays__title{
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    color: #121a26;
}
.sundays__link{
    font-size: 16px;
    text-decoration: underline;
    font-weight: bold;
    margin: 0 5px;
    color: #6c7ae0;
}
.sundays__link--mod{
    text-decoration: none;
    color: #121a26;
    cursor: auto;
    font-weight: normal;
}
@media(max-width: 575px) {
    .sundays{
        display: block;
    }
    .sundays__title{
        margin: 10px 0 20px 0;
    }
    .sunday__refrence{
        margin: 10px 0;
    }
}


/* Sticky table headers, mathias@jpg.no May 2020 */
    TABLE.sticky { overflow: visible; }
    
    
    TABLE.sticky THEAD TH {
        position:-webkit-sticky;
        position:sticky;
        top: 80px;
        background-color: #6c7ae0;
        color: #ffffff;
    }
    TABLE.sticky THEAD TH:first-child {
        border-radius: 5px 0 0 0;
        }
    TABLE.sticky THEAD TH:last-child {
        border-radius: 0 5px 0 0;
        }

    TABLE.sticky THEAD {
        border-collapse: collapse;
        background-color: transparent;
    }

    TABLE.sticky THEAD TH::after {
        content: " ";
        width: 100%;
        height: 1px;
        background-color: black;
        position: absolute;
        bottom: 0;
        left: 0;
    }


/*Diagram page Styling*/


/*Diagram*/

.diagram-content{
    padding: 120px 0 70px 0;
    background-color: #f1f1f1;
}
.diagram{
    width: 100%;
}
.diagram--disabled a{
    cursor: context-menu;
    pointer-events: none !important;
}
.diagram--disabled .diagram__main,
.diagram--disabled .diagram__main:hover {
    filter: brightness(0.5);
    box-shadow: none;
}
.diagram__title{
    font-size: 24px;
    font-weight: bold;
    color: #24373b;
    text-align: left;
    text-transform: capitalize;
    margin-top: 0;
    margin-bottom: 30px;
}
.diagram__main{
    width: 100%;
    margin: 0;
    overflow: hidden;
    margin-bottom: 80px; 
    box-shadow: 0 0.125rem 1.25rem 0 hsla(0,0%,79.6%,.5);
}
.diagram__main:hover {
    box-shadow: 0 1.25rem 1.875rem 0 #e6e6e6;
}
.diagram__main img{
    width: 100%;
    height: 250px;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease-in-out 0s;
    object-fit: cover;
}
.diagram__subtitle{
    font-size: 20px;
    font-weight: bold;
    color: #24373b;
    text-align: left;
    text-transform: capitalize;
    margin: 20px 0 50px 0;
    display: block;
}
.diagram__sub{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
}
.diagram__sub__img{
    width: 23.6%;
    margin: 0;
}
.diagram__sub__img:not(:nth-child(4n+0)) {
    margin-right: 20px;
}
.diagram__sub__img img{
    width: 100%;
    height: 150px;
    display: block;
    object-fit: cover;
    object-position: top;
    filter: brightness(0.8);
    transition: filter 0.5s ease-in-out 0s,border 0.5s ease-in-out 0s;
    border: 1px solid #000000;
    background-color: #ffffff;
}
.diagram__sub__img img:hover {
    filter: brightness(1);
    border: 1px solid #f1f1f1;
}
.diagram__sub__img--disabled a,
.diagram__sub__img--disabled{
    cursor: context-menu;
    filter: brightness(0.5);
    pointer-events: none !important;
}
.diagram__sub__img--disabled img:hover{
    filter: brightness(0.8);
    border: 1px solid #000000;
}

/*Diagram Folder Styling*/


/*SubDiagram*/

.subdiagram-content{
    padding: 80px 0 0px 0;
}
.subdiagram{
    width: 100%;
}
.subdiagram__title{
    font-size: 24px;
    font-weight: bold;
    color: #24373b;
    text-align: center;
    text-transform: capitalize;
    margin-top: 0;
}
.subdiagram__main{
    overflow: auto;
    overflow-y: hidden;
    padding: 30px;
    background-color: #fff;
    margin: 0;
}
.subdiagram__main img{
    width: auto;
    height: 100%;
    display: block;
}


/*Summa Theologiae*/

.summa-element,
.john-element {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
}
.summa, 
.john {
    width: 48%;
}
.summa__title {
    font-size: 24px;
    font-weight: bold;
    color: #24373b;
    text-align: left;
    display: block;
    text-transform: capitalize;
    margin-top: 0;
    margin-bottom: 30px;
}
.summa__main {
    width: 100%;
    margin: 0;
    overflow: hidden;
    margin-bottom: 80px;
    box-shadow: 0 0.125rem 1.25rem 0 hsla(0,0%,79.6%,.5);
    background-color: #ffffff;
}
.summa__main img {
    width: 100%;
    height: 250px;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease-in-out 0s;
}
.subdiagram__main::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    /*border-radius: 10px;*/
    background-color: #F5F5F5;
}
.subdiagram__main::-webkit-scrollbar {
    height: 12px;
    background-color: #F5F5F5;
}
.subdiagram__main::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #6c7ae0;
}
.subdiagram__main svg a{ 
    text-decoration: underline;
    color: #6c7ae0;
}

/*Toc*/

.subtoc__main{
    padding: 30px;
    background-color: #fff;
    margin: 0;
}
.subtoc__main font{
    font-size: 24px !important;
    font-weight: bold;
    color: #24373b;
}
.subtoc__main span{
    margin: 0;
    font-weight: 500;
    color: #121a26;
}
.subtoc__main a{
    text-decoration: underline;
    font-weight: bold;
    margin: 0 5px;
    color: #6c7ae0;
}

@media (max-width: 992px) {
    .diagram-content{
        padding: 80px 0 30px 0;
    }
    .diagram__sub__img {
        width: 30%;
    }
    .diagram__sub__img:not(:nth-child(4n+0)) {
        margin-right: 0px;
    }
    .diagram__sub__img:not(:nth-child(3n+0)) {
        margin-right: 20px;
    }
    .summa-element,
    .john-element {
        display: block;
    }
    .summa, 
    .john {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .diagram__sub__img {
        width: 45%;
    }
    .diagram__sub__img:not(:nth-child(3n+0)) {
        margin-right: 0px;
    }
    .diagram__sub__img:not(:nth-child(2n+0)) {
        margin-right: 20px;
    }
}
@media (max-width: 575px) {
    .diagram__sub__img {
        width: 100%;
        margin: 0 !important;
    }
}