/* Basic styles for the modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 10px;
    border: 1px solid #00245D;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Maximum width for larger screens */
}

@media (max-width: 767px) {
    .modal {
        align-items: flex-start; /* Start from top to allow a little top padding */
        padding-top: 110px; /* Controls how far down the modal starts - adjust to taste (e.g. 50px, 100px) */
    }
    .modal-content {
        margin: 0 auto;  /* Fixed: starts 100px from top, centered */
        width: 95%;         /* Optional: make it wider on mobile */
    }
}

/* Close button styling */
.close-button {
    color: #5D0B00;
    float: right; /* Aligns the close button to the right */
    font-size: 32px; /* Increase font size for larger button */
    font-weight: bold;
    line-height: 1; /* Ensure proper vertical alignment */
    cursor: pointer; /* Shows a pointer cursor on hover */
    margin-left: 10px; /* Space between the button and the modal content */
}

.close-button:hover,
.close-button:focus {
    color: #000; /* Changes color on hover */
    transition: color 0.3s; /* Smooth transition for color change */
}

/* Button styling */
#chatbot-button {
    padding: 10px 15px;
    background-color: #9e2e37; /* Bootstrap primary color */
    color: white;
    border: none;
    border-radius: 21px;
    cursor: pointer;
	font-size: 21px; /* Increase font size for larger button */
    font-weight: bold;
}

#chatbot-button:hover {
    background-color: #8f212a; /* Darker shade on hover */
}