/* Baseline tag styling */
div:focus-visible,
p:focus-visible,
label:focus-visible,
span:focus-visible,
h1:focus-visible,
h4:focus-visible {
    outline: 0px;
}
* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    /* border: 1px solid red; */
}

body {
    min-height: 100vh;
    margin: 0;
}

h1 {
    font-size: 1.85em;
    margin-block-start: 0.1em;
    margin-block-end: 04.em;
}

h2 {
    margin-bottom: 3px;
    font-size: larger;
}

h3 {
    margin-bottom: 3px;
}

h4 {
    margin-bottom: 5px;
}

h5 {
    margin-bottom: 5px;
}

p {
    margin: 3px 0px;
}

input[type="text"] {
    width: 80%;
}

textarea {
    width: 80%;
    border-width: thin;
    border-radius: 4px;
    border-left-color: #c59595;
    border-top-color: #c59595;
    border-bottom-color: #c59595;
    border-right-color: #c59595;
}

button {
    background-color: #06203a;
    color: #FFFFFF;
    font-size: larger;
    font-weight: bold;
    width: 20%;
    border: 3px solid #1d344d;
    border-radius: 2px;
    margin-right: 10px;
}

button:hover {
    cursor: pointer;
}

button a {
    color: #FFFFFF;
}

input {
    border-width: thin;
    border-radius: 4px;
    border-left-color: #ebebeb;
    border-top-color: #ebebeb;
    border-bottom-color: #c59595;
    border-right-color: #c59595;
    height: 30px;
}

select {
    border-width: thin;
    border-radius: 4px;
    border-left-color: #ebebeb;
    border-top-color: #ebebeb;
    border-bottom-color: #c59595;
    border-right-color: #c59595;
}

ul {
    list-style-position: outside;
}

li {
    overflow-wrap: break-word;
}


form {
    padding: 25px 0px;
    height: 75%;
}

label {
    font-weight: bold;
}

.checkbox-container label {
    font-weight: default;
}

input[type="radio"] {
    margin-right:10px;
    margin-left: 68px;
}

/* Main grid layout */

#overall-container {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* Header */

#header-Panel {
    display: flex;
    color: white;
    background-color: #267aad;
    max-height: 110px;
    align-items: center;
    justify-content: flex-start;
    padding-right: 10%;
    padding-left: 10%;
}

#header-Panel>* {
    margin-right: 30px;
}

#header-logo {
    max-height: 80%;
}

/* classes */

.message-display {
    margin-top: 15px;
    display: flex;
    justify-content: center;

}

.success {
    border: 1px solid #97ad97;
    background-color: lightgreen;
    border-radius: 5px;
}

.failure {
    border: 1px solid #6f000017;
    background-color: #ff8d8d3d;
    border-radius: 5px;
}

.grid-wrapper {
    display: grid;
    /* grid-template-columns: 1fr 2fr;
    padding: 5px 10%; */
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    /*column-gap: 15px;*/
    row-gap: 7px;
}

.grid-wrapper-1-col {
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 15px;
    row-gap: 7px;
}

.grid-wrapper-2-col {
    padding: 5px 10%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 15px;
    row-gap: 7px;
}


.hidden {
    display: none;
}

.required {
    /* color: red; */
    color: #BD0000;
}

.header-label {
    padding: 7px 13px;
    margin-top: 30px;
    background-color: rgb(159, 205, 235);
    /*border-radius: 2px;*/
    font-weight: bold;
    display: flex;
    align-items: center;
}

.modal-container-visible .header-label {
    padding: 7px 13px;
    margin-top: 40px;
    margin-bottom: 8px;
    background-color: rgb(159, 205, 235);
    border-radius: 2px;
    font-weight: bold;
    display: block;
    font-size: 25px
}

.field-div {
    padding: 7px 13px;
    vertical-align: center;
    background-color: rgb(235, 235, 235);
    border-radius: 1px;
}

