section[data-type="dialog"] {
    z-index: 30;
    display: none;
}

section[data-type="dialog"].show {
    display: block;
}

#overlay section {
    height: 100%;
    width: 100%;
    overflow: auto
}

/*
 * otp-overlay
 */

#otp-overlay {
    text-align: center;
}

#otp-overlay #otp-global-op{
    padding: 0px 3rem 0px 3rem;
}

#otp-password{
    color: #FFF;
    border-radius: 3rem;
    font-size: 2.5rem;
    margin: 5rem auto;
    padding: 1rem 1rem;
    width: 70%;
    background: -moz-linear-gradient(#106163, #198686);
    border-top: 2px solid #195456;
    letter-spacing: 2px;
    word-wrap: break-word;
}

.notification-overlay {
    background-image: url('images/notifications/bg_alert.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.notification-info {
    text-align: center;
    padding: 1rem;
    -moz-box-sizing: border-box;
    position: relative;
    margin-top: 2.5em;
}

#otp-op-info.notification-info{
    height: calc(100% - 8.5rem);
    overflow-y: scroll;
}

#new-session-overlay .notification-info > img{
    border-radius: 0rem;
    background-image: url(images/notifications/icn_newdevice_alert.png);
    background-color: transparent;
    background-size: 100%;
    height: 17rem;
    background-repeat: no-repeat;
    width:8rem;
    left: calc(50% - 4rem);
}

.notification-info > img {
    display: block;
    background: white;
    width: 7rem;
    height: 7rem;
    position: relative;
    left: calc(50% - 3.5rem);
    margin-bottom: 1rem;
    border-radius: 50%;
}

#new-session-overlay .notification-op-name{
    overflow: auto;
    white-space: normal;
    height: auto;
}

#app-paired-disabled-overlay .notification-explanation{
    margin-bottom: 0rem;
    padding: .1rem 2rem;
}

#app-paired-disabled-overlay .notification-contact-section{
    height: 13rem;
}

.notification-op-name {
    font-size: 2rem;
    font-weight: bold;
    line-height: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    height: 3rem;
    overflow: hidden;
    width: 90%;
    text-overflow: ellipsis;
    white-space: nowrap;   
    margin-left: auto;
    margin-right: auto;
}

.notification-explanation {
    font-size: 2rem;
    line-height: 2rem;
    font-weight: 300;
    -mox-box-sizing: border-box;
    padding: 0.1rem 3rem;
    overflow: hidden;
    color: #ffffff;
    margin-top: 1rem;
    margin-bottom: 1rem;    
}

.notification-overlay > button{
    position: absolute;
    bottom: 2rem;
    width: calc(100% - 4rem);
    left: 2rem;
    height: 4.5rem;
    border: 1px solid #555555;
    border-radius: 2.25rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #555555;
    background: #eeeeee;
}

.notification-overlay > button.upper-button{
    bottom: 7rem;
}
.notification-overlay > button.blue-button{
    color: #FFF;
    background: none repeat scroll 0% 0% #166668;
}

.notification-contact-section {
    height: 13rem;
    text-align: center;
    position: relative;
    overflow-y: scroll;
}

#new-session-overlay .notification-detail{
    margin-bottom: 1rem;
}

.notification-detail {
    color: #60e8ec;
    font-size: 1.7rem;
    line-height: 2rem;
    font-weight: 300;
    padding: 0.5rem 2rem 0.5rem 2rem;
    overflow: hidden;
    -moz-box-sizing: border-box;
    margin-bottom: -1rem;
}

.notification-contact-box {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 2rem;
    -moz-box-sizing: border-box;
    color: white;
    margin: 1rem;
}


/*
 * loading-overlay
 */

#loading-overlay {
    background: black;
    opacity: .8;
    color: white;
}

#loading-overlay p {
    text-align: center;
}

#loading-overlay p:first-child {
    margin-top: 60%;
    margin-bottom: 1rem;
}

#loading-overlay p:last-child {
    font-size: 1.5rem;
    font-weight: 300;
}

#loading-overlay progress{
    width: 4rem;
    height: 4rem;

}


/*
 * webview-overlay
 */

#webview-overlay iframe {
    height: calc(100% - 5rem);
    width: 100%;
    overflow: auto;
}

section[data-type="dialog"] > header:first-child {
    background: #54A6B6 !important;
}

/*
* Headers
*/


section[data-type="dialog"] > header.special{
    height: 6em;
}

section[data-type="dialog"] > header.special h1{
    margin: 0em 0.7em 0em 0.7em;
    font-size: 2.4em;
    text-align: center;
    position: relative;
}

section[data-type="dialog"] > header.special .background{
    width: 100%;
    height: calc(100% + 3em);
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: -3.3em;
    height: calc(100% + 8em);
}

section[data-type="dialog"] > header.pairdisabled,
section[data-type="dialog"] > header.unpair,
section[data-type="dialog"] > header.danger{
    background-color: #880000 !important;
}
section[data-type="dialog"] > header.locked{
    background-color: #068499 !important;
}


section[data-type="dialog"] > header.enabled,
section[data-type="dialog"] > header.pair{
    background-color: #00b9be !important;
}

section[data-type="dialog"] > header.info{
    background-color: #f09200 !important;
}

section[data-type="dialog"] > header.otp{
    background-color: #622280 !important;
}

section[data-type="dialog"] > header.newSession{
    background-color: #08879b !important;
}

section[data-type="dialog"] > header.pair .background{
    background-image: url('images/notifications/alert1_header.9.png');
}

section[data-type="dialog"] > header.unpair .background{
    background-image: url('images/notifications/alert2_header.9.png');
}

section[data-type="dialog"] > header.locked .background{
    background-image: url('images/notifications/alert3_header.9.png');
}

section[data-type="dialog"] > header.pairdisabled .background{
    background-image: url('images/notifications/alert7_header.9.png');
}

section[data-type="dialog"] > header.danger .background{
    background-image: url('images/notifications/alert4_header.9.png');
}

section[data-type="dialog"] > header.info .background{
    background-image: url('images/notifications/alert5_header.9.png');
}

section[data-type="dialog"] > header.enabled .background{
    background-image: url('images/notifications/alert6_header.9.png');
}

section[data-type="dialog"] > header.newSession .background{
    background-image: url('images/notifications/alert8_header.9.png');
}

section[data-type="dialog"] > header.otp .background{
    background-image: url('images/notifications/alert9_header.9.png');
}
