/*---------------------------------------------------*\
                    CORE ELEMENTS
\*---------------------------------------------------*/

/*@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700");*/

body {
    margin: 0;
    height: 100vh;
    width: auto;
    /*font-family: 'Poppins', sans-serif !important;*/
    background: #efefef;
    line-height: 1.1rem;
}

p {
    font-size: 1rem;
    font-weight: 300;
    color: #999;
}

/*---------------------------------------------------*\
                      WRAPPERS
\*---------------------------------------------------*/

.wrapper {
    display: flex;
    width: 100%;
    height: 94vh;
}

#carousel-wrapper {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    height: 15%;
}

.map-wrapper {
    width: 100%;
    height: 100%;
}

.row.map-wrapper {
    height: 85%;
    margin: auto;
}

.row.active-nets {
    height: 70%;
}

/*---------------------------------------------------*\
                      CONTENT
\*---------------------------------------------------*/

#content {
    width: 100%;
    height: 100%;
    transition: all 0.35s;
}

#content.active {
    width: calc(100% - 250px);
}

#map {
    width: 100%;
    height: 100%;
}

#map-stats {
    display: flex;
    flex-flow: row wrap;
    width: 50%;
    z-index: 999999;
    position: absolute;
    left: 25%;
}

#map-stats-nets,
#map-stats-adjs,
#map-stats-cirs,
#map-stats-pops {
    display:flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: flex-end;
    width:33%;
    padding: 0 2px 0 2px;
}

.map-stat {
    height:auto;
    font-size: 2em;
    color: #343A40;
    transition: all 0.25s ease 0s;
}

.map-stats-header {
    width: 100%;
    background: rgba(53,58,63,0.7);
    text-align: center;
    color: white;
    font-style: italic;
}

.adj-info *,
.leaflet-control-container * {
    border-radius: 0 !important;
}

div.leaflet-bottom.leaflet-right {
    left: 0px;
    right: auto;
    max-width: 50%;
}

div.leaflet-control-attribution {
    background: rgba(255,255,255, 0.5) !important;
    font-size: 0.8em !important;
}

div.leaflet-control-attribution * {
    color: black !important;
}

/*---------------------------------------------------*\
                        LINKS
\*---------------------------------------------------*/

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.15s;
}

a[data-toggle="collapse"] {
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

a.dropdown-toggle[aria-expanded="true"]:after {
    transform: rotate(90deg);
}

a.dropdown-toggle:after {
    transition: 0.3s;
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
}

/*---------------------------------------------------*\
                        NAVBAR
\*---------------------------------------------------*/

.navbar {
    z-index: 99999;
    height: 6vh;
    width: 100%;
    display:flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    min-height: 45px;
    max-height: 60px;
    background-color: #343A40;
    border: none;
    border-radius: 0;
    padding:0;
}

/* About & Participate Links */
.ml-auto {
    margin-left: 10px !important;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content:center;
    height: 6vh;
    width:6vh;
    min-height: 45px;
    max-height: 60px;
    min-width: 45px;
    max-width: 60px;
    padding: 0;
    box-shadow: none;
    outline: none !important;
    border: none;
    border-radius: 0;
    margin: 0 auto 0 0;
    margin-right: auto;
    background-color: transparent;
    transition: all 0.2s;
}

.navbar-menu i {
    color: #FFFFFF;
    transition: all 0.2s;
}
/*
.navbar-menu:hover {
    background-color: #fff;
}
*/
.navbar-menu:hover i {
    transform: rotate(180deg);
}

.navbar-brand {
    color: #FFFFFF;
    margin-right: 1rem;
    margin-left: 1rem;
}

.navbar-brand:visited,
.navbar-brand:hover,
.navbar-brand:active {
    color: #FFFFFF;
}

.navbar-brand:hover {
    font-weight: bold;
}

/*---------------------------------------------------*\
                      SIDEBAR
\*---------------------------------------------------*/


#sidebar {
    display: flex;
    flex-flow: column nowrap;
    margin-left: -250px;
    width: 250px;
    left: 0;
    height: 100%;
    z-index: 999;
    background-color: #343A40;
    color: #FFFFFF;
    transition: all 0.35s;
}

