/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

 @font-face {
  font-family: 'Roboto';
  src: url("fonts/roboto-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal; }

  @font-face {
  font-family: 'Roboto';
  src: url("fonts/roboto-regular.woff") format("woff");
  font-weight: 300;
  font-style: normal; }

  @font-face {
  font-family: 'Roboto';
  src: url("fonts/roboto-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal; }

 @font-face {
  font-family: 'Roboto';
  src: url("fonts/roboto-bold.woff") format("woff");
  font-weight: 500;
  font-style: normal; }

 @font-face {
  font-family: 'Roboto';
  src: url("fonts/roboto-bold.woff") format("woff");
  font-weight: 600;
  font-style: normal; }

@font-face {
  font-family: 'RobotoMedium';
  src: url("fonts/roboto-medium.woff") format("woff");
  font-weight: 700;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Slab';
  src: url("fonts/RobotoSlab-Light.woff") format("woff");
  font-weight: normal;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Light.woff") format("woff");
  font-weight: 200;
  font-style: normal; }

  @font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Regular.woff") format("woff");
  font-weight: 300;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Bold.woff") format("woff");
  font-weight: 500;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Bold.woff") format("woff");
  font-weight: 500;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Bold.woff") format("woff");
  font-weight: 600;
  font-style: normal; }

@font-face {
  font-family: 'Roboto Condensed';
  src: url("fonts/RobotoCondensed-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal; }

@font-face {
  font-family: 'Comic Sans';
  src: url("fonts/ComicSansMS.woff") format("woff");
  font-weight: normal;
  font-style: normal; }

@font-face {
    font-family: 'Comic Sans';
    src: url("fonts/ComicSansMS-Bold.woff") format("woff");
    font-weight: 600;
    font-style: normal; 
}

@font-face {
    font-family: 'Comic Sans';
    src: url("fonts/ComicSansMS-Italic.woff") format("woff");
    font-weight: normal;
    font-style: italic; 
}

@font-face {
    font-family: 'Comic Sans';
    src: url("fonts/ComicSansMS-BoldItalic.woff") format("woff");
    font-weight: 600;
    font-style: italic; 
}






* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}


body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select:none;

    background-attachment:fixed;
    font-family:RobotoMedium;
    font-size:12px;
    height:100%;
    margin:0px;
    padding:0px;
    width:100%;
    overflow:hidden !important;
}

/* Portrait layout (default) */
.app {
    background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
    position:absolute;             /* position in the center of the screen */
    left:50%;
    top:50%;
    height:50px;                   /* text area height */
    width:225px;                   /* text area width */
    text-align:center;
    padding:180px 0px 0px 0px;     /* image height is 200px (bottom 20px are overlapped with text) */
    margin:-115px 0px 0px -112px;  /* offset vertical: half of image height and text area height */
                                   /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
        background-position:left center;
        padding:75px 0px 75px 170px;  /* padding-top + padding-bottom + text area = image height */
        margin:-90px 0px 0px -198px;  /* offset vertical: half of image height */
                                      /* offset horizontal: half of image width and text area width */
    }
}
#onboarding-arrow{
    -webkit-transform: scaleX(-1);
    -webkit-transform: scaleY(-1);
    position:absolute;
    left:150px;
    top: 60px;
}

#wrapper{
    overflow:hidden;
    height:100%;
    position:absolute;
    width:100%;
    margin:0;
}

header{
    height:56px;
    padding:0;
    background-color:#261D1A;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
    color: #fafafa;
    display: block!important;
}

.headerbutton{
    border-radius:2px !important;
    -webkit-border-radius:2px !important;
    font-family:Roboto Condensed;
    font-size:2em;
    height:40px;
    line-height:0.3;
    text-transform: none;
    color:#ababab;
}

#instant-message{
    background-color: red;
    position:absolute;
    left:0;
    width:100%;
    bottom:0;
    height:70px;
    padding: .6em 0;
    font-size:2.2em;
    display:none;
    z-index: 100;
    text-align: center;
}

