@font-face {
    font-family: MyriadProRegular;
    src: url('fonts/MyriadPro-Regular.otf');
}

@font-face {
    font-family: SegoeWP;
    src: url('fonts/SegoeWP.ttf');
}

body {
    margin: 0;
    padding: 0;
    width: 1024px;
    height: 768px;
    font-family: MyriadProRegular, SegoeWP, "Segoe UI", Arial, Helvetica, sans-serif;
    color: #FFFFFF;
    background-color: #4A4A4A;
    background-image: url("../img/bg.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 775px;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.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); }

.mypurple { background-color: rgb(145,4,151); border: 2px solid rgb(175,21,182); -webkit-box-sizing: border-box; box-sizing: border-box; }
.myskyblue { background-color: rgb(46,138,241); border: 2px solid rgb(75,160,251); -webkit-box-sizing: border-box; box-sizing: border-box; }
.myred { background-color: rgb(180,28,67); border: 2px solid rgb(203,61,98); -webkit-box-sizing: border-box; box-sizing: border-box; }
.mygreen { background-color: rgb(0,162,0); border: 2px solid rgb(9,182,9); -webkit-box-sizing: border-box; box-sizing: border-box; }
.myorange { background-color: rgb(218,84,46); border: 2px solid rgb(246,110,71); -webkit-box-sizing: border-box; box-sizing: border-box; }
.myblue { background-color: rgb(18,54,104);}
.amber { background-color: rgb(218,174,0); }
.myltgreen { background-color: rgb(135,197,1); }
.myltblue { background-color: rgb(27,122,255); }
.mydkblue { background-color: rgb(109,58,185); }

div.box {
    height: 100%;
    overflow: hidden;
}

div.left {
    float: left;
    margin-right: 5px;
}

div.right {
    float: right;
    margin-left: 5px;
}

div.middle {
    float: left;
    margin-left: 5px;
}

div.half {
    width: 467px;
}

div.quarter {
    width: 228.5px;
}

div.narrow {
    width: 129px;
}

div.wide {
    width: 666px;
}

#container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 40px 40px 65px;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

header {
    margin: 0 auto 10px;
    padding: 0;
    width: 944px;
    height: 214px;
    -webkit-transition: height 0.5s;
    transition: height 0.5s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

header.lower {
    height: 129px;
}

header .box {
    -webkit-transition: width 0.5s, background-color 0.5s, border 0.5s;
    transition: width 0.5s, background-color 0.5s, border 0.5s;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

div.table-wrap {
    display: table;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

div.table-wrap > span, div.table-wrap > div {
    display: table-cell;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

#time, #date, #home-button {
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#time {
    font-size: 120pt;
}

#date {
    font-size: 72pt;
}

#home-button {
    background-image: url(../img/home-button.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 80px;
}

#battery {
    width: 100%;
    height: 100%;
    background-image: url(../img/battery/6.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 40%;
    position: absolute;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#heading {
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#heading span {
    font-size: 60pt;
}

#thumbnail {
    width: 0;
    margin-left: 0;
    -webkit-transition: width 0.5s;
    transition: width 0.5s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#thumbnail.enabled {
    width: 129px;
    margin-left: 10px;
}

.transparent {
    opacity: 0;
}

#content {
    margin: 0 auto;
    width: 944px;
    height: 439px;
    text-align: center;
    font-size: 20pt;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#content.higher {
    height: 524px;
}

#content > div {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

div.top {
    height: 214px;
    margin-bottom: 10px;
}

div.bottom {
    height: 214px;
}

.higher div.top {
    height: 257px;
    margin-bottom: 10px;
}

.higher div.bottom {
    height: 257px;
}

.leftmenu div.top {
    height: 129px;
    margin-bottom: 68.5px;
}

.leftmenu div.bottom {
    height: 129px;
}

#family-tiles > div {
    width: 228.5px;
    height: 214px;
    overflow: hidden;
}

#family-tiles > div:nth-child(odd) {
    float: left;
    margin-right: 5px;
}

#family-tiles > div:nth-child(even) {
    float: right;
    margin-left: 5px;
}

#family-tiles > div:nth-child(-n+2) {
    margin-bottom: 10px;
}

#sos-button, #books-button, #apps-button {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 120px;
}

#sos-button {
    background-image: url(../img/sos-button.png);
    background-position: 40px center;
}

#sos-button span {
    text-indent: 140px;
    font-size: 100pt;
}

#books-button {
    background-image: url(../img/books-button.png);
}

#apps-button {
    background-image: url(../img/apps-button.png);
}

#tv-button, #tasks-button, #weather-button, #news-button {
    background-repeat: no-repeat;
    background-position: 40px center;
    background-size: auto 100px;
}

#tv-button span, #tasks-button span, #weather-button span, #news-button span {
    text-indent: 160px;
    font-size: 50pt;
}

