* {
    box-sizing: border-box;
}
body {
    font-family: "Vazir";
    background: #58c9f2;
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #242323;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(173,216,230,0.5), rgba(173,216,230,0.5)),
    url(./files/MixBackground.jpg) center center/cover no-repeat fixed;
    z-index: -1;
}
.main-content {
    position: relative;
    z-index: 1;
    padding: 0.5%;
    text-align: center;
    flex: 1 0 auto;
}
.welcome-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}
.welcome-message {
    background-color: #cecccc;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
}
.welcome-message h2 {
    color: #111111;
    margin-bottom: 20px;
    font-size: clamp(16px,3vw,20px);
}
.welcome-message p {
    color: #252525;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: clamp(14px,2vw,16px);
}
.close-button {
    background-color: rgba(18, 36, 50, 0.792);
    color: rgb(201, 199, 199);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.close-button:hover {
    background-color: #154576;
}
header {
    background: rgba(18, 36, 50, 0.792);
    color: rgb(228, 222, 222);
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}
header h1 {
    padding: 5%;
    font-size: clamp(21px,5vw,35px);
}
nav {
    background-color: rgba(18, 36, 50, 0.907);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 8px;
    padding: 0.8rem 0 ;
    font-size: clamp(14px,3vw,18px);
}
/* for history of page..............*/
.history-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}
.history-message {
    background-color: #cecccc;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow-y: scroll;
    max-height: 500px;
    width: 80%;
}
.history-message h2 {
    color: #111111;
    margin-bottom: 20px;
    font-size: clamp(16px,3vw,20px);
}
.history-message p {
    color: #252525;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: clamp(14px,2vw,16px);
}
.close-historyButton {
    background-color: rgba(18, 36, 50, 0.792);
    color: rgb(187, 186, 186);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.close-historyButton:hover {
    background-color: #154576;
}
.history-message::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.history-message::-webkit-scrollbar-track {
    background: #a6c6f7;
    border-radius: 10px;
}
.history-message::-webkit-scrollbar-thumb {
    background: #1c2635;
    border-radius: 10px;
}

/* .navButton {
    width: 100%;
    font-size: 19px;
    font-weight: bold;
    font-family: 'Vazir';
    position: relative;
    padding-right: 2.2rem;
    padding-bottom: 1.5rem;
    max-height: 0.5rem;
    text-align: center;
    top: 1%;
    background-color: unset;
    border: none;
    color:  rgb(210, 208, 208);
}
.navContent {
    width: 90%;
    box-shadow: 0 0.5px 0.5px 0 #242323;
    height: 0px;
    transition: height 1s;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}
nav:hover> .navContent {
    height: 120px;
} */
/* #navButton:checked ~ #navContent {
    padding: 1.2%;
    opacity: 1;
    max-height: 4%;
    z-index: 1;
} */

/* nav:hover > .navButton {
    background-color: unset;
}
.navButton:hover {
    background: unset;
} */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-links a {
    color: rgb(210, 208, 208);
    text-decoration: none;
    /* font-weight: bold; */
    transition: color 0.3s;
}
.nav-links a:hover {
    color: rgba(86, 179, 245, 0.712);
}
#navBar label {
    border: none;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    display: none;
    padding: 1%;
    /* border-bottom: 1px solid black; */
    background-color: unset;
    color: white;
    z-index: 1;
}
#navClick {
    display: none;

}


