html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

html, body {
    margin: 0; padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: monospace, 'Bague', sans-serif;
    color: #333;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #475b47;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(circle, rgba(173, 178, 173, 0.756) 1px, transparent 1px),
        radial-gradient(circle, rgba(221, 221, 221, 0.645) 1px, transparent 1px);
    background-size: 15px 15px, 10px 10px;
    background-position: 0 0, 5px 5px;
    opacity: 0.15;
    z-index: 0;
    animation: noise 1s steps(2) infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
    filter: blur(0.5px);
}
@keyframes noise {
    0%, 50% { transform: translate3d(0, 9rem, 0); }
    25%, 75% { transform: translate3d(-9rem, -4rem, 0); }
    100% { transform: translate3d(-7rem, 0, 0); }
}

.content-main-wrapper {
    background-color: #e4eeef;
    position: relative;
    z-index: 1;
    transform-origin: center center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transform: scale(0.95);
    border-radius: 15px;
    overflow: hidden;
}

.content-main-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(0, 100, 0, 0.05) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 150, 150, 0.05) 1px, transparent 1px);
    background-size: 15px 15px, 10px 10px;
    background-position: 0 0, 5px 5px;
    filter: blur(0.5px);
    z-index: -1;
}

.slogan-overlay-text {
    position: absolute;
    top: 18%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 3;
    font-size: clamp(20px, 2.8vw, 35px);
    font-weight: 400; line-height: 1.3;
    color: grey;
    mix-blend-mode: difference;
    text-shadow: -1px -1px 2px rgba(0,0,0,0.5);
    pointer-events: none;
    width: 70%;
    text-align: left;
}
.slogan-overlay-text h1, .slogan-overlay-text p {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0; padding: 0;
}
.slogan-overlay-text .color-change { color: inherit; }

.content-main-wrapper > header[role="banner"] {
    flex-shrink: 0;
}

.content-main-wrapper > main[role="main"] {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    width: 100%;
    flex-grow: 1;
}

.column {
    display: flex;
    position: relative;
    box-sizing: border-box;
}

section.left-column {
    flex: 0 0 35%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 3% 20px 5%;
}

aside.right-column {
    flex: 1;
    padding: 0;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

#canvas-container {
    width: 90%;
    height: auto;
    max-width: 650px;
    max-height: 75vh;
    position: relative;
    z-index: 1;
    aspect-ratio: 7 / 5;
    margin: auto;
}
canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.initial-generate-button {
    background-color: #475b47;
    color: #f0f0f0;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 90%;
    max-width: 400px;
    box-shadow: -3px -3px 8px rgba(0,0,0,0.1), 3px 3px 8px rgba(255,255,255,0.3);
}
.initial-generate-button:hover {
    background-color: #5a7b5a;
    box-shadow: -4px -4px 10px rgba(0,0,0,0.15), 4px 4px 10px rgba(255,255,255,0.35);
}
.initial-generate-button:active {
    background-color: #3a4a3a;
    transform: scale(0.98);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.1), 2px 2px 5px rgba(255,255,255,0.25);
}

