body {
    background: linear-gradient(-45deg, #5dd5fa, #00c6ff, #0072ff, #5dd5fa);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #050505;
    font-family: 'Lato', Tahoma, sans-serif;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    border: 10px solid #ffffff;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



body * {
    animation: fadeIn 2s ease-in-out;
}

input, select {
    background-color: #ffffff;
    color: #070707;
    border: 1px solid #000000;
    padding: 8px;
    margin-top: 8px;
    margin-bottom: 15px;
    font-family: 'Lato', Tahoma, sans-serif;
    width: 250px;
    font-size: 15px;
}

#output {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: rgb(6, 6, 6);
}

h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fdfbfb, #ebedee, #c2e9fb, #a1c4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#calories-div {
    display: flex;
}

#submit-button {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Lato', Tahoma, sans-serif;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 2s ease-in-out;
    margin-top: 10px;
}

#submit-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.5s ease;
}

#submit-button:hover::before {
    left: 100%;
}

#submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6);
}

label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    animation: fadeIn 2s ease-in-out;
}


label:hover {
    color: #f5f7fa;
    text-shadow: 0 0 8px rgba(0, 114, 255, 0.6);
    transform: translateY(-1px);
}

input:hover,
select:hover {
    box-shadow: 0 0 30px rgba(71, 72, 73, 0.6);
    border-color: #3b3c3e;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

#BMI-display {
    background-color: #ffffff;
    color: #0072ff;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0, 114, 255, 0.3);
    text-align: left;
    margin: 10px 0 10px 10px; 
    animation: fadeIn 2s ease-in-out;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: fit-content; 
    max-width: 300px; 
}

#BMI-display:hover {
    box-shadow: 0 0 10px rgba(0, 114, 255, 0.5);
    transform: translateY(-1px);
}