/* 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 {
    text-align: center;
    margin: 0;
    min-height: 100vh;
}

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;
}

ul {
    list-style-position: outside;
    margin-top: 3px;
}

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;
}

label {
    margin-left: 10px;
}

/* Main grid layout */

#overall-container {
    /* height: 100vh; */
    min-height: 100vh;
    display: grid;
    /* position:relative; */
    /* flex-direction: column; */
    /* justify-content: space-between; */
    grid-template-rows: auto 1fr auto 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%;
}

.header-label {
    padding: 7px 13px;
    margin-top: 40px;
    margin-bottom: 8px;
    background-color: rgb(159, 205, 235);
    border-radius: 2px;
    font-weight: bold;
}    

.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;
}

.field-label {
    padding: 10px 20px;
    background-color: rgb(235, 235, 235);
    border-radius: 1px;
    vertical-align: center;
}

.field-label>ul {
    list-style-position: outside;
    margin-top: 3px;
    padding-left: 14px;
}

.grid-wrapper-1-col {
    padding: 5px 10%;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 15px;
    row-gap: 7px;
}

/* Main panel */

#main-panel {
    padding-left: 5%;
    padding-right: 5%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: normal;
}

#mission-statement-text {
    text-align: left;
}

#container-for-non-statics {
    position: relative;
    height: 100%;
}

#non-modal-container {
    position: inherit;
    height: 100%;
    width: 100%;
}

#shader {
    position: absolute;
    background-color: darkgray;
    /* height: 100%; */
    width: 100%;
    opacity: 0;
    z-index: -8;
}

#modal-container {
    position: inherit;
    top: 0;
    height: 100%;
    width: 100%;
}

#modal-container p {
    margin: 15px 0;
}

#acknowledgement-div {
    margin: 10px 0;
}

#proceed-button-div {
    display: flex;
    justify-content: center;
}



#middle-main-text {
    display: flex;
    justify-content: center;
}

#center-text-between-buttons {
    padding-left: 4%;
    padding-right: 4%;
    text-align: center;
    font-size: 0.98em;
}

#reporting-button-panel {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

#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: 35px;
    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;
}
*/

#submit-button-div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

#submit-button {
    color: white;
    background-color: #06203a;
    border: 2px solid #1d344d;
    border-radius: 5px;
    padding: 1% 3%;
    text-decoration: none;
    font-weight: bold;
    font-size: xx-large;
    width: 35%;
}

#proceed-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;
}

#unclassified-disclaimer {
    margin: 7px 5%;
    background-color:#00a94e;
    padding: 4px 0;
    border-radius: 5px;
}

#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%;
    width: 33%;
    font-size: smaller;
}

.modal-content-visible {
    display: block;
    width: 100%;
    text-align: left;
    overflow: Scroll;
    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;
}

.opaque {
    animation-name: darken;
    animation-duration: 3s;
}

.modal-surround {
    background-color: gray;
    opacity: 0.7;
    width: 10%;
}

.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;
}

.hidden {
    display: none;
}

.message-display {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.failure {
    border: 1px solid #6f000017;
    background-color: #ff8d8d3d;
}

@keyframes darken {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}


/* 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;
}


@media only screen and (max-width: 600px) {


    #reporting-button-panel {
        margin-bottom: 10px;
    }

    .header-label,
    .field-label {

        align-items: flex-start;
    }

    #header-panel {
        max-height: 140px;
        padding-right: 2%;
        padding-left: 2%;
    }

    #reporting-button-panel>a {
        height: 50px;
        max-height: 50px;
        font-size: 0.7em;
    }

    #reporting-button-panel>button {
        height: 50px;
        max-height: 50px;
        font-size: 11px;
    }

    #reporting-button-panel>button>a {
        font-size: 11px;
    }

    #header-panel h1 {
        font-size: 1.2em;
    }

    #header-logo {
        max-height: 50%;
    }

    #header-panel>* {
        margin-right: 10px;
    }

    #submit-button-div {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #submit-button,
    #proceed-button {
        width: auto;
        font-size: 16px;
    }

    button {
        width: auto;
    }

    #lower-panel {
        display: block;

    }

    #lower-panel>div {
        width: auto;
    }

    .modal-content-visible {
        padding: 10px;
    }

    .modal-content-visible .header-label {
        margin-top: 25px;
    }

    .accordion {
        width: 100% !important;
        font-size: 15px;
        padding: 10px;
    }

    .accordion-content-panel {
        font-size: 13px;
        padding: 0 10px;
    }

    .grid-wrapper-1-col {
        padding: 0px;

    }

    #mission-statement-text,
    .grid-wrapper-1-col,
    #disclaimers,
    #unclassified-disclaimer,
    #confimation-to-proceed {
        font-size: 14px;
    }
    .lower-legalese:last-child {
        margin-bottom: 10px;
    }
    
    .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%;
    }
}

}