.modal-content-visible .field-label {
    padding: 10px 20px;
    background-color: rgb(235, 235, 235);
    border-radius: 1px;
    display: block;
    font-weight: normal;
}

.field-label {
    padding: 7px 13px;
    background-color: rgb(235, 235, 235);
    border-radius: 1px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

#concerning-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#concerning-help-text {
    font-size: small;
    /* color: red; */
    color: #9E0000;
    margin-top: 5px;
    padding-left: 11px;
    font-weight: normal;
}

.section-description {
    padding: 10px 15px;
}

.multi-select-short {
    display: flex;
}

.multi-select-short > label {
    padding-left: 5px;
    margin-left: 3px;
    margin-right: 20px;
    padding-top: 10px;
}

.checkbox-container {
    background-color: white;
    border-width: thin;
    border-radius: 4px;
    border-style: solid;
    border-left-color: #ebebeb;
    border-top-color: #ebebeb;
    border-bottom-color: #c59595;
    border-right-color: #c59595;
    width: 80%;
}

.checkbox-container label {
    font-weight: normal;
    padding-left: 2px;
}

/* Accordion menu related */

.accordion {
    background-color: rgb(235, 235, 235);
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    margin-top: 5px;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    border-radius: 5px;
}

.accordion-content-panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin-top: 5px;
}

.accordion:hover,
.accordion-active {
    background-color: #ccc;
}

.accordion::before {
    content: '\002B';
    font-size: 20px;
    color: #777;
    float: left;
    margin-left: 5px;
    margin-right: 15px;
}

.accordion-active::before {
    content: "\2013";
}

.inidicator-selection-panel {
    display: none;
}

/* Dual select box related */

#affiliated-organizations-dual-select {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    /* align-items:center; */
}

#affiliated-organizations-dual-select .dual-select-buttons {
    padding-top: 10px;
}

.dual-select-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.dual-select-container > div {
    margin-left: 0px;
}

.dual-select-container button {
    display: block;
    margin: 20px 0px;
    background-color: inherit;
    color: inherit;
    font-weight: normal;
    font-size: initial;
    width: auto;
    border: 1px solid black;
}

.dual-select-buttons {
    padding-top: 55px;
}

select[multiple="multiple"] {
    min-width: 400px;
    max-width: 50%;
    overflow-x: auto;
    min-height: 102px;
    overflow: auto;
}

.buttons-panel {
    display: flex;
    justify-content: space-around;
}

.buttons-panel>button {
    margin: 20px 10px;
    background-color: #06203a;
    color: white;
    border: 2px solid #1d344d;
    padding: 1% 3%;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: large;
}

.char-limit {
    /* color: gray; */
    color: #4d4d4d;
    font-size: x-small;
    position: relative;
    top: 3px;
}

/* ids */

#message-panel {
    border-radius: 3px;
    /* width: 70%; */
    padding: 0px 25px 10px 20px;
}

#modal-container {
    position: inherit;
    top: 0;
    height: 100%;
    width: 100%;
}

#modal-container p {
    margin: 15px 0;
}


#submissionTypeSelect {
    padding: 7px 10px;
}

#submissionTypeSelect > label {
    position: relative;
    top: 2px;
}

#date-span-label {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

#end-date-if-applicable {
    margin-left: 0.6em;
}

#disclaimer-label {
    /* color: red; */
    color: #9E0000;
    font-size: smaller;
}

#certification-block {
    padding: 5px 10%;
    display: grid;
    grid-template-columns: 0.15fr 3fr;
    row-gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

#certification-block > input {
    padding: 10px 0px;
    margin-right: 17px
}

#submit-button-div {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#submit-button {
    color: white;
    background-color: #06203a;
    border: 2px solid #1d344d;
    border-radius: 4px;
    padding: 1% 3%;
    text-decoration: none;
    font-weight: bold;
    font-size: larger;
}

#main-panel {
    padding-left: 5%;
    padding-right: 5%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: normal;
}

#overall-indicators-container {
    grid-column: 1 / span 2;
}

