﻿/*
	==============================================================
	   CSS root variables
	==============================================================
*/
:root {
    --body-bkg-col: #ffffff; /*  - was #e3edf3  */
    --nav-bkg-col: #1c2033; /*  - was #1c2033  */
    --navbox-bkg-col: #c4cfd5; /* Q3 colour*/
    --navbox-border-col: #c4cfd5;
    --navbtn-col: #ffffff;
    --navbtn-high-col: #c4cfd5;
    --navbtn-bkg-col: #0c2d5c;
    --navbtn-bkg-high-col: #4787c4;
    --navbtn-border-col: #2e5979;
    --navbtn-font-size: 18px;
    --loader-primary-bkg-col: #F1F4FB;
    --loader-container-bkg-col: #b8c9f4;
    --q1-col: #497494;
    --q2-col: #2e5979;
    --q3-col: #c4cfd5;
    --q4-col: #4787c4;
    --blue4-col: #42a4f5;
    /* ============      New branding     ============ */
    --petrol-blue: #191e32;
    --dark-blue-bkg: #1c2033;
    --cyan-blue: #41a0f5;
    --off-white: #f0f0f0;
    --blue-alt-1: #0a46a0;
    --blue-alt-2: #1473d2;
    /* ============       Survey      ============ */
    --likert_table_txt_col: #2e5979; /* Colour for the Likert survey table (GPI dark blue #2e5979) */
    --likert_table_bkg_col: #ffffff; /* Colour for the Likert survey table background */
    --likert_table_alt_col: #c4cfd5; /* Alternating colour for Likert survey table background (GPI grey #c4cfd5) */
    --ten4_table_txt_col: #2e5979; /* Colour for the Likert survey table (GPI dark blue #2e5979) */
    --ten4_table_head_col: #c4cfd5; /* Head row colour for weighted survey table background (GPI grey #c4cfd5) */
    --ten4_table_bkg_col: #ffffff; /* Colour for the weighted survey table background */
    --ten4_table_alt_col: #f8f8f8; /* Alternating colour for weighted survey table background (GPI grey #c4cfd5) */
    --ten4_add_sub_col: #c4cfd5; /* Alternating colour for weighted survey table background (GPI grey #c4cfd5) */
    /* ============    Core Admin   ============ */
    --freq-chart-border-col: #c4cfd5;
    --freq-bar-col: #038300;
}

body {
    padding-top: 80px;
    padding-bottom: 200px;
    background-color: var(--body-bkg-col);
    /*font-family: 'Raleway';*/
}

h1, h2, h3, h4, h5 {
    color: var(--nav-bkg-col);
}

hr {
    border-color: var(--nav-bkg-col);
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px; 
}

.pad-left-10 {
    padding-left: 10px;
}

.pad-left-20 {
    padding-left: 20px;
}

.pad-right-10 {
    padding-right: 10px;
}

.pad-right-20 {
    padding-right: 20px;
}

.pad-right-30 {
    padding-right: 30px;
}

.pad-right-40 {
    padding-right: 40px;
}

.pad-bottom-10 {
    padding-bottom: 10px;
}

.pad-bottom-20 {
    padding-bottom: 20px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default (removed textarea from this) */
input,
select {
    max-width: 280px;
}

.right-align {
    text-align: right;
}

/*
	==============================================================
	   Portal classes
	==============================================================
*/

.blue4-logo {
    padding-top:5px;
    padding-bottom:5px;
    width: 180px;
}

.blue4-bar {
    font-size:18px;
    padding-top:18px;
}

.blue4-nav-toggle {
    margin-top:22px;
}

/* Footer links */
.footer-links {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    padding-top:5px;
    padding-bottom:15px;
}

    .footer-links > div {
        padding: 5px 20px 5px 20px;
    }

    .footer-links a {
        color: var(--off-white);
    }

@media only screen and (max-width: 768px) {
    .blue4-bar {
        padding-top: 0px;
    }
}

/* Blue4 coloured backgrounds */
.cyan {
    background-color: var(--cyan-blue);
    width: 100%;
    padding: 0px;
    margin: 0px;
}

.blue-alt-1 {
    background-color: var(--blue-alt-1);
    width: 100%;
    padding: 0px;
    margin: 0px;
}

.blue-alt-2 {
    background-color: var(--blue-alt-2);
    width: 100%;
    padding: 0px;
    margin: 0px;
}

.large-img {
    width: 100%;
    margin-top:5px;
    margin-bottom:10px;
}

.copyright {
    color: var(--off-white);
    margin-top:8px;
    text-align:center;
}

.centre {
    width: 100%;
    display: flex;
    justify-content: center;
}

.text-centre {
    text-align: center;
}

.footer-item {
    padding: 5px;
    text-decoration: none;
    color: white !important;
}

/* 
    Modal background for disabling controllers when loading 
*/
.modal-bkg {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1040; /* Sit on top */
    /* padding-top: 100px; Location of the box */
    left: 0;
    top: 0px;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.3); /* Black w/ opacity */
}

