   * {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

   
   @font-face{
    font-family: IRANSansWeb_Medium;
    font-style:normal;
    font-weight:normal;
    src:url('https://ana-clinic.com/ASQ/2/assest/fonts/IRANSansWeb_Medium.eot');
    src:url('https://ana-clinic.com/ASQ/2/assest/fonts/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
    url('https://ana-clinic.com/ASQ/2/assest/fonts/IRANSansWeb_Medium.woff2') format('woff2'),
    url('https://ana-clinic.com/ASQ/2/assest/fonts/IRANSansWeb_Medium.woff') format('woff'),
    url('https://ana-clinic.com/ASQ/2/assest/fonts/IRANSansWeb_Medium.ttf') format('truetype');
}

a, h1, h2, h3, h4, h5, h6, p, ul, li, span, div, input, button {font-family: IRANSansWeb_Medium !important;}

   
   
    body {
      margin: 0;
      padding: 0;
      height: 100vh;
      display: flex;
    
      align-items: center;
      overflow-x: hidden;
      background: linear-gradient(40deg, #583439, #31003a, #0092a5);
      background-size: 300% 300%;
      animation: gradientAnimation 5s infinite alternate ease-in-out;
      flex-direction:column;
      direction:rtl;
    }
    
    
    
    .read-more-target,
.read-more-trigger_opened {
  display: none;
}
.read-more-state:checked ~ .read-more-wrap .read-more-target,
.read-more-state:checked ~ .read-more-trigger_opened {
  display: block;
}
.read-more-state:checked ~ .read-more-trigger_closed {
  display: none;
}
    
    div#timer-display{
        font-size:18px;
        display: none;
    }




    @keyframes gradientAnimation {
      0% {
        background-position: 0% 70%;
      }
      70% {
        background-position: 100% 70%;
      }
      100% {
        background-position: 0% 70%;
      }
    }
    
    
div#ones {
    text-align: justify;
    color: #ffffff;
        width: 33%;
    font-size: 0.8rem;
    line-height: 1.7;
    margin: -5vh 5vh -5vh;
        
}

div#ones1 {
text-align: center;
    color: #ffffff;
    font-size: 0.8rem;
    margin: 1vh 5vh 3vh;
}

div#ones2 {
    text-align: center;
    color: #57b7c5;
  
    font-size: 0.8rem;
    margin: 4vh 5vh;
    padding: 0px 153vh;
}
        .question {
            margin-bottom: 20px;
        }
        .options label {
            display: block;
            margin-bottom: 5px;
        }

        .btn:hover {
       
            scale:1.02;
        }
        
        
        .calla {
    margin-top: -30px;
    width:100%;
}
        
        div#msg {
    font-size: 24px;
    margin: 10px 0px;
    color: #f092a0;
}

.mortex p {
font-size: 16px;
    padding: 0px 20%;
}


span#spnh1 {
    font-size: 18px;
    color: #f092a0;
    font-weight: 400;
}
button#copyBtn {
    background: none;
    border: none;
}

img#cop {
    width: 40%;
}


video {
    width: 29rem;
    height: 15rem;
        margin-top: -7vh;
}

.btcf {
    text-align: center;
    font-size: 18px;
    margin-top: -20px;
}

.morvid {
    margin: 50px 0px -55px 0px;
}

p#uniqueCodeText {
    margin: 45px 0px 0px 0px;
    font-size: 30px;
}

p#pope {
    font-size: 19px;
    text-align: right;
    width: 38%;
    padding-left: 50px;
}

.morinf {
    display: flex
;
flex-direction: column;
align-items: center;
    margin-top: 60px;
    gap: 40px;
        width: 100%;
}



.mortex {
    text-align: center;
    width: 97%;
    font-size: 2rem;
}

img#hgo {
    width: 130px;
        margin: 0px 0px -49px 0px;
}


.copy-section {
    margin-top: -33px;
    padding: 0px;
    background-color: #ebc200;
    border-radius: 20px;
    width: 52%;
    display: flex
;
    color: #000;
    flex-direction: row-reverse;
    justify-content: center;
}

