@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap');

:root {
    --primary-color: #004E9E;
    --secondr-color: #ED1B23;
    --text-a-color: #eee;
    --text-color: #000;
    --main-transition: 0.3s;
    /* --main-box-shadow: 3px 3px 15px 0px var(--primary-color); */
    --main-box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
    /* --secondr-box-shadow: 0px 0px 6px 0px var(--secondr-color); */
    --secondr-box-shadow: 1px 1px 10px 0px var(--secondr-color);
}

* {
    box-sizing: border-box;
}

body {
    background: url("../img/pattren.jpg") top left repeat;
    /* background-color: #fcfcfc; */
    background-attachment: fixed;
    background-size: cover;
    font-size: 18px;
    font-family: 'Almarai', sans-serif;
}

.section {
    margin: 50px auto 100px;
}

/* .card {
    padding: 50px 17px;
} */

.card {
    padding: 50px 17px 20px;
    box-shadow: var(--main-box-shadow) !important;
    border-radius: initial !important;
}

.btn,
select,
input {
    border-radius: initial !important;
}

.bg-state {
    background-color: rgba(248, 226, 145, 0.33) !important;
}

/* ==================  ========================= */

.main-logo {
    display: block;
    width: 350px;
    margin: 10px auto;
}

.main-title {
    margin: 50px auto;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    width: fit-content;
    position: relative;
    z-index: 1;
    transition: var(--main-transition);
}

.main-title::before,
.main-title::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondr-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.main-title::before {
    left: -30px;
}

.main-title::after {
    right: -30px;
}

.main-title:hover::before {
    z-index: -1;
    animation: left-move 0.5s linear forwards;
}

.main-title:hover::after {
    z-index: -1;
    animation: right-move 0.5s linear forwards;
}

.main-title:hover {
    border: 2px solid transparent;
    transition-delay: 0.5s;
}


/* ======================== */

#toastBox {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.toast {
    width: 400px;
    height: 80px;
    font-weight: 500;
    margin: 15px 0;
    background: #fff;
    box-shadow: 0 0 20px rgb(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: relative;

    transform: translateX(-100%);
    animation: moveleft 0.5s linear forwards;
}

@keyframes moveleft {
    100% {
        transform: translateX(0);
    }
}

.toast i {
    margin: 0 20px;
    font-size: 35px;
    color: green;
}

.toast.error i {
    color: red;
}

.toast.invalid i {
    color: orange;
}


.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: green;
    width: 100%;
    height: 5px;
    animation: anim 5s linear forwards;
}

@keyframes anim {
    100% {
        width: 0;
    }
}


.toast.error::after {
    background-color: red;
}

.toast.invalid::after {
    color: orange;
}

/* ======== ========= */

.list-brands {
    margin: 50px 0px;
}

.list-brands .row img {
    width: 100%;
}

.grid-col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
}