



.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    overflow-y: auto; 
    padding: 20px; 
    box-sizing: border-box;
    overflow: hidden;
}

.modal-content {
    background-color: #fff;
    padding: 30px; 
    border: 1px solid #000; 
    width: 90%; 
    max-width: 600px; 
    position: absolute; 
    top: 100px; 
    left: 50%; 
    transform: translateX(-50%); 
     
    font-size: 14px; 
    line-height: 1.6;
}


.close-button {
    display: none;
}


.modal-header-wrapper {
    
    margin-bottom: 20px; 
    padding-top: 15px; 
}


.modal-arrow-border {
    position: absolute;
    top: -9px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #000; 
    z-index: 1;
}


.modal-arrow {
    position: absolute;
    top: -8px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff; 
    z-index: 1; 
}

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    color: black;
}

.modal-content p, .modal-content ol {
    margin-bottom: 10px;
    color: #333; 
}

.modal-content ol {
    padding-left: 20px;
    list-style-type: decimal; 
}

.modal-content ol li {
    margin-bottom: 5px;
}

@media (min-width: 1024px) and (max-width: 1920px)
{
    .modal-content {
        padding: 20px;
        width: 95%; 
        font-size: 20px; 
        top: 100px;
        max-width: 900px;
    }

    .modal-title {
        font-size: 28px; 
        margin-bottom: 10px;
        text-align: left;
    }

    .modal-content p
    {
        text-align: left;
    }

    .modal-arrow {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #fff;
    }

    .modal-content ol
    {
        padding-left: 70px;
    }

    .modal-content::before {
        top: -11px;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-bottom: 11px solid #888;
    }
}



@media (min-width: 768px) and (max-width: 1023px)
{
    body
    {
        min-height: 0px;
    }

    .modal-content {
        padding: 20px;
        width: 95%; 
        font-size: 17px; 
        margin-top: 0; 
        top: 90px;
        left: 50%;
        max-width: 700px;
    }

    .modal-title {
        font-size: 20px; 
        text-align: left;
    }

    .modal-content p
    {
        text-align: left;
    }

    .modal-arrow {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #fff;
        left: 4%;
    }

    
    .modal-arrow-border {
        position: absolute;
        top: -9px; 
        left: 4%; 
        transform: translateX(-50%); 
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #000; 
        z-index: 1;
    }

    .modal-content ol
    {
        padding-left: 60px;
    }

    .modal-content::before {
        top: -11px;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-bottom: 11px solid #888;
    }

    .close-button {
        width: 30px;
        height: 30px;
        top: 0px;
        right: 0px;
    }
    .close-button img {
        width: 25px;
        height: 25px;
    }

    @media (min-width: 780px) and (max-width: 790px)
    {
        .modal-content {
            top: 92px;
            left: 49%;
            max-width: 700px;
        }

        .modal-arrow {
            left: 4%;
        }

    
    .modal-arrow-border {
            left: 4%; 
        }   
    }
    
    @media (min-width: 791px) and (max-width: 810px)
    {
        .modal-content {
            top: 92px;
            left: 50%;
            max-width: 750px;
        }

        .modal-arrow {
            left: 5%;
        }

    
    .modal-arrow-border {
            left: 5%; 
        }   
    }

    @media (min-width: 811px) and (max-width: 825px)
    {
        .modal-content {
            top: 92px;
            left: 50%;
            max-width: 750px;
        }

        .modal-arrow {
            left: 4%;
        }

    
    .modal-arrow-border {
            left: 4%; 
        }   
    }
    
    @media (min-width: 826px) and (max-width: 860px)
    {
        .modal-content {
            top: 92px;
            left: 49%;
            max-width: 760px;
        }

        .modal-arrow {
            left: 4%;
        }

    
    .modal-arrow-border {
            left: 4%; 
        }   
    }
    
    @media (min-width: 861px) and (max-width: 900px)
    {
        .modal-content {
            top: 92px;
            left: 50%;
            max-width: 800px;
        }

        .modal-arrow {
            left: 3%;
        }

    
    .modal-arrow-border {
            left: 3%; 
        }   
    }
    
    @media (min-width: 901px) and (max-width: 940px)
    {
        .modal-content {
            top: 92px;
            left: 49%;
            max-width: 825px;
            font-size: 18px;
        }

        .modal-title
        {
            font-size: 24px;
        }

        .modal-arrow {
            left: 3%;
        }

    
    .modal-arrow-border {
            left: 3%; 
        }   
    }

    @media (min-width: 941px) and (max-width: 980px)
    {
        .modal-content {
            top: 92px;
            left: 50%;
            max-width: 875px;
            font-size: 18px;
        }

        .modal-title
        {
            font-size: 24px;
        }

        .modal-arrow {
            left: 3%;
        }

    
    .modal-arrow-border {
            left: 3%; 
        }   
    }

    @media (min-width: 981px) and (max-width: 1023px)
    {
        .modal-content {
            top: 92px;
            left: 50%;
            max-width: 925px;
            font-size: 19px;
        }

        .modal-title
        {
            font-size: 24px;
        }

        .modal-arrow {
            left: 3%;
        }

    
    .modal-arrow-border {
            left: 3%; 
        }   
    }
}

