html {
    color: #ffffff;
    font-size: 1em;
    line-height: 1.4;
    height: 100%;
    width: 100%;
    min-width: 320px;
    overflow: hidden;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}



body {
    font: 16px/26px 'Lato', Helvetica, Helvetica Neue, Arial;
    background-image: url(../img/bg.jpg);
    background-size: cover;
    background-position: 50% 50px;
    background-repeat: no-repeat;

    height: 100%;
    width: 100%;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

a {
    color: #fff;
    -webkit-transition: all .1s ease-in-out;
       -moz-transition: all .1s ease-in-out;
        -ms-transition: all .1s ease-in-out;
         -o-transition: all .1s ease-in-out;
            transition: all .1s ease-in-out;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


.header-container {
    background:#354b5d;
    height: 50px;
    overflow: hidden;
    padding: 0px;
}

.header-container h1 {
    font-size: 38px;
    font-weight: bold;
    line-height: 42px;
    padding: 0;
    margin: 0;
    display: inline-block;
    vertical-align: top;
    zoom: 1; /* Fix for IE7 */
    *display: inline; /* Fix for IE7 */
    margin-left: 12px;
}
.header-container .login {
    padding: 10px 12px;
    background:none;
    color: #aeb0b2;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    height: 50px;
    border:none;
    box-shadow: none;
    float: right;
    display: block;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

.header-container .login:hover {
    color: #fff;
    background:rgba(0,0,0,0.25);
    -webkit-transition: all .1s ease-in-out;
       -moz-transition: all .1s ease-in-out;
        -ms-transition: all .1s ease-in-out;
         -o-transition: all .1s ease-in-out;
            transition: all .1s ease-in-out;
}
/*
.header-container span {
    background:url(../img/logo-small.png) 100% 50% no-repeat;
    height: 50px;
    display: inline-block;
    vertical-align: top;
    zoom: 1;
    *display: inline; 
    padding-right: 62px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
    line-height: 42px;
    margin-top: 3px;
}
*/

.touchcast-block {
    width: 640px;
    margin: 20vh auto;
    height: 320px;
    padding: 40px;
    background:rgba(53,75,93,0.8);
    position: relative;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

.touchcast-block .message {
   margin-right: 240px;
   margin-top: 30px;
}

.touchcast-block .message h2 {
    font-size: 22px;
    text-transform: uppercase;
    line-height: 22px;
    font-weight: 300;
}

.tc-button {
    width: 240px;
    padding: 30px;
    height: 159px;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    position: absolute;
    background:rgba(0,0,0,0.25);
    display: block;
    text-decoration: none;
}



.tc-button h3 {
    text-transform: uppercase;
    font-size: 16px;
    line-height: 22px;
    padding:0;
    margin: 0;
    margin-top: 3px;
    display: inline-block;
    vertical-align: top;
    zoom: 1; /* Fix for IE7 */
    *display: inline; /* Fix for IE7 */
}

.tc-button p {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #aeb0b2;
    padding-right: 50px;
    margin: 0;
    margin-top: 15px;
}

.tc-button .btn-link {
    width: 46px;
    height: 46px;
    display: block;
    float: right;
    opacity: 0.5;
}

.tc-button .btn-link:hover {
    opacity: 1;
}

.download {
    background:url(../img/download.png) 50% 50% no-repeat;
}

.enter {
    background:url(../img/enter.png) 50% 50% no-repeat;
}

.tc-button h3 span {
    color: #25aae1;
    font-size: 22px;
}

.btn-1 {
    top: 0px;
    right: 0px;
}

.btn-2 {
    top: 161px;
    right: 0px;
}


.code-input {
    border: 1px solid #aeb0b2;
    height: 30px;
    line-height: 30px;
    padding:0px 10px;
    color: #aeb0b2;
    border-radius: 3px;
    background:none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    font-size: 14px;
    font-family: "Lato";
    font-weight: 400;
    margin-top: 20px;
    width: 100%;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

.code-input.error {
    border-color: #BD1644;
}













/* ==========================================================================
   Media Queries
   ========================================================================== */



@media only screen and (max-width: 700px) {


.touchcast-block {
    width: 100%;
    margin: 20px auto;
    height: auto;
}

.touchcast-block .message {
  margin-right: 0px;
  text-align: center;
  margin-top: 0px;
}

.touchcast-block img {
    max-width: 100%;
}

.tc-button {
    width: 100%;
    padding: 30px;
    height: auto;
    position: relative;
   
}

.btn-1 {
    top: auto;
    right: auto;
    margin-bottom: 20px;
}

.btn-2 {
    top: auto;
    right: auto;
}



}

@media only screen and (max-width: 450px) {


.touchcast-block {
    padding:20px;
}

.touchcast-block .message h2 {
  font-size: 24px;
  line-height: 26px;
}


}
@media only screen and (min-width: 1140px) {

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.main-container {
    height: 100%;
}
/*
.main {
    display: none;
}
*/

#panel-extension-call a {
    text-decoration: none;
}

.main-viewer {
    width: 100%;
    height: 100%;
}

.main-viewer .wwrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-viewer .panel-streaming,
.main-viewer .panel-messages {
    position: absolute;
    width: 100%;
    height: 100%;
}

.main-viewer .panel-messages .wwrapper .touchcast-block .message {
   margin-right: 20px;
   margin-top: 30px;
   text-align: center;
}

.main-viewer .panel-messages .wwrapper h2 {
    font-size: 19px;
    display: none;
    padding-top: 10px;
}

.main-viewer .panel-messages h2.waiting-for-host {
    display: block;
}

.main-viewer .panel-streaming {
    display: none;
}

.main-viewer .panel-streaming .video-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
}

.main-viewer .panel-streaming .video-container-hidden {
    position: relative;
    overflow: hidden;
}

.main-viewer .panel-streaming video {
    position: absolute;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
}

.main-viewer .panel-streaming video.effects {
    -webkit-transition: left 1s, top 1s, -webkit-transform 1s;
    -moz-transition: left 1s, top 1s, -moz-transform 1s;
    -o-transition: left 1s, top 1s, -o-transform 1s;
    -ms-transition: left 1s, top 1s, -ms-transform 1s;
    transition: left 1s, top 1s, transform 1s;
}

.main-viewer .panel-streaming .iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.main-viewer .panel-streaming .iframe .waiting-upload {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    text-align: center;
    font-size: 2.5em;
}

.main-viewer .panel-streaming .iframe .waiting-upload .message {
    padding-top: 100px;
}

.main-viewer .panel-streaming .iframe .waiting-upload .percent-block {
    padding-top: 50px;
}
