﻿

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 577px) {

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url('/images/background/bagImage.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        z-index: -2;
        opacity: 0.3; 
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
       
        background: linear-gradient( rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25) );
        z-index: -1;
    }
}

/*Mobile BG*/
@media (max-width: 577px) {
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url('/images/background/mobilebg.PNG');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        z-index: -2;
        opacity: 0.3;
    }


    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: -1;
    }
}

    #loadingOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }


    .spinner {
        border: 8px solid #f3f3f3;
        border-top: 8px solid #007bff;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
    }


    .language-card .formLang {
        margin-top: 260px;
        gap: 15px;
    }


    .formLang .btn {
        font-size: 1.2rem;
        margin: 5px;
        transition: 0.3s;
        width: 150px;
        color: white;
        background: linear-gradient(135deg, rgba(25,25,112,0.4), rgba(0,51,102,0.4), rgba(70,130,180,0.4), rgba(32,178,170,0.9));
    }

        .formLang .btn:hover {
            background: linear-gradient(135deg, rgba(25,25,112,0.9), rgba(0,51,102,0.9), rgba(70,130,180,0.9), rgba(32,178,170,0.9));
            color: gold;
        }


    /*Mobile*/
    @media (max-width: 576px) {
        .language-card {
            width: 90%;
            padding: 25px 15px;
        }


        .formLang .btn {
            font-size: 1.2rem;
            margin: 5px;
            transition: 0.3s;
            width:100px;
            color: white;
            background: linear-gradient(135deg, rgba(25,25,112,0.4), rgba(0,51,102,0.4), rgba(70,130,180,0.4), rgba(32,178,170,0.9));
        }


        .formLang {
            bottom:14%;
            left: 20%;
            position: absolute;
        }


    }
    /*Tablate*/
    @media (min-width: 577px) and (max-width: 991px) {
        .language-card {
            width: 80%;
            padding: 35px 25px;
        }



        .formLang {
            display: flex;
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
        }

            .formLang .btn {
                margin: 10px;
                min-width: 120px;
                cursor:pointer;
            }
    }
    /*Desktop*/
    @media (min-width: 992px) {
        .language-card {
            max-width: 700px;
            padding: 40px 30px;
            
        }

        .formLang .btn {
            margin: 10px;
            min-width: 150px;
            margin-top:100px;
        }

        .language-card img {
            width: 300px;
            height: auto;
        }

        .formLang {
            display: flex;
            flex-direction: row;
            justify-content: center;
        }
    }

    @media (max-width: 576px) {
        .formLang .btn {
            background-color: rgba(0, 0, 0, 0.4);
        }
    }