:root {
    --bg-gradient-start: orange;
    --bg-gradient-mid1: green;
    --bg-gradient-mid2: lightblue;
    --bg-gradient-end: #23d5ab;
    --text-color: white;
    --input-border-color: rgba(255, 255, 255, 0.5);
    --input-bg-color: rgba(255, 255, 255, 0.2);
    --input-focus-border-color: white;
    --input-box-shadow: rgba(0, 0, 0, 0.5);
    --button-text-color: white;
    --button-bg-color: rgba(255, 255, 255, 0.1);
    --button-border-color: rgba(255, 255, 255, 0.5);
    --button-hover-bg-color: white;
    --button-hover-text-color: #333;
    --number-circle-bg-color: rgba(255, 255, 255, 0.2);
    --number-circle-text-color: white;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    background: linear-gradient(-45deg, var(--bg-gradient-start), var(--bg-gradient-mid1), var(--bg-gradient-mid2), var(--bg-gradient-end));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(10px);
    z-index: -1;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    height: 90%;  /* Make sure content takes less height */
}

.chatbox {
    display: flex;
    gap: 10px;
}

#numberInput {
    padding: 10px;
    font-size: 1em;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    background: var(--input-bg-color);
    color: var(--text-color);
    outline: none;
    transition: border 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px var(--input-box-shadow);
}

#numberInput:focus {
    border-color: var(--input-focus-border-color);
}

#startButton {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    color: var(--button-text-color);
    background: var(--button-bg-color);
    border: 1px solid var(--button-border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

#startButton:hover {
    background: var(--button-hover-bg-color);
    color: var(--button-hover-text-color);
}

/* Circle for the numbers */
.number-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--number-circle-bg-color);
    margin: 20px;
    font-size: 1.5em;
    color: var(--number-circle-text-color);
    transition: transform 0.3s ease;
}

/* Arrow styles */
.arrow {
    font-size: 2em;
    margin: 20px;
    animation: fadeIn 1s;
}

.step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: smoothScroll 1s ease-in-out;
}

/* Smooth scroll animation */
@keyframes smoothScroll {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Animation for the fade-in effect */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#outputContainer {
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
    width: 100%;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient-start: #000428;
        --bg-gradient-mid1: #002244;
        --bg-gradient-mid2: #003f7f;
        --bg-gradient-end: #001a33;
        --text-color: #e0e0e0;
        --input-border-color: rgba(200, 200, 200, 0.4);
        --input-bg-color: rgba(0, 0, 0, 0.3);
        --input-focus-border-color: #cccccc;
        --input-box-shadow: rgba(255, 255, 255, 0.2); /* Lighter shadow for dark bg */
        --button-text-color: #e0e0e0;
        --button-bg-color: rgba(0, 0, 0, 0.2);
        --button-border-color: rgba(200, 200, 200, 0.4);
        --button-hover-bg-color: #333333;
        --button-hover-text-color: white;
        --number-circle-bg-color: rgba(0, 0, 0, 0.3);
        --number-circle-text-color: #e0e0e0;
    }
}
