body {
    font-family: Verdana, Arial, Helvetica;
    /* font-family: 'Work Sans', sans-serif; */
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

header {
    background: #fff;
    color: #333;
    padding: 5px 20px;

}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img,
footer img {
    height: 55px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #a5a3a3;
    text-decoration: none;
}

button {
    background: linear-gradient(135deg, #0054a6, #0092d0);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #003d80, #007cb3);
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="submit"]:focus,
input[type="textarea"],
select {
    border-color: #007bff;
    outline: none;
}

textarea {
    height: 150px;
}

select {
    color: #666;
}

.social-share {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

/* Each button */
.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px 0 0 5px;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-share a:hover {
    background: #0073e6;
}

/* Different colors for each network */
.social-share a.facebook {
    background: #3b5998;
}

.social-share a.twitter {
    background: #1da1f2;
}

.social-share a.linkedin {
    background: #0077b5;
}

.social-share a.whatsapp {
    background: #25d366;
}

.social-share a:hover {
    opacity: 0.8;
}


.hero-section {
    background-color: #1D6AB2;
    background-image: url(/images/BANNER-BG.png);
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 40px 0px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 16px;
    line-height: 25px;
    font-weight: 400;
    margin: 0 auto;
    color: #fff;
}

p {
    font-size: 15px;
    margin-bottom: 15px;
    color: #7b7b7b;
    line-height: 25px;
}

.home .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.home .grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.home .tool-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.home .tool-box .card-body {
    flex-grow: 1;
}

.home .tool-box:hover {
    transform: translateY(-5px);
}

.home .tool-box img {
    max-width: 100%;
    /* height: 160px; */
    border-radius: 6px;
    margin-bottom: 16px;
    width: 85%;
    margin: 0 auto 15px;
}

.home .tool-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.home .tool-box a {
    display: inline-block;
    background: #1C66AC;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    align-self: center;
}

footer {
    background: #1D6AB2;
    color: white;
    padding: 10px 10px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* -----Live Html Viewer----- */
.main-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f6f9fc;
}

.html-viewer .editor-preview-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 40px 20px;
    gap: 20px;
}

.html-viewer .editor,
.html-viewer .preview {
    flex: 1;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding-bottom: 25px;
}

.html-viewer .editor {
    color: #1a1a1a;
}

.html-viewer .CodeMirror {
    flex: 1;
    height: 100%;
    font-size: 14px;
    background: transparent !important;
    color: #000;
}

.html-viewer .preview {
    align-items: center;
    justify-content: center;
    position: relative;
}

.html-viewer .preview-controls {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #f0f4f8;
    border-bottom: 1px solid #e0e6ed;
    color: #1a1a1a;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    height: 65px;
    align-items: center;
}

.preview.tablet-horizontal,
.preview.tablet-vertical,
.preview.mobile {
    overflow-x: scroll;
}

.preview.tablet-horizontal .preview-controls,
.preview.tablet-vertical .preview-controls,
.preview.mobile .preview-controls {
    background: #fff;
}

.html-viewer .preview-controls button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.html-viewer .preview-controls button:hover {
    background: linear-gradient(135deg, #003d80, #007cb3);
}

.html-viewer iframe {
    width: 90%;
    height: 90%;
    border: none;
    margin: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 0 2px #0092d0 inset;
}

.html-viewer textarea#htmlInput {
    display: none;
}

/* -----Email Obfuscator----- */

.obfuscator-wrapper {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    justify-content: center;
}

.obfuscator-wrapper .tool-container {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 600px;
}

.obfuscator-wrapper button {
    padding: 10px 15px;
}

/* -----DKIM Key Generator----- */

.dkim-wrapper {
    max-width: 800px !important;
    margin: 50px auto !important;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background: #f4f4f4;
}

.dkim-wrapper button {
    padding: 12px 30px;
    margin: 10px 0;
}

.dkim-wrapper .copy-button,
.dkim-wrapper .download-button {
    margin: 5px;
}

.dkim-wrapper .output {
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    word-break: break-word;
    white-space: pre-wrap;
    font-family: monospace;
    overflow-x: auto;
    max-height: 300px;
}

.dkim-wrapper .dkimPrivate {
    max-height: 500px;
}

.dkim-wrapper .description {
    font-family: Verdana, helvetica;
    color: #336699;
    text-decoration: none;

}

.dkim-wrapper #dkim-container {
    display: none;
}

/* -----Email Readability Analyzer----- */

.readability-wrapper {
    padding: 50px 20px 0;
    max-width: 950px !important;
}

.readability-wrapper button {
    display: block;
    margin: 10px auto 0;
    padding: 12px;
    width: 25%;
}

.readability-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.readability-wrapper th, .readability-wrapper td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.readability-wrapper td {
    color: #7b7b7b;
}
.readability-wrapper th {
    background-color: #f2f2f2;
}

/* -----Email Template Editor----- */
.editor-container {
    margin: 40px auto;
    width: 90%;
}

.editor-container button {
    display: block;
    margin: 25px auto 0;
    padding: 12px;
    width: 25%;
}

.modal-content.tablet-horizontal,
.modal-content.tablet-vertical,
.modal-content.mobile {
    overflow-x: scroll;
}

/* -----Email DNS Records----- */
.DNS-records-wrapper {
    margin: 50px auto;
    width: 90%;
    padding: 40px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.DNS-records-wrapper button {
    display: block;
    margin: 25px auto 10px;
    padding: 12px;
    width: 25%;
}

.DNS-records-wrapper .output {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    word-wrap: break-word;
}

/* -----Password Generator----- */
.passwordgenerator-wrapper {
    width: 90%;
    margin: 40px auto;
}

.passwordgenerator-wrapper .password-display {
    font-weight: normal;
    font-size: 18px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid;
    word-break: break-all;
    margin-top: 25px;
}

.passwordgenerator-wrapper button {
    display: block;
    margin: 25px auto 10px;
    padding: 12px;
    width: 25%;
}

/* -----Line Break Format Converter----- */
.lineconvertor-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lineconvertor-wrapper p {
    font-size: 14px;
    color: #555;
}

.lineconvertor-wrapper input[type="file"] {
    margin-top: 10px;
    width: 60%;
}

.lineconvertor-wrapper input {
    width: inherit;
}

.lineconvertor-wrapper label {
    display: block;
    margin: 8px 0;
    font-size: 14px;
}

.lineconvertor-wrapper button {
    margin-top: 25px;
    padding: 12px 25px;
}

.lineconvertor-wrapper .error {
    color: red;
    margin-top: 10px;
}

/* -----Subscriber File Checker----- */
.subscriberfilechecker-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
}

.subscriberfilechecker-wrapper button {
    margin-top: 20px;
    padding: 12px 60px;
}

.subscriberfilechecker-wrapper .message {
    margin-top: 20px;
    font-size: 14px;
    text-align: left;
}

.subscriberfilechecker-wrapper .success {
    color: green;
}

.subscriberfilechecker-wrapper .error {
    color: red;
}

/* -----Simple URL Shortener----- */
.url-shortener-wpr {
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
}

.url-shortener-wpr button {
    margin-top: 15px;
    padding: 15px 40px;
}

/* -----Free Responsive Email Templates----- */
.templates-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.templates-wrapper .template-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.templates-wrapper .template-box:hover {
    transform: scale(1.03);
}

.templates-wrapper .preview {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.templates-wrapper .filename {
    margin-top: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #333;

}

.templates-wrapper .buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.templates-wrapper .btn {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.templates-wrapper .btn.preview-btn {
    background: #007bff;
    color: white;
}

.templates-wrapper .btn.download-btn {
    background: #28a745;
    color: white;
}

.templates-wrapper .btn.use-btn {
    background: #8b5cf6;
    color: white;
}

.templates-wrapper .btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.templates-wrapper .download-btn {
    display: inline-block;
    margin-top: 0px;
    padding: 8px 12px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.templates-modal.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.templates-modal .modal-content {
    background: #fff;
    padding: 20px;
    width: 95%;
    max-width: 1200px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-in-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.templates-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #444;
    font-weight: bold;
    transition: color 0.2s;
}

.templates-modal .close:hover {
    color: #000;
}

.templates-modal .view-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.templates-modal .view-buttons button {
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    background: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.templates-modal .view-buttons button:hover {
    background: #0056b3;
}

.templates-modal .modal-iframe {
    width: 100%;
    height: 70vh;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.templates-modal .download-btn {
    display: inline-block;
    margin-top: 0px;
    padding: 8px 12px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.templates-modal #downloadBtn {
    margin-top: 15px;
}

.templates-modal .download-btn:hover {
    background: #218838;
}


/* -----Explore More Tools----- */
.related-tools {
    background-color: transparent;
    background-image: radial-gradient(at bottom right, #15DFEF29 0%, #b0c7dc2b 60%);
    padding: 20px 0 60px;
    margin-top: 80px;
}

.related-tools h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 15px;
}

.related-tools p {
    width: 65%;
    text-align: center;
    margin: 0 auto 40px;
}

.related-tools .grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.related-tools .tool-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.related-tools .tool-box .card-body {
    flex-grow: 1;
}

.related-tools .tool-box a {
    display: inline-block;
    background: #1C66AC;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px 0;
    align-self: center;
}

.related-tools .tool-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.related-tools .tool-box img {
    max-width: 100%;
    height: 140px;
    border-radius: 6px;
    margin-bottom: 16px;
    width: 140px;
    margin: 0 auto 15px;
}

@media (max-width: 1024px) {
    .html-viewer .editor-preview-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    .html-viewer .editor,
    .html-viewer .preview {
        height: auto;
        min-height: 300px;
    }

    .html-viewer .preview-controls {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        font-size: 13px;
        height: auto;
    }

    .html-viewer iframe {
        width: 100%;
        height: 400px;
    }

    .CodeMirror-scroll {
        min-height: 60vh;
    }

    /* Free Responsive Email Templates */
    .templates-modal .preview {
        height: 300px;
    }

    .templates-modal .modal-iframe {
        height: 60vh;
    }
}

@media only screen and (min-width: 768px) {

    .header-container,
    .footer-container,
    .container {
        max-width: 1280px;
        margin: auto;
    }
}

@media only screen and (max-width: 768px) {

    header img,
    footer img {
        height: 50px;
    }

    /* .social-share {
        flex-direction: row;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        top: auto;
        background: #fff;
        padding: 8px 10px;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }

    .social-share a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    } */

    .hero-section {
        padding: 40px 10px 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        font-size: 14px;
    }

    .home .grid {
        flex-direction: column;
        align-items: center;
    }

    .home .tool-box img {
        width: 100%;
    }

    .readability-wrapper button,
    .editor-container button {
        width: auto;
    }

    /* Free Responsive Email Templates */
    .templates-wrapper .template-box {
        padding: 10px;
    }

    .templates-modal .modal-content {
        padding: 15px;
    }

    .templates-modal .modal-iframe {
        height: 55vh;
    }

    .templates-modal .view-buttons button {
        font-size: 13px;
        padding: 7px 10px;
    }

    /* Email DNS Records */
    .DNS-records-wrapper {
        padding: 30px 15px;
    }

    .DNS-records-wrapper button {
        width: auto;
    }

    /* Secure Password Generator */
    .passwordgenerator-wrapper button {
        width: auto;
    }

    /* -----Line Break Format Converter----- */
    .lineconvertor-wrapper input[type="file"] {
        width: 100%;
    }

    /* -----Explore More Tools----- */
    .related-tools {
        margin-top: 60px;
    }

    .related-tools p {
        width: 90%;
    }
}

@media (max-width: 480px) {

    /* Free Responsive Email Templates */
    .templates-wrapper .preview {
        height: 220px;
    }

    .templates-modal .modal-content {
        width: 100%;
        border-radius: 0;
    }

    .templates-modal .modal-iframe {
        height: 50vh;
    }

    .templates-modal .close {
        font-size: 22px;
        top: 5px;
        right: 10px;
    }

    .templates-modal .view-buttons {
        flex-direction: column;
    }
}