* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}



html {
    color-scheme: light;
}

body {
    font-family: "Vazirmatn", serif;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6rem;


}



main {
    width: min(160ch, 100% - 4rem);
    margin-inline: auto;
    margin-block: 20px;
    padding: 8px;
}


h1,
h2,
h3,
h4,
h5,
h6 {

    text-wrap: balance;
    text-wrap: pretty;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;

}

p {

    text-wrap: pretty;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;

}

img {
    max-width: 100%;
    display: block;

}

button {
    cursor: pointer;
    width: 100%;
    font-family: "Vazirmatn", serif;
}


.line {
    border-bottom: solid 1px rgba(180, 180, 180, 0.2);
    margin-block: 10px;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    color: deepskyblue;
    text-decoration: underline;
}

select {
    color: lightgray;

}

label {
    color: white;
}

hr {

    border: 1px dashed rgb(240, 240, 240);
    margin-block: 20px;
}





.nav {
    background-color: rgb(5, 74, 218);

}

.navinner {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    width: min(200ch, 100%);
    margin-inline: auto;
}

.nav .left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.seprator {
    border: 1px solid rgb(204, 204, 204);
    height: 100%;
}

nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.nav .left .logoo {
    background-color: #ddd;
    border-radius: 50px;
    padding: 0.6rem;
}

.right {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.navc {
    padding: 8px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    box-shadow: 0px 4px 12px rgba(92, 92, 92, 0.8);
    background-color: rgb(255, 136, 0);
    color: white;
    font-size: 16px;
}

.navc:hover {
    background-color: rgb(225, 106, 0);
}

.footer {
    background-color: rgb(5, 74, 218);
    color: white;
    text-align: center;
    padding: 20px;
}

.footer>* {
    padding: 8px;
}

ul {
    padding: 20px 40px;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    max-width: 960px;
    /* Could be more or less, depending on screen size */
    direction: rtl;
    /* Right-to-left text direction for Farsi */
    text-align: center;
    /* Center the content */
    border-radius: 12px;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 44px;
    font-weight: bold;

}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.form button {
    background-color: rgb(255, 136, 0);
    font-weight: 600;
    color: white;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.form button:hover {

    background-color: rgb(205, 106, 0);
}

.form>* {
    padding: 20px;
    direction: rtl;
    font-family: "Vazirmatn", serif;
    border-radius: 8px;
    border: none;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);
    outline: none;
}


.modalhead {
    margin-block: 20px;
}

.phonebar {
    background-color: rgb(180, 40, 10);
    color: white;
    font-weight: 200;
    font-size: 1.2rem;
    padding: 8px;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.8);
}

.logo {
    max-width: 40px;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9em;
    color: white;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}


/* Spinner CSS */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}