:root {
    --light-bg: #f5f5f5;
    --dark-bg: #112060;
    --light-text: #f5f5f5;
    --dark-text: #112060;
    --gray: #555d66;
    --bright:#42595d;
    --green: #42595d;
}

#imageContainer {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#imageContainer img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

body {
    font-family: "Open Sans", sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    text-align: center;
    margin: 0;
    padding: 2rem;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

h2, h3 {
    text-align: center;
    color: var(--dark-text);
}

input {
    padding: 0.5rem;
    width: 80%;
    max-width: 400px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    color: var(--dark-text);
}

button {
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    background: var(--dark-bg);
    color: var(--light-text);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
}

button:hover {
    background: #081c39;
}

button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    border: 1px solid #aaa;
    opacity: 0.8;
}

button + button {
    margin-top: 0.5rem;
}

/* COPY BUTTON štýl */
.copyPromptBtn {
    /*background-color: #f0f0f0;*/
    /*color: var(--dark-text);*/
    border: 1px solid #ccc;
    margin: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    /*transition: background-color 0.2s ease;*/
}

.copyPromptBtn:hover {
    background-color: #e0e0e0;
}

#imageContainer {
    margin-top: 1.5rem;
    text-align: center;
}

#animation {
    margin-top: 2rem;
    font-size: 1.2rem;
    white-space: pre-wrap;
}

/* FOOTER */
footer {
    background-color: #555d66;
    color: var(--light-text);
    padding: 2rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    color: var(--light-text);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* TEXTAREA */
textarea {
    padding: 0.5rem;
    width: 90%;
    max-width: 900px;
    height: 200px;
    font-size: 1.2rem;
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    color: var(--dark-text);
    text-align: justify;
}

.textarea-wrapper {
    position: relative;
    width: 100%;
}

/* TEXTAREA INPUT */
#promptInput {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 2.5em;
    resize: vertical;
    overflow-y: auto;
}

/* GENERATED LINK A LINK STYLES */
#generatedLink {
    font-size: 0.85rem;
    margin-top: 1rem;
}

#generatedLink a {
    display: inline-block;
    word-break: break-all;
    white-space: normal;
    width: 80%;
    max-width: 600px;
    font-size: 0.85rem;
    margin: 0.5rem auto;
    text-align: left;
    color: var(--dark-text);
}

#generatedLink button {
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

@keyframes blink-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#chatLoading {
    font-size: 1.2rem;
    color: var(--dark-bg);
    animation: blink-text 1s infinite;
    margin-top: 1rem;
}

@keyframes blinker {
    50% {
        opacity: 0.5;
    }
}

.blink {
    animation: blinker 1s linear infinite !important;
}

.highlight {
    border: 2px solid var(--dark-bg) !important;
    box-shadow: 0 0 10px var(--dark-bg) !important;
}

/* STICKY HEADER */
#stickyHeader {
    position: sticky;
    border: 4px solid var(--bright);
    top: 0px;
    z-index: 999;
    padding-bottom: 1rem;
    background: var(--light-bg);
    color: var(--dark-text);
    border-radius: 10px;
}

/* CLEAR PROMPT BUTTON */
#clearPromptBtn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 4px 10px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

#clearPromptBtn:hover {
    background-color: #e0e0e0;
}

.clear-button-wrapper {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* BOX STYLING */
.box {
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2.5rem auto;
    max-width: 900px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: justify;
}

.box-light {
    border: 4px solid var(--bright);
    background: var(--light-bg);
    color: var(--dark-text);
    text-align: center;
}

.box-dark {
    background: var(--dark-bg);
    color: var(--light-text);
}