.smsr {
    display: flex
;
    flex-direction: column;
    align-content: center;
    align-items: center;
}


.infoi h2 {
    font-size: 32px;
    margin: 50px 0px;
}
        #result {
            margin-top: 30px;
            font-size: 18px;
            font-weight: bold;
        }
        
                #popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }
        #popup .popup-content {
            background: white;
            padding: 20px;
            text-align: center;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }
        table {
            border-collapse: collapse;
            width: 50%;
            margin: 20px auto;
        }
        table, th, td {
            border: 1px solid black;
        }
        th, td {
            padding: 10px;
            text-align: center;
        }
        
        
        a#hom {
    background-color: #f092a0;
    padding: 20px 40px;
    color: #000;
    border-radius: 15px;
    box-shadow: 0px 0px 5px 3px #0000007a;
    text-decoration: none;
}
        
        
        button#start-btn {
            
width: 38%;
    height: 50px;
    margin-top: -55px;
    margin-bottom: 5vh;
    font-size: 32px;
    background-color: #f092a0;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 0px 4px 3px #ffffff3d;
  
    
}
        
        
#progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 25px;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 0px 4px 3px #57b7c5;
    margin: 0 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-circle .progress {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#f092a0 0% 0%, #fff 0% 100%);
    clip-path: inset(0 0 0 0);
}

.progress-circle span {
    font-size: 18px;
    color: #4caf50;
}

/* استایل برای دکمه‌ها */
.btn {
    position: relative;
    padding: 20px;
    background-color: #e3f1ff;
    color: #000;
    border: solid 1px #fff;
    box-shadow: 0px 0px 4px 2px #00000029;
    margin-right: 5px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 20px;
    transition: all 1.3s ease;
}
.selected {
    position: relative;
    overflow: hidden;
      background-image: linear-gradient(to right, #57b7c5 50%, white 50%);
      background-size: 200% 100%;
      animation: slideColor 3.5s forwards;
}
    @keyframes slideColor {
      0% {
        background-position: 100% 0;
      }
      100% {
        background-position: 0 0;
      }
    }

.selected .underline {
    position: absolute;
    bottom: -5px; /* کمی پایین‌تر از دکمه */
    left: 0;
    width: 0;
    height: 3px;
    background-color: red; /* رنگ قرمز */
    transition: width 3s ease-out; /* انیمیشن کشیده شدن خط */
}

/* زمانی که گزینه انتخاب می‌شود، خط کشیده می‌شود */
.selected .underline {
    width: 30px; /* طول خط 30 پیکسل */

}
#msg{
    display:none;
}

img#po {
    width: 180px;
    margin: 0px 0px -70px;
}

.logop {
    width: 95%;
}



h1#hh1 {
    margin-top: -6vh;
    color: #ffffff;
    font-size: 42px;
    text-align:center;
}
.stepn {
    color:#f092a0;
    width: 100%;
    text-align: center;
    font-size: 48px;
    font-weight: 600;
}

.infh2 {
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: 400;
}

.optbtn {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    gap: 30px;
    width: 92%;
    margin-top: 20px;
}

div#quiz {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    text-align: center;
    padding: 2%;
    color: #fff;
    gap: 30px;
    font-size: 26px;
}


form#user-info-form {
    display: flex;
    width: 46%;
    gap: 8px;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}


label {
    font-size: 18px;
}

input {
    padding: 15px;
    border-radius: 15PX;
    TEXT-ALIGN: center;
    font-size: 19px;
}

form button {
    padding: 8px 40px;
    border-radius: 15px;
    font-size: 24px;
    background-color: #f092a0;
}


.progress-circle span {
    color: #57b7c5;
    z-index: 1;
    font-size: 12px;
    margin-top: 80px;
    margin-right: -5px;
}