#sidebar.active {
    margin-left: 0;
}

#sidebar .sidebar-header {
    padding: 10px;
    border-bottom: 1px solid #555555;
    text-align: center;
    border-top: 1px solid #555555;
}

.sidebar-section-header {
    display: block;
    width: 100%;
    padding: 14px 10px;
    background: #23272b;
    font-size: 12px;
    border: none;
    color: white;
    text-align: left;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-header p {
    color: #FFFFFF;
}

span.input-group-text {
    border-radius: 0 !important;
    border: none;
    background-color: #D0CFD4;
    color: #343A40;
}

.input-group input.form-control {
    border-radius: 0 !important;
    border: none;
    background-color: #FFFFFF;
    color: #343A40;
}

#sidebar .sidebar-footer {
    margin-top: auto;
    width:100%;
    padding: 10px;
    border-top: 1px solid #555555;
}

.sidebar-footer p {
    color: white;
}

.sidebar-footer a img {
    transition: all 0.3s ease;
}
.sidebar-footer a:hover img {
    transform: scale(1.1);
}

#sidebar ul {
    transition: all 0.25s;
}

#sidebar ul.components {
    overflow-y: scroll;
    padding: 20px 0;
    padding-top: 8px;
    border-bottom: 1px solid #555555;
}

#sidebar ul.components:nth-child(1) {
    padding: 10px;
    border-bottom: 1px solid #555555;
}

#sidebar ul p {
    color: #FFFFFF;
    padding: 10px;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    font-weight: bolder;
}

#sidebar li[role=presentation] {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content:flex-start;
    margin-top:3px;
    width: 100%;
}

#sidebar li[role=presentation] a {
    padding: 0;
    margin-top:3px;
    width: 100%;
}

#sidebar li[role=presentation] i {
    margin-left:auto;
    margin-right: 10px;
}


#sidebar #layersOn,
#sidebar #layersOff {
    margin-bottom:20px;
    border-radius:0.15rem;
}

.map-group-options {
    display: block;
    margin-top: 5px;
    padding: 10px;
    font-size: 0.9em;
    cursor: pointer;
}

.map-group-options.selected {
    background: #60666b;
}

.map-group-options:hover {
    background: #212529;
}

.continent-options {
    margin-top: 5px;
    padding: 10px;
    font-size: 0.9em;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
}

.dropdown-toggle::after {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.continent-options a {
    margin-right:auto;
    transition: all 0.2s ease;
}

.continent-options a:hover {
    font-weight: bolder;
}

.continent-options span a:hover {
    font-weight: normal;
}

.continent-options span.btn {
    font-size: 11px;
    margin:3px 0px 3px 6px;
    padding: 0 3px;
    border-radius: 0 !important;
}

#searchList {
    padding: 0px;
}

.nav-link:hover {
    font-weight: bold;
}


/*---------------------------------------------------*\
                      SCROLLBAR
\*---------------------------------------------------*/

/* Remove sidebar scrollbar FF */
ul#continentList {
    scrollbar-width: none;
}

/* Remove sidebar scrollbar Webkits */
ul#continentList::-webkit-scrollbar,
ul#continentList::-webkit-scrollbar-track {
    display: none;
}

/* 2 Definitions for sidebar scroll and footer */
#mCSB_1_container {
    display:flex;
    flex-flow: column nowrap;
    height: 100%;
/* Next 3 prevent sidebar scrolling from going nuts */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

#mCSB_1_scrollbar_vertical {
    display: none !important;
}



/*---------------------------------------------------*\
                        CARDS
\*---------------------------------------------------*/

.card {
    height: 100%;
    background: #D0CFD4;
    color: #D0CED4;
    border-radius: 0px;
    border-color: #D0CED4;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #2D2D2D;
}

.card:not(.slick-active) {
    opacity: 1 !important;
    transition: all 0.25s ease;
}

.card-text {
    color: #2D2D2D;
    line-height: 1em;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 6;
}

.card-body {
    padding: 10px;
}

