
/* Styles for Calculator Form */
.calculator-form {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #007bff;
    border-radius: 5px;
    background-color: #f4eeff;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.calculator-form:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/*.calculator-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #007bff;
}*/

.calculator-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.calculator-form p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 100;
    color: #333;
}

.calculator-form input[type="number"],
.calculator-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease-in-out;
}

.calculator-form input[type="number"]:focus,
.calculator-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.calculator-form button.converter-submit-button {
    width: 100%;
    padding: 12px;
    background-color: #42b883;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

.calculator-form button.converter-submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Increased font size for output and decreased margin */
.calculator-form .converter-result {
    margin-top: 5px; /* Decreased margin between the button and result */
    padding: 10px;
    text-align: left;
    font-size: 20px; /* Increased font size for better readability */
    font-weight: bold;
    color: #007bff;
}

.calculated-dates-table-container {
    margin-top: 20px;
}

.calculated-dates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.calculated-dates-table th, 
.calculated-dates-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.calculated-dates-table th {
    background-color: #f7f7f7;
    text-align: left;
    font-weight: bold;
    color: #333;
}

@media (max-width: 768px) {
    .calculator-form {
        padding: 15px;
    }

    .calculator-form h2 {
        font-size: 20px;
    }

    .calculator-form button.converter-submit-button {
        font-size: 16px;
        padding: 10px;
    }

    .calculator-form input[type="number"],
    .calculator-form select {
        font-size: 14px;
        padding: 8px;
    }

    .calculator-form .converter-result {
        font-size: 18px;
    }

    .calculator-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .calculator-form {
        padding: 10px;
    }

    .calculator-form h2 {
        font-size: 18px;
    }

    .calculator-form button.converter-submit-button {
        font-size: 14px;
        padding: 8px;
    }

    .calculator-form input[type="number"],
    .calculator-form select {
        font-size: 14px;
        padding: 6px;
    }

    .calculator-form .converter-result {
        font-size: 16px;
    }

    .calculated-dates-table th,
    .calculated-dates-table td {
        padding: 8px;
    }
}

/* Styles for half-width form inputs */
.form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
}

.half-width {
    width: 48%;
}

.half-width input[type="number"],
.half-width select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease-in-out;
}

/* Adjusting responsiveness for half-width elements */
@media (max-width: 768px) {
    .half-width {
        width: 100%;
    }
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background-color: #f1f1f1;
    padding: 10px;
    text-align: left;
}

.table-row {
    border-bottom: 1px solid #ddd;
}

.table-cell {
    padding: 8px;
}
/* Ensure the form row is a flex container */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust gap between fields as needed */
}

/* The half-width class makes each input take 50% of the row width */
.half-width {
    flex: 1 1 calc(48% - 10px); /* Adjust for margins/gaps */
    box-sizing: border-box; /* Ensure padding and borders are included in the element's width */
}

/* Ensure full-width elements (if any) still behave correctly */
.full-width {
    flex: 1 1 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .half-width {
        flex: 1 1 100%; /* Make fields full width on small screens */
    }
}
/* Add a gap between buttons */
.button-group {
    display: flex;
    gap: 20px; /* Adjust this value to set the space between the buttons */
}

/* Ensure buttons take equal width */
.button-group .half-width {
    flex: 1;
    box-sizing: border-box;
}
/* General styles for half-width elements */
.half-width {
    width: 48%; /* Adjusts the width to allow space for the gap */
    float: left; /* Aligns the elements side by side */
    margin-right: 2%; /* Adds a gap between the elements */
    box-sizing: border-box; /* Ensures padding doesn't affect the width */
}

/* Remove the right margin for the last element in each row */
.half-width:last-child {
    margin-right: 0;
}

/* Clear floats after the half-width divs */
.form-group:after {
    content: "";
    display: table;
    clear: both;
}