/* 
    ----------------------------------------------------------------
                     Blue 4 custom message box
    ----------------------------------------------------------------
*/
.modal-msg-box {
    width: 600px;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10%;
    background-color: var(--off-white);
    border: 2px solid var(--navbtn-bkg-col);
    border-radius: 10px;
    z-index: 1040;
    padding: 0px;
    box-shadow: 10px 10px 20px #606060;
}

.modal-msg-title {
    width: 100%;
    background-color: var(--navbtn-bkg-col);
    color: var(--off-white);
    font-size: 24px;
    text-align: center;
    padding: 6px;
}

.modal-msg-txt {
    text-align: center;
    font-size: 18px;
    color: var(--nav-bkg-col);
    padding: 20px;
    height: 140px;
}

@media only screen and (max-width: 768px) {
    .modal-msg-box {
        width: 90%;
        height: auto;
        margin-top: 30%;
    }
}


/* 
    ----------------------------------------------------------------
                     Blue 4 modal logo
    ----------------------------------------------------------------
*/
.modal-logo-box {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -90px 0 0 -90px;
    width: 180px;
    height: 180px;
    z-index: 1040;
}

.triangle-upper-right {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 0px;
    height: 0px;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 60px solid #41a0f5;
    animation: qfade 1s linear infinite;
    -webkit-animation: qfade 1s linear infinite;
    animation-delay: -1s;
    -webkit-animation-delay: -1s;
}

.triangle-lower-right {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 0px;
    height: 0px;
    border-top: 60px solid transparent;
    border-left: 60px solid #1473d2;
    border-bottom: 60px solid transparent;
    animation: qfade 1s linear infinite;
    -webkit-animation: qfade 1s linear infinite;
    animation-delay: -0.25s;
    -webkit-animation-delay: -0.25s;
}

.triangle-lower-left {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 0px;
    height: 0px;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-top: 60px solid #0a46a0;
    animation: qfade 1s linear infinite;
    -webkit-animation: qfade 1s linear infinite;
    animation-delay: -0.5s;
    -webkit-animation-delay: -0.5s;
}

.triangle-upper-left {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 0px;
    height: 0px;
    border-top: 60px solid transparent;
    border-right: 60px solid #f0f0f0;
    border-bottom: 60px solid transparent;
    animation: qfade 1s linear infinite;
    -webkit-animation: qfade 1s linear infinite;
    animation-delay: -0.75s;
    -webkit-animation-delay: -0.75s;
}


@keyframes qfade {
    0% {
        opacity: 0.0;
    }

    20% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.0;
    }
}

@-webkit-keyframes qfade {
    0% {
        opacity: 0.0;
    }

    20% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.0;
    }
}


/* Overwrite odd offset of checkbox in bootstrap */
.checkbox input[type=checkbox] {
    margin-left: 0;
    accent-color: var(--q2-col);
}

/*
    Completed tick
*/
.tick-small:before {
    font-size: 20px;
    font-weight: 900;
    color: green;
    content: "\2713";
}

/*
    Not completed cross
*/
.cross-small:before {
    font-size: 15px;
    font-weight: 900;
    color: red;
    content: "\2716";
}

.block-logo {
    padding:10px;
    width:100px;
    float:right;
}

.h1-valign {
    line-height: 60px;
    height: 60px;
}

.h2-valign {
    line-height: 60px;
    height: 60px;
}

.marked-row {
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 1px solid var(--nav-bkg-col);
    border-bottom: 1px solid var(--nav-bkg-col);
}

.dialog-btn {
    display: block; /* so that 'a' element respects width attribute */
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--navbtn-bkg-col);
    color: var(--navbtn-col) !important;
    border: none;
    border-radius: 20px;
    text-align: center;
    font-size: var(--navbtn-font-size);
    text-decoration: none !important;
    box-shadow: 10px 10px 20px #606060;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

    .dialog-btn:hover {
        background-color: var(--navbtn-bkg-high-col);
        color: var(--navbtn-high-col);
        cursor: pointer;
    }

.navbox {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 20px;
    /*
    background-color: var(--navbox-bkg-col);
    border: 1px solid var(--navbox-border-col);
    border-radius: 20px;
    */
}

