﻿/* Alertboxes --- Main usages in CMS -------- */
.alert {
    background: rgb(220, 247, 206);
    border: 1px solid rgba(37, 86, 11, .5);
    padding: 1.5em 2em;
    border-radius: 3px;
    margin: 1em 0 1em 0;
    flex-wrap: nowrap;
    font-size: 1rem;
    transition: .5s;
}

    .alert.hide {
        padding: 0 2em;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
    }

    .alert p {
        margin: 0;
    }

    .alert .fa-smile-beam {
        margin-right: .2em;
    }

    .alert .fa-face-frown {
        margin-right: .2em;
        display: none;
    }

    .alert .fa-times {
        margin-left: auto;
        justify-self: flex-end;
        opacity: .7;
        transition:.5s;
    }

        .alert .fa-times:hover {
            cursor: pointer;
            opacity: 1.0;
            transform:rotate(360deg);
        }

    .alert.error {
        background-color: #f8d7da;
    }

        .alert.error i.fa-smile-beam {
            display: none !important;
        }

        .alert.error i.fa-face-frown {
            display: inline !important;
        }

/* Old message at top of page ------------------------- */
.message {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1;
    padding: 0 2rem;
    box-sizing: border-box;
    text-align: center;
    background: rgb(220, 247, 206);
    border: 1px solid rgba(37, 86, 11, .5);
    margin-bottom:1rem;
}

.message *{
    box-sizing: border-box;
}

    .message ul {
        list-style-type: none;
        margin: 0;
        padding: 1.5rem 2rem 1rem 2rem;
    }

    .message ul:before {
        display:none;
    }

        .message ul li {
            margin: 0 0 .5rem 0;
            padding: 0;
            font-size: 1rem;
            font-weight: 700;
            color: #000000;
            display:flex;
            justify-content:center;
        }

    .message .error, .message .formerror {
        background-color: #f4f88d;
    }



/* Validation of field  ---------------------------------*/
.field-validation-error {
    font-style: italic;
    font-size: .7rem;
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000 !important;
    background-color: #ffeeee !important;
}

.validation-summary-errors {
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid {
    display: none;
}
