@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200;300;400;500;600&display=swap');
body,
html {
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2{
    font-weight: 300;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

h3{
    font-weight: 500;
    font-size: 1.1rem;
    margin-block-end: .3rem;
    margin-bottom: .3rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

p {
    margin: 0 0 10px 0;
}

a {
    color: #006838;
}

#container {
    display: flex;
    width: 100%;
    scrollbar-width: thin;
}


/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background-color: #aaa; */
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo {
    max-height: 70px;
    cursor: pointer;
}


/* Sidebar */

.sidebar {
    position: fixed;
    background-color: #fff;
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.hamburger:hover .line {
    stroke: #006838;
}

.sidebar-label {
    font-weight: 300;
    text-transform: uppercase;
    margin: 0;
    font-size: 1.3rem;
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Menu */

#overlay_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 5%;
    overflow-y: auto;
}

#overlay_menu.open {
    transform: translateX(0);
}

#close_icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.menu-column {
    flex-basis: 66%;
}

.menu-title {
    color: #006838;
}

.menu-column:nth-child(2) {
    flex-basis: 33%;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    color: black;
}

.menu-item:hover {
    background-color: #f6f6f6;
    color: black;
}

.menu-item-number {
    font-size: .75rem;
    margin-right: 20px;
    align-self: flex-start;
    font-weight: bold;
}

.menu-item-text {
    font-size: 1.5rem;
    flex-grow: 1;
    color: #1B75BB;
}

.menu-item-arrow {
    margin-left: auto;
}

.menu-arrow {
    width: 15px;
}


/* Main Body*/

.panel {
    flex-shrink: 0;
    flex-grow: 0;
    scroll-snap-align: start;
    min-width: 100vw;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* background-color: #f0f0f0; */
    overflow-y: auto;
    box-sizing: border-box;
}

#panel_title {
    display: none;
}

.content {
    /* background-color: red; */
    width: 100%;
    padding-right: 30px;
    display: flex;
    flex-wrap: wrap;
}

.col_full {
    flex: 1 1 100%;
    padding: 0 30px;
    border-right: 1px solid black;
    box-sizing: border-box;
}

.col_half {
    flex: 1 1 50%;
    padding: 0 30px;
    border-right: 1px solid black;
    box-sizing: border-box;
}

.col_onethird {
    flex: 1 1 calc(33.333% - 30px);
    padding: 0 30px;
    border-right: 1px solid black;
    box-sizing: border-box;
}

.col_twothird {
    flex: 1 1 calc(66.666% - 30px);
    padding: 0 30px;
    border-right: 1px solid black;
    box-sizing: border-box;
}

.col_onequarter {
    flex: 1 1 calc(25% - 30px);
    padding: 0 30px;
    border-right: 1px solid black;
    box-sizing: border-box;
}

.col_threequarter {
    flex: 1 1 calc(75% - 30px);
    padding: 0 30px;
    border-right: 1px solid black;
    box-sizing: border-box;
}


/* Contact Form */

form {
    padding-top: 20px;
    width: 100%;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
}

.input-group input,
.input-group textarea {
    font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
    padding: 10px;
    border: 1px solid #ccc;
    width: 100%;
}

.input-group button {
    padding: 10px 20px;
    border-radius: 0px;
    background-color: #006838;
    color: #fff;
    border: none;
    cursor: pointer;
}

.input-group button:hover {
    background-color: #f6f6f6;
    color: #000;
}

.validation-group {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

#validation-success {
    color: green;
}

#validation-fail {
    color: red;
}

.office-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.flag-icon {
    margin-right: 30px;
    align-self: flex-start;
}

.flag-icon img {
    width: 50px;
    /* Adjust the width as needed */
    height: auto;
}

.text-info p {
    margin: 0;
}

.text-info a:hover {
    text-decoration: underline;
}


/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px 0;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
    vertical-align: top;
}

th {
    font-weight: bolder;
}

td:first-child {
    font-weight: bolder;
}


/* Video Section */

.video-panel {
    position: relative;
    overflow: hidden;
}

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 20;
    justify-content: center;
    align-items: center;
    display: flex;
}

.video-logo {
    width: 70%;
    max-width: 500px;
}