.net-logo {
    display: flex;
    align-items:center;
    justify-content:center;
    height: 78%;
    width: 100%;
    padding:0% 2.5%;
    object-fit: contain;
    position: absolute;
    left: 0;
    bottom: 10%;
}

.net-no-logo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2%;
    font-size: 1.2em;
    color: #2D2D2D;
}

.card-header {
    margin: 0;
    padding: 0;
    height: 30%;
    display: flex;
    align-items: center;
}

.nav-fill{
    padding: 5px;
    margin: 0;
    width: 100%;
    height: 20%;
}

.nav-fill .button {
    text-align: center;
    height: 100%;
    float: left;
}

.card-name {
    height: 7%;
}

.card-buttons {
    display: flex;
    flex-flow: row nowrap;
}

.button .btn {
    margin: 0;
    margin-left: 2px;
    padding: 0.2em;
}
.nav-item .btn {
    margin: 0;
    margin-left: 2px;
    padding: 0.2em;
}
/* Modal window */
.modal.fade {
    z-index: 999999 !important;
}

/*  card-button tooltip functionality  */
.btn .button-tooltip {
    visibility: hidden;
    width: 100%;
    background-color: rgb(52,58,64);
    color: #FFFFFF;
    text-align: center;
    font-size: 0.9em;
    padding: 2px 5px;
    border-radius: 0.15rem;
    position: absolute;
    bottom: 0;
    left: 0;
    white-space: normal;
    z-index: 1001;
}

.btn:hover .button-tooltip {
    visibility: visible;
}

/*---------------------------------------------------*\
                    NETWORK INFO
\*---------------------------------------------------*/

.network-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    height: auto;
    width: 250px;
    background: rgba(53,58,63,0.75);
    color: #FFFFFF;
    z-index: 99999;
}

.network-header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(80,80,80,0.7);
}

.network-title {
    color: #FFFFFF;
    margin: 0;
}

.network-header button {
    order: 3;
    padding: 0px;
    color: #FFFFFF;
}

.network-logo {
    height: auto;
    width: 30%;
    object-fit: contain;
}

.network-body p {
    margin: 1px 1px;
    font-weight: 400;
    color: #FFFFFF;
}

.network-footer {
    display: flex;
    padding-top: 2px;
    border-top: 1px solid rgba(80,80,80,0.7);
}

.network-footer a {
    text-decoration: none;
    color: #B7C933 !important;
    transition: all 0.25s ease;
}

.network-footer a:hover {
    color: #6DCAD7;
    font-weight: bold;
}

/*---------------------------------------------------*\
                    SLICK CAROUSEL
\*---------------------------------------------------*/

#network-carousel {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    margin: auto;
    height: 85%;
}

.slick-list {
    display: flex;
    width:81.5%;
    height: 100%;
    padding: 5px;
}

/* Carousel Arrows */
.slick-prev,
.slick-next {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 10%;
}

html div.atlas-legend.horizontal {
    left: 5px !important;
}

html div.atlas-legend.horizontal .numbers {
    color: #d0d1ca;
}

.slick-prev:before {
    color: black !important;
    content: "\003c" !important;
    font-weight: bold !important;
}

.slick-next:before {
    color: black !important;
    content: "\003e" !important;
    font-weight: bold !important;
}

.slick-track {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.slick-dots {
    position: relative !important;
    bottom: 0;
    height:15%;
}


/*---------------------------------------------------*\
               ABOUT & PARTICIPATE PAGES
\*---------------------------------------------------*/
#about-body {
    width:100%;
    height:100%;
}

#about-wrapper {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 2rem;

}

#about-wrapper h1,
#about-wrapper h5 {
    width: 100%;
    text-align: center;
    color: #343A40;
    border-bottom: 2px solid #dbdada;
}

#about-wrapper h5 {
    margin-top:10px;
}

#about-footer {
    display:flex;
    flex-flow: column nowrap;
    align-items: center;
    width:100%;
}

#about-footer .images-wrapper {
    display:flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    width:100%;
}

#about-footer .footer-img-wrap {
    width: 300px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about-footer .footer-img {
    display: block;
    height: 100%;
    width: 200px;
    object-fit: contain;
}

.about-content {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
    align-items: center;
    justify-content: space-around;
}