@media (min-width: 400px) and (max-width: 480px)
{
    body
    {
        min-height: 0px;
    }

    .modal-content {
        padding: 20px;
        width: 95%; 
        font-size: 13px; 
        margin-top: 0; 
        top: 80px;
    }

    .modal-title {
        font-size: 16px; 
        text-align: left;
    }

    .modal-content p
    {
        text-align: left;
    }

    .modal-arrow {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #fff;
        left: 11%;
    }

    
    .modal-arrow-border {
        position: absolute;
        top: -9px; 
        left: 11%; 
        transform: translateX(-50%); 
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #000; 
        z-index: 1;
    }

    .modal-content ol
    {
        padding-left: 40px;
    }

    .modal-content::before {
        top: -11px;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-bottom: 11px solid #888;
    }

    .close-button {
        width: 30px;
        height: 30px;
        top: 0px;
        right: 0px;
    }
    .close-button img {
        width: 25px;
        height: 25px;
    }
    
    @media (min-width: 430px) and (max-width: 463px)
    {
        .modal-arrow {
            left: 10%;
        }

        
        .modal-arrow-border {
            left: 10%; 
        }        
    }
    
    @media (min-width: 464px) and (max-width: 480px)
    {
        .modal-content
        {
            top: 80px;
        }

        .modal-arrow {
            left: 10%;
        }

        
        .modal-arrow-border {
            left: 10%; 
        }  
    }
}


@media (min-width: 360px) and (max-width: 399px) {
    
    body
    {
        min-height: 0px;
    }  

    .modal-content {
        padding: 20px;
        width: 95%; 
        font-size: 12px; 
        margin-top: 0; 
        top: 80px;
    }

    .modal-title {
        font-size: 14px; 
        text-align: left;
    }

    .modal-content p
    {
        text-align: left;
    }

    .modal-arrow {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #fff;
        left: 13%;
    }

    
    .modal-arrow-border {
        position: absolute;
        top: -9px; 
        left: 13%; 
        transform: translateX(-50%); 
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #000; 
        z-index: 1;
    }

    .modal-content ol
    {
        padding-left: 35px;
    }

    .modal-content::before {
        top: -11px;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-bottom: 11px solid #888;
    }

    .close-button {
        width: 30px;
        height: 30px;
        top: 0px;
        right: 0px;
    }
    .close-button img {
        width: 25px;
        height: 25px;
    }

    @media (min-width: 380px) and (max-width: 399px)
    {
        .modal-content {
            top: 80px;
        }
        .modal-arrow {
            left: 12%;
        }

    
        .modal-arrow-border {
            left: 12%; 
        }        
    }
}


@media (min-width: 320px) and (max-width: 359px)
{
    body
    {
        min-height: 0px;
    }

    .modal-content {
        width: 95%; 
        font-size: 10px; 
        margin-top: 0; 
        top: 70px;
        padding: 20px;
    }

    .modal-title {
        font-size: 11px; 
        text-align: left;
    }

    .modal-content p
    {
        text-align: left;
    }

    .modal-arrow {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #fff;
        left: 15%;
    }

    
    .modal-arrow-border {
        position: absolute;
        top: -9px; 
        left: 15%; 
        transform: translateX(-50%); 
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #000; 
        z-index: 1;
    }

    .modal-content ol
    {
        padding-left: 22px;
    }

    .modal-content::before {
        top: -11px;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-bottom: 11px solid #888;
    }

    .close-button {
        width: 30px;
        height: 30px;
        top: 0px;
        right: 0px;
    }
    .close-button img {
        width: 25px;
        height: 25px;
    }
    @media (min-width: 330px) and (max-width: 352px)
    {
        .modal-content {
            top: 80px;
        }
        .modal-arrow {
            left: 13%;
        }

    
        .modal-arrow-border {
            left: 13%; 
        }
    }
    @media (min-width: 353px) and (max-width: 359px)
    {
        .modal-content {
            top: 80px;
        }
        .modal-arrow {
            left: 13%;
        }

    
        .modal-arrow-border {
            left: 13%; 
        }
    }
}