* {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    box-sizing: border-box;
}

html, body, div {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

.article {
    background-color: #ebebeb;
}

.header {
    height: 90px;
    margin: 5px;
    display:flex;
}

.header .logo {
    width: 272px;
    height: 90px;
    flex: 0 0 auto;
    margin-right: 10px;
    text-align: center;
}

.header .ads_728x90 {
    flex: 1 1 auto;
}

.ads_728x90 {
    /* border: 1px solid #ccc; */
    text-align: center;
    vertical-align: middle;
}

.ads_300x300 {
    height: 300px;
    width: 300px;
    text-align: center;
    vertical-align: middle;
}

.ads_horizontal {
    text-align: center;
}

.ads_mobile {
    display: none;
}

.header .logo img {
    width: 100%;
}

.menu {
    display:flex;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    background-color: #dedede;
    justify-content: center;
    margin: 5px 0;
}

.menu .calendar{
    flex: 0 0 auto;
    margin-left: 20px;
    margin-right: 5px;
    cursor: pointer;

}

.menu .pages {
    flex: 1 1 auto;
    display: inline-flex;
}

.menu .social {
    flex: 0 0 auto;
    margin-right: 20px;
    margin-left: 10px;
}

.menu .calendar .calendar_text {
    font-size: 14px;
    line-height: 40px;
    color: black;
    text-decoration: none;
    padding: 0;
    padding-right: 6px;
}

.menu .calendar button{
    color: black;
    cursor: pointer;
}

.menu .calendar button .icon, .menu .social .icon {
    line-height: 40px;
    margin-right: 5px;
    font-size: 16px;
    color: black;
}

#pagePDF {
    display: none;
    color: #f72210;
}

#datepicker {
    display: none;
}

.ui-datepicker-trigger{
    border:none;
    background:none;
}

.share {
    display:flex;
    width: 100%;
    height: 40px;
    vertical-align: middle;
    background-color: #234090;
    margin-bottom: 5px;
}

.share .options {
    flex-grow: 1;
    text-align: center;
    border-right: 5px dashed #ffffff;
    padding-top: 8px;
}

.share .options:last-child {
    border-right: 0;
}

.share .options .icon {
    line-height: 40px;
    font-size: 25px;
    color: white;
}

.newsfeed {
    padding: 5px;
    background-color: #f72210;
    color: white;
}

.newsfeed marquee a {
    font-size: 20px;
}

#newsFeedMiddle marquee, #newsFeedMiddle marquee a {
    color: white
}

#newsFeedFull {
    display: none;
}

.mainBody {
    margin: 10px 5px;
    display:flex;
}

.mainBody .leftAdd, .mainBody .rightAdd{
    flex: 0 0 auto;
    /* border: 1px solid #ccc; */
    width: 300px;
    text-align: center;
    vertical-align: middle;
}

.mainBody .centerBody {
    flex: 1 1 auto;
}

.mainBody .leftBody {
    flex: 1 1 auto;
    margin: 5px 5px 0 5px;
}

.mainBody .editions , .mainBody .page, .mainBody .noEdition {
    display: flex;
}

.mainBody .story {
    display: flex;
    width: 100%;
}

.mainBody .page .leftAdd {
    width: 200px;
}

.mainBody .editions .centerBody .content, .mainBody .page .centerBody .content, .mainBody .noEdition .centerBody .content {
    display:flex;
}

.mainBody .editions .centerBody .content .edition {
    flex-grow: 1;
    flex-basis: 0;
    border: 1px solid #f72210;
    margin-left: 5px;
    border-radius: 5px;
}

.mainBody .editions .centerBody .content .edition:last-child {
    margin-right: 5px;
}

.mainBody .editions .centerBody  .content .edition .edition_name {
    background-color: #f72210;
    text-align: center;
    font-size: 20px;
    padding: 5px;
    color: white;
}

.mainBody .page .centerBody .content {
    position: relative;
}

.mainBody .page .centerBody .content img {
    width: 100%;
    display: block;
    height: auto;
}

.mainBody .story .leftBody .content {
    text-align: center;
}

.mainBody .story .leftBody .content img {
    max-width: 100%;
}

.prePage, .nextPage {
    position: absolute;
    top: calc(50% - 10px);
    padding: 5px;
    border-radius: 30px;
    background-color: #f9f9f9c7;
}

.prePage {
    left: 0;
}

.nextPage {
    right: 0;
}

.prePage .icon, .nextPage .icon {
    line-height: 40px;
    font-size: 40px;
    color: red;
}

.selectedEdition {
    text-align: center;
    vertical-align: middle;
    justify-content: center;
}

.selectedEdition .editionName {
    font-size: 14px;
    line-height: 40px;
    color: black;
    background-color: #dedede;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
}

.selectedEdition .editionName .allEditions {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 0% 5%;
    text-align: left;
}
.selectedEdition .editionName .allEditions a {
    line-height: 30px;
    color: #f72210;
    display: block;
    width: 100%;
    border-bottom: 1px dotted #ffd335;
    text-transform: uppercase;
}

