/* common.css */

@font-face {
    font-family: "Konnect Regular";
    font-style: normal;
    font-weight: normal;
    src: url("https://www.lifelong-learning.lu/wwwroot/fonts/KonnectRegular.woff") format("woff");
}

@font-face {
    font-family: "Konnect Regular";
    font-style: normal;
    font-weight: bold;
    src: url("https://www.lifelong-learning.lu/wwwroot/fonts/KonnectBold.woff") format("woff");
}

@font-face {
    font-family: "Konnect Black";
    font-style: normal;
    font-weight: normal;
    src: url("https://www.lifelong-learning.lu/wwwroot/fonts/KonnectBlack.woff") format("woff");
}

html, body, form, table, td {
    font-family: "Konnect Regular", Arial, helvetica, sans-serif;
    font-size: 13px;
    padding: 0;
    margin: 0;
    height: 100%;
}

body {
    background-image: url(../img/hourglass.png);
    background-repeat:no-repeat;
    background-position: center center;
    background-size: 128px 128px;
    height: 100%;

}

#mainform {
    background-color: #ffffff;
}

.hidden {
    display: none;
}

/* Site header -------------------------------------------------------------- */

#site-header {
    /* https://css-tricks.com/snippets/css/a-guide-to-flexbox/ */
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    margin: 10px;
}

#site-identity {
    display: inline-flex;
    align-items: center;
}

#site-logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: inline-block;
    background-image: url(../img/site-logo.png);
    background-repeat: no-repeat;
    background-size: contain;
}

#site-title {
    margin-left: 10px;
    color: #000000;
    text-transform: uppercase;
    font-size: 2em;
    margin-right: 10px;
}

#site-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-image: url(../img/site-avatar.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    border: 5px solid #fff;
    border-radius: 64px;
    box-shadow: 2px 2px 3px #e5e5e5;
}

/* No data found ---------------------------------------------------------- */
.no-data {
    margin: 50px auto;
    width: 50%;
    background-color: #d0103a;
    background-image: url(../img/nodata.png);
    background-repeat: no-repeat;
    background-size: 60px 60px;
    padding: 30px 30px 30px 100px;
    background-position: 20px 20px;
    min-height: 30px;
    font-size: 2.2em;
    color: #ffffff;
}

    .no-data .teaser {
        display: block;
        font-size: 0.7em;
        margin-top: 10px;
    }

    .no-data a {
        width: 200px;
        display: block;
        margin: 20px 0px 0px auto;
        text-decoration: none;
        background-color: #ffffff;
        color: #d0103a;
        font-size: 0.6em;
        text-align: center;
        padding: 10px;
        text-transform: uppercase;
    }

    .no-data a {
        width: 200px;
        display: block;
        margin: 20px 0px 0px auto;
        text-decoration: none;
        background-color: #ffffff;
        color: #d0103a;
        font-size: 0.6em;
        text-align: center;
        padding: 10px;
        text-transform: uppercase;
    }

        .no-data a:hover {
            opacity: 0.8;
        }

/* If the screen size is 480px wide or less */
@media screen and (max-width: 480px) {
    #site-title {
        font-size: 1.3em;
    }

    .ct-label {
        font-size: 0.9em !important;
    }
}


/* Misc decorations ------------------------------------------------------- */

.icon-organism {
    background-image: url(../img/organism.png);
    background-position: center 120px;
    background-repeat: no-repeat;
}

.icon-training {
    background-image: url(../img/training.png);
    background-position: center 130px;
    background-repeat: no-repeat;
}

/* If the screen size is 480px wide or less */
@media screen and (max-width: 480px) {
    .icon-organism,
    .icon-training {
        background-image: none !important;
    }
}

.large-icon {
    text-align: center;
    width: 300px;
}

/* If the screen size is 480px wide or less */
@media screen and (max-width: 480px) {
    #site-title {
        font-size: 1.3em;
    }

    .ct-label {
        font-size: 0.9em !important;
    }
}

/* Site menu -------------------------------------------------------------- */

#site-navigation,
#site-filters {
    display: flex;
    flex-wrap: wrap;
}

.menu-item {
    color: #777777;
    background-color: #e5e5e5;
    padding: 0px 20px 0px 48px;
    margin: 2px 10px;
    height: 40px;
    line-height: 40px;
    min-width: 160px;
    font-size: 1.3em;
    text-transform: uppercase;
    background-size: 32px 32px;
    background-repeat: no-repeat;
    background-position: 10px 4px;
    border-bottom: 4px solid #cccccc;
    cursor: pointer;
}

    .menu-item:hover {
        opacity: 0.6;
    }

#menu-perfs {
    background-image: url(../img/dashboard.png);
}

#menu-trends {
    background-image: url(../img/compas.png);
}

#menu-audience {
    background-image: url(../img/people.png);
}

#menu-search {
    background-image: url(../img/calendar.png);
    margin-left: auto;
}

#menu-filters {
    background-image: url(../img/dropdown.png);
    padding: 0px 48px 0px 20px;
    background-position: right center;
    background-size: 16px 16px;
    margin-left: auto;
    overflow: hidden;
}

/* If the screen size is 1000px wide or less */
@media screen and (max-width: 1100px) {
    #menu-search,
    #menu-filters {
        margin-left: 10px;
    }

    .menu-item {
        min-width: auto;
        flex-grow: 1;
    }
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
    background-image: url(../img/totop.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 32px 32px;
    height: 48px;
    border-top: 3px solid #777777;
    background-color: #e5e5e5;
    margin-top: 50px;
    cursor: pointer;
}

    .site-footer:hover {
        opacity: 0.6;
    }