#services:target , #requestForm:target ,#admin:target , #about:target , #contact:target {
    animation: linkTarget 2s linear 0.4s 2;
}
#contact:target {
    border-radius: 1.2px;
}
@keyframes linkTarget {
    0% {
        background-color: initial;
        box-shadow: 0 0.5px 0.5px 0 #242323;
    }
    50% {
        background-color: rgba(86, 179, 245, 0.712);
        box-shadow: 0 2px 2px 0 #242323;
    }
    100% {
        background-color: initial;
        box-shadow: 0 0.5px 0.5px 0 #242323;
    }
}
#about {
    background-color: rgba(211, 211, 211, 0.8);
    color: black;
}
#about h2 {
    line-height: 1.5cap;
    padding: 2%;
}
#about p {
    /* line-break: loose; */
    line-height: 2cap;
}
#about h2 span {
    font-weight: bold;
}
.section {
    padding: 0.5rem;
    background: rgba(18, 36, 50, 0.417);
    margin: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(40, 39, 39, 0.2);
    color: whitesmoke;
    font-size: clamp(12.3px,2vw,15px);
    color: rgb(235, 231, 231);
}
h2 {
    font-size: clamp(16px,3vw,20px);
}
label, input , textarea , button:not(.navButton) {
    font-size: clamp(14px,2vw,16px);
}
/* tooltip for services...............*/
.tooltipServices {
    position: relative;
    border-bottom: 1px solid transparent;
}
.tooltipServices-content {
    color: white;
    background-color: black;
    padding: 3px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    text-align: center;
    width: 300px;
    margin-left: -55px;
    left: 43%;
    top: -260%;
    opacity: 0;
    transition-duration: 1s;
    font-size: 16px;
}
.tooltipServices:hover > .tooltipServices-content {
    opacity: 1;
}
.tooltipServices > .tooltipServices-content::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 0;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top: black;
}
/*...*/
#services {
    display: flex;
    flex-direction: column;
    max-height: 850px;
}
.container {
    display: flex;
    flex-direction: row;
    min-height: 500px;
}
.container > div {
    max-width: 800px;
    max-height:600px;
    float: right;
}
.section-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-y: scroll;
    direction: ltr;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-around;
    width: 30%;
    max-height: 400px;
}
.section-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.section-container::-webkit-scrollbar-track {
    background: #a6c6f7;
    border-radius: 10px;
}
.section-container::-webkit-scrollbar-thumb {
    background: #1c2635;
    border-radius: 10px;
}

.card {
    background: #c3e2f8;
    padding: 0.4rem;
    margin: 0.1rem;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(40, 39, 39, 0.2);
    transition: transform 0.2s;
}
.card:hover {
    transform: scale(1.05);
}
/*new version of cards.......*/
.cardlabel{
    color: #242323;
    display:inline-block;
    border:2px solid #ddd;
    padding:0.2rem;
    margin:0.2rem;
    width: 100%;
    max-width: 10rem;
    max-height: 8rem;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
    background:white;
    flex: 1 1;
    box-shadow: 0 8px 5px 0 #242323;
    line-height: 1.5cap;
}

.cardlabel:hover{
    transform:scale(1);
    border-color: rgba(86, 179, 245, 0.712);
    background-color: #ccc;
}

.cardlabel input{
    display:none;
    flex: 1 1;
}

.imageBox {
    width: 70%;
    padding: 1%;
    margin-right: 3.5rem;
    justify-content: center;
    align-items: center;
}
/* for the first carousel....*/
.pageWrapper {
    border-radius: 5px;
    max-width: 80%;
    min-width: 80%;
    max-height:90% ;
    min-height: 75%;
    box-shadow: 0 8px 5px 0 #242323;
    display: none;
    height: 100vh;
    align-items: center;
    justify-content: center;
}
.pageWrapper1 {
    display: flex;
}
.slider-container {
    width: 100%;
    overflow-x: scroll;
    scroll-behavior: smooth;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
}
.slider-container::-webkit-scrollbar {
    width: 2px;
    height: 8px;
}
.slider-container::-webkit-scrollbar-track {
    background: #a6c6f7;
    border-radius: 10px;
}
.slider-container::-webkit-scrollbar-thumb {
    background: #1c2635;
    border-radius: 10px;
}
.slide {
    width: 460px;
    display: flex;
    flex-direction: column;
    height: 420px;
    border-radius: 5.8px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-right:0.5rem;
    margin-left:0.5rem;
}
.slide div a img {
    width: 450px;
    height: 320px;
    border-radius: 6.8px;
    object-fit: contain;
}
.image11 {
    width: 450px;
    height: 320px;
    border-radius: 6.8px;
    object-fit: contain;
}
.slide-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    width: 90%;
    max-height:4rem ;
}
.player{
    width: 450px;
    height: 320px;
}
/*for lightboxes...*/
.lightbox {
    display: none;
    transition-duration: 1s;
    position: fixed;
    inset: 0;
    /* top: 0; */
    /* left: 0; */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}
