@font-face {
    font-family: "MyFont";
    src: url('font/IRANSansWeb.eot');
    src: url('font/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
        url('font/IRANSansWeb.woff2') format('woff2'),
        url('font/IRANSansWeb.woff') format('woff'),
        url('font/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-align: justify;
}

::placeholder {
    color: rgb(123, 202, 136);
}

body {
    font-family: 'MyFont', Tahoma, 'Segoe UI', Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #f0f0f0, #d3e3fc);
    padding: 20px 200px 0;
    color: #333;
    transition: background 0.5s, color 0.5s;
    max-width: 1200px;
    margin: auto;
}

a {
    color: rgb(0, 55, 77);
    text-decoration: none;
}

/* just in print */
.jip {
    display: none;
    color: red;
}

h3 {
    color: rgb(85, 85, 235);
    margin-bottom: 20px;
    text-shadow: 0px 0px 3px;
}

.fa {
    color: rgb(0, 0, 233);
}

input,
textarea {
    width: 100%;
    min-height: 45px;
    border-radius: 10px;
    padding: 0.5rem;
    border: 1px solid black;
    outline: none;
    background-color: rgb(251, 253, 255);
    color: blue;
    transition: all 0.3s ease-in;
}

input:hover,
textarea:hover {
    background-color: #e7f0f8;
    border: 1px solid blue;
    box-shadow: 0 0 5px;
}

input:focus,
textarea:focus {
    background-color: #d3e4f3;
    border: 1px solid rgb(2, 2, 109);
}

.section {
    margin-top: 40px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
}

.card {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    background: white;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

footer {
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.profile-pic {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #0d6efd;
}

.switch-btns {
    position: fixed;
    background-color: blanchedalmond;
    top: 10px;
    z-index: 999;
}

textarea {
    resize: none;
}



body.dark-mode {
    /* background: linear-gradient(to bottom right, #1e1e1e, #121212); */
    background: black;
    color: #e0e0e0;
}

body.dark-mode h3 {
    color: #FF4C4C;
    /* color: rgb(255, 109, 109); */
    margin-bottom: 20px;
}

body.dark-mode a {
    color: rgb(255, 203, 34);
}


body.dark-mode .fa {
    color: rgb(255, 62, 62);
}

body.dark-mode .section,
body.dark-mode .list-group-item {
    background-color: #222;
    color: wheat;
}

body.dark-mode p {
    color: rgb(0, 217, 255);
}

body.dark-mode small {
    color: palegreen;
}

body.dark-mode .card {
    background-color: #3d3d3d;
    color: wheat;
}

body.dark-mode footer {
    color: #aaa;
}

body.dark-mode .profile-pic {
    border-color: #0079f1;
    border: 1px solid blueviolet;
}

body.dark-mode .switch-btns {
    background-color: #333;
}


body.dark-mode input,
body.dark-mode textarea {

    color: rgb(208, 255, 0);
    background-color: rgba(70, 70, 70, 0.514);
    border: none;
}

body.dark-mode ::placeholder {
    color: rgb(181, 255, 33, .2);
}









.items-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.items-row input {
    flex: 1 1 40%;
}


@media screen and (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .items-row input {
        flex: 1 1 100%;
    }

    #printBtn {
        display: none !important;
    }

    .profile-pic {
        width: 140px;
        height: 140px;
    }

    .section,
    .card {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 20px 10px 0;
    }

    .section,
    .card {
        padding: 10px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }
}

@media print {
    .no-print {
        display: none;
    }

    .jip {
        display: block;
        text-align: center;
    }

    body {
        background: white !important;
        color: #000 !important;
        page-break-inside: avoid;
        padding: 0;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    small,
    strong,
    li,
    span,
    i {
        color: black !important;
    }

    .section {
        page-break-before: always;
    }

    .grecaptcha-badge {
        visibility: hidden;
    }
}

.intro {
    display: flex;
    gap: 2rem;
    flex: 1 1 10%;
    padding: 3rem 1rem;
}