/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* General Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Centered Container */
.container {
    max-width: 400px;
    margin: 50px auto;  /* Center vertically and horizontally */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Media query to adjust for mobile devices */
@media (max-width: 600px) {
    .container {
        margin: 20px auto;  /* Reduce the top margin */
        padding-bottom: 100px;  /* Increase bottom padding to avoid the keyboard covering elements */
    }
}

/* For smaller screens, we add extra padding to prevent keyboard overlap */
@media (max-height: 700px) {
    .container {
        margin: 10px auto;  /* Reduce the top margin */
        padding-bottom: 150px;  /* Add more padding to accommodate smaller screen height */
    }
}

/* Headings */
h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 15px;
}

/* Paragraphs */
p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

/* Input Box Styling for text and number input */
input[type="text"], input[type="number"] {
    width: 90%;  /* Consistent width with other input fields */
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 20px;  /* Rounded corners */
    border: 1px solid #ccc;
    font-size: 1.1em;
}

/* Mobile-specific adjustments for number input */
@media (max-width: 600px) {
    input[type="text"], input[type="number"] {
        font-size: 1.2em;  /* Increase font size on mobile */
        padding: 15px;  /* Add more padding for better tap targets */
    }
}

/* Ensure proper display of input group */
.input-group {
    margin-bottom: 20px;
    text-align: left; /* Align the label text */
}

/* Textarea styling */
textarea {
    width: 90%;  /* Match the width of the input boxes */
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 20px;  /* More rounded corners */
    border: 1px solid #ccc;
    font-size: 1.1em;
    height: 100px;  /* Height adjusted for 4 lines */
    resize: none;  /* Prevent resizing */
}

/* Hidden Message (Success/Info) */
#successMessage {
    display: none;
    color: green;
    font-size: 1.1em;
}

/* Primary Button Styling */
button.primary-btn {
    width: 60%;  /* Smaller button compared to the textarea */
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 20px;  /* Rounded corners */
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px 10px;  /* Adds 10px horizontal and 5px vertical space between the buttons */
}

/* Button Hover Effect */
button.primary-btn:hover {
    background-color: #218838;
}

/* Hidden Buttons for Next Steps */
#nextStepButtons {
    display: none;
    margin: 5px 10px;  /* Adds 10px horizontal and 5px vertical space between the buttons */
}

/* Divider Line */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 30px 0;
}

/* Styling for the instructions link (Visible on all screens) */
.instructions-link {
    font-size: 0.85em;  /* Slightly smaller font size */
    color: #555;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    font-weight: 500;  /* Slightly bolder to stand out */
    text-decoration: underline;
}

.instructions-link:hover {
    color: #28a745;  /* Match your button color */
    text-decoration: underline;
}

/* General input box styling */
.input-box {
    width: 90%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1.1em;
}

/* Modal Container */
.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 */
    background-color: rgba(0, 0, 0, 0.5);  /* Black background with opacity */
    justify-content: center;  /* Center modal horizontally */
    align-items: center;  /* Center modal vertically */
}

/* Modal Content */
.modal-content {
    background-color: #fff;  /* White background */
    padding: 20px;
    border-radius: 8px;  /* Rounded corners */
    text-align: center;
    width: 80%;  /* Adjust width of the modal */
    max-width: 400px;  /* Maximum width of the modal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Box shadow */
}

/* Modal Header / Message */
.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
}

/* Modal buttons for alert (single button) */
#modalConfirmButton {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover effect for alert button */
#modalConfirmButton:hover {
    background-color: #218838;
}

/* Modal buttons for confirmation (OK and Cancel) */
.modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}

.modal-buttons .confirm-btn {
    background-color: #28a745;
    color: white;
}

.modal-buttons .confirm-btn:hover {
    background-color: #218838;
}

.modal-buttons .cancel-btn {
    background-color: #dc3545;
    color: white;
}

.modal-buttons .cancel-btn:hover {
    background-color: #c82333;
}

.disabled-btn {
    background-color: #ccc; /* Light gray background */
    color: #666; /* Darker gray text */
    cursor: not-allowed; /* Show "not-allowed" cursor */
    opacity: 0.3; /* Make it slightly transparent */
}