.video-flag {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 150px;
    height: 30%;
}

.video-logo,
.video-flag {
    opacity: 0;
    animation: fadeIn 2s ease-in-out 2.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Bios two-column layout */

.bios-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.bios-column {
    flex: 1;
}

.bios-column:first-child {
    border-right: 1px solid #ccc;
    padding-right: 30px;
}

@media only screen and (max-width: 768px) {
    /* Apply styles for screens smaller than 769px (e.g., MOBILE devices) */
    body {
        font-size: 1.0rem;
    }
    .sidebar-label {
        font-size: 1.1rem;
    }
    #container {
        flex-flow: column;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        height: 100dvh;
    }
    #overlay_menu {
        transform: translateY(100%);
        flex-direction: column;
    }
    #overlay_menu.open {
        transform: translateY(0);
    }
    #close_icon {
        width: 30px;
        height: 30px;
    }
    .menu-item-text {
        font-size: 1.1rem;
        flex-grow: 1;
    }
    .menu-item-number {
        margin-right: 10px;
    }
    .header {
        height: 100px;
        background-color: #fff;
        padding-left: 30px;
    }
    .content {
        min-height: calc(100dvh - 160px);
        flex-direction: column;
        padding-left: 30px;
    }
    .col_full,
    .col_half,
    .col_onethird,
    .col_twothird,
    .col_onequarter,
    .col_threequarter {
        flex: 1 1 auto;
        width: auto;
        padding: 0 0 30px 0;
        margin: 0 0 30px 0;
        border: none;
        border-bottom: 1px solid black;
    }
    .sidebar {
        bottom: 0;
        left: 0;
        height: 60px;
        width: 100%;
        flex-direction: row;
        padding-top: 10px;
    }
    .number {
        width: 30px;
    }
    .button {
        width: 56px;
        padding-left: 10px;
    }
    .number.box {
        order: 2;
    }
    .button.box {
        order: 1;
    }
    .title.box {
        order: 3;
    }
    #desktop-hamburger {
        display: none;
    }
    #mobile-hamburger {
        display: inline-block;
    }
    .title {
        flex: 1;
        /* background-color: #ccc; */
        justify-content: flex-start;
    }
    .video-panel {
        /* background-color: #006838; */
        background-image: url("images/IGRM_Contact_1979x1248_070224.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: bottom;
    }
    .fullscreen-video {
        display: none;
    }
    .panel {
        min-width: auto;
        width: 100%;
        min-height: 100dvh;
        padding-bottom: 60px;
        padding-top: 100px;
    }
    .img_box {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .img_box img {
        max-width: 100%;
        height: auto;
    }
    .bios-container {
        flex-direction: column;
        gap: 0;
    }
    .bios-column:first-child {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ccc;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}


/* Apply styles for screens larger than 768px (e.g., DESKTOP devices) */

@media only screen and (min-width: 769px) {
    #container {
        min-height: 100dvh;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
    }
    .header {
        height: 140px;
        padding-left: 110px;
        /* background-color: #00ff00; */
    }
    .content {
        min-height: calc(100dvh - 180px);
    }
    .sidebar {
        top: 140px;
        left: 0;
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - 180px);
        width: 80px;
        border-right: 1px solid #000;
    }
    .number,
    .button {
        height: 100px;
    }
    .hamburger {
        transform: rotate(-90deg);
    }
    #mobile-hamburger {
        display: none;
        /* Hide mobile hamburger by default */
    }
    .title {
        flex: 1;
        /* Takes up remaining space */
        /* background-color: #ccc; */
        /* Just for demonstration */
    }
    .rotate_start,
    .rotate_end {
        writing-mode: vertical-lr;
        rotate: 180deg;
        white-space: nowrap;
    }
    .rotate_start {
        align-self: flex-start;
    }
    .rotate_end {
        align-self: flex-end;
    }
    .panel {
        padding-left: 80px;
        padding-top: 140px;
    }
    .img_box {
        width: 100%;
        height: 100%;
        position: relative;
    }
    .img_box img {
        max-width: 100%;
        max-height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
}

.para-space p + p {
    margin-top: 1.5em;
}