/* ---------------------Success animation (checkmark)----------------------*/

.success-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: none;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position:relative;
    top: 5px;
    right: 5px;
    margin: 0 auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: #fff;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}


/*-------------------------- Popup Message ------------------------------------*/

#popupMessage {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
    width: fit-content;
    background-color: #0f5244;
    color: rgb(255, 255, 255);
    padding: 25px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

/*-------------------------- Popup Message Warning ------------------------------------*/

#popupMessageWarning {
    background-color: #811717;
    color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px;

    /* Always takes space, just hidden */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: auto; /* important */
}
#popupMessageWarning.show {
    visibility: visible;
    opacity: 1;
}

/*-------------------------- Login Warning ------------------------------------*/

#LoginWarning {
    background-color: #811717;
    color: rgb(255, 255, 255);
    padding: 10px 10px 10px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    margin-top:20px;
}


#RegisterWarning {
    background-color: #811717;
    color: rgb(255, 255, 255);
    padding: 10px 10px 10px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    margin-top:20px;
}