/*
    Ajax meddelande popup - generell i slutet på varje sida (i MyView)
*/

#ajax-info-popup {
    width: 400px;
    height: 120px;
    position: absolute;
    left: 50%;
    margin-left: -200px;
    top: 100px;
    border: 2px dotted var(--warning);
    border-radius: 6px;
    background-color: var(--page-bg);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    z-index: 77;
}

#ajax-info-popup #ajax-info-body {
    height: 80px;
}

/* 
    Created on : 14 aug. 2020, 11:42:28
    Author     : Emil Johansson
*/

#result-message {
    width: 90%;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    margin: 1% 5%;
}

#result-message.good {
    background-color: #d7ecd7;
    color: #2f802f;
    border: 3px #2f802f dashed;
}

#result-message.bad {
    background-color: #ecd7d7;
    color: #802f2f;
    border: 3px #802f2f dashed;
}

.user-notification {
    position: absolute;
    display: none;
    right: 15px;
    bottom: -160px;
    width: 370px;
    height: 155px;
    background-color: palegreen;
    border: 1px solid var(--blue);
    flex-direction: column;
    font-size: 16px;
    z-index: 10;
}

.user-notification.good {
    background-color: white;
    color: #2f802f;
}

.user-notification.info {
    background-color: white;
    color: #2f802f;
}

.user-notification.bad {
    background-color: #ecd7d7;
    color: #802f2f;
}

.user-notification-header {
    border-bottom: 1px solid black;
    background-color: var(--blue);
    color: white;
    font-weight: bold;
    cursor: move;
    height: 2.5rem;
    display: flex;
    align-items: center;
}

.notification-header-text {
    flex: 1;
    text-align: center;
}

.user-notification-message {
    padding: 7px;
    color: black;
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.5;
}

.user-notification-close {
    padding: 0px;
    margin: 0px;
    width: 31px;
}

.user-notification-close i {
    font-size: 30px;
}

.user-notification-close i:hover {
    color: red;
    cursor: pointer;
}

@keyframes example {
    0%   {bottom: 16px;}
    50%  {bottom: 22px;}
    100% {bottom: 16px;}
}

#notification-counter {
    position: absolute;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 8px;
    background-color: var(--blue-light);
    border: 2px dotted var(--blue);
    color: var(--blue);
    text-align: center;
    bottom: 16px;
    right: 16px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    animation-name: example;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    z-index: 20;
}