@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

* {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column; /* Stack navbar, container, footer vertically */
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    min-height: 100vh; /* Full viewport height */
     /* Fixed image name */
    background-size: cover; /* Scales image to cover viewport */
    background-position: center; /* Centers background image */
    background-repeat: no-repeat; /* Prevents tiling */
    padding-top: 60px; /* Space for fixed navbar */
    padding-bottom: 40px; /* Space for fixed footer */
background-color: black;
}

/* Navbar Styles */
.navbar {
    width: 100%;
    background-color: #0044ff; /* Blue background */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between; /* Space between heading and links */
    align-items: center;
    color: #fff;
    position: fixed; /* Sticky navbar at the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures navbar stays above other content */
 
}

.navbar-heading {
    font-size: 1.8rem;
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #cceeff; /* Light blue on hover */
}

/* Main Content Styles */
.container {
    width: 400px;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    background-color: aliceblue;
    position: relative; /* Required for animation positioning */
    animation: revolveBorder 4s linear infinite; /* Revolving border animation */
}

/* Revolving border animation for .container */
@keyframes revolveBorder {
    0% {
        box-shadow: 
            0 0 20px 10px #0044ff, /* Base shadow */
            -10px 0 20px #0044ff, /* Left */
            10px 0 20px #0044ff, /* Right */
            0 10px 20px #0044ff, /* Bottom */
            0 -10px 20px #0044ff; /* Top */
    }
    25% {
        box-shadow: 
            0 0 20px 10px #0044ff,
            10px 0 20px #0044ff, /* Right */
            -10px 0 20px #0044ff, /* Left */
            0 10px 20px #0044ff,
            0 -10px 20px #0044ff;
    }
    50% {
        box-shadow: 
            0 0 20px 10px #0044ff,
            10px 0 20px #0044ff,
            -10px 0 20px #0044ff,
            0 -10px 20px #0044ff, /* Top */
            0 10px 20px #0044ff; /* Bottom */
    }
    75% {
        box-shadow: 
            0 0 20px 10px #0044ff,
            -10px 0 20px #0044ff, /* Left */
            10px 0 20px #0044ff, /* Right */
            0 -10px 20px #0044ff,
            0 10px 20px #0044ff;
    }
    100% {
        box-shadow: 
            0 0 20px 10px #0044ff,
            -10px 0 20px #0044ff,
            10px 0 20px #0044ff,
            0 10px 20px #0044ff,
            0 -10px 20px #0044ff;
    }
}

h1 {
    margin-bottom: 40px;
    font-size: 2rem;
}

input {
    border: none;
    border-bottom: 1px solid #0044ff;
    width: 50%;
    margin-bottom: 20px;
    outline: none;
    padding: 10px;
    text-align: center;
    font-size: 25px;
}

button {
    width: 100%;
    height: 35px;
    margin-top: 25px;
    border-radius: 20px;
    border: none;
    background-color: #0044ff;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

button:hover {
    transform: scale(1.05); /* Slight scale-up on hover */
}

#result {
    margin-top: 20px;
    font-size: 25px;
}

.bmi-norm {
    display: inline-block;
    height: 2.5rem;
    line-height: 2.5rem;
    padding: 0 20px;
    background-color: #0044ff;
    color: #fff;
    border-radius: 2rem;
    text-decoration: none;
    margin-left: 5px;
    animation: pulseClick 1.5s ease-in-out infinite; /* Animation for Click link */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.bmi-norm:hover {
    background-color: #0033cc; /* Slightly darker blue on hover */
}

/* Animation for the Click link */
@keyframes pulseClick {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px #0044ff;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px #0044ff;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px #0044ff;
    }
}

/* Footer Styles */
.footer {
    width: 100%;
    background-color: #0044ff; /* Blue background */
    color: #fff;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px 0;
    position: fixed; /* Sticky footer at the bottom */
    bottom: 0;
    left: 0;
    font-size:1rem;
}