#hopopjs-hopops {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    text-align: center;
    z-index: 10000;
}
#hopopjs-hopops.normal {
	transition: opacity 0.3s;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -ms-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
}
#hopopjs-hopops.slow {
	transition: opacity 0.8s;
    -webkit-transition: opacity 0.8s;
    -moz-transition: opacity 0.8s;
    -ms-transition: opacity 0.8s;
    -o-transition: opacity 0.8s;
}
#hopopjs-hopops.hidden {
    display: none;
    opacity: 0;
    -khtml-opacity: 0;
    -moz-opacity: 0;
    filter: alpha(opacity=0);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}


#hopopjs-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: black;
    opacity: 0.7;
    -khtml-opacity: 0.7;
    -moz-opacity: 0.7;
    filter: alpha(opacity=70);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
}


#hopopjs-hopop {
    position: absolute;
    top: 50%; left: 50%;
    width: 410px;
    max-width: 90vw;
    margin: -125px 0 0 -200px;
    box-shadow: 0 2px 5px #333;
    background: #ffffff;
    border-radius: 2px;
    font-size: 15px;
}

#hopopjs-hopop.stickedToTop {top: 0;}
#hopopjs-hopop.top {top: 20px;}
#hopopjs-hopop.bottom {top: auto; bottom: 20px;}
#hopopjs-hopop.stickedToBottom {top: auto; bottom: 0;}

#hopopjs-hopop.medium {width: 50%;}
#hopopjs-hopop.big {width: 80%;}

#hopopjs-hopop > div {
    padding: 15px 20px;
}

#hopopjs-hopops #hopopjs-top,
#hopopjs-hopops #hopopjs-bottom {background: #eee;}
#hopopjs-bottom {display:none;}

/* hopop types */
#hopopjs-hopops.success #hopopjs-hopop {background: rgb(98, 194, 79);}
#hopopjs-hopops.success #hopopjs-top,
#hopopjs-hopops.success #hopopjs-bottom {background: rgb(102, 218, 90);}

#hopopjs-hopops.alert #hopopjs-hopop {background: rgb(194, 185, 79);}
#hopopjs-hopops.alert #hopopjs-top,
#hopopjs-hopops.alert #hopopjs-bottom {background: rgb(218, 216, 90);}

#hopopjs-hopops.warning #hopopjs-hopop {background: rgb(194, 156, 79);}
#hopopjs-hopops.warning #hopopjs-top,
#hopopjs-hopops.warning #hopopjs-bottom {background: rgb(218, 176, 90);}

#hopopjs-hopops.error #hopopjs-hopop {background: rgb(194, 79, 79);}
#hopopjs-hopops.error #hopopjs-top,
#hopopjs-hopops.error #hopopjs-bottom {background: rgb(218, 90, 90);}
#hopopjs-hopops.error #hopopjs-top-cancel:before,
#hopopjs-hopops.error #hopopjs-middle,
#hopopjs-hopops.error #hopopjs-top {color: #ddd;}


#hopopjs-top {
    border-radius: 2px 2px 0 0;
    min-height: 20px;
}
#hopopjs-top-cancel {
    position: absolute;
    top: -2px; right: 0;
    margin: 15px 20px;
    padding: 0 !important;
}
#hopopjs-top-cancel:before {
    content: 'x';
    padding: 0px 9px 4px 9px;
    background: transparent;
    color: #606060;
    font-weight: 600;
    font-size: 17px;
    border-radius: 2px;
    cursor: pointer;

    transition: all 0.1s;
    -webkit-transition: all 0.1s;
    -moz-transition: all 0.1s;
    -ms-transition: all 0.1s;
    -o-transition: all 0.1s;
}
#hopopjs-top-cancel:hover:before {
    background: #DADADA;
    color: #606060 !important;
}
#hopopjs-middle {
    text-align: left;
    padding: 15px 30px !important;
}
#hopopjs-bottom {
    text-align: right;
    border-radius: 0 0 2px 2px;
}
#hopopjs-bottom-cancel,
#hopopjs-bottom-confirm {
    border: 0px solid transparent;
    padding: 8px 17px;
    margin-left: 4px;
    background: rgba(6, 6, 6, 0.2);
    color: white;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
    outline: none;

    transition: all 0.1s;
    -webkit-transition: all 0.1s;
    -moz-transition: all 0.1s;
    -ms-transition: all 0.1s;
    -o-transition: all 0.1s;
}
#hopopjs-bottom-confirm {
    background: rgba(255, 255, 255, 0.6);
    color: #333;
}
#hopopjs-hopops.hopop #hopopjs-bottom-confirm {color: white;}

#hopopjs-bottom-cancel:hover {background: rgba(6, 6, 6, 0.5);}
#hopopjs-bottom-confirm:hover {background: rgba(255, 255, 255, 0.9);}

#hopopjs-hopops.hopop #hopopjs-bottom-cancel {background: #C1C1C1;}
#hopopjs-hopops.hopop #hopopjs-bottom-confirm {background: #8599CD;}
#hopopjs-hopops.hopop #hopopjs-bottom-cancel:hover {background: #777;}
#hopopjs-hopops.hopop #hopopjs-bottom-confirm:hover {background: #5E6E98;}

#hopopjs-hopop.mono #hopopjs-top,
#hopopjs-hopop.mono #hopopjs-bottom {background: transparent;}

@media only screen and (max-width: 768px) {
	#hopopjs-middle {
height: 300px;
overflow: scroll;
}
}