:root {
    --bg1: #3c5731;
    --color1: #aaec8a;
    /* --bg1: #512e08;
    --color1: #ffa536; */
    /* --bg1: #5a2121;
    --color1: #ff4d4d; */
    /* --bg1: #28284b;
    --color1: #8b8bda; */
}

.msgbox1 {
    min-width: 20rem;
    max-width: 28rem;
    border-radius: 0.375rem;
    background-color: var(--bg1);
    position: absolute;
    top: 10px;
    left: 50%;
    /* transform: translateX(-50%) !important; */
    color: var(--color1);
    padding: 20px;
    direction: rtl;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, 2rem);
    opacity: 0;
    z-index: 99992;
    visibility: hidden;
    margin-bottom: 5px;
}

.show1 {
    animation: fade-in 3s linear;
}

.run1 {
    animation: progress 3s linear;
}

.red1 {
    --bg1: #5a2121;
    --color1: #ff4d4d;
}

.yellow1 {
    --bg1: #512e08;
    --color1: #ffa536;
}

.blue1 {
    --bg1: #28284b;
    --color1: #8b8bda;
}


.msgbox1 div:nth-child(2) {
    width: calc(100% - 0.5rem);
    height: 3px;
    background-image: linear-gradient(to right, var(--bg1), var(--color1));
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    transform: scaleX(0);
    transform-origin: left;

}

@keyframes fade-in {
    10% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }


    98% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

}

@keyframes progress {
    to {
        transform: scaleX(1);
    }
}

/* -------------------- */
.dark2 {
    width: 100%;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.7); */
    backdrop-filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99993;
    display: flex;
    justify-content: center;
    align-items: center;

}

.dark2 .white2 {
    width: auto;
    padding: 20px;
    border-radius: 7px;
    background-color: white;
    box-shadow: 0 1px 10px #000;
    text-align: center;
    animation: zoom-in 0.6s ease-in-out;

}

@keyframes zoom-in {
    0% {
        transform: scale(0);

    }

    40% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.dark2 .white2 div {
    margin-bottom: 20px;
}

.dark2 .white2 button {
    margin-right: 10px;
}

/*  */

.txt1 {
    width: fit-content;
    height: auto;
    border: 2px solid #9b9b9b;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    direction: ltr;
    margin: 5PX;
    background-color: white;

}

.txt1 input {
    margin-right: 8px;
    outline: none;
    border: none;
    direction: rtl;
    color: #000000;
    text-align: center !important;

}

.txt1 input:focus {
    /* font-weight: bold; */
    color: #0a4d74;
}

.txt1:focus-within {
    border: 2px solid #006dac !important;
}

.txt1 label {
    background-color: #006dac;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;

}