body {
    font-family: var(--bcm-font);
    /* font-size: 1!important; */
    overflow: hidden;
    margin: 0;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    overflow: hidden;
    z-index: -1;
}

.dimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.dimmer-portal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.bg-fullscreen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 
----------------------------- */

.content {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
}

.content-note {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
    overflow: auto;
}

.top-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1vh 1vw;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
}

.logo {
    max-width: 100px;
    height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.bcm-logo {
    width: 100%;
    height: auto;
}

.slogan {
    font-size: 0.8em;
    font-style: italic;
    color: var(--bcm-white);
}

.title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--bcm-white);
}

.primary-menu {
    color: var(--bcm-white);
    margin-left: 10px;
    margin-right: 10px;
}

.menu-button {
    font-family: var(--bcm-font);
    background-color: rgba(0, 0, 0, 0);
    color: var(--bcm-white);
    font-size: 1.4em;
    font-weight: 600;
    border: none;

    transition: color 0.3s ease;
}

.menu-button:hover,
.menu-button:focus {
    color: var(--bcm-yellow);
    cursor: pointer;
    text-decoration: underline;
}


.main-container {
    display: grid;
    grid-template-columns: 100% 100% auto;
    align-items: center;
    margin: 1vh 1vw;
    padding-left: 3vw;
    gap: 1vw;
}

.main-cell {
    width: 100%;
}

.mo-main-text,
.portal-sub-title {
    font-size: 1.4em;
    color: var(--bcm-white);
    margin: 0;
}

.mo-sub-title,
.portal-main-title {
    font-size: 2.2em;
    color: var(--bcm-white);
    margin: 0;
}

.mo-main-title {
    font-size: 3.6em;
    color: var(--bcm-white);
    font-weight: 700;
    margin: 0 0 3vh 0;
}

#button-access {
    background-color: var(--bcm-blue);
    color: var(--bcm-white);
    -webkit-transition: all ease-out 0.4s;
    -moz-transition: all ease-out 0.4s;
    transition: all ease-out 0.4s;
}

#button-access:hover,
#button-access:focus {
    color: black;
    background-color: var(--bcm-yellow);
    cursor: pointer;
}


#content-about-us {
    color: var(--bcm-white);
}

#content-about-us p {
    max-width: 800px;
}


/* ----------portal html-------------- */
.portal-container {
    display: flex;
    flex-flow: column;
    border-top: 1px solid var(--bcm-white);
    padding-top: 1vh;
    gap: 1vh;
}

.portal-top {
    color: var(--bcm-white);
    text-align: center;
}

.observer-id .ob-id {
    margin: 2vh 0;
    text-align: left;
    color: var(--bcm-yellow);
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}

.observer-id .ob-id-hint {
    margin: 0;
    text-align: left;
    color: var(--bcm-white);
    font-size: 1.4em;
    font-weight: 700;
}

.ob-id-input-textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--bcm-yellow);
    color: var(--bcm-yellow);
    font-size: 1em;
    font-weight: 700;
    width: 2.9em;
    text-transform: uppercase;
}


.portal-main {
    display: grid;
    grid-template-columns: 0.8fr 2fr auto;
    margin: 0 4vw;
    align-items: start;
    padding-top: 1.5vh;
}

.note-left {
    display: flex;
    flex-flow: column;
    gap: 3vh;
}

.metadata {
    text-align: left;
}

.metadata-name {
    color: var(--bcm-white);
    font-size: 1em;
    font-style: italic;
    margin: 0;
}

.metadata-content {
    color: var(--bcm-yellow);
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}


.note-right {
    display: grid;
    grid-template-rows: repeat(200px) auto;
    gap: 2vh;
}

.question {
    color: var(--bcm-white);
    font-size: 1.4em;
}

#question-1 .control, #question-3 .control{
    display: flex;
    flex-direction: row;
    align-items: center;

}
#question-1 textarea,
#question-3 textarea {
    width: 100%;
    color: var(--bcm-yellow);
    background-color: transparent;
    font-size: 1em;
}

#user_input_id:invalid,
#question-1 textarea:invalid,
#question-3 textarea:invalid {
    border: 1px dashed var(--bcm-yellow);
    border-radius: 5px;
}

#question-2 .control-parent {
    display: flex;
    flex-flow: row;
    justify-content: space-around
}

#option_ground,
#option_middle,
#option_higher {
    transform: scale(2);
    margin-right: 5px;
    color: var(--bcm-yellow)
}


.control label {
    color: var(--bcm-yellow)
}

.control textarea::placeholder {
    color: rgba(255, 193, 48, 0.7);
}

.question-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


#button-clear {
    color: rgba(0, 0, 0, 0.9);
    background-color: var(--bcm-grey);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
    -webkit-transition: ease-out 0.4s;
    -moz-transition: ease-out 0.4s;
    transition: ease-out 0.4s;
}

#button-clear:hover,
#button-clear:focus {
    background-color: black;
    color: var(--bcm-white)
}


