body {
    font-family: "Comic Sans MS";
    background: linear-gradient(135deg, #ffe6f2, #e6f0ff);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
    max-width: 650px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

h3 {
    color: #ff66aa;
    margin-bottom: 25px;
    text-shadow: 0 0 4px #ffcce5;
}

#OwO {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #ffb3d9;
    outline: none;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: 0.001s;
    overflow: hidden;
    min-height: 40px;
    line-height: 1.2;
    box-sizing: border-box;
}

#OwO:focus {
    border-color: #ff66aa;
    box-shadow: 0 0 10px #ff99cc;
}

button {
    padding: 10px 20px;
    background: #ff66aa;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

button:hover {
    background: #ff3385;
    box-shadow: 0 4px 14px rgba(255, 105, 180, 0.7);
    transform: translateY(-2px);
}

#output {
    margin-top: 20px;
    padding: 15px;
    background: #fff0fa;
    border-radius: 15px;
    border: 2px solid #ffcce5;
    color: #cc0066;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: pre-wrap;
    min-height: 30px;
    min-width: 150px;
}

#ascii {
    margin-top: 20px;
    padding: 15px;
    background: #fff0fa;
    border-radius: 15px;
    border: 2px solid #ffcce5;
    color: #cc0066;
    font-family: monospace;
    font-size: 0.8rem;
    white-space: pre;
    overflow: auto;
    max-height: 650px;
    width: 100%;
    text-align: center;
}

.falling-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

.falling-bg img {
    position: absolute;
    top: -100px;
    animation: fall 6s linear infinite;
    opacity: 0.8;
    cursor: pointer;
    pointer-events: auto;
}

@keyframes fall {
    0% {
        transform: translateY(-200px);
    }

    100% {
        transform: translateY(110vh);
    }
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff0fa;
    border: 2px solid #ffcce5;
    color: #cc0066;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 182, 193, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: "Comic Sans MS";
    z-index: 9999;
    animation: pop 0.4s ease;
}

.cookie-banner button {
    background: #ff66aa;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
    transition: 0.2s;
}

.cookie-banner button:hover {
    background: #ff3385;
    transform: translateY(-2px);
}

@keyframes pop {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

#clickCounter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff0fa;
    border: 2px solid #ffcce5;
    color: #cc0066;
    padding: 10px 15px;
    border-radius: 15px;
    font-family: "Comic Sans MS";
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.5);
    z-index: 10000;
}

.dark-theme {
    background: linear-gradient(135deg, #1a0f2e, #301c4d);
    color: #f5d6ff;
}

.dark-theme .container {
    background: #2a1840;
    box-shadow: 0 0 20px rgba(180, 80, 255, 0.5);
}

.dark-theme h3 {
    color: #e79aff;
    text-shadow: 0 0 4px #b966ff;
}

.dark-theme textarea,
.dark-theme #output,
.dark-theme #ascii,
.dark-theme button,
.dark-theme .cookie-banner,
.dark-theme #themeSelect,
.dark-theme #sideMenu,
.dark-theme #menuButton,
.dark-theme .cookie-banner {
    background-color: #3b245c !important;
    border-color: #b966ff !important;
    color: #f3d7ff !important;
}
.dark-theme #clickCounter {
    background: #3b245c !important;
    border-color: #b966ff !important;
    color: #f3d7ff !important;
}

.dark-theme button:hover {
    background: #a447ff !important;
}

.dark-theme .cookie-banner {
    box-shadow: 0 0 15px rgba(150, 70, 255, 0.6);
}

