@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    height: 650px;
    background-image: url("/static/image/recipe-header.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 10;
}

header {
    opacity: 0; /* Изначально невидимо */
    transition: opacity 1s ease-in-out; /* Плавный переход */
}

header.show {
    opacity: 1;
}

.header_words {
    display: flex;
    height: 70%;
    justify-content: end;
    text-transform: uppercase;
    text-align: start;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 35px;
    color: rgba(241, 241, 241, 0.8);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s ease-in-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header_words {
        justify-content: center;
        text-align: center;
        font-size: 22px;
    }
    .header-words-container {
         align-self: flex-end;
     }
}

@media (min-width: 769px) {
    .header_words {
        font-size: 36px;
    }
    .header-words-container {
        text-align: center;
        align-self: end;
        align-items: center;
    }

}

