.content,
body,
#block-pegasus-content {
    margin: 0;
    padding: 0;
    font-size: 24pt;
    background-color: #1f5d80;
    position: relative;
}

html {
    background-color: #1f5d80;
}

div {
    box-sizing: border-box;
}

.itl-screen {
    position: absolute;
    top: 0;
    left: 0;
    font-family: "Open Sans";
    width: 100vw;
    height: 100vh;
    background-image: url(/sites/all/modules/intouchlink_app/images/tv_background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.itl-powered-by {
    position: absolute;
    bottom: 0.5em;
    left: 0;
    width: 100%;
    font-size: 12pt;
    color: rgba(255,255,255,0.6);
    text-shadow: #000 0px 0px 1px;
    text-align: center;
    text-transform: uppercase;
}

.itl-privacy-policy {
    position: absolute;
    bottom: 0.5em;
    left: 0;
    width: 100%;
    font-size: 10pt;
    color: rgba(255,255,255,0.6);
    text-shadow: #000 0px 0px 1px;
    text-align: right;
    padding-right: 0.5em;
}

.itl-terms-conditions {
    position: absolute;
    bottom: 0.5em;
    left: 0;
    width: 100%;
    font-size: 10pt;
    color: rgba(255,255,255,0.6);
    text-shadow: #000 0px 0px 1px;
    text-align: left;
    padding-left: 0.5em;
}

.itl-instructions {
    position: absolute;
    top: 30vh;
    left: 5vw;
    width: 40vw;
    color: #fff;
    text-shadow: #000 0px 0px 1px;
    -webkit-font-smoothing: antialiased;
}

.itl-logout-instructions {
    margin-top: 50px;
    text-align: center;
    color: #fff;
    text-shadow: #000 0px 0px 1px;
    -webkit-font-smoothing: antialiased;
}

.itl-entry {
    position: absolute;
    top: 0;
    right: 0;
}

.itl-code {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.itl-digit {
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: 2em;
    width: 2em;
    color: #000;
    background-color: #fff;
    margin: 0 0.25em;
    font-size: 26pt;
    border: 5px solid transparent;
}

.itl-digit-text {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 1.75em;
    text-align: center;
}

.itl-active-digit {
    border: 5px solid #00B7EB;
}

.itl-keypad {
    font-size: 20pt;
    text-align: center;
    background-color: rgba(255,255,255, 0.4);
    width: 12.5em;
    padding: 1em;
    margin: 7vh auto 0 auto;
}

.itl-row {
    clear: both;
    position: relative;
    overflow: hidden;
}

.itl-key {
    float: left;
    height: 3em;
    width: 3em;
    line-height: 3em;
    text-align: center;
    color: #fff;
    background-color: #000;
    margin: 0.25em;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
}

.itl-key input {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    height: 3em;
    width: 3em;
}

.itl-logout-key,
.itl-cancel-key {
    width: 10em;
}

.itl-cancel-key {
    margin-bottom: 1em;
}

.itl-cancel-key,
.itl-cancel-key:focus,
.itl-logout-key:focus,
.itl-active-key {
     background-color: #00B7EB;
}
.itl-inactive-key {
     background-color: #000000;
}

.itl-messages {
    display: none;
    margin-top: 2em;
    margin-left: 5vw;
    margin-right: 5vw;
    text-align: center;
    color: #FFA500;
    text-shadow: #000 0px 0px 1px;
    -webkit-font-smoothing: antialiased;
    background-color: rgba(0,0,0, 0.8);
    border: 1px solid rgba(255,255,255, 0.4);
    padding: 2em;
}

.itl-code-error {
    background-color: rgba(0,0,0, 0.8);
    padding: 1.5em 0;
    display: none;
    margin-top: 2em;
    text-align: center;
    line-height: 1.75em;
    color: #FFA500;
}

.itl-show {
    display: block;
}

.itl-hide {
    display: none;
}

.itl-channels {
    position: absolute;
    left: 0;
    bottom: 3em;
    font-size: 10pt;
    padding-left: 2vw;
}

.itl-full .itl-channels {
    padding-left: 6vw;
}

.itl-channel-thumbnail {
    float: left;
    position: relative;
    overflow: hidden;
    width: 22vw;
    height:calc(12.375vw + 3em);
    background-color: rgba(0, 0, 0, 0.6);
    margin: 1vw;
    font-size: 10pt;
}

.itl-full .itl-channel-thumbnail {
    width: 20vw;
    height:calc(11.25vw);
}

.itl-channel-image {
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    padding-top: 56.25%;
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.itl-channel-description {
    position: absolute;
    left: 0;
    bottom: 0;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    overflow: hidden;
    height: 2.5em;
    line-height: 2.5em;
    padding-left: 1em;
    padding-right: 1em;
    text-shadow: #000 0px 0px 1px;
    -webkit-font-smoothing: antialiased;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.itl-full .itl-channel-description {
    background-color: rgba(0,0,0, 0.6);
}

.itl-residence-title {
    margin: 1em 0 0 1em;
    font-size: 30pt;
    font-weight: 600;
    color: #fff;
}

.itl-full .itl-residence-title  {
    font-size: 24pt;
    margin-top: 0.8em;
    text-align: center;
}

.itl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.itl-active-channel {
    background-color: rgba(167,199,231,0.9);
}

.itl-active-channel .itl-channel-description {
    color: #000;
}

.itl-full .itl-active-channel .itl-channel-description {
    background-color: rgba(167,199,231,0.9);
}

.itl-channel-page .itl-frame {
    position: relative;
    top: 0;
    left: 0;
    border: none;
}

.itl-channel-page {
    background-image: none;
    background-color: #000;
    overflow: hidden;
}

.itl-home-page .itl-settings-thumbnail .itl-channel-image {
    background-color: transparent;
}

.itl-home-page .itl-settings-thumbnail .itl-channel-image {
    background-image:url(/sites/all/icons/settings.svg);
    background-size: 30%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1F456E;
}

.itl-home-page .itl-settings-button {
    position: absolute;
    top: 25px;
    right: 25px;
    height: 2em;
    width: 2em;
    background-image:url(/sites/all/icons/settings.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index:99;
    cursor: pointer;
}

.itl-settings-page .itl-home-button,
.itl-channel-page .itl-home-button {
    position: absolute;
    top: 25px;
    left: 25px;
    height: 2em;
    width: 2em;
    border-radius: 50%;
    border: 3px solid #fff;
    background-image:url(/sites/all/icons/home.svg);
    background-size: 1em;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0, 0.5);
    z-index:99;
    cursor: pointer;
}

.itl-platform-info {
    display: none;
    z-index: 1;
    background-color: #0b2c56;
    overflow: hidden;
    position: absolute;
    font-size: 26pt;
    margin: auto;
    width: -moz-fit-content;
    width: fit-content;
    height: auto;
    text-align: center;
    top: 50%;
    left: 1%;
    right: 1%;
    /*
    border-width: 4px;
    border-color: #aaa;
    border-style: double;
    */
    color: rgba(255,255,255,1.0);
    text-align: center;
    text-transform: uppercase;
}

@media (min-width: 1200px) {
    .itl-residence-title {
        font-size: 40pt;
    }

    .itl-channel-thumbnail {
        font-size: 12pt;
    }

    .itl-full .itl-residence-title {
        font-size: 32pt;
        text-align: center;
        margin-top: 0.8em;
    }

    .itl-full .itl-channel-thumbnail {
        width: 18vw;
        height:calc(10.125vw);
    }

    .itl-full .itl-channels {
        padding-left: 9.5vw;
    }

}

@media (min-width: 1600px) {
    .itl-channel-thumbnail {
        font-size: 14pt;
    }

    .itl-full .itl-residence-title {
        font-size: 34pt;
    }
}