/* Title bars  -------------------------------------------------------------- */
.title-bar {
    margin: 30px 10px;
    color: #ffffff;
    font-size: 2em;
    text-transform: uppercase;
    padding: 8px 10px 5px 10px;
    max-width: 640px;
    font-weight: bold;
}

    .title-bar a {
        text-decoration: none;
        color: #ffffff;
    }

        .title-bar a:hover {
            text-decoration: none;
            color: #eeeeee;
        }

.clickable {
    background-image: url(../img/next.png);
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-origin: content-box;
    background-position: right center;
}

    .clickable a {
        display: block;
        margin-right: 48px;
    }

.nospace-before {
    margin-top: 10px !important;
}

.subtitle-bar {
    width: 300px;
    text-align: center;
    color: #777777;
    font-size: 1.8em;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
}

.no-margin {
    margin: 0px !important;
}

.no-width {
    width: auto !important;
}

/* column layouts ----------------------------------------------------------- */
.onecolumn {
    display: flex;
}

.twocolumns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 60px 0px;
}

.threecolumns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 60px 0px;
}

.fourcolumns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 60px 0px;
}

@media screen and (max-width: 1024px) {
    .twocolumns, .threecolumns {
        margin: 30px 0px;
    }
}


/* Two columns layout 1/12 9/12 ------------------------------------------------ */
.twocolumns-1-12 {
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
}

    .twocolumns-1-12 > div:nth-child(1) {
        flex-grow: 1;
        width: 150px;
    }

    .twocolumns-1-12 > div:nth-child(2) {
        flex-grow: 11;
        min-width: 300px;
    }

.counter-value {
    color: #e37222;
    font-size: 5em;
    font-weight: bolder;
    text-align: center;
}

.counter-label {
    color: #777777;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

.counter-trend {
    height: 32px;
    background-size: 32px 32px;
    background-position: center center;
    background-repeat: no-repeat;
}

.trend-up {
    background-image: url(../img/up.png);
}

.trend-eq {
    background-image: url(../img/eq.png);
}

.trend-dn {
    background-image: url(../img/dn.png);
}

/* line charts style ----------------------------------------------------------- */

.ct-label {
    font-size: 1.1em;
    color: #000000;
}

.ct-data-label {
    font-size: 1.1em;
}

/* Legends ---------------------------------------------------------------------- */
ul.legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

    ul.legend li {
        padding-left: 1em;
        text-indent: -.7em;
        font-size: 1.1em;
    }

        ul.legend li:nth-child(1)::before {
            content: "■ ";
            color: #e37222;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(2)::before {
            content: "■ ";
            color: #d0103a;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(3)::before {
            content: "■ ";
            color: #681124;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(4)::before {
            content: "■ ";
            color: #5c7f92;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(5)::before {
            content: "■ ";
            color: #00b9e4;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(6)::before {
            content: "■ ";
            color: #005b82;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(7)::before {
            content: "■ ";
            color: #b7c72a;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(8)::before {
            content: "■ ";
            color: #966393;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(9)::before {
            content: "■ ";
            color: #cccccc;
            font-size: 1.5em;
        }

        ul.legend li:nth-child(10)::before {
            content: "■ ";
            color: #f8cb30;
            font-size: 1.5em;
        }

ol.list {
    width: 300px;
}

    ol.list li {
        margin-bottom: 10px;
    }

    ol.list a {
        text-decoration: none;
        color: #005b82;
    }

/* search panel styles ----------------------------*/

#search-panel {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 300px;
    background-color: #ffffff;
    box-shadow: -3px 0px 3px #e5e5e5;
    border-bottom: 2px solid #e5e5e5;
    display: none;
    overflow: hidden;
    padding: 20px 20px 600px 20px;
}

    #search-panel select {
        width: 150px;
        height: 26px;
    }

    #search-panel h1 {
        font-size: 2em;
        color: #5c7f92;
        font-weight: normal;
        margin-top: 10px;
        margin-bottom: 30px;
        text-transform: uppercase;
    }

    #search-panel div {
        margin-bottom: 20px;
    }

    #search-panel label {
        font-size: 1.6em;
        color: #777777;
        text-transform: uppercase;
    }

    #search-panel .subpanel {
        margin-left: 24px;
    }

    #search-panel .actions {
        margin-top: 50px;
        text-align: center;
    }

    #search-panel .button {
        width: 210px;
        color: #777777;
        background-color: #e5e5e5;
        ;
        font-size: 1.3em;
        text-transform: uppercase;
        padding: 8px 0px;
        border: 3px solid #777777;
        cursor: pointer;
    }

        #search-panel .button:hover {
            opacity: 0.6;
        }

/* filter panel styles ----------------------------*/

#filter-panel {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ffffff;
    box-shadow: -3px 0px 3px #e5e5e5;
    border-bottom: 2px solid #e5e5e5;
    display: none;
    overflow: hidden;
    padding: 20px 20px 1280px 20px;
}

    #filter-panel h1 {
        font-size: 2em;
        color: #5c7f92;
        font-weight: normal;
        margin-top: 10px;
        margin-bottom: 15px;
        text-transform: uppercase;
    }

/* tooltips ------------------------------------------ */

/* https://emojipedia.org/speech-balloon/ */

sup {
    vertical-align: top;
    position: relative;
    top: -0.5em;
    font-size: 0.77em;
    cursor: help;
    top: -0.25em;
}
