body {
    background-color: rgb(15, 15, 15);
    color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
    animation: fadeIn 1.5s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.title img {
    width: 150px;
    transform: translateY(-30px); /* Adjust this value to move image up/down */
    margin-bottom: -20px; /* Reduce space below image */
}

.title img:hover {
    transform: translateY(-10px) scale(1.1); 
}



.title h1 {
    margin-top: 10px;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    color: rgb(144, 253, 189);
    text-shadow: 0px 0px 10px rgba(144, 253, 189, 0.5);
    animation: slideIn 1.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.input {
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    width: 60vw; /* Increased width for mobile */
    max-width: 350px; /* Maximum width for larger screens */
    background-color: rgba(255, 255, 255, 0.07);
    color: rgb(255, 255, 255);
    font-size: 1em;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
    .input {
        width: 25vw; /* Original desktop width */
    }
}

.input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.get {
    background-color: rgba(255, 255, 255, 0.175);
    border: none;
    border-radius: 15px;
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1em;
    margin-bottom: 20px;
    transition: all ease 0.3s;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.2);
}

.get:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.output {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.07);
    padding: 20px;
    width: 50vw;
    text-align: left;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.175) rgba(15, 15, 15);
    transition: transform 0.3s ease;
}

.output:hover {
    transform: scale(1.01);
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.1);
}

.answer {
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.answer:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    user-select: none;
}

.success {
    background-color: rgba(144, 253, 189, 0.1);
}

.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.answer:hover {
    background-color: rgba(255, 255, 255, 0.1);
    user-select: none;
}

.ass {
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

.output {
    margin: 0 auto;
    max-width: 90%;
    text-align: center;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .output {
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
        overflow-x: auto;
    }
}


.nextAndPrev {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}
.prev, .next {
    background-color: rgba(255, 255, 255, 0.175);
    border: none;
    border-radius: 15px;
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all ease 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.125);
}
.prev:disabled, .next:disabled {
    display: none;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}
