﻿@media only screen and (max-width: 768px) {
    body {
        color: var(--oeblue);
    }
    a {
        color: var(--oeblue);
    }
    video {
        max-width: 90vw;
    }
    .mob-hide-table {
        display: none;
    }

    .oe-table-disabled {
        color: white;
        background-color: grey;
        opacity: 0.8;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        text-align: center;
        line-height: 100vh;
    }

        .oe-table-disabled::after {
            content: 'Please turn your device to landscape orientation.';
        }
    .oe-body {
        margin-top: var(--oeheightnav);
    }
    .oe-table-container {
        max-height: calc(50vh - 5rem) !important;
    }

    #oe-search-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .req {
        margin-left: auto;
        margin-right: auto;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .oe-sort, .oe-filter {
        display: none;
    }

    #oenav {
        position: sticky;
        background-color: white;
    }

    .oe-table thead {
        line-height: 1rem !important;
    }

    .oe-table th {
        padding: 0.2rem !important;
    }

    .carousel-inner {
        max-width: 100vw;
        width: 100vw;
        max-height: 50vh;
        height: auto;
    }

    .carousel,
    .carousel-item,
    .carousel-item active {
        height: auto;
        max-width: 100vw;
        width: 100vw;
        max-height: 50vh;
    }

        .carousel-item img {
            height: auto;
            max-height: 50vh;
            max-width: 100vw;
            width: 100vw;
            object-fit: contain;
        }

    #oefoot {
        background-color: var(--oefooter);
        color: white;
        text-align: center;
    }
    #SidePanel.shown {
        width: 100%;        
    }
    #SidePanelEdge{
        display:none;
    }
    #SidePanel #SidePanelContainer {
        margin: 1rem;
    }

    #oe-sidebar {
        width: 100vw;
        padding-top: calc(1.5rem + 26px) /*var(--oeheightnav);*/;
    }

    #nav-logo {
        max-height: 1.5rem;
    }

    .nav-item {
        width: 100%;
    }

    #oe-sidebar > div {
        flex-direction: column !important;
    }

    .oe-sidebar-control {
        display: none;
    }

    .oe-sidebar-control-mobile {
        width: 100vw;
        line-height: 1.5rem;
        font-size: 1rem;
        text-align: right;
        background-color: var(--oeblue);
        background-image: linear-gradient(to right, var(--oebluedark), 25%, var(--oeblue));
        color: var(--oeorange);
        padding: .5rem 1rem;
        border-bottom: 1px solid var(--oebluedark);
        box-shadow: 0.25rem 0 0.75rem 0 rgba(0, 0, 0, .05);
    }
    tcxspan, .oe-email-button{
        display:none!important;
    }
    #oe-search-submit {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        box-shadow: 0 0 .25rem .25rem var(--oebluedark);
    }
    #userFlag {
        position: absolute;
        max-height: 1.5rem;
    }
    #chart-container{
        max-width: 100vw;
    }
    .dashboard-container{
        max-width: 100vw;
    }
    .dashboard-container canvas {
        max-width: 100vw;
        max-height: 100vw;
    }
    .mob-show {
        display: block;
    }

    .mob-hide {
        display: none;
    }
    .oe-h1 {
        font-weight: bold;
        font-family: 'futuraMed';
        font-size: 2.5rem;
        color: var(--oeorange);
        text-transform: lowercase;
    }

    .oe-h1-white {
        font-weight: bold;
        font-family: 'futuraMed';
        font-size: 2.5rem;
        color: white;
        text-transform: lowercase;
    }
}

@media (max-width: 768px) and (orientation: portrait) {

    #mobile-table-modal {
        transform: rotate(-90deg);
        transform-origin: left top;
        width: 100vh;
        height: 100vw;
        overflow-x: hidden;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .modal-dialog {
        max-width: 100vh !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {

    #mobile-table-modal {
        width: 100vw;
        height: 100vh;
        overflow-x: hidden;
        position: absolute;
        top: 0;
        left: 0;
    }

    .modal-dialog {
        max-width: 100vw !important;
    }

    #mobile-table-overlay {
        display: none;
    }
}