.email-generator-container {
    background-color: #e4eeef;
    border: 1px solid rgba(200, 200, 200, 0.4);
    padding: 28px 22px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #333;
    width: 100%;
    min-width: 260px;
    max-width: 420px;
    position: relative;
    z-index: 2;
    display: flex; flex-direction: column; align-items: center;
}
.email-generator-container::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: image-set(url("https://i.imgur.com/N0STPcn.png") type("image/png"));
    opacity: 0.3;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.email-generator-container h3 {
    font-size: 1.1em;
    margin-top: 0; margin-bottom: 15px;
    color: #2c3e50;
}
.email-generator-container p { color: #555; font-size: 0.9em; }
.generated-email-wrapper {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; width: 100%;
}
.email-generator-container .generated-email-address {
    font-size: 1.05em;
    font-weight: bold; color: #475b47;
    padding: 8px 10px; background-color: rgba(71, 91, 71, 0.1);
    border-radius: 6px;  word-break: break-all;
    border: 1px dashed #475b47;
    margin-right: 8px; flex-grow: 1;
}
.copy-email-button {
    background: none; border: none; color: #475b47;
    cursor: pointer; padding: 5px; font-size: 1.15em;
    line-height: 1; transition: color 0.2s ease, transform 0.2s ease;
}
.copy-email-button:hover { color: #2c3e50; transform: scale(1.1); }
.copy-email-button svg { width: 17px; height: 17px; fill: currentColor; }
.copy-feedback {
    font-size: 0.75em; color: #475b47;
    margin-top: -8px; margin-bottom: 8px; height: 1em;
}

.waiting-animation span {
    background-color: #475b47;
    display: inline-block; width: 7px; height: 7px; margin: 0 2px;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}
.waiting-animation span:nth-child(1) { animation-delay: -0.32s; }
.waiting-animation span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); }
}
.email-info { font-size: 0.7em !important; color: #666; margin-top: 8px; line-height: 1.3; }
.hidden { display: none !important; }

footer.page-footer {
    width: 100%;
    padding: 10px 20px 15px 20px;
    text-align: center;
    color: #b0b0b0;
    background-color: transparent;
    position: relative;
    z-index: 1;
    font-size: 0.88em !important;
    flex-shrink: 0;
}
.footer-content {
    display: flex; justify-content: space-between;
    align-items: center; max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}
nav.footer-links ul {
    list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 8px;
}
nav.footer-links li { margin: 0; }
nav.footer-links a {
    color: #c1c1c1;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1em;
}
nav.footer-links a:hover, nav.footer-links a:focus { color: #e0e0e0; text-decoration: underline; }

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-left: 0;
    margin-top: 5px;
}
.footer-socials a {
    color: #c1c1c1; text-decoration: none; font-size: 1em;
    margin: 0 6px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}
.footer-socials a:hover, .footer-socials a:focus { color: #ccc; transform: scale(1.1); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

@media (min-width: 769px) {
    .slogan-overlay-text {
         font-size: clamp(20px, 2.8vw, 35px);
    }
    #canvas-container {
         max-width: 600px;
         max-height: 480px;
    }
    footer.page-footer {
        font-size: 0.8em;
        padding: 15px 25px;
    }
    .footer-content {
        flex-wrap: nowrap;
    }
    nav.footer-links ul {
        justify-content: flex-start;
        width: auto;
        margin-bottom: 0;
        gap: 12px;
        margin-top: 0;
    }
    nav.footer-links a {
        font-size: 0.95em;
    }
    .footer-socials {
        justify-content: flex-end;
        width: auto;
        margin-left: auto;
        padding-left: 30px;
        margin-top: 0;
    }
     .footer-socials a {
        margin-left: 15px;
        font-size: 1.1em;
    }
    .footer-socials svg { width: 18px; height: 18px; }
}

@media (max-width: 992px) {
    body {
        padding: 15px 15px 0 15px;
    }
    .content-main-wrapper {
        transform: scale(0.96);
        border-radius: 12px;
        max-height: calc(100% - 30px);
    }
    section.left-column {
        flex: 0 0 40%;
        padding: 15px 2%;
    }

    .slogan-overlay-text {
        font-size: clamp(18px, 3vw, 26px);
        width: 60%;
        left: 3%;
        top: 16%;
    }
    .email-generator-container {
        width: 90%;
        max-width: 360px;
        padding: 20px 15px;
        margin: 10px auto;
    }
    .initial-generate-button {
        width: 90%;
        max-width: 280px;
        font-size: 1em;
        padding: 14px 20px;
    }
    #canvas-container {
        max-height: 45vh;
    }
    footer.page-footer {
        padding: 10px 15px 10px 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 10px 0 10px;
    }
    .content-main-wrapper {
        transform: scale(0.97);
        border-radius: 10px;
        max-height: calc(100% - 20px);
    }
    .container { flex-direction: column; }

    .column {
        width: 100%;
        padding: 5px;
    }

    .slogan-overlay-text {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 90%;
        text-align: center;
        margin: 20px auto 15px auto;
        padding-top: 5px;
        color: #555;
        mix-blend-mode: normal;
        text-shadow: none;
        pointer-events: auto;
    }

    .slogan-overlay-text h1 {
        font-size: clamp(20px, 5.5vw, 26px);
        line-height: 1.2;
    }

    .slogan-overlay-text p {
        font-size: clamp(16px, 4.5vw, 22px);
        line-height: 1.2;
    }

    section.left-column {
        order: 1;
        padding: 10px;
    }
    .initial-generate-button {
        width: 85%;
        margin-top: 5px;
        margin-bottom: 15px;
        font-size: 0.95em;
        padding: 12px 16px;
    }
    .email-generator-container {
        width: 90%;
        margin: 0 auto 15px auto;
        padding: 15px 10px;
    }
    .email-generator-container h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .email-generator-container p { font-size: 0.8em; }
    .email-generator-container .generated-email-address {
        font-size: 0.95em;
        padding: 6px 8px;
    }
     .copy-email-button svg { width: 15px; height: 15px; }
    .email-info { font-size: 0.6em !important; }


    aside.right-column {
        order: 2;
        min-height: 25vh;
    }
    #canvas-container {
        width: 85vw;
        max-width: 300px;
        max-height: 30vh;
    }

    footer.page-footer {
        padding: 8px 10px 8px 10px;
        font-size: 0.7em;
    }
    nav.footer-links ul { gap: 6px; margin-bottom: 5px; }
    nav.footer-links a { font-size: 0.9em; }
    .footer-socials svg { width: 14px; height: 14px; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
