* {
    font-family: monospace;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e600cf, #f80000, #a300b5, #420066);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.converter-container {
    background: #fff;
    padding: 40px;
    width: 350px;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

h2 {
    font-size: 1.6em;
    color: #e600cf;
    margin-bottom: 30px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    background-color: #e600cf;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #c90072;
}

select {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1em;
    border: 2px solid #e600cf;
    border-radius: 8px;
    outline: none;
}

input[type="number"],
input[type="datetime-local"] {
    width: 75%;
    padding: 10px;
    margin: 10px 0;
    margin-left: 30px;
    font-size: 1em;
    border: 2px solid #e600cf;
    border-radius: 8px;
    outline: none;
    display: none;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #f4f4f9;
    border-radius: 8px;
    color: #e600cf;
    font-size: 1.1em;
    font-weight: bold;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.credits {
    font-size: 20px;
    color: #FFA500;
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 600;
    position: fixed;
    bottom: 20px;
    backdrop-filter: blur(80px);
    font-family: arial;
    padding-left: 10px;
    padding-right: 10px;
    -webkit-text-stroke: #f60000b1 0.3px;
    background-color: #fff1;
    border-radius: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive for mobile screens */
@media (max-width: 800px) {
    .converter-container {
        width: 80vw;
        height: 20vh;
        padding: 20px;
    }

    h2 {
        font-size: 1.4em;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    select {
        width: 90%;
        padding: 8px;
        font-size: 0.9em;
    }

    input[type="number"],
    input[type="datetime-local"] {
        width: 87%;
        margin: 10px auto;
        padding: 8px;
        font-size: 0.9em;
    }

    .result {
        font-size: 1em;
    }
}