﻿body{ letter-spacing: 0.7px; }

.d8-specific{
    display: none;
}

h2.custom-nabvar-title{
    display: inline !important;
    font-weight: bold !important;
}

.m-badge.m-badge--rounded {
    border-radius: 1rem;
    font-size: 11px;
}
.m-badge.m-badge--wide {
    padding: 1px 5px;
}

.m-datatable__table tbody tr{
    cursor: pointer;
}
a.country img{
    height: 32px;
    /*box-shadow: 3px 4px 10px -2px rgba(0,0,0,0.75);*/
}
.m-datatable__table a.country{
    cursor: pointer;
    color: #36a3f7!important;
}
.m-datatable__table a.country:hover{
    text-decoration: underline;
}
.m-datatable__table tr.active{
    border-left: 3px solid gold!important;
}
.m-datatable__table tr.active.m-datatable__row--even/*>.m-datatable__cell*/{
    border-left: 3px solid gold!important;
}
.m-datatable__table a.articles{
    cursor: pointer;
    color: #36a3f7!important;
    text-decoration: underline;
    padding: 15px;
}

/* normalization buttons, temporarily disable */
#normalization-chooser>button{
    padding: 3px 5px;
}

/* continent/country group chooser */
.m-portlet__head-caption{
    min-width: 65%;
}
.m-portlet__head-tools{
    width: 35%;
    max-width: 180px;
}

.btn-group{
    padding: 3px 5px!important;
}
.dropdown-menu{
    width: 240px;
}
.dropdown-menu>.dropdown-item{
    display: inline-block!important;
    border-radius: 15px;
    border: 1px solid silver;
    width: auto;
    min-width: 60px;
    text-align: center;
    padding: 0.4rem 0.6rem;
    margin: 4px 2px;
}
.btn.dropdown-toggle:after{
    float: right;
    margin: 6px 10px;
}

.threshold-chooser>button{
    padding: 3px 5px;
}

#country-group-chooser{
    width: 100%;
}
#country-group-chooser>button{
    margin-top: 5px;
    min-width: 90px;
    width: 100%;
    padding: 3px 5px;
}

#m_datatable_1k .m-datatable__cell span{
    font-weight: bold;
}

.blink_me {
    overflow: hidden;
    text-align: center;
    animation: blinker 3s linear 4;
}
  
@keyframes blinker {
    50% { opacity: 0 }
}

/* this will open from right to the left side of pie chart */
#page-overlay{
    position: fixed;
    top: 50px;
    right: 0;
    padding: 0;
    height: calc( 100% - 50px );
    width: 0;
    z-index: 1100;
    background: #fff;
    opacity: 0.97;
    background-color: #ececec; 
    overflow-x: hidden;
    overflow-y: hidden;

    -webkit-box-shadow: -5px 6px 10px -4px #333;
    -moz-box-shadow: -5px 6px 10px -4px #333;
    box-shadow: -5px 6px 10px -4px #333;

    /* animate when opening closing */
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}
#page-overlay.show{
    width: 75%;
    padding: 0 10px;
}
#page-overlay .time-chart{
    /*height: calc( 50% - 45px );*/  /* two charts in view */
    height: calc( 100% - 60px );  /* one charts in view */
    margin-bottom: 10px; 
    background: #fff;
    border-radius: 5px;
    border: 1px solid silver;
}
#page-overlay #chart-controls{
    text-align: center;
    height: 50px;
}
#page-overlay #chart-controls>a{
    display: inline-block;
    padding: 2px 15px;
    font-size: 22px;
    cursor: pointer;
    color: gray;
    text-decoration: none;
}
#page-overlay #chart-controls>a:hover{
    color: #333;
}
.summary-badge{
    cursor: pointer;
    /*display: inline-block !important; */
    margin-left: 1rem !important;
    float: right;
    margin-top: 6px;
}
.switch-buttons{
    cursor: pointer;
    /*display: inline-block !important; */
    margin-left: 0.2rem !important;
    float: right;
    margin: 6px 0;
}
.switch-buttons>.m-badge{
    min-width: 40px!important;
}

