.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-y: hidden;
    transition: 0.5s;
}


.overlay-content {
    position: relative;
    top: 10px;
    /*       width: 100%; */
    text-align: center;
    margin-top: 5px;
    margin-right: 80px;
    color: #5bc0de;
    font-size: 1.6em;
    line-height: 38px;
    word-spacing: 4pt;

}

.overlay a {
    padding: 8px 20px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 5px;
    right: 25px;
    font-size: 45px;
}
.overlay-content ul {
    text-align: left;
}
.overlay-content div.rules li{
    margin-left: 20%;
    text-align: left;
    list-style: decimal;
}
.cianButton {
    background-color: #e4e4e4;
    color: #0468ff;
    font-size: 16px;
    line-height: 20px;
    font-style: normal;
    font-weight: 700;
    font-family: Lato,Arial,sans-serif;
    padding: 8px 28px;
    border-radius: 4px;
    white-space: nowrap;
}

.cianField{
    padding: 8px 55px 8px 2px;
    color: #aaa;
    background-color: #fff;
    border: solid 1px #000;
    margin: 2px;
}

.cianButtonBlue{
     background-color: #0468ff;
     color: #e4e4e4;
 }
.cianAnnouncement{
    font-size: 1.1em;
    color: #fff;
    background-color: #0A246A;
    margin: 5px 80px;
}
.cianAnnouncement span{
    color: red;
    font-weight: bold;
}
a.openCIAN{
    margin: 6px 30%;
    background-color: #0E3460;
    color: #f8b9b7;
}
a.openCIAN:hover{
    background-color:#444;
    border: #5bc0de 2px solid;
}


@media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}