.navbtn {
    display: block; /* so that 'a' element respects width attribute */
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--navbtn-bkg-col);
    color: var(--navbtn-col) !important;
    border: none;
    border-radius: 20px;
    text-align: center;
    font-size: var(--navbtn-font-size);
    text-decoration: none !important;
    box-shadow: 10px 10px 20px #606060;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

    .navbtn:hover {
        background-color: var(--navbtn-bkg-high-col);
        color: var(--navbtn-high-col);
        cursor: pointer;
    }

.navbtn-form {
    display: block; /* so that 'a' element respects width attribute */
    width: 280px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--navbtn-bkg-col);
    color: var(--navbtn-col) !important;
    border: none;
    border-radius: 20px;
    text-align: center;
    font-size: var(--navbtn-font-size);
    text-decoration: none !important;
    box-shadow: 10px 10px 20px #606060;
}

    .navbtn-form:hover {
        background-color: var(--navbtn-bkg-high-col);
        color: var(--navbtn-high-col);
    }

    .navbtn-form[disabled]:hover {
        background-color: var(--navbtn-bkg-col);
        color: var(--navbtn-col);
    }

    .navbtn-form:active {
        background-color: var(--navbtn-bkg-col) !important;
        color: var(--navbtn-col) !important;
        box-shadow: none;
    }

    .navbtn-form:focus {
        background-color: var(--navbtn-bkg-col) !important;
        color: var(--navbtn-col) !important;
        box-shadow: none;
    }

@media only screen and (max-width: 768px) {
    .navbtn-form {
        margin-left: auto;
        margin-right: auto;
    }
}

.centre-btn {
    margin-left: auto;
    margin-right: auto;
}

.horizontal-scroll {
    padding: 0px;
    margin: 0px;
    width: 100%;
    overflow-x: scroll;
}

/*
    Bootstrap overides
*/

/* Modify the background color */
.navbar-custom {
    background-color: var(--nav-bkg-col);
    border: none;
}

.right-bold {
    text-align:right;
    font-weight:bold;
}

/* Hide in mobile */

.hide-mob {
}

@media only screen and (max-width: 768px) {
    .hide-mob {
        display: none;
    }
}

/* Centre text in mobile view */
.centre-mob {
}

@media only screen and (max-width: 768px) {
    .centre-mob {
        text-align: center;
    }
}

/*
	==============================================================
	                    User surveys
	==============================================================
*/

#show-example {
    display: block;
}

#hide-example {
    display: none;
}

.blue4-survey-head {
    text-align: center;
    color: var(--dark-blue-bkg);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
}

.section-instructions {
    margin-top: 5px;
}

.red-text {
    color: #FF0000;
}

.green-text {
    color: green;
}

.blue-text {
    color: var(--blue4-col);
}

/* Used to configure 'read more' and 'read less' icons */
.plus {
    font-weight: bold;
    color: var(--mtr-link-col);
    display: inline;
}

    .plus:hover {
        cursor: pointer;
    }

.cluster {

}

.cluster-name {
    font-weight: bold;
    font-size:16px;
    margin-bottom:10px;
}

.cluster-text {
    font-style: italic;
    margin-bottom: 10px;
}

.progress-bkg {
    width:100%;
    height:20px;
    background-color: lightgray;
    padding:0px;
}

.progress-bar {
    box-sizing: border-box;
    width: 50%;
    height: 20px;
    margin: 0px;
    background-color: var(--blue4-col);
}

/*
	==============================================================
	                  Likert survey questions
	==============================================================
*/

/* Progress bar */
.likert_progress {
    height: 30px;
}

/* Lead question */
.likert_lead_qu {
    font-style: italic;
}

/* Survey label */
.likert_surv_label {
    display: none;
}

/* Survey table */
.likert_surv_table {
    display: table;
    width: 100%;
    color: var(--likert_table_txt_col);
    overflow: auto;
}

/* Survey table row */
.likert_surv_tr {
    display: table-row;
}

/* Survey table head */
.likert_surv_thead {
    display: table-row;
}

/* Prompt for mobile view */
.likert_mob_promt {
    display: none;
    font-style: italic;
    padding-left: 10px;
    padding-top: 10px;
}

/* Alternate table row colours */
div.likert_surv_tr:nth-child(even) {
    background-color: var(--likert_table_alt_col);
}

/* Alternate table row colours */
div.likert_surv_tr:nth-child(odd) {
    background-color: var(--likert_table_bkg_col);
}

/* Survey question */
.likert_surv_qu {
    width: 25%;
    display: table-cell;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
    text-align: left;
}

