﻿@media only screen and (orientation: portrait) {
    @media (max-width: 767px) {
        .media-container {
            height: 12%;
        }

        .slide-container {
            height: 67%;
        }

        .slide-container.no-audio {
            height: 80%;
        }

        .legend-container {
            height: 20%;
            bottom: 12.5%;
        }

        .legend-container.no-audio {
            bottom: 0px;
        }

        .ui-dialog {
            width: 300px !important;
        }

        /*.vertical-text {
            -webkit-transform: rotate(0deg);
	        transform: rotate(0deg);
	        transform-origin: initial;
            float: none;
        }*/
    }
}

@media only screen and (orientation: landscape) {
    .slide-container.no-audio {
        bottom: 0px;
    }

    @media (min-width: 771px) and (max-width: 1280px) {
        ::-webkit-scrollbar {
            display: none;
        }

        .slide-container {
            left: 20.1%;
            top: 0px;
            margin: auto;
            position: absolute;
        }

        .slide-container.no-audio {
            bottom: 0px;
        }

        .media-container {
            left: 20.1%;
        }

        .legend-container {
            width: 20%;
        }

        .slide-content {
            display: grid;
            height: 100%;
        }

        .slide-link {
            height: 8em;
        }

        .header-panel {
            height: 50px;
            font-size: 1.3em;  
            position: fixed          
        }

        .header-panel-row2 {
            position: fixed;
            top: 5px;
            right: 0px;
            width: initial;
            margin-right: 5px;
        }

        .nav-bar {
            position: fixed;
            height: 50px;
            top: 26px;
            width: 100%;
        }

        /*.nav-button {
            top: 25%;
        }*/

        .header-nav-container {
            width: 20%;
            height: 9%;
            float: initial;
            margin: 0 0 0 0;
            right: 5px;
            top: 3px;
            position: absolute;
        }

        .affiliate-container {
            display: none;
        }

        .title-container.course-study {
            position: fixed;
            /*top: 15px;*/
            font-size: 1em;
        }

        .title-container.final-exam {
            position: relative;
            top: 20%;
            transform: translateY(-50%);
        }

        .tab-container.open-book {
            margin-right: 21px;
        }

        .course-content {
            top: 100px;
            position: fixed;
        }

        .button {
            /*display: inherit;*/
            width: 119px;
            height: 30px;
            margin-top: 5px;
        }

        .button-container {
            padding: 0 0 0 0;
            float: none;
            position: relative;
            top: 5px;
        }

        .exam-question {
            width: 40%;
            height: 100%;
            margin-left: 3px;
            margin-top: 15px;
            float: left;
            font-weight: bold;
        }

        .exam-question-container {
            left: 30px;
            top: 50px;
            height: 100%;
            display: inline-block;
            width: 100%;
        }

        .exam-question-number-container {
            width: 50px;
            height: 50px;
            top: 0px;
            left: 0px;
            font-size: 20px;
            border-radius: 0px;
            border-bottom-right-radius: 13px;
            position: initial;
            float: left;
        }

        .exam-question-text {
            height: 70%;
            font-size: 1.25em;
            font-weight: bold;
            overflow-y: auto;
        }

        .exam-answers {
            width: 48%;
            max-height: 70%;
            display: inline-block;
            font-size: .5em;
            overflow-y: auto;
            margin-left: 10px;
            margin-top: 15px;
            padding-bottom: 8px;
            border: 1px solid #D3D3D3;
        }

        .exam-answer-text {
            font-size: 2.5em;
            min-height: 36px;
            margin-left: auto;
            margin-right: auto;
        }

        .exam-choice-container {
            margin-left: 9%;
        }

        .exam-answer-choice {
            float: left;
            margin-bottom: initial;
        }

        .exam-nav-container {   
            position: fixed;         
            width: 100%;
            bottom: 2px;
            margin-left: 2px;
            left: inherit;
            right: initial;
            padding-left: .5%;
        }

        div.exam-nav-container input {
            height: 80px;
            font-size: 32px;
            width: 32.5%;
            border-radius: 6px;
            margin-right: 3px;
            display: inline-block;
        }

        .ui-button {
            display: block;
            margin-bottom: 3px;
            border-radius: 4px;
        }

        .WordSection1 {
            /*width: 220px !important;*/
        }

        .WordSection2 {
            left: 221px !important;
        }

        .toc-toggle { 
            /*width: 70px;
            height: 20px;*/  
        }

        .toc-toggle.full-screen {
            left: 0px;  
        }

        .WordSection2.full-screen {
            left: 0px !important;
        }

        .document-course-buttons {
            float: none;
        }

        .slide-course-buttons {
            float: none;
            display: none;
        }

        /*.button-container input {
            margin-left: auto;
            margin-right: auto;
            float: none;
            white-space: normal;
            height: auto;
            min-height: 30px;
        }*/

        .wizard {
            position: fixed;
            top: 50px;
            bottom: 0px;          
        }

        .wizard-content-wrapper {
            width: 80%;
            height: 80%;
            margin-top: auto;
            margin-bottom: auto;
            margin-left: auto;
            margin-right: auto;
            font-size: 16px;
        }

        .wizard-dialog {
            top: 0px;
            font-size: 20px;
            margin-top: 12%;
        }

        .wizard-button-wrapper {
            width: 40%;            
        }

        .wizard-button-wrapper input {
            width: 200px;
            height: 60px;
            font-size: 24px;
            margin-right: 5px;
            border-radius: 6px;
            float: left
        }

        .wizard-dialog.introduction {
            width: 100%;
            height: 95%;
            overflow-y: auto;       
            margin-top: 5%;
            border: 1px solid silver;
            border-radius: 4px;
        }

        .wizard-dialog.notes {
            width: 100%;
            height: 95%;
            overflow-y: auto;
            margin-top: 5%;
            border: 1px solid silver;
            border-radius: 4px;
        }

        .auth-success {
            position: absolute;
            top: 110px;
            right: 40px;
            width: 250px;
        }

        .auth-failed {
            position: absolute;
            top: 120px;
            right: 80px;
        }
    }
}