.selectedEdition .editionName:hover .allEditions {
    display: block;
}

.selectedEdition .subEdition {
    line-height: 40px;
    display: flex;
}


.selectedEdition .section{
    flex-grow: 1;
    flex-basis: 0;
    font-size: 14px;
    line-height: 40px;
    color: white;
    background-color: #f72210;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ffd335;
    border-right: 0;
}

.selectedEdition .section:first-child {
    border-left: 0;
}

.selectedEdition .selected {
    background-color: #f3897f
}

.editionPages {
    min-height: 800px;
    overflow: auto;
    display: none;
}

.editionPages .pageThumb {
    border: 1px #f72210 solid;
    margin: 10px;
    border-radius: 10px;
}

.editionPages .selected {
    border: 1px #ffd335 solid;
}

.editionPages .pageThumb img {
    width: 100%;
    border-radius: 9px 9px 0 0;
}

.editionPages .pageThumb .pageNo {
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
    line-height: 20px;
    background-color: #f72210;
    color: white;
    border-radius: 0 0 9px 9px;
}

.editionPages .selected .pageNo {
    background-color: #ffd335;
    color: black;
}

.pageStory {
    display: block;
    position: absolute;
    transition: box-shadow 0.15s ease-in-out;
}

.pageStory:hover {
    background-color: #f722101f;
    box-shadow: 0px 0px 1vw rgba(0,0,0,0.5);
}

.mainBody .noEdition .centerBody .content .message, .mainBody .story .leftBody .content .message {
    margin: 30% 5px;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
    color: #869096;
}

.footer {
    line-height: 40px;
    background-color: #dedede;
    color: black;
    text-align: center;
    font-size: 12px;
}

.loaderContainer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: #6666667a;
    display: none;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    margin: -28px 0 0 -28px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.storyInfo {
    background-color: #ffffff;
    display: inline-block;
    margin: 5px;
    margin-top: 0px;
}
  
/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 1023px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        margin: 5px 0;
    }

    .header .logo, .header .ads_728x90 {
        flex: 1 100%;
    }

    .header .logo {
        width: auto;
        height: auto;
        margin-right: 0;
    }

    .header .logo img {
        width: 20%;
    }

    .selectedEdition .editionName {
        font-size: 12px;
    }

    .mainBody {
        margin: 5px 0px;
    }

    .mainBody .leftAdd, .mainBody .rightAdd {
        display: none;
    }

    .mainBody .page {
        flex-wrap: wrap;
    }

    .mainBody .page .leftAdd, .mainBody .page .centerBody {
        display: block;
        flex: 1 100%;
    }

    .editionPages {
        min-height: auto;
        padding: 5px 0;
    }

    .editionPages .pageThumb {
        margin: 1px;
        display: inline-block;
    }

    .editionPages .pageThumb img {
        display: none;
    }
    
    .editionPages .pageThumb .pageNo {
        border-radius: 9px;
        display: inline-block;
        padding: 2px 5px;
    }

    .footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        line-height: 20px
    }
}

@media only screen and (max-width: 600px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        /* margin: 5px 0; */
        margin: 0px;
    }

    .header .logo, .header .ads_728x90 {
        flex: 1 100%;
    }

    .header .logo {
        width: auto;
        height: auto;
        margin-right: 0;
    }

    .ads_728x90 {
        display: none;
    }

    .ads_mobile {
        display: block;
    }

    .header .logo img {
        width: 60%;
    }

    .menu .calendar {
        margin-left: 5px;
        margin-right: 5%;
    }

    .calendar_text {
        font-size: 14px;
    }

    .menu .social {
        margin-left: 5%;
        margin-right: 5px;
    }

    .menu .social .icon {
        font-size: 12px;
    }

    #newsFeedMiddle {
        display: none;
    }

    #newsFeedFull {
        display: block;
    }

    .selectedEdition .editionName {
        font-size: 12px;
    }

    .mainBody .leftAdd, .mainBody .rightAdd {
        display: none;
    }

    .mainBody .editions .centerBody .content {
        flex-wrap: wrap;
    }

    .mainBody .editions .centerBody .content .edition {
        flex: 1 100%;
        margin-bottom: 10px;
    }

    .mainBody .page {
        flex-wrap: wrap;
    }

    .mainBody .page .leftAdd, .mainBody .page .centerBody {
        display: block;
        flex: 1 100%;
    }

    .editionPages {
        min-height: auto;
        padding: 5px 0;
    }

    .editionPages .pageThumb {
        margin: 1px;
        display: inline-block;
    }

    .editionPages .pageThumb img {
        display: none;
    }
    
    .editionPages .pageThumb .pageNo {
        border-radius: 9px;
        display: inline-block;
        padding: 2px 5px;
    }

    .share .options {
        border-right: 3px dashed #f3897f;
        padding-top: 10px
    }
    
    .share .options .icon{
        font-size: 18px;
    }
}