.lightbox:target {
    top: 0;
    display: table;
}
.lightbox-content {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}
.close {
    position:absolute;
    top: 50px;
    right: 50px;
    font-size: 20px;
    font-weight: 300;
    text-decoration: none;
    color: white;
}

.lightbox div img {
    max-width: 100%;
    height:500px;
}
/*....*/
/* .img {
    border-radius: 5px;
    max-width: 80%;
    min-width: 80%;
    max-height:80% ;
    min-height: 75%;
    display: none;
    box-shadow: 0 8px 5px 0 #242323;
}
.img1 {
    display: block;
} */
/*to change form a little with codes below*/
.form-pennel:last-child > label , .form-pennel:last-child > #formList {
    border:none
}
.form-pennel label {
    display: block;
    padding: 1%;
    border-bottom: 1px solid black;
    color: white;
    z-index: 1;
}
#form {
    display: none;
}
#form:checked ~ #formList {
    padding: 1.2%;
    opacity: 1;
    max-height: 4%;
    z-index: 1;
}
#formList {
    border-bottom: 1% solid black;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 0;
    transition: 0.3s linear;
}
.form {
    background: rgba(211, 211, 211, 0.8);
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
form {
    display: flex;
    flex-direction: column;
}
form input {
    min-height: 1.5%;
    flex: 1 1;
}
/*tooltip for form.................*/
.tooltipForm {
    position: relative;
    border-bottom: 1px solid transparent;
}
.tooltipForm-content {
    color: white;
    background-color: black;
    padding: 3px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    text-align: center;
    width: 200px;
    margin-left: -55px;
    left: 25%;
    top: -90%;
    opacity: 0;
    transition-duration: 1s;
}
.tooltipForm:hover > .tooltipForm-content {
    opacity: 1;
}
.tooltipForm > .tooltipForm-content::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 0;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top: black;
}

/* new form*/
#serviceOptions{
    opacity:0;
    transform:translateY(-10px);
    transition:all .4s ease;
    pointer-events:none;
}

#serviceOptions.show{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.serviceCard{
    display:inline-block;
    border:2px solid #ddd;
    padding:10px 18px;
    margin:6px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
    background:white;
    flex: 1 1;
}

.serviceCard:hover{
    transform:scale(1.05);
    border-color: rgba(86, 179, 245, 0.712);
}

.serviceCard input{
    display:none;
    flex: 1 1;
}

.serviceCard.active{
    background: rgba(86, 179, 245, 0.712);
    color:white;
    border-color: rgba(86, 179, 245, 0.712);
}
#device {
    display: flex;
    text-align: center;
}
#device option {
    font-size: 15px;
    text-align: center;
}
select {
    font-size: 100%;
    min-width: 6rem;
    max-width: 9rem;
}
select option {
    min-width: 6rem;
    max-width: 9rem;
}
/* ...*/
.sectioncontact-section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    min-width: 30%;
}
.sectioncontact-section-container h2 {
    margin: 0.4rem 0 0.4rem 0;
}
/*new code i added*/
input , textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    flex: 1 1;
}
/* ..*/
input, textarea, button {
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    margin: 0 0.4rem 0.4rem 0;
    align-items: center;
    justify-content: center;
}
button {
    background: #40a2f3;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover {
    background: #1976d2;
}
/*admin panel*/
#admin input ,button {
    max-width: 80%;
}
.admin-panel {
    background: #111827;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}
.hidden {
    display: none;
}
/* ...*/
/*a new try for admin*/

.admin-pennel:last-child > label , .admin-pennel:last-child > .panel {
    border:none
}
.admin-pennel label {
    display: block;
    padding: 1%;
    border-bottom: 1px solid black;
    background-color: rgb(53, 217, 179);
    color: white;
    z-index: 1;
}
#adminn {
    display: none;
}
#adminn:checked ~ #panel {
    padding: 1.2%;
    opacity: 1;
    max-height: 4%;
    z-index: 1;
}
#panel {
    border-bottom: 1% solid black;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    z-index: 0;
    transition: 0.3s linear;
}