@media only screen and (min-width: 320px) and (max-width: 1024px) {
    
    * {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
}


    img#po {
        width: 90px;
        margin-top: 10px;
    }

    body {
        margin: 0;
        padding: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        overflow-x: hidden;
        background: linear-gradient(40deg, #583439, #31003a, #0092a5);
        background-size: 300% 300%;
        -webkit-animation: gradientAnimation 5s infinite alternate ease-in-out;
        animation: gradientAnimation 5s infinite alternate ease-in-out;
        flex-direction: column;
        direction: rtl;
        -webkit-text-size-adjust: 100%;
    }

    .progress-circle span {
        color: #57b7c5;
        z-index: 1;
        font-size: 9px;
        margin-top: 40px;
        margin-right: -5px;
    }

    .logop {
        margin-top: -50px;
    }

    h1#hh1 {
        margin-top: 10vh;
        color: #ffffff;
        font-size: 1.3rem;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 49px;
    }

    #progress-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 42px;
    }

    .progress-circle {
        width: 19px;
        height: 19px;
        border-radius: 50%;
        box-shadow: 0px 0px 4px 3px #57b7c5;
        margin: 0 10px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .stepn {
        color: #f092a0;
        width: 100%;
        text-align: center;
        margin-top: 0vh;
        margin-bottom: -5vh;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .infh2 {
        margin-bottom: 4vh;
        margin-top:-3vh;
        font-size: 0.7rem;
        font-weight: 400;
    }
    
    #quiz h2 {
    margin-top: 9vh;
    line-height: 1.9;
}

    .optbtn {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 15px;
        width: 92%;
        margin-top: 20px;
    }

    .btn {
        position: relative;
        padding: 8px;
        background-color: #e3f1ff;
        color: #000;
        border: solid 1px #fff;
        box-shadow: 0px 0px 4px 2px #00000029;
        margin-right: 5px;
        border-radius: 15px;
        cursor: pointer;
        font-size: 14px;
        transition: all 1.3s ease;
    }

    div#msg {
        font-size: 16px;
        padding: 0px 50px;
        margin: 10px 0px;
        text-align: center;
        color: #f092a0;
    }

    div#quiz {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
        text-align: center;
        padding: 2%;
        color: #fff;
        gap: 30px;
        margin-top: 2vh;
        font-size: 20px;
    }

    form#user-info-form {
        display: flex;
        width: 92%;
        gap: 8px;
        flex-direction: column;
        align-content: center;
        justify-content: center;
    }

    button#start-btn {
        width: 56%;
        font-size: 24px;
    }

    .infoi h2 {
        font-size: 1.6rem;
        margin: 50px 0px;
    }

    .copy-section {
        margin-top: -33px;
        padding: 0px;
        background-color: #ebc200;
        border-radius: 20px;
        width: 96%;
        display: flex;
        color: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    video {
        width: 22rem;
        height: 10rem;
    }

    p#pope {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
        padding: 10px;
        margin-top: -1vh;
    }

button#copyBtn {
    background: none;
    border: none;
    width: 42%;
    margin: 1vh 0px -3.5vh;
}

img#hgo{
    margin: 8vh 0px -8vh 0px;
}
    p#uniqueCodeText {
        margin: 45px 0px 0px 0px;
        font-size: 30px;
    }
    
    
    .morinf {
    display: flex
;
    margin-top: 3vh;
    gap: 40px;
    flex-direction: column;
    align-content: center;
    align-items: center;
        width: 100%;
}

.mortex p {
    font-size: 0.7rem;
    padding: 15px;
    margin-top: -2.5vh;
}

.mortex {
    text-align: center;
    width: 97%;
    font-size: 1rem;
}
   
   .morvid {
    margin: -5vh 0px -1vh 0px;
} 


.btcf {
        text-align: center;
        font-size: 18px;
        margin-top: -1vh;
        margin-bottom: 7vh;
}


a#hom {
    background-color: #f092a0;
    padding: 1rem;
    color: #000;
    border-radius: 15px;
    box-shadow: 0px 0px 5px 3px #0000007a;
    text-decoration: none;
}

    img#cop {
        width: 45%;
    }
    
    
    div#ones {
    text-align: justify;
    color: #ffffff;
        width: 80%;
    font-size: 0.8rem;
    line-height: 1.7;
    margin: -5vh 5vh -5vh;
        
}

div#ones1 {
text-align: center;
    color: #ffffff;
    font-size: 0.8rem;
    margin: 9vh 5vh 7vh;
}

}
