.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    overflow: auto;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    text-align: center;
    color: purple;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;


}

#modalImage {
    width: 50px;
    height: auto;
    margin: 0 auto;
    display: block;
}

#modalTitle {
    color: black;
}

.button-red,
.button-purple,
.button-purple-outline {
    background-color: white;
    padding: 10px;
    width: 100%;
    margin: 5px 0;
}

.button-red {
    color: red;
    border: 1px solid red;
}

.button-purple {
    background-color: purple;
    color: white;
    border: 1px solid purple;
}

.button-purple-outline {
    color: purple;
    border: 1px solid purple;
}

.text-area-container,
.error-message,
.success-container,
.loading-container {
    display: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid purple;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-blue {
    background-color: blue;
    color: white;
    border: 1px solid blue;
    width: 100%;
    margin: 5px 0;
    padding: 10px;
}

.button-blue-outline {
    color: blue;
    border: 1px solid blue;
    width: 100%;
    margin: 5px 0;
    padding: 10px;
}

.container {
    display: none;
    /* Initially hide all containers */
}

/* ... Your existing CSS ... */

.container {
    display: none;
    /* Initially hidden */
    padding: 20px 0;
}

textarea#inputTextArea {
    width: 80%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}

#sendButton {
    width: 90%;
    padding: 10px 20px;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#sendButton:hover {
    background-color: #0056b3;
    /* A shade darker than the original blue for hover effect */
}



@keyframes showError {

    0%,
    100% {
        opacity: 0;
    }

    30%,
    70% {
        opacity: 1;
    }
}


.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid blue;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

.error-text {
    color: #ff4444;
    margin-bottom: 10px;
    opacity: 0;
    display: block;
    width: 100%;
    text-align: center;
}

.show-error {
    animation-name: showError;
    animation-duration: 3s;
}



@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }
}

/* Customizations for Mobile Screens */
@media (max-width: 768px) {

    /* 1. Making the modal box wider */
    .modal-content {
        width: 95%;
        /* increased from 80% for more width */

    }

    /* 4. Adjustments for the textarea */
    textarea#inputTextArea {

        width: 90%;
        /* increased from 80% for more width */
        font-size: 11px;
        /* reduced font size a bit */
    }
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    outline: none;
    /* removes the default focus outline */
}

#successContainer {
    display: none;
    background-color: white;
    border: 1px solid red;
    color: red;
    padding: 10px 20px;
    width: 80%;
    margin: 30px auto;  /* This gives it a 30 pixel margin at the top and bottom */
    border-radius: 4px;
    cursor: default;  /* So it doesn't look clickable */
    text-align: center;
}

