@font-face {
    font-family: SegoeWP;
    src: url('fonts/SegoeWP.ttf');
}

html {
    width: 100%;
    height: 100%;
    background-image: url("images/bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /*width: 1280px;
    height: 752px;*/
    font-family: SegoeWP, "Segoe UI", Arial, Helvetica, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    overflow: hidden;
    background-image: url("images/bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#container {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 2%;
    overflow: hidden;
    opacity: 1;
}

.amber { background-color:rgb(241, 163, 11); }
.blue { background-color:rgb(27,161,226); }
.brown { background-color:rgb(160,80,0); }
.cobalt { background-color:rgb(0, 80, 239); }
.crimson { background-color:rgb(162, 0, 37); }
.cyan { background-color:rgb(27, 160, 225); }
.emerald { background-color:rgb(0, 138, 0); }
.green { background-color:rgb(51,153,51); }
.indigo { background-color:rgb(106,0,255); }
.lime { background-color:rgb(162,193,57); }
.magenta { background-color:rgb(216,0,115); }
.mango { background-color:rgb(240,150,9); }
.mauve { background-color:rgb(118,95,137); }
.olive { background-color:rgb(109,135,100); }
.orange { background-color:rgb(250,104,1); }
.pink { background-color:rgb(230,113,184); }
.purple { background-color:rgb(162,0,255); }
.red { background-color:rgb(229,20,0); }
.sienna { background-color:rgb(123,58,62); }
.steel { background-color:rgb(101,118,136); }
.teal { background-color:rgb(0,171,169); }
.yellow { background-color:rgb(216,193,1); }

.myblue { background-color: rgb(18,54,104);}
.amber { background-color: rgb(218,174,0); }
.myred { background-color: rgb(189,47,40); }
.mypurple { background-color: rgb(148,58,185); }
.red { background-color: rgb(219,29,20); }
.myltgreen { background-color: rgb(135,197,1); }
.green { background-color: rgb(110,161,0); }
.myskyblue { background-color: rgb(0,218,215); }
.myorange { background-color: rgb(226,102,2); }
.myltblue { background-color: rgb(27,122,255); }
.mydkblue { background-color: rgb(109,58,185); }

header {
    margin: 0;
    width: 100%;
    height: 26%;
}

div {
    width: 100%;
    height: 100%;
}

#main {
    margin: 2% 0;
    height: 71%;
}

.left {
    float: left;
    margin-right: 1%;
}

.right {
    float: right;
    margin-left: 1%;
}

.half {
    width: 49%;
}

.one3 {
    width: 32.333%;
}

.two3 {
    width: 65.666%;
}

.clearing {
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    height: 50px;
    position: relative;
    top: 100%;
}

#time {
    text-align: center;
    opacity: 1;
}

#date {
    text-align: center;
    display: none;
    opacity: 0;
}

#battery {
    background-image: url("images/battery.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 77px;
}

.toptext {
    text-align: center;
}

#home {
    background-image: url("images/home.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 95px;
}

.sos {
    letter-spacing: 0.25em;
}

#family {

}

#sos, #tv, #meds, .w1 {
    height: 49%;
    margin-bottom: 2%;
}

#app, #weather, #rss, .w2 {
    height: 49%;
}

#sos span, #app span, #tv span, #rss span, #meds span, #weather span {
    display: block;
    width: 75%;
    height: 100%;
    float: right;
    text-align: center;
}

.w1 span, .w2 span {
    display: block;
    width: 70%;
    height: 100%;
    float: right;
    text-align: center;
}

#sos span.icon, #app span.icon, #tv span.icon, #rss span.icon, #meds span.icon, #weather span.icon {
    width: 25%;
    float: left;
    background-repeat: no-repeat;
    background-position: right center;
}

.w1 span.icon, .w2 span.icon {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 30%;
    float: left;
    background-repeat: no-repeat;
    background-position: center 30px;
    background-size: auto 90px;
    text-align: center;
    line-height: 350px;
}

#app span.icon {
    background-image: url("images/app.png");
    background-size: auto 92px;
}

#sos span.icon {
    background-image: url("images/call.png");
    background-size: auto 116px;
}

#tv span.icon {
    background-image: url("images/tv.png");
    background-size: auto 80px;
}

#rss span.icon {
    background-image: url("images/news.png");
    background-size: auto 103px;
}

#meds span.icon {
    background-image: url("images/meds.png");
    background-size: auto 116px;
}

#weather span.icon {
    background-image: url("images/weather.png");
    background-size: auto 60px;
}

.w1 span.icon {
    background-image: url("images/w1.png");
}

.w2 span.icon {
    background-image: url("images/w2.png");
}

.nomargin {
    width: 50%;
    margin: 0;
}

#familytext {
    height: 50%;
    text-align: center;
}

