@charset "utf-8";

/* Chrome, Safari, Opera */
@-webkit-keyframes showBox {
    from {top:-160px;}
    to {top:5px;}
}
/* Standard syntax */
@keyframes showBox {
    from {top:-160px;}
    to {top:5px;}
}

/* Chrome, Safari, Opera */
@-webkit-keyframes hideBox {
    from {top:5px;}
    to {top:-160px;}
}
/* Standard syntax */
@keyframes hideBox {
    from {top:5px;}
    to {top:-160px;}
}

.infoBox {

    max-width: 800px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 20px auto 0 auto;;

    padding: 25px 0;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 30px #ccc;
    border: 1px solid #ddd;
    background: #fff;

    -webkit-animation: showBox 1s; /* Chrome, Safari, Opera */
    animation: showBox 1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;

    font-size: 30px;
    font-weight: bold;
    z-index: 10;

}

.hideBox {

    -webkit-animation: hideBox 0.5s; /* Chrome, Safari, Opera */
    animation: hideBox 0.5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;

}

.infoBox a:last-child {

    position:absolute;
    top: -15px;
    right: -15px;
    padding: 7px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: #F16322;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;

}

.error {

    color: #a94442;
}


.success {

    color: #3c763d;

}

.info {

    color: #3F3F3F;

}

@media only screen and (max-width: 996px) {

    .infoBox {

        font-size: 18px;  margin: 20px;

    }

}