#brand,
.about-content p a {
    font-weight: bold;
    color: firebrick;
}

.about-content p {
    color: #343A40;
    margin-top: 10px;
    max-width: 1000px;
}

#about-map {
    width: 100%;
    max-width: 1000px;
    height: auto;
}

/*---------------------------------------------------*\
                    MEDIA QUERIES
\*---------------------------------------------------*/


/* Extra small devices (600px and down) */
@media screen and (max-width: 600px) {
    .network-container {
        display: none !important;
    }

    .navbar-menu i,
    .navbar-brand {
        font-size: 1.15em;
    }

    #carousel-wrapper {
        display: none !important;
    }
    .row.map-wrapper {
        height: 100% !important;
    }

    .network-container {
        display: none;
    }


    #map-stats {
        width: 70%;
        left: 15%;
    }
    .map-stat {
        font-size: 1em;
    }
    .map-stats-header {
        font-size: 0.8em;
    }

    #sidebar {
        width: 100%;
        margin-left: -100%;
    }

    #sidebar.active {
        margin-left: 0;
    }
    #content.active {
        width: 0;
        margin-right:-100%;
        display: none;
    }

    .sidebar-footer a img {
        width: 40% !important;
    }

    div.continent-options a,
    ul.list-unstyled li {
        font-size: 1.1em !important;
    }
    ul.list-unstyled li {
        margin-top:6px !important;
    }
    

}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .nav-item .btn i,
    .card-text,
    .card-name h6 {
        font-size: 0.7rem !important;
    }

    .nav-item .mx-auto {
        display: block !important;
    }

    .navbar-menu i,
    .navbar-brand {
        font-size: 1.2em;
    }

    #carousel-wrapper {
        display: none !important;
    }
    .row.map-wrapper {
        height: 100% !important;
    }

    .network-container {
        display: flex;
        width: 250px;
        bottom: 0;
        top:auto;
    }
    .network-body p,
    .network-header button {
        font-size: 1em;
    }
    .network-header h4 {
        font-size:1.4em;
    }

    #map-stats {
        width: 70%;
        left: 15%;
    }
    .map-stat {
        font-size: 1.5em;
    }
    .map-stats-header {
        font-size: 1em;
    }

    .sidebar-footer a img {
        width: 80%;
    }

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .nav-item .btn i,
    .card-text,
    .card-name h6 {
        font-size: 0.8rem !important;
    }

    .navbar-menu i,
    .navbar-brand {
        font-size: 1.4em;
    }

    #carousel-wrapper {
        display: flex !important;
    }
    .row.map-wrapper {
        height: 85% !important; 
    }

    .network-container {
        display: flex;
        width: 250px;
        bottom: 0;
        top:auto;
    }
    .network-body p,
    .network-header button {
        font-size: 1em;
    }
    .network-header h4 {
        font-size:1.4em;
    }

    #map-stats {
        width:50%;
        left:25%;
    }
    .map-stat {
        font-size: 1.7em;
    }
    .map-stats-header {
        font-size: 1em;
    }

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .nav-item .btn i,
    .card-text,
    .card-name h6 {
        font-size: 0.9rem !important;
    }
    .net-no-logo {
        font-size: 1.8em;
    }

    .navbar-menu i,
    .navbar-brand {
        font-size: 1.5em;
    }

    .network-container {
        width: 200px;
        top: 0;
        bottom: auto;
    }
    .network-body p {
        font-size: 1.1em;
    }
    .network-header h4,
    .network-header button {
        font-size: 1.6em;
    }

    .map-stat {
        font-size: 2em;
    }
    .map-stats-header {
        font-size: 1em;
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .nav-item .btn i,
    .card-text,
    .card-name h6 {
        font-size: 1rem;
    }
    .net-no-logo {
        font-size: 2.2em;
    }

    .network-container {
        width:250px;
    }
    .network-body p {
        font-size: 1.3em;
    }
    .network-header h4 {
        font-size: 2em;
    }

    #map-stats {
        width: 30%;
        left: 35%;
    }
    .map-stat {
        font-size: 2em;
    }
    .map-stats-header {
        font-size: 1em;
    }
}
