body {
    background-image: url('background.jpg'); /* Replace with your image path */
    background-size: 50% auto; /* Half width, half height */
    background-repeat: no-repeat; /* No repeating */
    background-position: top left; /* Position in the top-left corner */
    /* background-blend-mode: screen; Blend with the background */
    font-family: "Comic Neue", "Comic Sans MS", "Arial", "Noto Sans", sans-serif;
    background-color: #ff55f4ff;
    /* background: #ff55f4ff; */
    color: #a308a2ff;
}

.container {
    display: flex; /* Ensures horizontal layout */
    width: 100vw;
    height: 100vh; /* Full viewport height */
}


#app {
    flex: 1; /* Expands to take available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    max-width: 70vw;
}

textarea {
    max-width: 70vw; /* Ensures it doesn't grow too wide */
    height: 50px;
    resize: none;
    padding: 14px;
    font-size: 20px;
    text-align: center;
    font-family: "Comic Sans MS", cursive, sans-serif;
    background: white;
    color: #a308a2ff;
    border: 5px solid #1019e5ff;
    border-radius: 5px;
    border-color: #1019e5ff;
}

table, th, td {
    max-width: 80vw;
}


td {
    display: flex;
    justify-content: center;
}

.xonised {
    text-align: center;
    padding: 14px;
    max-width: 70vw;
    max-height: 80px;
    font-size: 22px;
    font-weight: bold;
    background: white;
    font-family: "Comic Sans MS", bold, sans-serif;
    border: 5px solid #1019e5ff;
    border-radius: 5px;
    border-color: #1019e5ff;
    overflow: auto;
    word-wrap: break-word;
    white-space: normal;
}

.clicked {
    filter: brightness(1.2) !important;/* Makes the button brighter */
    transform: scale(0.95) !important; /* Shrinks slightly */
    transition: transform 0.1s ease-out, filter 0.1s ease-out;
}

button {
    background: none !important; /* Ensures no background */
    border: none !important; /* Removes border */
    box-shadow: none !important; /* Removes any default shadows */
    padding: 0 !important;
}

button img {
    display: block; /* Removes extra space around the image */
    width: 50vw; /* Scales dynamically */
    min-width: 200px;
}

@media (max-width: 600px) {
    textarea, .xonised {
        width: 90vw; /* Full width on small screens */
    }

    button img {
        width: 80%; /* Make the button smaller */
    }
}

img {
    max-width: 100%;
    height: auto; /* Keeps aspect ratio */
}

body, textarea, .xonised {
    font-family: "Comic Neue", "Comic Sans MS", cursive, sans-serif !important;
}

/* Right column (fake Ad space) */
.ad-column {
    width: 100vw; /* ✅ Full width for mobile */
    max-width: 350px; /* ✅ Limit max size on larger screens */
    height: auto; /* ✅ Allow height to adjust */
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden; /* Prevents unwanted scrolling */
}

/* Ensure images are properly scaled */
.ad-column img {
    display: block !important; /* Ensure visibility */
    width: 100% !important; /* Scale to column width */
    height: auto !important; /* Maintain aspect ratio */
    max-width: 100% !important;
    max-height: none !important; /* ✅ Remove height restriction */
}

/* ✅ Mobile-friendly styles */
@media (max-width: 800px) {
    #app {
        max-width: 70vw; /* Narrow the app container on mobile */
    }
    .ad-column {
        width: 100%; /* ✅ Use entire width on small screens */
        max-width: 30vw; /* ✅ Remove restrictions */
        height: auto; /* ✅ Allow height to adjust dynamically */
    }
    .ad-column img {
        width: 90%; /* ✅ Ensures images take most of the screen */
        max-width: 100%; /* ✅ Allows full scaling */
        height: auto; /* ✅ Maintain aspect ratio */
    }

}


footer {
    width: 100%;
    background: a308a2ff; /* Adjust color */
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
}