#map-titles{
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    font-weight: bold;
    color: #136884;
    z-index: 10;
}
#pie-title{
    display: inline-block;
    height: 15px;
    width: 300px;
    text-align: left;
}
#pie-title-vert{
    height: 15px;
    font-weight: bold;
    display: none;
}
#map-title{
    display: inline-block;
    height: 15px;
    width: calc( 100% - 305px );
    text-align: center;
}
#map_chartdiv{
    height: 400px;
}
.switch-buttons>*{
    display: inline-block;
    margin-bottom: 2px;
    padding: 2px 5px!important;
    font-size: 1rem!important;
}
#map-data-buttons>*{
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 1px!important;
    min-width: 125px;
    font-size: 12px!important;
}
#map-data-buttons>h5{
    width: 100%;
    text-align: left;
}
.covid-piechart{
    position: absolute;
    width: 20%;
    height: calc( 100% - 20px );
    left: 0px;
    bottom: 0;
    /*8border-radius: 5px;*/
    /*background-color: #0004;*/
    opacity: 1;
    border: 0px solid silver;
}
#pie-chartdiv-vert{
    display: none;
}
@media (orientation: portrait) {
    #page-overlay {
        top: 0;
        width: 100%!important;
        height: 0;
        padding: 0;
    }
    #page-overlay.show{
        height: calc( 100% - 215px );
        padding: 0 2px;
    }
    
    #map-titles{
        margin-top: -5px;
    }
    #pie-title{
        display: none;
    }
    #pie-title-vert{
        display: block;
        padding: 10px;
    }
    #map-title{
        width: calc(100% - 5px );
    }
    #map-data-buttons{
        /*
        display: inline-block;
        width: calc( 40% - 10px );
        margin-right: 10px;
        */
        text-align: center;
    }
    #map-data-buttons>h5{
        width: 64%;
    }
    .map-data-button{
        width: 32%;
    }
    .m-portlet__head{
        padding: 0 1.2rem!important;
    }
    .m-portlet__head-caption{
        width: 65%!important;
    }
    .m-portlet__head-tools{
        width: 35%!important;
    }
    .m-portlet__head-title{
        display: block!important;
        margin-top: 5px;
    }
    .m-portlet__head-title>*{
        display: inline-block!important;
        width: 100%!important;
    }
    .switch-buttons{
    }

    .covid-piechart{
        width: 0;
        display: none;
    }
    #pie-chartdiv-vert{
        /*
        display: inline-block;
        vertical-align: top;
        width: calc( 60% - 10px );
        height: 210px;
        margin-top:22px;
        */
        display: block;
        margin-top: 0px;
        width: 100%;
        height: 185px;
        border: 0px solid silver;
    }
}

@media (max-width: 365px) {
    h2.custom-nabvar-title {
        font-size: 1.2rem !important;
        transition: 0.1s;
    }
    #map-data-buttons>h5{
        width: 48%;
    }
    #map-data-buttons>h5+button{
        width: 48%;
    }
    .map-data-button{
        width: 48%;
    }
}

@media (min-width: 366px) {
    h2.custom-nabvar-title {
        font-size: 1.6rem !important;
        transition: 0.1s;
    }
}


@media (min-width: 1025px) {
    .m-body .m-wrapper {
        margin-top: 10px;
        border-radius: 6px;
        padding: 20px;
    }

    .m-body .m-content {
        padding: 0 !important;
    }

    .m-page--fluid .m-page .m-page__container {
        padding: 0 20px;
    }
}

@media (max-width: 1024px)
{
    
    .m-header--fixed-mobile .m-body {
        padding-top: 20px !important;
    }

    .m-portlet .m-portlet__head {
        padding: 0 0.5rem!important;
    }
    .m-portlet .m-portlet__body {
        padding: 0.5rem 0.5rem!important;
    }
    
    .custom-column-empty-space {
        width: 0.5rem!important;
    }
}

@media (max-width: 720px)
{
    .m-body .m-wrapper {
        padding: 4px;
        transition: 0.1s;
    }

    .m-page--fluid .m-page .m-page__container {

        padding: 0 !important;
        transition: 0.1s;

    
    }
    .m-header--fixed-mobile .m-body {
    
        padding-top: 0px !important;
        transition: 0.1s;
    
    }
    .m-widget1__title{
        font-size: 1rem !important;
        transition: 0.1s;
    }
    .m-widget1__number{
        font-size: 1.2rem !important;
        transition: 0.1s;
    }
}

.covid-map{
    width: 100%;
    min-height: 100px;
}

.m-body .m-content {
    padding: 0 !important;
}

.recent-articles-container {
    overflow-y: auto;
    height: 100px;
    /*padding: 0 1.5rem;*/
    margin-top: 0.5rem;
}

#recent-articles-tbody tr{
    background-color: none!important;
    border-color: none!important;
}
.recent-articles-table th,
.recent-articles-table td {
    padding: 0.1rem;
    vertical-align:middle;
}

.custom-column-empty-space{
    width: 1.5rem;
}
/* The sidepanel menu */
.menu-side-panel {
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    right: 0;
    background-color: #ececec; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
    height: 100%;
    margin-top: 50px;
}
  
/* The sidepanel links */
.menu-side-panel a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 15px;
    color: #818181;
    display: block;
    transition: 0.3s;
}
  
/* When you mouse over the navigation links, change their color */
.menu-side-panel a:hover {
    color: #343434;
}
  
/* Position and style the close button (top left corner) */
a.closebtn {
    position: absolute;
    top: 0;
    font-size: 36px!important;
    margin-right: 49px;
    margin-left: 10px;
    color: #818181;
    text-decoration: none;
}
a.closebtn:hover{
    color: #343434;
}

.menu-side-panel form {
    padding: 8px 32px 8px 32px;
    display: block;
    transition: 0.3s;
}


a.custom-m-link {
    font-size: 1rem !important;
}

@media (max-width: 720px) {
    a.custom-m-link {
        font-size: 0.8rem !important;
        transition: 0.1s;
    }
}

.m-list-timeline__time{
    width: 50px !important;
}

.custom-article-link {
    color: #575962 !important;
}

.custom-article-link a:hover{
    color: #343a40 !important;
    text-decoration: none;
}