#fontsize-message{
    background-color: red;
    position:absolute;
    right:0;
    width:136px;
    bottom:70px;
    height:40px;
    padding: .05em 0;
    font-size:2em;
    z-index: 100;
    display:none;
    text-align: center;
}
/*
#fontsize-message{
background-color: #e3e3e3;
    color: #ec2213;
    border: 1px solid #ec2213;
    position: absolute;
    right: 0;
    width: 300px;
    bottom: 70px;
    height: 40px;
    padding: .05em 0;
    font-size: 2em;
    z-index: 100;
    display: none;
    text-align: center;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    box-shadow: 0px -10px 20px 1px rgba(136, 136, 136, 0.15);
}*/

#episode-button .title, #segment-button .title{
    vertical-align: middle;
}

#episode-button svg{
    margin-top: -2px;
}

#segment-button{
    float:left;
}

#themetitle{
    text-align:left;
    color: white;
}

#begin-button{
    float:left;
    padding: 0 8px;
}

#last-button{
    float:right;
    padding: 0px;
    min-width: 56px !important;
}

#position{
    font-size: 2em;
    display:inline-block;
    text-align:center;
    line-height: 40px;
}
.position-arrow {
    margin-left:10px;
    margin-right:10px;
}

#episodes-list{
    max-height: 500px;
    overflow:auto;
}

footer{
    position:absolute;
    bottom:0px;
    left:0;
    right:0;
    height:70px;
    background-color:#261D1A;
}

.footerlogo{
    height:30px;
    margin-top:20px;
    margin-left: 20px;
}

#nextslug-button{
    color:#ababab;
}

#nextslug-button-label{
    position: relative;
    top: 3px;
}

#zoom-in{
    margin-right:10px;
}
.zoom{
    float:right;
    margin-top:7px;
    margin-right:10px;
    color:#aeaeae;
    font-weight:normal;
}

.pushbutton:not(:active) {
    transition: background-color;
    -o-transition:2s;
  -ms-transition:2s;
  -moz-transition:2s;
  -webkit-transition:2s;
  /* ...and now for the proper property */
  transition:2s;
}

.pushbutton:active {
    background: rgba(77,140,182,1);
}

.pushbutton img{
    position: relative;
    top:-2px;
}

.zoom img{
    width:30px;
}

.footerbutton{
    margin-top:7px;
    margin-left:10px;
    color: #aeaeae;
}

#progress{
    position:absolute;
    top:56px;
    left:0;
    width:100%;
}

.dropdown-menu{
    font-size: 2.5em;
    font-family:Roboto Condensed;
}

#note-button{
    background-color: #EC2113;
    position:absolute;
    bottom:7px;
    margin: 0 auto;
    left: 0;
    right: 0;
    color: white;
}

#note-button img{
   position: relative;
   top: -5px;
}

#auth-screen img{
    width:200px;
}

#auth-screen{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    overflow:none;
    background-color:#fafafa;
    font-family: 'Roboto';
    z-index: 10;
}

#auth-screen .auth-popup{
    width: 500px;
    margin-right:auto;
    margin-left:auto;
    margin-top:20%;
}

#auth-screen header, #auth-screen main{
    padding: 20px 20px;
}

#auth-projects{
    padding-top:30px;
    font-size: 1.5em;
    display: block;
    margin-bottom:100px;
}

#auth-projects .dropdown-menu{
    font-size: 1em !important;
    font-family:Roboto !important;
}

#auth-screen #auth-submit-button{
    display:block;
    margin-top:40px;
}

#auth-screen #auth-logo{
    margin-top:20px;
    margin-bottom:20px;
}

#main{
    display: flex;
    flex-direction:column;
    flex-wrap: nowrap;
    position:absolute;
    top:56px;
    left:0;
    right:0;
    bottom:70px;
    font-size:32px;
    font-family:Roboto Condensed;
}

#main p{
    font-size: 1em;
    line-height:1.2em;
}

#main h4{
    font-size: 1.2em;
    line-height:1.4em;
}

#main h3{
    font-size: 1.4em;
    line-height:1.6em;
}

#main h2{
    font-size: 1.6em;
    line-height:1.8em;
}
#main h1{
    font-size: 1.8em;
    line-height:2em;
}

#canvas{
    height:100%;
    background-color:#eaeaea;
    overflow-y: auto;
    overflow-x: hidden;
}

#canvas *{
  line-height: 1.2em;
}

#notes{
    border-top: 4px solid #EC2113;
    border-bottom: 4px solid #EC2113;
    min-height: 130px;
    background-color:rgba(236, 33, 19, 0.06);
}

