/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 999999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0, 0, 0, 0.674); 
    padding-top: 60px; 
}

.modal-content {
    position: relative;
    display: flex;
    pointer-events: auto;
    background-clip: padding-box;
    border-radius: .3rem;
    text-align: center;
    outline: 0;
    justify-content: center;
    align-items: center;
    top: 15vh;
}

article.modalcontainer {
    background: white;
    padding: 2rem;
    box-sizing: border-box;
    border-radius: 10px;
    position: relative; /* Add this to make the close button positioning relative to this container */
    display: flex;
    flex-direction: column;
    align-items: center;

    @media (min-width:764px) {
        width: 50%;
    }

    @media (min-width:1400px) {
        width: 50%;
    }  

    h2 {
        font-size: 22px;
        text-align: center;

        @media (min-width:1400px) {
            font-size: 30px;
        }
    }
}

.close {
    color: #000000;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    transition: all .4s;
    cursor: pointer;
    position: absolute; /* Position it absolutely within the modal container */
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
}

.close:hover,
.close:focus {
    color: rgb(255, 255, 255);
    background-color: #000000;
    text-decoration: none;
    cursor: pointer;
}

input[type="email"].ebookemail#emailInput {
    margin-bottom: 23px;
    width: 100%;
    height: 60px;
    font-weight: 700;
    color: rgb(0, 0, 0);
    font-size: 16px;
    border-radius: 50px;
    background-color: #fff0;
    padding: 15px 24px !important;
    border: none !important;
    transition: all .4s;
    border: 2px solid black !important;
    margin-top: 2rem;
}

/* From Uiverse.io by andrew-demchenk0 */ 
#submitEmail {
    position: relative;
    width: 150px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 1px solid #bff747;
    background-color: #bff747;
    overflow: hidden;
    border-radius: 40px;
}

#submitEmail, #submitEmail .button__icon, #submitEmail .button__text {
    transition: all 0.3s;
}

#submitEmail .button__text {
    transform: translateX(22px);
    color: #000000;
    font-weight: 500;
}

#submitEmail .button__icon {
    position: absolute;
    transform: translateX(109px);
    height: 100%;
    width: 39px;
    background-color: #97d80b;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submitEmail .svg {
    width: 16px;
    fill: #000000;
}

#submitEmail:hover {
    background: #a3e11c;
}

#submitEmail:hover .button__text {
    color: transparent;
}

#submitEmail:hover .button__icon {
    width: 148px;
    transform: translateX(0);
}

#submitEmail:active .button__icon {
    background-color: #146c54;
}

#submitEmail:active {
    border: 1px solid #146c54;
}

article.btnemail {
    display: flex;
    align-items: center;
    justify-content: center;
}