/* Survey table data */
.likert_surv_td {
    width: 15%;
    display: table-cell;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    vertical-align: middle;
}

/* Survey table head content */
.likert_surv_th {
    width: 15%;
    display: table-cell;
    padding: 10px;
    text-align: center;
    vertical-align: bottom;
}

/* Survey button box */
.likert_surv_button_box {
    text-align: center;
}

/* Radio button */
.likert_surv_radio {
}

@media only screen and (max-width: 768px) {
    .likert_surv_radio {
        margin-left: 10pt;
    }
}

/* Scale the radio buttons on the survey */
input[type='radio'] {
    transform: scale(1.5);
}

/* Give pointer when user hovers over a radio button */
input:hover {
    cursor: pointer;
}

@media only screen and (max-width: 768px) {

    /* Survey table head (hides this on mobile) */
    .likert_surv_thead {
        display: none;
    }

    /* Mobile prompt */
    .likert_mob_promt {
        display: block;
    }

    /* Survey question */
    .likert_surv_qu {
        display: block;
        width: 100%;
        margin-top: 0px;
        padding-top: 2px;
    }

    /* Survey table data */
    .likert_surv_td {
        display: block;
        width: 100%;
        background-color: var(--likert_table_alt_col);
        text-align: left;
        margin-bottom: 5px;
        padding-left: 20px;
    }

    /* Alternate table row colours */
    div.likert_surv_tr:nth-child(even) {
        background-color: var(--likert_table_bkg_col);
    }

    /* Survey label */
    .likert_surv_label {
        display: inline;
        padding-left: 10px;
    }

    /* Radio button */


}

/*
	==============================================================
	                  Ten over 4 survey questions
	==============================================================
*/

.ten-over-4-questions {

}

/* Behaviour examples */
#example-text {
    padding-top: 10px;
}

/* Survey label */
.ten4_surv_label {
    display: none;
}

/* Survey table */
.ten4_surv_table {
    display: table;
    width: 80%;
    margin: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--ten4_table_txt_col);
    overflow: auto;
}

/* Survey table row */
.ten4_surv_tr {
    display: table-row;
}

/* Survey table head */
.ten4_surv_thead {
    font-weight: bold;
    background-color: var(--ten4_table_head_col);
    display: table-row;
}

/* Alternate table row colours */
div.ten4_surv_tr:nth-child(even) {
    background-color: var(--ten4_table_bkg_col);
}

/* Alternate table row colours */
div.ten4_surv_tr:nth-child(odd) {
    background-color: var(--ten4_table_alt_col);
}

.ten4_input {
    width: 50px;
    text-align: center;
    margin: auto;
}

.add_sub {
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    background-color: var(--ten4_add_sub_col);
}

    .add_sub:hover {
        cursor: pointer;
    }

/* Survey question */
.ten4_surv_qu {
    display: table-cell;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
    text-align: left;
}

/* Survey table data */
.ten4_surv_td {
    width: 10%;
    display: table-cell;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    vertical-align: middle;
}

/* Survey table head content */
.ten4_surv_th {
    display: table-cell;
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: bottom;
}

/* Survey button box */
.ten4_surv_button_box {
    text-align: center;
}


@media only screen and (max-width: 768px) {
    /* Survey table */
    .ten4_surv_table {
        width: 100%;
    }
}

/*
	==============================================================
	                       Core admin
	==============================================================
*/

.frequency-chart {
    position: relative;
    display: inline-block;
    width: 110px;
    height: 60px;
    border: 1px solid var(--freq-chart-border-col);
}

.frequency-bar {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 10px; /* Default (left-most column) */
    margin: 0px;
    width: 10px;
    background-color: var(--freq-bar-col);
}

/*
	==============================================================
	                     Report admin
	==============================================================
*/

.instr-text {
    font-style: italic;
    text-align: center;
}

.client-list-title,
.round-list-title,
.participant-list-title,
.selected-participant-list-title {
    width: 100%;
    height: 25px;
    margin-top: 20px;
}

.client-list, 
.round-list, 
.participant-list {
    width: 100%;
    height: 500px;
    overflow-y: scroll;
    border: 2px solid var(--q3-col);
    padding-top: 0px;
}

.client-list {
    padding-top: 10px;
}

.round-list,
.participant-list {
    padding-top: 0px;
}



.client-ul {
    list-style-type: none;
}

.client-name,
.round-name,
.participant-name {
    padding-left: 6px;
}

.sticky-head {
    background-color: var(--off-white);
    color: var(--petrol-blue);
    position: sticky;
    top: 0;
}