#button-submit {
    color: var(--bcm-white);
    background-color: var(--bcm-blue);
    -webkit-transition: all ease-out 0.4s;
    -moz-transition: all ease-out 0.4s;
    transition: all ease-out 0.4s;
}

#button-submit:hover,
#button-submit:focus {
    background-color: var(--bcm-yellow);
    color: black;

}


.final-report-container {
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 59, 115, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    display: grid;
    justify-content: center;
    align-items: center;
}

.final-report {
    width: 50vw;
    height: 40vw;
    border-radius: 30px;
    background-color: black;
    display: grid;
    grid-template-rows: 20% 80%;
    align-items: center;
    align-content: center;

}

.final-report-section {
    margin: 1vh 1vw 2vh 1vw;
    padding: 1vh 1vw;
}

.final-report-section.fr-top {
    border-bottom: 1px solid var(--bcm-white);
    display: flex;
    flex-flow: column;
    text-align: right;
}

.report-content {
    color: var(--bcm-white);
    font-size: 1.2em;
    margin: 0;
}

.report-content.report-title {
    font-weight: 900;
}

.final-report-section.fr-main {
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-around
}

.bcm-button#button_final {
    transition: background-color 0.5s ease;
}

.bcm-button#button_final {
    background-color: var(--bcm-yellow);
}

/* -------------------- */
@media only screen and (max-width: 767px) {
    html {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    body {
        width: 100%; 
        position: relative;
    }

    .top-container {
        display: block;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }

    .logo-container {
        justify-content: center;
    }

    .logo {
        max-width: 25vw;
    }

    .primary-menu {
        margin-top: 2vh;
        display: flex;
        flex-flow: row;
        justify-content: center;
        font-size: 1em;
        justify-content: space-around;
    }

    .main-container {
        grid-template-columns: 100% 100% auto;
    }

    .mo-main-text,
    .portal-sub-title {
        font-size: 1.2em;
    }

    .mo-sub-title,
    .portal-main-title {
        font-size: 1.4em;
    }

    .mo-main-title {
        font-size: 2.2em;
    }

    #content-about-us h2 {
        font-size: 1.4em;
    }

    #content-about-us p {
        font-size: 1.2em;
        width: 90vw;
    }



    /* -------portal.html-------- */
    .portal-container {
        display: flex;
        flex-flow: column;
        gap: 1vh;
        margin-top: 1vh;
    }

    .observer-id {
        display: flex;
        flex-flow: column;
        align-items: flex-start;
        width: 85vw;
        margin: 2vh auto;

    }

    .observer-id .ob-id {
        text-align: left;
        font-size: 18px;
    }

    .portal-main {
        display: flex;
        flex-flow: column;
        align-items: center;
        margin: 1vh 0;
        gap: 3vh;
    }

    .note-left {
        justify-content: center;
    }

    .note-right {
        border-top: 1px solid var(--bcm-white);
    }

    .metadata {
        width: 85vw;
        text-align: left;
    }

    .metadata-content,
    fieldset legend,
    .control label {
        font-size: 18px;
    }

    #question-2 .control-parent {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    #option_ground,
    #option_middle,
    #option_higher {
        transform: scale(1.5);
        margin-right: 5px;
        color: var(--bcm-yellow)
    }

    .question-menu {
        justify-content: space-around;
    }

    .bcm-button {
        width: 150px !important;
        font-size: 1.2em;
    }
    #button-clear {
        font-size: 1.2em;
    }
    #button-submit {
        background-color: var(--bcm-yellow);
        color: black;
        font-size: 1.2em;
    }

    .final-report {
        width: 80vw;
        height: 80vh;
    }

    .final-report-section.fr-top {
        text-align: center;
    }

    .report-content {
        font-size: 1em;
    }

    #button-report {
        margin: 0 auto;
        font-size: 1em;
        width: 80% !important;
    }
}

/* -----Utility------ */

.bcm-button {
    width: 200px;
    height: 50px;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 10px;
    border-width: 0;
    cursor: pointer;
}

.non-display {
    display: none;
}


.shift-aside {
    transform: translateX(-150%);
    transition: transform 0.5s ease;
}

.shift-aside-half {
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.shift-back {
    transform: translateX(0);
    transition: transform 0.5s ease;
}

.fade {
    transition: opacity 1s ease;
}

.hidden {
    opacity: 0;
}

.bcm-font-1-4 {
    font-size: 1.4em;
}

.bcm-font-2-2 {
    font-size: 2.2em;
}

.bcm-font-3-6 {
    font-size: 3.6em;
}

.font-weight-700 {
    font-weight: 700;
}

.bcm-white {
    color: var(--bcm-white);
}

.bcm-blue {
    color: var(--bcm-blue);
}

.bcm-yellow {
    color: var(--bcm-yellow);
}

.bcm-grey {
    color: var(--bcm-grey);
}

:root {
    --bcm-blue: #043B73;
    --bcm-white: #F9FAF5;
    --bcm-yellow: #FFC130;
    --bcm-grey: #C4C4C4;
    --bcm-font: 'Public Sans', sans-serif !important;

}