#notes-collapse-button{
    position:absolute;
    width: 50px;
    bottom:104px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.smallFabButton{
    width:45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    height:45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
}

.smallFabButton svg{
    width:15px;
}

#notes-trash-button{
    position:absolute;
    background-color:#EC2113;
    font-size:14px;
    line-height:14px;
    color: white;
    bottom:-58px;
    z-index: 1;
    margin: 0 auto;
    left: 0;
    right: 0;
}

h1{
    font-size:24px;
    font-weight:normal;
    margin:0px;
    overflow:visible;
    padding:0px;
    text-align:center;
}

.event{
    border-radius:4px;
    -webkit-border-radius:4px;
    color:#FFFFFF;
    font-size:12px;
    margin:0px 30px;
    padding:2px 0px;
}

.event.listening{
    background-color:#fafafa;
    display:block;
}

.event.received{
    background-color:#4B946A;
    display:none;
}

.showmedia #picture-button{
    background-color:red;
}

body[slave="true"] #slave-button{
    background-color: red;
}

.inlinemedia{
    display:none;
}
.showmedia .inlinemedia{
    display:block;
}

.btn-primary-large{
    background-color: #4180af;
    color: white !important;
    font-family: Roboto Condensed;
    border-radius:2px !important;
    -webkit-border-radius:2px !important;
    font-size: 0.9em;
    height: 50px;
    line-height: 0.3;
    text-transform: none;
    outline: 0 !important;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   TOOLBAR
   ========================================================================== */
.toolbar {
    min-height: 56px;
    max-height: 56px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 10px;
    position: relative;
    width: 100%;
}

.toolbar-section-right {
    margin-left: auto !important;
    float: right;
}

.toolbar-section-left, .toolbar-section-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 1;
}

.toolbar-element {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

/* ==========================================================================
   MARGINS
   ========================================================================== */

.mr-10{
    margin-right:10px;
}

.mr-30{
    margin-right:30px;
}

.ml-10{
    margin-left:10px;
}

/* ==========================================================================
   CARET
   ========================================================================== */

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px !important;
  vertical-align: middle;
  border-top: 5px solid;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}


/* ==========================================================================
   THEME MODE
   ========================================================================== */

/*.thememode header{
    background-color:#4180af !important;
    color: white !important;
}
.thememode .headerbutton,.thememode #theme-button.headerbutton{
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1) !important;
    background-color: #63a0ce;
}

.thememode #episode-button.headerbutton,
.thememode #segment-button.headerbutton{
    background-color: #3e3735 !important;
    color: #ababab !important;
}

.thememode #last-button svg, .thememode #begin-button svg{
    fill: white !important;
    color: white !important;
}*/

#theme-button{
    float:right;
    background-color: #4180af;
    color:white;
    max-width: 35vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#theme-button:after{
    /*content: "\f050;*/
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .3em;
    vertical-align: middle;
    content: "";
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.themeode #canvas{
    border-top: 10px solid #4180af;
}

/* ==========================================================================
   OTHER THEMES PANEL
   ========================================================================== */
#otherthemes{
    background-color: #fafafa;
    display: block;
}

#otherthemes-btn{
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#otherthemes-list{
    background-color: #4180af;
    margin-top: -1px;
    padding-top: 1vw;
    padding-bottom: 1vw;
}

#otherthemes-list-wrapper{
    background-color: transparent;
    margin-top: -1px;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-align: center;
    align-items: center;*
}

#otherthemes-list .otherthemes-card{
    display: inline-block;
    width: 22vw;
    font-size: 27px;
    height: 56px;
    background-color: white;
    color: #000000;
    margin: 0.8vw 1.5vw;
    line-height: 56px;
    padding-left: 5px;
    padding-right: 5px;
    border: 2px solid #7eb2d9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#shortcut-buttons{
  position:absolute;
  right:300px;
  bottom:8px;
  text-align: left;

}

/* ==========================================================================
   OTHER THEMES PANEL
   ========================================================================== */

.btn.focus, .btn:focus, .btn:hover {
    color: #ffffff;
}



#marker-button
{
    display:none !important;
}

#logout-button{

    float: right;
    margin-right:10px;
    margin-left:100px;
}

#refresh-button{
    margin-right:100px;
}


