body {
    background-color: antiquewhite;
    margin: 0;
    font-family: sans-serif;
}

.outer {
    background-color: white;
    border-radius: 20px;
    width: 700px;  
    height: auto;  
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

.img {
    width: 600px;
    height: 300px;
    background-image: url(image-omelette.jpeg);
    background-size: cover;
    border-radius: 20px;
    margin: 20px auto;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 2;  
}

h1 {
    text-align: center;
    margin: 20px 0;
}

#intro {
    width: 600px;
    margin: 20px auto;
    font-size: 13px;
    text-align: center;
}

.time, .ingredients, .instruction, .nutrition {
    width: 600px;  
    margin: 20px auto;
    background-color: hsl(330, 100%, 98%);  /* Add background color */
    border-radius: 20px;
    padding: 10px;
}

.time h3, .ingredients h2, .instruction h2, .nutrition h2 {
    color: hsl(14, 45%, 36%);
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    width: 85%;
    margin: 20px auto;
}

.nutrition table {
    width: 100%;
    border-collapse: collapse;
}

.nutrition td {
    padding: 10px;
    text-align: left;
}

.nutrition .info {
    font-weight: bold;
}

/* Hover effect */
.img:hover {
    transform: scale(1.1);  
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);  
}

.img:hover ~ h1,
.img:hover ~ #intro,
.img:hover ~ .time,
.img:hover ~ .ingredients,
.img:hover ~ .instruction,
.img:hover ~ .nutrition {
    filter: blur(5px);  
}

/* Responsive Design */
@media (max-width: 768px) {
    .outer {
        width: 90%;
    }

    .img, #intro, .time, .ingredients, .instruction, .nutrition {
        width: 100%;
    }

    .img {
        height: 200px;
    }

    h1 {
        font-size: 1.5rem;
    }

    #intro {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .outer {
        width: 95%;
    }

    .img {
        height: 150px;
    }

    h1 {
        font-size: 1.2rem;
    }

    #intro {
        font-size: 0.8rem;
    }

    .time, .ingredients, .instruction, .nutrition {
        padding: 0 10px;
    }

    .nutrition table {
        font-size: 0.8rem;
    }
}