/*tooltip for panel................*/
.tooltip {
    position: relative;
    border-bottom: 1px solid transparent;
}
.tooltip-content {
    color: white;
    background-color: black;
    padding: 3px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    text-align: center;
    width: 200px;
    margin-left: -55px;
    left: 93%;
    top: -150%;
    opacity: 0;
    transition-duration: 1s;
}
.tooltip:hover > .tooltip-content {
    opacity: 1;
}
.tooltip > .tooltip-content::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 0;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top: black;
}

/*...*/
footer {
    background: rgba(18, 36, 50, 0.792);
    color: rgb(228, 222, 222);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 4px;
    max-height: 40vh;
    font-size: 1em;
}
footer::after {
    content: "";
    display: block;
    clear: both;
}
footer p {
    width: 50%;
    float: left;
}
.logo {
    width:25%;
    float: left;
    justify-items: baseline;
}
.connectionBox {
    width: 25%;
    float: left;
    justify-items: legacy;
}
.logoImage {
    max-width: 30%;
    height: auto;
}
.image {
    padding: 1%;
}
footer ul {
    list-style-type: none;
    margin: 0px;
    padding: 3%;
}
footer li {
    display: inline;
}
footer li > a {
    text-decoration: none;
}
.connectionImage {
    display: inline-block;
    max-width: 10%;
    min-width: 20px;
    height: auto;
}
#floating {
    max-width: 20px;
    max-height: 20px;
    position: fixed;
    z-index: 999999;
    bottom: 30px;
    right: 8px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s linear;
}
#floatingImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    border-radius: 15px;
}
#floating:hover {
    transform: scale(1.5);
}
@media (max-width: 749px){
    #navBar label {
        display: block;
    }
    #navClick:checked ~ #navList {
        padding: 1.2%;
        opacity: 1;
        max-height: 4%;
        z-index: 1;
    }
    #navList {
        border-bottom: 1% solid black;
        padding: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        z-index: 0;
        transition: 0.3s linear;
    }
    .navButton {
        font-size: 15px;
    }
    .history-message {
        width: 95%;
    }
    .container {
        flex-direction: row;
    }
    .section-container {
        width: 30%;
    }
    .cardlabel{
        min-height: 60px;
    }
    .imageBox {
        width: 80%;
        margin-right: 0px;
    }
    .img {
        min-width: 160px;
        min-height:400px ;
    }
}

@media (max-width: 610px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
        padding-right: 1.5rem;
    }
    #services {
        min-height: 750px;
    }
    .tooltipServices-content {
        width: 200px;
        left: 30%;
        font-size: 14px;
    }
    .container {
        flex-direction: column-reverse;
        min-height: 750px;
        float: unset;
    }
    .section-container {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        width: 90%;
        height: 480px;
    }
    .cardlabel{
        min-height: 72px;
    }
    .section {
        padding: 0.3rem;
        margin: 0.2rem;
    }
    .imageBox {
        width: 100%;
        padding: 0%;
        margin-top: 0.6rem;
        margin-right: 0.6rem;
    }
    /* .lightbox {

    } */
    .lightbox div img {
        width: 90%;
        height: 400px;
    }
    .close {
        top: 10px;
        right: 10px;
    }
    .pageWrapper {
        height: 19em;
    }
    .slide {
        width: 15rem;
        height: 17.5em;
    }
    .slide div a img {
        width: 15rem;
        height: 12em;
    }
    .slide-text {
        height: 2.8rem;
    }
    .player {
        width: 14.5rem;
        height: 13em;
    }
    .img {
        min-width: 170px;
        min-height:200px ;
    }
    .card {
        width: 90%;
    }
    input, textarea, button {
        width: 90%;
    }
    * {
        margin: 0;
        padding: 0;
    }
    footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 0.8em;
    }
    footer p {
        width: 100%;
        padding: 2%;
        flex-shrink: 1;
    }
    .tooltip-content {
        left: 60%;
    }
    .logo {
        flex-shrink: 1;
        width: 70%;
        align-items: center;
        justify-content: center;
    }
    .image{
        align-items: center;
        justify-content: center;
        position: sticky;
        right: 27%;
    }
    .connectionBox {
        flex-shrink: 1;
        width: 100%;
    }
}
