﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.biryani-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

    /* Handi (pot) */
    .biryani-animation::before {
        content: "";
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 90px;
        background: #4a2c16;
        border-radius: 60% 60% 30% 30%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    /* Lid */
    .biryani-animation::after {
        content: "";
        position: absolute;
        bottom: 120px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 35px;
        background: #5c3a1d;
        border-radius: 50% 50% 10% 10%;
    }

    /* Fire flames */
    .biryani-animation div {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 20px;
        height: 30px;
        background: orange;
        border-radius: 50%;
        animation: flame 0.6s infinite alternate ease-in-out;
        transform-origin: bottom center;
    }

        /* Multiple flames */
        .biryani-animation div:nth-child(4) {
            transform: translateX(-45px);
            animation-delay: 0.1s;
        }

        .biryani-animation div:nth-child(5) {
            transform: translateX(-15px);
            animation-delay: 0.2s;
        }

        .biryani-animation div:nth-child(6) {
            transform: translateX(15px);
            animation-delay: 0.15s;
        }

        .biryani-animation div:nth-child(7) {
            transform: translateX(45px);
            animation-delay: 0.05s;
        }

@keyframes flame {
    0% {
        height: 25px;
        opacity: 0.6;
        background: #ff9800;
    }

    100% {
        height: 45px;
        opacity: 1;
        background: #ff5722;
    }
}

/* ✅ FIXED STEAM */
.biryani-animation .steam {
    position: absolute;
    bottom: 120px;
    left: 50%;
    width: 8px;
    height: 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    filter: blur(3px);
    animation: steam-rise 2s infinite ease-out;
    opacity: 0;
}

    /* Now using nth-of-type ✅ */
    .biryani-animation .steam:nth-of-type(1) {
        transform: translateX(-20px);
        animation-delay: 0.2s;
    }

    .biryani-animation .steam:nth-of-type(2) {
        transform: translateX(0px);
        animation-delay: 0.6s;
    }

    .biryani-animation .steam:nth-of-type(3) {
        transform: translateX(20px);
        animation-delay: 1s;
    }

@keyframes steam-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-60px) scale(1.6);
        opacity: 0;
    }
}
