/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

    body {
	    width: 100%;
	    /*background: #D1D1D1 url('../img/background_coming_soon.png') fixed top no-repeat;*/
	    background: #D1D1D1 url('../img/background_full.png') fixed top no-repeat;
	    /*background-color: Gold;*/
	    overflow: hidden;
    }

    a:link,
    a:visited{
	    color:#772981;
	    text-decoration:none;
	}

    .spinner {
      position: fixed;
      top: 30%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: none;
    }

    /* for the unsupported browser div */
    #div_unsupported_browser {
        display: none;
        z-index: 3;
        background-color: #ffffff;
        color: red;
        text-align: center;
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        vertical-align: middle;
        line-height: 30px;
        height: 30px;
    }
    #span_unsupported_browser:before {
        content: attr(data-ng-message);
    }
    #div_mobile_device {
        display: none;
        z-index: 4;
        background-color: #ffffff;
        color: purple;
        text-align: center;
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 80px;
    }
    #span_mobile_device {
        display: inline-block;
        text-align: left;
        vertical-align: super;
        font-size: 28px;
        line-height: 34px;
    }

    #div_logo {
        margin: 30px 0px;
    }

    /*to style the dialog box.*/
    #div_dialog {
        display:none; text-align:center; padding:20px;
    }
    .ui-dialog-titlebar {display:none;} /* remove title box. */
    .ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix {border:none} /* remove line above buttons. */
    /* don't float buttonset, move it 5px to right and center buttons. */
    .mimio-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
       float: none !important; left:5px; position:relative; text-align: center;
    }
    /* add 10px around buttons */
    .mimio-dialog .ui-dialog-buttonpane .ui-dialog-buttonset .ui-button {
       margin:10px;
    }
    /* remove outline from active button. */
    .mimio-dialog .ui-dialog-buttonpane .ui-dialog-buttonset .ui-state-focus {
        outline:none;
    }

    #connectDiv {
        text-align: center;
	    margin: 30px auto;
        display: none;
    }
    #connectDiv img {
        cursor: pointer;
    }
    #connect_wrap {
        height:260px;
    }
    .connect_input {
        display:inline-block;
        margin-bottom:5px;
        background-color: #ffffff;
        border:1px solid #A5A6A8;
        border-radius:5px;
	    max-width: 350px;
        width: 350px;
        height:194px;
        overflow: hidden;
        font-size:24px;
        line-height:30px;
        color: #FFFFFF;
    }
    .connect_input input {
        line-height:48px;
        height:48px;
        width:100%;
        border-width:1px 0 0 0; border-style: solid; border-color: #A5A6A8;
        padding-left: 10px;
        font-size:24px;
    }
    .connect_input_manual {
        display:inline-block;
        margin-bottom:5px;
        /*background-color: #ffffff;*/
        border:1px solid #A5A6A8;
        border-radius:5px;
        max-width: 350px;
        width: 350px;
        height:194px;
        overflow: hidden;
        font-size:24px;
        line-height:30px;
        color: #FFFFFF;
    }
    .connect_input_manual input {
        line-height:48px;
        height:48px;
        width:100%;
        border-width:0 0 1px 0; border-style: solid; border-color: #A5A6A8;
        padding-left: 10px;
        font-size:24px;
    }
    #role_selection {
        display: inline;
        /*margin-top:5px*/
    }
    #role_selection img {
        float: left;
        vertical-align:top;
        border-left: 0px;
        border-right: 1px;
        padding-left: 0px;
        padding-right: 0px;
        margin-top: 0px;
        margin-left: 0px;
        margin-right: 0px;
        max-width: 174px;
        /*height: 39px;*/
    }
    #div_manual {
        display: none;
    }
    #div_history {
	    max-width: 350px;
        height: 200px;
        margin-bottom: 8px;
    }
    #histories {
        max-height: 200px;
        overflow-y: auto;
        font-size:16px;
        color:purple;
    }
    .history {
        float:left; width:100%; padding:10px 0 9px 0; text-align:left; border-bottom:1px solid #A5A6A8; cursor:pointer; z-index:100;
    }
    .history img {
        max-width:30px; vertical-align:middle; margin-left:5px; margin-top:-3px;
    }
    .history:hover {
	    background-color: #D3D3D3;
	    border-color: purple;
    }
    .history:focus {
	    background-color: yellow;
	    border-color: purple;
    }
    .history_classname {
        float:left; width:60%; white-space:nowrap; overflow:hidden;
    }

    #connect {
        text-align: center;
    }
    #connect img {
        max-width:350px;
        height:auto;
        cursor:pointer;
    }
    #div_connect_methods {
        margin-top:10px
    }
    #div_connect_methods img {
        margin:0; vertical-align:top;
    }
    #btn_web_id, #btn_history, #btn_manual {
        max-width:150px;
    }
    #btn_web_id_sm, #btn_history_sm, #btn_manual_sm {
        max-width:120px;
    }
    #mobile_trial {
        line-height:30px;
        height:30px;
        font-size:24px;
	    color:#772981;
        margin-top:30px;
        text-align:center;
    }
    #span_privacy_policy { font-size:14px; text-decoration:underline; }

    #hand {
        display: none;
    }

    #name_wrapper
    {
	    position:absolute; top:0; left:40px; width:60%; z-index:2; line-height:44px;
        color:#ffffff; font-size:large; text-align:left;
    }
    .name_wrapper_for_collab {
        max-width: 25%;
    }
    .name_wrapper_for_control {
        max-width: 25%;
    }
    #name_flex
    {
        display: block;
        -webkit-box-flex: 1;
    }

    #name
    {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    #collaborate_wrap
    {
        display:none; width:100%; background-color:#494949; position: absolute; left: 0; top:0; z-index:1; max-height:44px; padding: 3px 0; /*overflow: hidden;*/
    }

    #menu
    {
        width:100%; text-align:center;
    }

    #menu img {
        height:38px;
        width:auto;
    }

    #tools {
        display:none; white-space: nowrap;
    }
    
    #shortcut_more_tools {
        display:none;
    }

    #desktop_tools {
        display:none; white-space: nowrap;
    }

    .picker
    {
        display:none; width:100%; background-color:#7B7C7E; text-align:center; padding-top:10px;
    }

    .picker img
    {
        width:40px;
        height:auto;
    }

    .pick_row
    {
        padding-bottom:10px;
    }

    .pick
    {
        border:2px solid black; border-radius:10px;
    }

    .pick_active
    {
        border:5px solid #B3FDFD; border-radius:10px;
    }
    
    .pick_ctrl
    {
        /* Used for desktop control shortcut buttons */
    }

    .body-wrapper {
        padding-right: 20px;
        padding-left: 20px;
        max-width:100%;
        height:100%;
        text-align:center;
      }

    #student-list-wrap {
        display: none;
        max-width: 100%;
        text-align:center;
    }
    #student-list {
        text-align: center;
        background-color: #ffffff;
        border:1px solid #A5A6A8;
        border-radius:5px;
	    max-width: 350px;
	    margin: 80px auto;
        overflow: hidden;
	    /*-webkit-box-shadow: 2px 2px 5px 0px rgba(133,133,133,1);
	    -moz-box-shadow: 2px 2px 5px 0px rgba(133,133,133,1);
	    box-shadow: 2px 2px 5px 0px rgba(133,133,133,1);*/
    }
    #students {
        max-height: 500px;
        overflow-y: auto;
    }

    .list-group {
	    background-color: #009FE4;
        line-height:36px;
        width: 100%;
	    text-align: center;
        color: #ffffff;
        border:0;
        /*border-radius:5px 5px 0 0;*/
        font-size: 24px;
    }

    .list-group-item {
        padding-left: 20px;
        line-height:36px;
        width: 100%;
	    text-align: left;
        border-top:1px solid #A5A6A8;
        cursor: pointer;
        font-size: 16px;
    }

    /*.list-group-item:last-of-type {
        border-radius:0 0 5px 5px;
    }*/

    .list-group-item:hover {
	    background-color: gray;
	    border-color: purple;
    }

    .list-group-item:focus {
	    background-color: yellow;
	    border-color: purple;
    }

    #waiting_wrap {
        max-width:100%; height:100%;
        display: flex;
        justify-content: center;
    }
    .waiting {
        align-self: center;
        height: auto;
        width: 800px;
        -webkit-transition:-webkit-transform .5s;
        -moz-transition:-moz-transform .5s;
        -ms-transition:-ms-transform .5s;
        -o-transition:-o-transform .5s;
        transition:transform .5s;
    }
    #waiting_vert {
        display: none;
    }
    #teacher_waiting_wrap {
        max-width:100%; height:100%;
        display: flex;
        justify-content: center;
    }
    .teacher_waiting {
        width: 400px;
        align-self: center;
        height: auto;
        -webkit-transition:-webkit-transform .5s;
        -moz-transition:-moz-transform .5s;
        -ms-transition:-ms-transform .5s;
        -o-transition:-o-transform .5s;
        transition:transform .5s;         
    }
    .off{
        -webkit-transform:scale(0);
        -moz-transform:scale(0);
        -ms-transform:scale(0);
        -o-transform:scale(0);
        transform:scale(0);
    }

    .hidden {
        display: none;
    }

    #vote_wrap {
        max-width:100%; height:100%;
        display: flex;
        justify-content: center;
    }

    #vote {
        align-self: center;
        display: none;
    }

    #answer_submitted {
        visibility: hidden; color:white; font-weight:bold; font-size:24px; text-align:center; margin-bottom:20px;
    }

    #question_scroll {
        position:absolute; right:-10px; bottom:-30px; color:#707070; font-weight:bold; font-size:14px; line-height:16px;
    }
    #vote_submit {
        text-align: center;
        margin-top:10px;
    }
    #vote_submit img {
        display: none;
        width:350px;
        height:auto;
        padding:0 10px;
        cursor:pointer;
    }

    #vote_box_wrapper {
        display:inline-block;
        vertical-align:middle;
        margin:0 auto;
    }
    #vote_box {
        display:table;
	    background: white;
	    border: 10px #707070 solid;
	    border-radius: 25px;
        width:600px;
        height:200px;
        vertical-align:middle;
        position: relative;
    }
    #vote_box_center {
        display:table-cell;
        height:100%;
        width:100%;
        text-align:center;
        vertical-align:middle;
    }
    .vote_arrow {
        display:inline-block;
        height:200px;
        vertical-align:middle;
    }
    .vote_arrow_middle {
        display: inline-block;
        height: 100%;
        vertical-align: middle;
    }
    .vote_arrow img {
        vertical-align:middle;
        width:40px;
        height:auto;
    }
    .vote
    {
        display: inline-block;
	    vertical-align:middle;
        margin: 0 auto;
    }
    .vote_content {
        display:table;
    }
    .vote_button {
	    width: 70px;
	    height: auto;
	    margin: 0 15px;
        cursor:pointer;
    }
    .vote_text {
        width:500px; line-height:18px; font-size:16px; font-weight:bold; border-radius:5px; margin:3px 0; outline-width:0;
    }
    #vote_essay {
        height:170px;
    }

    .disable-div {
        pointer-events: none;
        opacity: 0.8;
    }

    .navbar-nav .active a {
      background: rgba(0,0,0,.125) !important;
    }
    .tab-content {
      background: rgba(0,0,0,.125);
    }
    .rotate180 {
      transform: rotate(180deg);
    }

    /* Smartphones (landscape) ----------- */
    @media only screen
    and (max-width : 1599px) {
    /* Styles */
        .name_wrapper_for_control {
            max-width: 20%; 
        }
    }

    /* Smartphones (landscape) ----------- */
    @media only screen
    and (max-width : 1279px) {
    /* Styles */
        .name_wrapper_for_control {
            max-width: 14%; 
        }
    }

    /* Smartphones (landscape) ----------- */
    @media only screen
    and (max-width : 1024px) {
    /* Styles */
        #waiting {
            width: 600px;
        }        
        .name_wrapper_for_control {
            max-width: 11%; 
        }
    }

    /* Smartphones (landscape) ----------- */
    @media only screen
    and (max-width : 959px) {
    /* Styles */
        #waiting {
            width: 600px;
        }             
        .name_wrapper_for_control {
            max-width: 0; /* Hide the name since there's no room */
        }
    }

    /* Smartphones (landscape) ----------- */
    @media only screen and (max-width : 767px) {
        /* Styles */
        body {
            /*background-color: red;*/
            background-color: #D1D1D1;
        }

        #menu img {
            width: 38px;
            height: auto;
        }

        #waiting {
            width: 600px;
        }       

        #shortcut_more_tools {
            display: inline;
        }
        
        #more_tools {
            display: none;
        }

        .vote_button {
            width: 60px;
            border-width: 9px;
        }

        #vote_box {
            width: 520px;
        }

        .vote_arrow img {
            width: 35px;
        }

        .vote_text {
            width: 450px;
        }

        #vote_submit img {
            width: 300px;
        }
        .name_wrapper_for_collab {
            max-width: 22%;
        }
        .name_wrapper_for_control {
            max-width: 25%; // larger than previous because we've adding the shortcut button
        }
        /*#div_unsupported_browser {
            height:60px;
        }*/
        #span_unsupported_browser:before {
            content: attr(data-swap);
            white-space: pre; /* or pre-wrap */
        }
    }

    @media only screen
    and (max-width : 639px) {
    /* Styles */
	    body {
		    /*background-color: green;*/
            background-color: #D1D1D1;
	    }
        #div_logo {
            margin-bottom: 20px;
        }
        #div_logo img {
            max-height:40px;
        }
        #connectDiv {
	        margin: 25px auto;
        }
        .connect_input {
            max-width:300px;
        }
        #connect img {
            max-width:300px;
        }
        #mobile_trial {
            font-size:14px;
            line-height:18px;
            height:20px;
        }
	    #waiting {
	        width: 450px;
            margin: 100px auto;
	    }
        .teacher_waiting {
            width: 250px;
        }
        .vote_button {
	        width: 55px;
	        margin: 0 5px;
        }
        #vote_box {
	        width: 360px;
            border-width: 8px;
        }
        .vote_arrow img {
            width: 30px;
        }
        .vote_text {
            width:330px;
        }
        #vote_submit img {
            width: 250px;
        }
        #question_scroll {
            font-size:12px;
        }
        .name_wrapper_for_collab {
            max-width: 16%;
        }
        .name_wrapper_for_control {
            max-width: 22%;
        }
    }

    @media only screen and (max-height : 600px) {
        #students {
            max-height: 370px;
        }
    }

    @media only screen and (max-height : 490px) {
        #students {
            max-height: 295px;
        }
    }

    @media only screen and (max-height : 410px) {
        #students {
            max-height: 185px;
        }
    }

    @media only screen
    and (max-width:479px) {
    /* Styles */
	    body {
		    /*background-color: blue;*/
            background-color: #D1D1D1;
	    }
        #waiting {
            display: none;
        }
	#waiting_vert {
            display: inline-block;
            margin: 60px auto;
            width: 200px;
	}
        #menu img {
            width: 30px;
            height: auto;
        }
        .vote_button {
	        width: 40px;
	        margin: 0 2px;
        }
        #vote_box {
	        width: 240px;
            border-width: 6px;
        }
        .vote_arrow img {
            width: 25px;
        }
        .vote_text {
            width:220px;
        }
        #vote_submit img {
            width: 200px;
        }
        #question_scroll {
            font-size:10px;
        }
        .name_wrapper_for_collab {
            display: none;
        }
        .name_wrapper_for_control {
            display: none;
        }
        #span_mobile_device {
            font-size: 22px;
        }
        #div_history {
	        max-width: 300px;
        }
        .history_classname {
            width:52%;
        }
        #btn_web_id, #btn_history, #btn_manual {
            max-width:105px;
        }
        #btn_web_id_sm, #btn_history_sm, #btn_manual_sm {
            max-width:85px;
        }
    }

    /* Smartphones (portrait and landscape) ----------- */
    @media only screen
    and (min-device-width : 320px) and (max-device-width : 480px) {
    /* Styles */
	    body {
		    /*background-color: red;*/
	    }
        .name_wrapper_for_collab {
            max-width:10%;
        }
        .name_wrapper_for_control {
            max-width:16%;
        }
    }

    /* Smartphones (portrait) ----------- */
    @media only screen
    and (max-width : 320px) {
    /* Styles */
	    body {
		    /*background-color: blue;*/
            background-color: #D1D1D1;
	    }
        #menu img {
            max-width:36px;
        }
        .vote_button {
	        max-width: 35px;
        }
        #vote_box {
	        width: 220px;
            border-width: 4px;
        }
        .vote_arrow img {
            width: 15px;
        }
        .vote_text {
            width:190px;
        }
        #vote_submit img {
            width: 150px;
        }
        .name_wrapper_for_collab {
            display:none;
        }
        .name_wrapper_for_control {
            display:none;
        }
        #btn_web_id, #btn_history, #btn_manual {
            max-width:90px;
        }
        #btn_web_id_sm, #btn_history_sm, #btn_manual_sm {
            max-width:70px;
        }
    }

    /* iPads (portrait and landscape) ----------- */
    @media only screen
    and (min-device-width : 768px)
    and (max-device-width : 1024px) {
    /* Styles */
	    body {
		    /*background-color: yellow;*/
	    }
    }

    /* iPads (landscape) ----------- */
    @media only screen
    and (min-device-width : 768px)
    and (max-device-width : 1024px)
    and (orientation : landscape) {
    /* Styles */
	    body {
		    /*background-color: purple;*/
	    }
    }

    /* iPads (portrait) ----------- */
    @media only screen
    and (min-device-width : 768px)
    and (max-device-width : 1024px)
    and (orientation : portrait) {
    /* Styles */
	    body {
		    /*background-color: orange;*/
	    }
    }

    /* TEST ----------- */
    @media only screen
    and (min-width : 768px) {
    /* Styles */
	    body {
	        /*background-color: Beige;*/
	    }
    }

    /* Desktops and laptops ----------- */
    @media only screen
    and (min-width : 1224px) {
    /* Styles */
	    body {
		    /*background-color: maroon;*/
	    }
    }

    /* Large screens ----------- */
    @media only screen
    and (min-width : 1824px) {
    /* Styles */
	    body {
		    /*background-color: white;*/
	    }
    }

    /* iPhone 4 ----------- ALL DEVICES ARE HITTING THIS - COMMENT OUT FOR NOW!!
    @media
    only screen and (-webkit-min-device-pixel-ratio : 1.5),
    only screen and (min-device-pixel-ratio : 1.5) {
     Styles
	    body {
		    background-color: white;
	    }

    }*/