#tv-button {
    background-image: url(../img/tv.png);
}

#tasks-button {
    background-image: url(../img/tasks.png);
}

#weather-button {
    background-image: url(../img/weather.png);
    background-size: auto 65px;
}

#news-button {
    background-image: url(../img/news.png);
}

.leftmenu {
    width: 129px;
    height: 100%;
    float: left;
    margin-right: 10px;
}

#call-menu, #messages-menu, #photos-menu {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 95px auto;
}

#call-menu {
    background-image: url(../img/sos-button.png);
}

#messages-menu {
    background-image: url(../img/messages-button.png);
}

#photos-menu {
    background-image: url(../img/photos-button.png);
}

#detail {
    float: right;
    width: 805px;
    background-color: #636363;
    border: 2px solid #727272;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.rightmenu {
    width: 127px;
    height: 100%;
    float: right;
    background-color: #5C5C5C;
    border-left: 2px solid #727272;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.rightmenu > div {
    width: 100%;
    height: 100%;
}

#loud, #reply, #hangup, #prev, #next, #play, #news-next, #news-prev {
    width: 127px;
    height: 127px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 75px auto;
}

#loud {
    background-image: url(../img/loudspeaker.png);
}

#reply {
    background-image: url(../img/reply.png);
    margin-top: 270px;
}

#hangup {
    background-image: url(../img/hangup.png);
    margin-top: 157px;
    display: none;
}

#sound-controls {
    width: 127px;
    height: 240px;
    background-image: url(../img/sound-controls.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70px auto;
}

#prev, #next, #play, #news-next, #news-prev {
    background-size: 50px auto;
}

#prev, #news-prev {
    background-image: url(../img/prev.png);
}

#next {
    background-image: url(../img/next.png);
    margin-top: 71.5px;
}

#news-next {
    background-image: url(../img/next.png);
    margin-top: 270px;
}

#play {
    background-image: url(../img/play.png);
    margin-top: 71.5px;
}

.detail-content {
    float: left;
    height: 100%;
    width: 674px;
}

.detail-content > div {
    width: 100%;
    height: 100%;
}

.call-text {
    font-size: 40pt;
    margin-top: 50px;
}

.black-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 674px;
    height: 520px;
    background-color: black;
    z-index: 5;
    display: none;
}

#call-detail {
    position: relative;
}

.video-screen {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
}

#photos-detail .swiper-slide img {
    width: 674px;
    margin-top: 37px;
}

.message {
    position: relative;
    margin: 78px auto 0;
    max-width: 600px;
    background-color: #4E4E4E;
    border-radius: 10px;
    padding: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 50pt;
}

.ear {
    position: absolute;
    top: 50px;
    left: -20px;
}

#microphone {
    width: 1024px;
    height: 768px;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 0;
    top: 0;
    text-align: center;
}

.microphone-inner {
    width: 240px;
    height: 240px;
    margin: 0 auto 0;
    border-radius: 5px;
    background-color: #000000;
    position: relative;
    top: 50%;
    margin-top: -120px;
    background-image: url(../img/microphone.png);
    background-repeat: no-repeat;
    background-size: auto 120px;
    background-position: center 35%;
}

.microphone-inner span {
    font-size: 26pt;
    position: relative;
    top: 170px;
}

audio {
    visibility: hidden;
}

#tvprog table td:nth-child(1) {
    padding-left: 3%;
}

#tvprog table td:nth-child(2) {
    font-weight: bold;
}

#tvprog table tr {
    height: 105px;
    font-size: 28pt;
}

#tvprog table tr:nth-child(even) {
    background-color:rgb(162,0,255);
}

table {
    border-collapse: collapse;
    padding: 0;
    width: 90%;
    margin: 0 auto;
    font-size: 20pt;
}

#agenda table tr {
    height: 100px;
}

#agenda table td {
    border: 2px solid #FFFFFF;
    width: 20%;
    height: 60px;
    text-align: center;
}

#agenda table td:nth-child(1) {
    border: none;
    width: 21%;
    font-weight: bold;
    text-align: left;
}

#weather span {
    font-size: 40pt;
    padding-left: 150px;
}

#weather strong {
    font-size: 60pt;
}

#weather > div {
    background-image: url(../img/w1.png);
    background-repeat: no-repeat;
    background-position: 10% center;
    background-size: auto 120px;
}

#weather > div:nth-child(1), #weather > div:nth-child(2) {
    background-image: url(../img/w2.png);
}

#news {
    width: 944px;
    background-color: #636363;
    border: 2px solid #727272;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.news-slider {
    float: left;
}

.article span {
    display: block;
    font-size: 32pt;
    margin-top: 20px;
}

#apps, #messages, #call-rightmenu, #photos-rightmenu, #call-detail, #photos-detail, #microphone, #tvprog, #agenda, #weather, #news {
    display: none;
}