/* Additional styling to enhance spacing */
.calculator-form {
    margin-bottom: 20px; /* Adds space below the form */
}

.converter-submit-button {
    margin-top: 10px; /* Adds some space above the buttons */
}

/* Style for the Upside Down Text Converter */
.upside-down-converter-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Style for the textarea */
.upside-down-converter-form .form-group {
    margin-bottom: 20px;
}

.upside-down-converter-form textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.upside-down-converter-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Style for the button container */
.upside-down-converter-form .button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Style for both Convert and Clear Text buttons */
.upside-down-converter-form .converter-submit-button,
.upside-down-converter-form .converter-clear-button {
    width: 48%; /* Makes the buttons take up equal width */
    height: 50px; /* Set equal height for both buttons */
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* Ensures padding and width are respected */
}

/* Style for the Convert button */
.upside-down-converter-form .converter-submit-button {
    background-color: #007bff;
}

.upside-down-converter-form .converter-submit-button:hover {
    background-color: #0056b3;
}

/* Style for the Clear Text button */
.upside-down-converter-form .converter-clear-button {
    background-color: #dc3545;
}

.upside-down-converter-form .converter-clear-button:hover {
    background-color: #c82333;
}

/* Style for the result */
.upside-down-converter-form .converter-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 5px;
    font-size: 18px;
    font-family: "Courier New", monospace;
    text-align: center;
    min-height: 50px;
}

.upside-down-converter-form .converter-result p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .upside-down-converter-form {
        padding: 15px;
    }

    .upside-down-converter-form textarea {
        height: 120px;
        font-size: 14px;
    }

    .upside-down-converter-form .converter-submit-button,
    .upside-down-converter-form .converter-clear-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Style for the Text Case Converter Form */
.text-case-converter-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Style for the form group labels */
.text-case-converter-form .form-group {
    margin-bottom: 20px;
}

.text-case-converter-form label {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* Style for the textarea */
.text-case-converter-form textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.text-case-converter-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Style for the dropdown (select) element */
.text-case-converter-form select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
}

/* Style for the convert button */
.text-case-converter-form .converter-submit-button {
    width: 100%;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 0;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.text-case-converter-form .converter-submit-button:hover {
    background-color: #0056b3;
}

/* Style for the result display */
.text-case-converter-form .converter-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 5px;
    font-size: 18px;
    font-family: "Courier New", monospace;
    text-align: center;
    min-height: 50px;
}

.text-case-converter-form .converter-result p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-case-converter-form {
        padding: 15px;
    }

    .text-case-converter-form textarea {
        height: 120px;
        font-size: 14px;
    }

    .text-case-converter-form .converter-submit-button {
        font-size: 16px;
    }
}

/* General Styling for the Text Style Converter */
.text-style-converter-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-style-converter-form .form-group {
    margin-bottom: 20px;
}

.text-style-converter-form label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

.text-style-converter-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.text-style-converter-form select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.text-style-converter-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.text-style-converter-form button:hover {
    background-color: #45a049;
}

/* Styling the result section */
#style-conversion-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#style-conversion-result p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

/* Optional: Add styles for different text styles */

.cursive {
    font-family: 'Brush Script MT', cursive;
}

.bold-cursive {
    font-family: 'Brush Script MT', cursive;
    font-weight: bold;
}

.strikethrough {
    text-decoration: line-through;
}

.underline {
    text-decoration: underline;
}

.italic {
    font-style: italic;
}

.bold-italic-sans-serif {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-style: italic;
}

.bold-italic-serif {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-style: italic;
}

.bold {
    font-weight: bold;
}
.half-width-container {
    display: flex;
    justify-content: space-between;
}

.half-width {
    width: 48%; /* Ensure two fields fit side by side */
}

@media (max-width: 768px) {
    .half-width {
        width: 100%; /* Stack the fields on mobile view */
    }
}

button.converter-submit-button {
    width: 100%; /* Full-width buttons */
}