.pastel-theme {
    background: linear-gradient(135deg, #ffe6f2, #e3f2ff);
    color: #573a4c;
}

.pastel-theme .container {
    background: #ffffffaa;
    border: 1px solid #f8c6dd;
    box-shadow: 0 0 20px rgba(255, 190, 230, 0.6);
}

.pastel-theme textarea,
.pastel-theme #output,
.pastel-theme #ascii,
.pastel-theme #themeSelect,
.pastel-theme #sideMenu,
.pastel-theme #menuButton,
.pastel-theme .cookie-banner {
    background-color: #fffafb !important;
    border-color: #f8c6dd !important;
    color: #5c4a57 !important;
}
.pastel-theme button {
    background: #fffafb !important;
    color: #5c4a57 !important;
    border-color: #f8c6dd !important;
}

.pastel-theme button:hover {
    background: #ffd6ea !important;
}

.cyber-theme {
    background: linear-gradient(135deg, #05010a, #0b0020);
    color: #b4f3ff;
}

.cyber-theme .container {
    background: #090013;
    border: 1px solid #00eaff;
    box-shadow: 0 0 25px #00eaffaa;
}

.cyber-theme textarea,
.cyber-theme #output,
.cyber-theme #ascii,
.cyber-theme #themeSelect,
.cyber-theme #sideMenu,
.cyber-theme #menuButton,
.cyber-theme .cookie-banner {
    background-color: #0d0d0d !important;
    border-color: #00f0ff !important;
    color: #0ff !important;
}
.cyber-theme button {
    background: #0b0017 !important;
    color: #a8faff !important;
    border-color: #00eaff !important;
}

.cyber-theme button:hover {
    background: #00eaff33 !important;
}

.cyber-theme h3 {
    text-shadow: 0 0 8px #00eaff;
}

.cat-theme {
    background: linear-gradient(135deg, #fff5df, #f2e0bb);
    color: #5b4636;
}

.cat-theme .container {
    background: #fff8e9;
    border: 2px solid #d8c3a5;
    box-shadow: 0 0 15px rgba(120, 90, 50, 0.3);
}

.cat-theme textarea,
.cat-theme #output,
.cat-theme #ascii,
.cat-theme #themeSelect,
.cat-theme #sideMenu,
.cat-theme #menuButton,
.cat-theme .cookie-banner {
    background-color: #fff8f0 !important;
    border-color: #ffb6b6 !important;
    color: #5c3a3a !important;
}
.cat-theme button {
    background: #fff3d4 !important;
    border-color: #d8c3a5 !important;
    color: #5b4636 !important;
}

.cat-theme button:hover {
    background: #f0d7ae !important;
}

.cat-theme button {
    border-radius: 15px;
}

.glitter-theme {
    background: linear-gradient(135deg, #ff73d9, #6bf0ff, #fffb6b);
    color: #2a0033;
    background-size: 400% 400%;
    animation: glitterMove 8s ease infinite;
}

@keyframes glitterMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glitter-theme .container {
    background: #ffffffbb;
    border: 2px dashed #ff8df5;
    box-shadow: 0 0 20px #ffafff;
}

.glitter-theme textarea,
.glitter-theme #output,
.glitter-theme #ascii,
.glitter-theme #themeSelect,
.glitter-theme #sideMenu,
.glitter-theme #menuButton,
.glitter-theme #themeSelect,
.glitter-theme #sideMenu,
.glitter-theme #menuButton,
.glitter-theme .cookie-banner {
    background-color: #f7f7f7 !important;
    border-color: #ffd700 !important;
    color: #333 !important;
}
.glitter-theme button {
    background: #fff0ff !important;
    border: 2px solid #ff8df5 !important;
    color: #2a0033 !important;
}

.glitter-theme button:hover {
    background: #ffd4ff !important;
}

.glitter-theme h3 {
    text-shadow: 0 0 5px #ff9dfc;
}

#menuButton {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 30px;
    background: #ffbde6;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 180, 235, 0.6);
    z-index: 9999;
    transition: 0.2s;
    user-select: none;
}

#menuButton:hover {
    background: #ff92d5;
    transform: scale(1.1);
}

#sideMenu {
    position: fixed;
    top: 0;
    left: -460px;
    width: 260px;
    height: 100%;
    background: #fff0fa;
    border-right: 3px solid #ffbde6;
    box-shadow: 4px 0 20px rgba(255, 150, 220, 0.4);
    border-radius: 0 20px 20px 0;
    padding: 30px 20px;
    z-index: 9998;
    transition: left 0.3s ease;
    font-family: "Comic Sans MS";
}

#sideMenu h2 {
    margin-top: 0;
    color: #cc0088;
    font-size: 22px;
    text-shadow: 0 0 4px #ffccf3;
}

.menuItem {
    width: 100%;
    padding: 12px 15px;
    margin-top: 12px;
    background: #ffbde6;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 100, 200, 0.4);
    transition: 0.2s;
}

.menuItem:hover {
    background: #ff92d5;
    transform: translateX(5px);
}

#sideMenu.open {
    left: 0;
}

#sideMenu #themeSelect {
    width: 100%;
    margin-top: 1%;
    margin-bottom: 20px;
    background: #ffbde6;
    border: none;
    padding: 12px 15px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 100, 200, 0.4);
    transition: 0.2s;
}

#sideMenu #themeSelect:hover {
    background: #ff92d5;
    transform: translateX(5px);
}

#sideMenu label[for="themeSelect"] {
    color: #cc0088;
    font-weight: bold;
    font-size: 18px;
    margin-top: 5px;
    text-shadow: 0 0 4px #ffccf3;
}

#sideMenu #themeSelect {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #ffe0f5;
    border: 2px solid #ffbde6;
    color: #cc0088;
    font-size: 16px;
    font-family: "Comic Sans MS";
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 150, 220, 0.4);
    transition: 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff8bd9" height="20" width="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><polygon points="5,7 15,7 10,14"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

#sideMenu #themeSelect:hover {
    background: #ffcef0;
    transform: translateX(5px);
}

#sideMenuWrapper {
    position: fixed;
    top: 20px;
    left: 0;
    height: 100%;
    z-index: 9999;
}

#menuButton {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    background: #ffbde6;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 180, 235, 0.6);
    transition: left 0.3s ease, transform 0.2s;
    user-select: none;
}

#sideMenu.open~#menuButton {
    left: 260px;
    /* match the menu width */
}