@media only screen and (orientation: portrait) {
    @media (min-width: 767px) {
        div.WordSection1 {
            top: 0px;
            height: 170px;
            padding-left: 3px;
            position: relative;
            border-bottom: 1px solid #808080;
            width: 100%;
        }

        div.WordSection2 {
            left: 0px;
            right: 0px;
            /*top: 172px;
            bottom: 0px;*/
            padding-left: 3px;
            position: relative;
            border-top: 1px solid #808080;
            height: 70%;
        }

        .nav-bar {
            position: fixed;
            height: 50px;
            top: 26px;
            width: 100%;
        }

            div.WordSection2.course-sutdy {
                bottom: 0px;
            }

            div.WordSection2.final-exam {
                /*height: auto;*/
            }

    div.WordSection2.full-page {
        top: 0px;
    }

    #answerProgress {
        display: none;
    }

        div.course-panel {
            /* left: 0px; */
            /* right: 0px; */
            /* top: 0px; */
            /* bottom: 0px; */
             position: fixed; 
        }

    .slide-question {
        position: relative;
    }

        div.question-panel {
            /* left: 0px; */
            /* right: 0px; */
            /* bottom: 0px; */
            /* top: 1px; */
            border: none;
            border-radius: 0px;
            bottom: 0px;
            position: fixed; 
            top: 69px;
        }

    div.final-exam-header {
        border-radius: 0px;
        top: 0px;
    }

    div.slide-controls-container {
            
    }

    div.slide-links-container {
        /*display: none;*/
    }

    .final-exam-header {
        display: none;
    }

        .tab {
            font-size: small;
            height: 40%;
        }

        .exam-tab.closed-book {
            width: 100%;
        }

    .exam-tab.course-study {
        display: none;
    }

    .course-tab.course-study {
        width: 100%;
    }

        .title-container.final-exam {
            position: relative;
            top: 50%;
            transform: translateY(-50%);
        }

        .title-container.course-study {
            position:fixed;
            top: 7px;
            font-size: .85em;
        }

    .exam-tab.final-exam.open-book {
        position: relative;
        float: right;
        width: 50%;
    }

        .exam-tab.closed-book {
            top: 9px;
            width: 100%;            
            position: relative;
        }

    .exam-tab.inactive {

    }

        .exam-question {
            margin-top: 70px;
            position: relative;            
            height: 25%;
            width: 95%;
            font-size: 20px;
            font-weight: bold;
            min-height: 28%;
        }

        .exam-question-container {
            height: 100%;
            width: 100%;
            position: initial;
        }

        /*.exam-question-container.open-book {
            left: 50px;
            right: 0px;       
            top: 20px;
        }*/

        .exam-answers {
            left: 0px;
            top: 85px;
            margin-top: 0%;
            margin-left: auto;
            margin-right: auto;
            width: 95%;
            margin-top: 5px;
            font-size: .75em;
            height: 40%;
            border: 1px solid #D3D3D3;
            padding-bottom: 8px;
        }

        .exam-question-text {
            position: absolute;
            display: block;
            font-size: .9em;
            margin-right: 10%;
            overflow-y: auto;
        }

        .exam-question-number-container {
            top: 0px;
            left: 0px;
            width: 60px;
            height: 60px;
            font-size: 24px;
            border-radius: 0px;
            border-bottom-right-radius: 13px;
            position: initial;
            float: left;
        }

        .exam-choice-container {
            width: 100%;
        }

    .exam-answer-choice {
        float: left;
        margin-bottom: initial;
    }

        .exam-answer-text {
            font-size: 2.5em;
            min-height: 36px;
            margin-left: auto;
            margin-right: auto;
        }

        .exam-nav-container {
            position: fixed;
            width: 100%;
            bottom: 2px;
            margin-left: 2px;
            left: initial;
            right: initial;
            padding-left: .75%;
        }

        .exam-nav-container input {
            height: 80px;
            font-size: 30px;
            width: 32.5%;
            border-radius: 8px;
        }

    .popup-body {
        font-size: 1.5em;
    }

    .popup-alert-large {
        left: 10px;
        right: 10px;
        top: 10px;
        bottom: 10px;
        width: initial;
        margin-right: initial;
        margin-left: initial;
        position: absolute;
        border-radius: 0px;
        box-shadow: none;
    }

    .popup-alert-medium {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .popup-alert-small {
        width: 60%;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .slide-canvas {
        left: 0px;
        right: 0px;
        bottom: 2px;
    }

    .slide {
        cursor: pointer; 
        width: 10em%; 
        height: 100%; 
        margin-top: 0;
        display: inline;    
    }

    .slide-link {
        width: 16em;
        height: 92%;
        margin: 2px 2px 2px 0;
        padding: 2px;
        display: inline-block;
    }

        .button-container .button {
            width: 75px;
            height: 30px;
            font-size: .85em;
        }

        /*.nav-button {
            top: 35%;
        }*/

    /*.nav-button-prev {
        left: 0px;
    }

    .nav-button-next {
        right: 0px;
    }*/

        .course-content {
            top: 76px;
        }

        .header-panel {
            height: 25px;
            font-size: .85em;
        }

        .header-panel-row2 {
            position: fixed;
            top: 2px;
            right: 0px;
            width: initial;
            margin-right: 5px;
        }

    .affiliate-container {
        display: none;
    }

        .header-nav-container {
            width: 50%;
            height: 9%;
            float: initial;
            margin: 0 0 0 0;
            right: 5px;
            top: 3px;
            position: absolute;
        }

        .eval-question-container {
            
        }

        .eval-question {
            width: inherit;
            float: none;
        }

        .eval-answer-container {
            
        }

        .toc-toggle.full-screen {
            top: 0px;  
            left: 75%; 
        }

        .WordSection2.full-screen {
            top: 0px;
            height: 90%;
        }

        .wizard {
            position: fixed;
            top: 25px;
            bottom: 0px;          
        }

        .wizard-content-wrapper {
            width: 80%;
            height: 80%;
            margin-top: auto;
            margin-bottom: auto;
            margin-left: auto;
            margin-right: auto;
            font-size: 16px;
        }

        .wizard-dialog {
            top: 0px;
            font-size: 20px;
            margin-top: 25%;
        }

        .wizard-button-wrapper {
            width: 50%;
        }

        .wizard-button-wrapper input {
            width: 200px;
            height: 60px;
            font-size: 24px;
            margin-right: 5px;
            border-radius: 6px;
        }

        .wizard-dialog.introduction {
            width: 100%;
            height: 95%;
            overflow-y: auto;       
            margin-top: 5%;
            border: 1px solid silver;
            border-radius: 4px;
        }
    }
}
