﻿/*!
 	Room signs 
 	Copyright (c) 2015 STÜBER SYSTEMS GmbH, 
    http://www.stueber.de

*/

@import "../fonts/Overpass.css";

* {
    margin: 0;
    padding: 0;
    }

body {
    background: black;
    height: 100%;
    line-height: normal;
}

#davinci-scheduler {
    margin: 0; 
}

.sign-container {
    font-size: 14px;
    margin: 2em;
    padding: 4em;
    color: white;
    background: #016BC2;
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

/* header */

.sign-container .sign-header {
    padding: 2em;
    font-size: 2em;
}
.sign-container .sign-header h1 {
    font-family: 'OverpassRegular', 'Droid Sans';
    font-size: 4em;
    font-weight: normal;
}
.sign-container .sign-header .room-label {
    font-size: 1.4em;
}
 
.sign-container .sign-header .now {
    padding-top: 1em;
    color: rgba(44, 159, 254, 1);
    display: none;
}

.sign-container .sign-header .exam {
    display: none;
}

[data-hash="sign-lesson"] .sign-container .sign-header .now {
    display: block;
}

[data-hash="sign-exam"] .sign-container .sign-header .exam {
    display: block;
}

.sign-container .sign-header .now p {
    font-size:0.6em;
    color: white;
    text-transform: uppercase;
}
.sign-container .sign-header .exam p  {
    font-size: 1.2em;
}
.sign-container .sign-header .now h2 {
    font-size: 2em;
    color: white;
}

.sign-container .sign {
}

/* sign-timetable */

.sign-container .timetable {
    font-size: 14px;
    left: 0;
    right: 14em !important;

    bottom: 0;
    height: 70%;   

    position: absolute;
    box-sizing: border-box;
    max-width: 300px !important;
    overflow: hidden;
}

/* sign-details */

.sign-container .sign-details {
    position: absolute;
    bottom: 3em;
    width: 100%;   
    font-size: 2em;
}

.sign-container .sign-details h1 {
    padding-bottom: 0.5em;
    font-size: 1.2em;
}
.sign-container .sign-details h2 {
    padding-top: 0.4em;
    padding-bottom: 0em;
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* message */

.sign-container .sign-header .message {
}
.sign-container .sign-header .message .pretitle {
    font-size: 0.7em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}
.sign-container .sign-header .message h1 {
    font-size: 2em;
    padding-bottom: 0.6em;
    color: white;
}
.sign-container .sign-header .message p {
    padding-top: 1em;
}

/* sign-header */

.sign-container .sign-header .signature {
    font-size: 1em;
    padding-top: 1em;
    text-align: right;
}

/* roomsign colors */

.closed-label {
    display: none;
}
.sign-default {
    background: #016BC2;
}
.sign-open-close {
    background: #016BC2;
}
[data-hash="sign-open"] .sign-open-close {
    background: #016BC2;
}
[data-hash="sign-lesson"] {
    background: rgba(44, 159, 254, 1);
}
[data-hash="sign-exam"] .sign-container {
    background: #ac0000;
}
[data-hash="sign-open"] .closed-label {
    display: none;
}
[data-hash="sign-closed"] .closed-label {
    display: inline-block;
}
[data-hash="sign-closed"] .sign-open-close {
    background: rgba(37, 37, 38, 1);
}
[data-hash="sign-news"] .sign-news {
    display: inline-block;
}

/* alarm */

.sign-alarm {
    background: #ff3700;
    padding-left: 1%;
    padding-right: 1%;
}

/* news */

.sign-container .sign-news {
    position: absolute;
    top: 40%;
    width: auto;   
    padding: 0.4em;
    margin-right: 2em;
    font-size: 2em;
    background: #ac0000;
}

.sign-news {
    display: none;
}

[data-hash="sign-news"] .sign-news {
    display: block;
}

/* icons */

.icon {
    background-size: 300px 300px;
    background-repeat: no-repeat;
    background-size: cover;
    margin: auto;
    width: 300px;
    height: 300px;
    position: absolute;
    bottom: 1em;
    float: left;
}

.arrow-icon {
    background-image: url("../img/arrow-w-left.svg");
}

[data-hash="arrow-left-icon"]         .arrow-icon { transform: rotate( 0deg); }
[data-hash="arrow-top-left-icon"]     .arrow-icon { transform: rotate( 45deg); }
[data-hash="arrow-up-icon"]           .arrow-icon { transform: rotate( 90deg); }
[data-hash="arrow-top-right-icon"]    .arrow-icon { transform: rotate(135deg); }
[data-hash="arrow-right-icon"]        .arrow-icon { transform: rotate(180deg); }
[data-hash="arrow-bottom-right-icon"] .arrow-icon { transform: rotate(225deg); }
[data-hash="arrow-down-icon"]         .arrow-icon { transform: rotate(270deg); }
[data-hash="arrow-bottom-left-icon"]  .arrow-icon { transform: rotate(315deg); }

.stay-in-room-icon {
    background-image: url("../img/stay-in-room-w.svg");
}
.alarm-finished-icon {
    background-image: url("../img/alarm-finished-w.svg");
}

@media screen and (orientation: portrait) {
    .sign-container .room-sign {
        top: 0;
        bottom: 0;

        left: 0;

        height: auto;
        right: 0;

        box-sizing: border-box;
        position: absolute;

    }
    .icon {
        background-size: 240px 240px;
        width: 240px;
        height: 240px;
    }
    .sign-container .sign-details {
        width: 100%;
        max-height: 40%;
    }
  .sign-container .sign-timetable {
        position: absolute;
        max-height: 60%;
        height: 60%;
        top: 35%;
        margin: 0;
        padding: 0;
        width: 80%;
        margin-right: 2em;
        margin-bottom: 2em;
    }
}

@media screen and (orientation: portrait) and (max-height: 900px) {
    .sign-container .sign-header {
        font-size: 2em;
    }
    .icon {
        background-size: 200px 200px;
        width: 200px;
        height: 200px;
    }
}


@media screen and (orientation: portrait) and (max-width: 700px) {
    .sign-container {
        font-size: 12px;
    }

  .sign-container .sign-timetable {
        font-size: 10px;
    }
}

@media screen and (orientation: landscape) {
    .sign-container .room-sign {
        top: 0;
        bottom: 0;

        left: 0;

        height: auto;
        right: auto;

        box-sizing: border-box;
        position: absolute;
    }

    .sign-container .sign-timetable {
        top: 0;
        bottom: 0;

        right: 0;
        width: 50%;
        
        height: auto;
        left: auto;

        position: absolute;
        box-sizing: border-box;
    }
}


@media screen and (orientation: landscape) and (max-width: 1600px) {
    .icon {
        background-size: 300px 300px;
        width: 300px;
        height: 300px;
    }
}

@media screen and (orientation: landscape) and (max-width: 1200px) {
    .icon {
        background-size: 300px 300px;
        width: 300px;
        height: 300px;
    }
}

@media screen and (orientation: landscape) and (max-width: 700px) {
    .sign-container .sign-header h1 {
        font-size: 6em;
    }
    .icon {
        background-size: 240px 240px;
        width: 240px;
        height: 240px;
    }
}

