body {
    font-family: sans-serif;
    background-color: honeydew;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.calculator {
    background: linear-gradient(120deg, #f56456, #f5576c);
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    width: 520px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

.calculator::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, #f093fb, #F56456);
    z-index: -1;
    animation: rotate 10s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.calculator h1 {
    color: #fff;
    text-align: center;
    font-size: 34px;
    margin-bottom: 20px;
}

.input-section {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.input-section label {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
    color: #fff;
}

.input-section input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.input-section span {
    display: block;
    color: #fff;
    font-size: 20px;
    margin-top: 5px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1;
}

button:hover {
    background-color: #218838;
}

.output-section {
    margin-top: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.output-section p {
    margin: 5px 0;
    font-size: 18px;
    color: #fff;
}

.output-section span {
    font-weight: bold;
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    opacity: 0.9;
    transition: 0.2s;
    transition: opacity 0.2s;
    border-radius: 5px;
}

input[type="range"] {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #28a745;
    cursor: pointer;
    border-radius: 50%;
}