/* Reset margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #F9F9F9;
    color: #333;
}

/* Main container for the toolset */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

/* Title styling */
h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1D1D1F;
}

/* Grid layout for tool cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Individual tool card styling */
.tool-card {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-card span {
    font-size: 22px;
    font-weight: 600;
    color: #1D1D1F;
}

.tool-card p {
    font-size: 16px;
    color: #6E6E73;
    margin: 15px 0 20px;
    line-height: 1.6;
}

.tool-card a {
    display: inline-block;
    background-color: #007AFF;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.tool-card a:hover {
    background-color: #0056b3;
}

/* Footer */
.footer {
    margin-top: 60px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.footer a {
    color: #007AFF;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    .tool-card {
        padding: 20px;
    }
}

/* Custom styles for lorem-ipsum-generator page */

/* New custom wrapper for lorem ipsum tool */
.generator-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: left; /* Ensure generated content aligns properly */
}

/* Form styling specific to the lorem ipsum generator */
.lorem-ipsum-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

input[type="radio"], input[type="checkbox"] {
    margin-right: 10px;
}

input[type="number"] {
    padding: 10px;
    width: 100%;
    max-width: 500px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button[type="submit"] {
    background-color: #007AFF;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#lorem-text {
    margin-top: 30px;
    font-size: 16px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    max-width: 100%;
    word-break: break-word;
}

/* Indent the "Start with 'Lorem ipsum...' text" checkbox */
.indent-checkbox {
    padding-left: 20px;  /* Indent by 20px */
}


.back-link {
    margin-top: 40px;
    text-align: center;
}

.back-link a {
    color: #007AFF;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

#lorem-text p {
    margin-bottom: 20px;  /* Adds space between paragraphs */
}

button {
    background-color: #007AFF;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #0056b3;
}

/* Reusable Styles for Password Generator and Other Tools */

/* Form Group Alignment for Checkboxes */
.form-group label {
    padding-left: 20px;
    display: block;
    margin-bottom: 10px;
}

/* Resize the length input box */
input[type="number"] {
    width: 100px;  /* Limit to approximately 5 digits */
}

/* Align "How Many?" label and input field on the same line */
.form-inline {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-inline label {
    margin-right: 10px;  /* Add some spacing between label and input */
}

/* General result box styling */
.result-box {
    text-align: center;
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* General password or result display styling */
.password-display, .result-display {
    font-family: monospace;
    font-size: 24px;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: inline-block;
    min-width: 200px;
}

/* General copy button styling */
.copy-btn {
    background-color: #007AFF;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.copy-btn:hover {
    background-color: #0056b3;
}

/* Textarea styling for consistent appearance */
textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 150px;
    resize: vertical;  /* Allow users to resize vertically */
}

textarea:focus {
    border-color: #007AFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 122, 255, 0.5);
}

/* Thumbnail styling */
.thumbnail {
    float: right;
    margin-left: 20px;
}

.image-preview {
    width: 150px;  /* Set a thumbnail size */
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
}
/* WebP Converter specific result box styling */
.webp-result-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items at the top */
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden; /* Prevent overflow */
}

/* Text content styling for the WebP result */
.webp-result-box .text-content {
    max-width: 65%; /* Limit text width */
}

/* Download button specific to WebP */
.webp-download-btn {
    margin-top: 20px;  /* Ensure space between the text and the button */
    padding: 12px 25px;
    background-color: #007AFF;
    color: white;
    text-decoration: none; /* Remove underline from button text */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
}

.webp-download-btn:hover {
    background-color: #0056b3;
}

/* Thumbnail styling for WebP converter */
.webp-result-box .thumbnail {
    margin-left: 20px;
    flex-shrink: 0; /* Ensure the thumbnail doesn't shrink */
}

.webp-result-box .image-preview {
    width: 150px;  /* Set a fixed thumbnail size */
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
    object-fit: cover; /* Ensure the image fits within the bounds */
}
.server-info {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    text-align: center;
}
/* QR Code Generator specific styling */
.qr-image {
    margin-top: 20px;
    display: block;
    width: 300px;  /* Adjusted size for the QR code */
    height: 300px;
}

.qr-download-btn {
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #007AFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
}

.qr-download-btn:hover {
    background-color: #0056b3;
}

.result-box {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
}
/* Input fields styling */
.input-field {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Submit button styling */
.submit-btn {
    background-color: #007AFF;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #0056b3;
}