.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.modal .btn-close {
    color: #444;
    cursor: pointer;
    font-size: 30px;
    margin-top: 14px;
    font-weight: 200;
    position: absolute;
    top: 0;
    right: 15px;
    text-decoration: none;
}

.modal .btn-close:hover,
.modal .btn-close:focus {
    color: #999;
}

.modal-wrap:before {
    content: '';
    display: none;
    background: rgba(0,0,0,0.12);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 101;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 102;
}

.modal-open:checked ~ .modal-wrap:before,
.modal-open:checked ~ .modal-wrap .modal-overlay {
    display: block;
}

.modal-open:checked ~ .modal-wrap .modal-dialog {
    transform: translate(-50%, -50%);
    position: fixed;
    top: 35%;
}

.modal-dialog {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 10px 1px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.4);
    position: fixed;
    left: 50%;
    top: -100%;
    transform: translate(-50%, -150%);
    transition: transform .3s ease-in-out;
    width: 80%;
    max-width: 600px;
    z-index: 103;
    overflow-y: initial !important;
}

.modal-body {
    padding: 5px 24px 24px 24px;
    overflow-y: auto;
}

.modal-body p {
    line-height: 1.5;
    margin: 0;
}


.modal-header {
    padding: 20px 24px 20px;
    border-bottom: 1px solid silver;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin: 0;
}

.modal-footer {
    color: #4285f4;
    font-size: 14px;
    text-align: right;
    padding: 24px 24px 24px;
    border-top: 1px solid silver;
}

.btn {
    width: 100%;
    height: 41px;
    padding: 9px 12px;
    font-size: 11px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin: 3px;
}

.btn-default {
    background-color: grey;
}

.btn-default:hover {
    background-color: #696969;
}

.btn-primary {
    background-color: #1565C0;
}

.btn-danger {
    background-color: red;
}

.btn-danger:hover {
    background-color: #bb2124;
}

.btn-primary:hover {
    background-color: #094e9c;
}

.btn-success {
    background-color: #53a653;
}