#lower-panel {
    display: flex;
    background-color: #267aad;
    color: white;
    /* position: fixed;
    bottom: 0; */
    z-index: 1;
}

#lower-panel > div {
    padding-left: 5%;
    padding-right: 5%;
    font-size: smaller;
    text-align: center;
    width: 33%;
}

/* #upper-elements {
    justify-content: flex-start;
}

#lower-elements {
    justify-content: flex-end;
}
    */
#reporting-button-panel {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

#reporting-button-panel>* {
    width: 25%;
}

#reporting-button-panel>button {
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: none;
    max-height: 45px;
    width: 30%;
    font-size: 1em;
}

#reporting-button-panel>a {
    margin-right: 10px;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: none;
    max-height: 35px;
    width: 30%;
    font-size: 1em;
    font-weight: bold;
    background-color: #06203a;
    color: #FFFFFF;
    border: 3px solid #1d344d;
    text-align: center;
}

/*#reporting-button-panel>a>button {
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: none;
    max-height: 35px;
    width: 100%;
    font-size: 1em;
    margin-right: 0;
    text-wrap: nowrap;
    padding: 1px 45px;
}
*/

/* modal content for reporting explanations */
#non-modal-container {
    position: inherit;
    height: 100%;
    width: 100%;
}

#summary-anonymous-panel {
    margin-top: 10px;
}

.modal-content-visible {
    display: block;
    width: 100%;
    text-align: left;
    overflow: auto;
    background-color: white;
    padding: 20px;
}

.modal-container-invisible {
    display: none;
    top: 0;
    overflow: auto;
}

.modal-container-visible {
    display: flex;
    justify-content: center;
    /* position: absolute; */
    /* top: 0; */
    /* overflow: auto; */
    background-color: white;
    z-index: 15;
    opacity: 1;
}

.modal-content-invisible {
    display: none;
    z-index: -7;
}

.close {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
    cursor: pointer;
}

.close + span {
    font-size: 20px;
    padding-right: 8px;
    padding-top: 3px;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.tooltip .fa {
    margin-left: 5px;
    margin-right: 20px;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 320px;
    background-color: #06203a;
    color: #fff;
    font-weight: normal;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 100;
    left: 135%;
    top: -2px;
}

.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
    visibility: visible;
}

.tooltip .tooltip-text::after {
    content: " ";
    position: absolute;
    top: 14px;
    right: 100%;
    /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #06203a transparent transparent;
}

.tooltipPage1 {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.tooltipPage1 .fa {
    margin-left: 5px;
    margin-right: 20px;
}

.tooltipPage1 .tooltip-text {
    visibility: hidden;
    width: 256px;
    background-color: #06203a;
    color: #fff;
    font-weight: normal;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 100;
    left: -435%;
    top: 22px;
}

.tooltipPage1:hover .tooltip-text,
.tooltipPage1:focus .tooltip-text {
    visibility: visible;
}

.tooltipPage1 .tooltip-text::after {
    content: " ";
    position: absolute;
    top: -4px;
    right: 27.8%;
    /* To the left of the tooltip */
    margin-top: -4px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #06203a transparent;
}

#recaptcha-container {
    display: flex;
    justify-content: center;
}

#unclassified-disclaimer {
    margin: 7px 5%;
    background-color:#00a94e;
    padding: 4px 0;
    border-radius: 5px;
}

.dateOnlyInput input {
    margin-top: 8px;
}

.checkbox-container input {
    height: auto;
}

@media only screen and (min-width: 680px) and (max-width: 1024px) {
    #reporting-button-panel>button {

        height: 50px;
        max-height: 50px;

    }

    form {
        padding: 0px;
    }

    select[multiple="multiple"] {
        min-width: 300px;
        max-width: 50%;
        overflow-x: auto;
        min-height: 102px;
        overflow: auto;
    }

    .multi-select-short>label {
        font-size: 13px;
    }
}