.contact {
    margin: 0;
    width: 100%;
    height: 50%;
}

.contact div, .photos div {
    text-align: center;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%;
}

.contact span {
    display: block;
    width: 100%;
    height: 100%;
    color: #FFFFFF;
    text-align: center;
}

table {
    border-collapse: collapse;
    padding: 0;
    width: 90%;
    margin-left: 5%;
}

#agenda table td {
    border: 2px solid #FFFFFF;
    width: 20%;
    text-align: center;
}

#agenda table td:nth-child(1) {
    border: none;
    width: 21%;
    font-weight: bold;
    text-align: left;
}

#tvprog table td:nth-child(1) {
    padding-left: 3%;
}

#tvprog table td:nth-child(2) {
    font-weight: bold;
}

#tvprog table tr:nth-child(even) {
    background-color:rgb(162,0,255);
}

.call span {
    text-align: center;
    display: block;
    color: #FFFFFF;
    position: relative;
    line-height: 100%;
}

.call img {
    height: 40%;
}

.call {
    margin: 0;
    width: 100%;
    height: 100%;
}

.calling {
    position: relative;
    display: none;
    text-align: center;
    opacity: 0;
}

.calling img {
    margin-top: 15%;
}

.notcalling {
    opacity: 1;
}

.touchslider {
    width: 100%;
    height: 100%;
}

.touchslider2 {
    width: 100%;
    height: 79%;
}

.touchslider-prev, .touchslider-next, .touchslider2-prev, .touchslider2-next {
    width: 10%;
    height: 100%;
    float: left;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60% auto;
}

.touchslider-prev span, .touchslider-next span, .touchslider2-prev span, .touchslider2-next span {
    display: none;
}

.touchslider-prev {
    background-image: url("images/larr.png");
}

.touchslider-next {
    background-image: url("images/rarr.png");
}

.touchslider2-prev {
    background-image: url("images/larr.png");
}

.touchslider2-next {
    background-image: url("images/rarr.png");
}

.touchslider2-prev.news {
    background-image: url("images/larr-blue.png");
}

.touchslider2-next.news {
    background-image: url("images/rarr-blue.png");
}

.touchslider-viewport, .touchslider2-viewport {
    width: 80%;
    height: 100%;
    float: left;
    overflow: hidden;
}

.touchslider-item, .touchslider2-item {
    height: 100%;
    text-align: center;
}

.touchslider-item img {
    height: 100%;
}

.touchslider2-item div {
    height: 100%;
    text-align: center;
}

div.message, div.article {
    height: 100%;
    margin-bottom: 2%;
    line-height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 3%;
}

div.article img {
    float: left;
    text-align: left;
    margin: 10px;
    margin-top: 70px;
    padding: 0;
    width: 40%;
}

div.replybutton {
    position: relative;
    top: 3%;
    width: 100%;
    height: 24%;
    clear: both;
    text-align: center;
    background-color: #FFFFFF;
    color: #253600;
    font-weight: bold;
}

div.replybutton.news {
    color: #34006C;
}

.familyfork, .familymessages {
    height: 50%;
}

.photofork {
    height: 33.33%;
}

.familyfork span, .photofork span {
    text-align: center;
    display: block;
    position: relative;
    line-height: 100%;
}

.photos {
    margin: 0;
    width: 33.33%;
    height: 33.33%;
}

.messages {
    margin: 0;
    width: 50%;
    height: 100%;
}

.messages span {
    display: block;
    width: 100%;
    height: 100%;
    color: #FFFFFF;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 5%;
    line-height: 100%;
}

#shader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*width: 1280px;
    height: 752px;*/
    background-image: url("images/bg.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    z-index: 500;
    opacity: 1;
}

#record {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*width: 1280px;
    height: 752px;*/
    display: none;
    z-index: 200;
    opacity: 0;
}

#record .inner {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    top: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    padding-top: 290px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url("images/microphone.png");
    background-repeat: no-repeat;
    background-size: 60% auto;
    background-position: center 40px;
}

#record .inner span {
    font-size: 50pt;
}

div.loud {
    float: left;
    text-align: left;
    text-indent: 80px;
    margin-left: 5%;
    width: 45%;
    height: 50px;
    font-size: 30pt;
    line-height: 50px;
    margin-top: -100px;
    background-image: url("images/loud.png");
    background-repeat: no-repeat;
    background-size: auto 50px;
    background-position: left center;
}

div.date {
    float: right;
    text-align: right;
    width: 45%;
    margin-right: 5%;
    height: 50px;
    font-size: 30pt;
    line-height: 50px;
    margin-top: -100px;
}

#selfvideowrapper {
    position: absolute;
    z-index: 200;
    display: none;
    background-color: #000000;
    opacity: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
}

#selfvideo {
    width: 100%;
    margin-top: 25px;
}