body {
    padding: 0;
    margin: 0;
    animation: fadeIn 2s ease forwards;
   
    overflow: hidden;
    background: linear-gradient(135deg, #E0EAFC, #CFDEF3);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.display {
    display: flex;
    height: 100vh;
    justify-content: center;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

input {
    color: #1E293B;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    width: 17rem;
    padding: 0.6rem;
    font-size: 1.6rem;
    outline: none;
    border: none;
    border-radius: 0.6rem;
    transition: transform 0.3s ease;
}

input:focus {
    box-shadow: 0 0 10px 5px black;
    transform: scale(1.02);
}

h1 {
    margin-top: 5rem;
    font-size: 3rem;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 2rem;
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.action {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

button {
    background: #2563EB;
    margin-left: 1rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0.6rem;
    border: none;
    font-size: 1rem;
    height: 2.4rem;
    transition: transform 0.3s ease-in;
}

button:hover {
    cursor: pointer;
    background: #1D4ED8;
    transform: scale(1.08)
}

.user-interaction {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    animation: fadeUp 1.2s ease forwards;
}

.result {
    padding: 3rem;
    margin-top: 1.5rem;
    background: white;
    border: 2px double #CBD5E1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    color: #1E293B;
    width: 70%;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    border-radius: 1.2rem;
    opacity: 0;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.3);
    /* light outer ring */
    border-top: 0.25rem solid #007bff;
    /* blue rotating part */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    /* center horizontally */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.enable {
    animation: fadeIn 1.2s ease forwards
}

button.position {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.Bigger {
    font-size: 1.8rem;
    color: #1E3A8A;
}

.mid {
    font-size: 1.25rem;
    color: #334155;
}

.activate {
    animation: fadeUp 1.2s ease forwards
}

.dark-mode {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #E2E8F0;
}

.dark-mode input {
    background: #1E293B;
    color: #E2E8F0;
    border: 1px solid #475569;
}

.dark-mode button {
    color: #f5f5f5;
    background: #1f1f1f;
    border: 1px solid #333;
}

.dark-mode .result {
    background: #1E293B;
    border: 2px solid #334155
}

.dark-mode p {
    color: #e0e0e0
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .result {
        padding: 2rem;
    }

    input {
        font-size: 1rem;
    }

    button {
        height: 2.2rem;
        font-size: 0.9rem
    }
}