@media only screen and (max-width: 600px) {

    #reporting-button-panel>button {
        height: 50px;
        max-height: 50px;
        font-size: 11px;
    }

    #reporting-button-panel>a {
        height: 50px;
        max-height: 50px;
        font-size: 0.7em;
    }

    #reporting-button-panel>button>a {
        font-size: 11px;
    }

    #reporting-button-panel {
        margin-bottom: 0px;
    }

    input[type="radio"] {
        margin-left: 5px;
        margin-right: 5px;
    }

    .page2 button {
        width: 30%;
    }

    #submissionTypeSelect>label {
        font-size: 13px;
    }

    #header-Panel {
        max-height: 140px;
        padding-right: 2%;
        padding-left: 2%;
    }

    #header-Panel h1 {
        font-size: 1.2em;
    }

    #header-logo {
        max-height: 50%;
    }

    #header-Panel>* {
        margin-right: 10px;
    }



    .header-label,
    .field-label {
        font-size: 13px;
        padding: 7px 8px;
        align-items: flex-start;
    }

    .header-label {
        margin-top: 15px;
    }

    .modal-content-visible {
        padding: 0px 0px 10px 0px;
        overflow:hidden;
    }

    #message-panel {
        width: 100%;
        font-size: 13px;
        /* padding-left: 10px; */
    }

    #message-panel ul {
        margin-left: -15px;
    }

    #certification-block {
        padding: 5px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .buttons-panel>button,
    #submit-button {
        width: 30%;
        font-weight: 600;
        font-size: 16px;
    }

    .buttons-panel {
        justify-content: center;
    }

    form {
        padding: 0px;
        height: auto;
    }

    .field-label .tooltip-text {
        font-size: 13px;
    }

    .tooltip .tooltip-text {
        width: 200px;
        text-align: left;
    }

    .grid-wrapper-1-col {
        padding: 0px;
        width: 100%;
    }

    #lower-panel {
        display: block;
        /* background-color: #267aad;
        color: white;
        z-index: 1; */
    }

    #lower-panel>div {
        width: auto;
    }

    .grid-wrap {
        grid-template-columns: auto;
    }

    .grid-wrap div.header-label {
        display: none;
    }

    .grid-wrapper .summery {
        display: none;
    }

    .accordion {
        width: 100% !important;
        font-size: 15px;
        padding: 10px;
    }

    .multi-select-short {
        display: inline;
    }

    .multi-select-short input {
        height: auto;
    }

    .dual-select-buttons button {
        width: auto;
        margin: 5px 10px;
    }

    .grid-wrapper.grid-wrap {
        grid-template-columns: auto;
    }

    .field-itself select {
        width: 100%;
    }

    input[type="text"],
    textarea {
        width: 100%;
    }

    .lower-legalese:last-child {
        margin-bottom: 10px;
    }

    select[multiple="multiple"] {
        min-width: 170px;
    }

    .accordion-content-panel {
        font-size: 13px;
        padding: 0 10px;
    }

    .section-description,
    .multi-select-short>label,
    label,
    .field-itself.field-div,
    #summary-anonymous-panel,
    #certification-block {
        font-size: 13px;
    }

    .dual-select-container {
        justify-content: flex-start;
    }

    /* .dual-select-container .select1 select option{
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 170px;
    overflow: hidden;
    } */

    .page3-container h4 {
        font-size: 15px;
    }

    .modal-container-visible .header-label {
        margin-top: 25px;
        font-size: 15px;
    }

    .grid-wrapper-1-col .header-label {
        margin-top: 0px;

    }

    .close {
        font-size: 20px;
    }
    
    
    .close.close-label{
        visibility: hidden;
        font-size: 0px;
    }

    /* This applies ONLY in Safari */
    @supports (-webkit-touch-callout: none) {
        #header-Panel {
            display: inline-flex;
        }

        #header-logo {
            width: 50%;
        }
    }

    /* This applies ONLY in Firefox */
    @-moz-document url-prefix() {
        #header-Panel {
            display: inline-flex;
        }

        #header-logo {
            width: 50%;
        }
    }

}