body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: url('https://images.unsplash.com/photo-1505691938895-1758d7feb511') no-repeat center/cover;
   backdrop-filter: blur(15px);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 320px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #cac7c7);
    color: rgb(38, 33, 33);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h1 {
    margin-bottom: 10px;
}

input {
    width: 85%;
    padding: 12px;
    margin: 8px;
    border-radius: 12px;
    border: none;
    outline: none;
}

button {
    margin-top: 15px;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 25px;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Result box */
#box {
    padding: 20px;
    border-radius: 20px;
    margin-top: 15px;
    color: rgb(0, 0, 0);
    border: 2px solid #161515;
}
.result-card {
    padding: 20px;
    border-radius: 20px;
    margin-top: 10px;
    background: #5d7cb7;
    color: rgb(40, 37, 37);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5)
}

/* Dynamic Colors */
.under { background: #3498db; }
.healthy { background: #2ecc71; }
.over { background: #f1c40f; }
.obese { background: #e74c3c; }

.tip-box {
    background: rgb(255, 255, 255);
    color: black;
    padding: 15px;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2)
}
.top-img {
    width: 220px;
    display: block;
    margin: 0 auto 5px;   /* ↓ reduce space here */
    border-radius: 50%;
}

.title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}
.btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}