
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center; /* Center all content */
}

.topbar {
    background-color: #800000;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.container {
    padding-top: 60px; /* Space for the fixed topbar */
    width: 90%;
    margin: auto;
    max-width: 600px; /* Limiting the maximum width for better aesthetics */
    /* position: relative;
    z-index: 1; */
}

h1, h2 {
    color: #600000; /* Darker shade of red */
}

.product-info, .nutritional-value, .unit-amount, .owner-info {
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
}

.product-info p, .nutritional-value p, .unit-amount p, .owner-info p {
    margin: 5px 0;
}

.unit-amount img {
    width: 100px;
    height: auto;
    border-radius: 15px;
}

.owner-info img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.wine-photo {
    width: 60%; /* Making the top photo slightly larger */
    border-radius: 15px;
    margin: auto; /* Center the photo */
}

.product-info {
    background-color: #fff0f0; /* Light red background */
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-info h3 {
    margin-bottom: 15px;
}

.product-info .columns {
    display: flex;
    justify-content: space-around;
    width: 100%;
    align-items: flex-start; /* Align items to the start (top) of the container */
}

.info-column {
    display: flex;
    flex-direction: column;
    width: 45%;
    text-align: left; /* Align text to the left */
}


.info-column p {
    margin: 5px 0;
}

.info-column span {
    font-weight: bold;
}

.unit-amount {
    background-color: #fff0f0;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    align-items: stretch;
}

.unit-amount h3 {
    margin-bottom: 15px;
}

.amount-columns {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.amount-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 10px; /* Adds space between rows */
}

.amount-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.amount-column img {
    width: 50px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px;
}
.nutritional-value {
    background-color: #fff0f0; /* Light red background */
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
}

.nutritional-row {
    display: flex;
    justify-content: space-between;
    display: grid;
    /* grid-template-columns: 68% 16% 16%; Allocate space for three columns */
    grid-template-columns: 68% 32%;
    gap: 0;
}

.nutritional-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align items to the right */
    padding: 5px;
}

/* First column takes up 65% of the space, align text to the left */
.nutritional-row .nutritional-column:first-child {
    flex: 0 0 64%;
    align-items: flex-start; /* Align items to the left */
}

/* Second and third columns share the remaining 35%, align text to the right */
.nutritional-row .nutritional-column:not(:first-child) {
    /* flex: 0 0 16%; Half of 35% for each */
    flex: 0 0 32%;
}


.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
}

.unit-amount h3 {
    margin-bottom: 15px;
}

hr {
    border: none;
    height: 1px;
    background-color: #ddd; /* Light grey line */
    margin: 10px 0;
}

.sub-text {
    margin-top: 0; /* Remove top margin for closer spacing */
    margin-bottom: 0; /* Reduce bottom spacing */
}

.text {
    font-size: 0.8em;
}

/* Indentation for the first column in the additional row */
.indented {
    padding-left: 20px; /* Adjust the value as needed for the desired indentation */
}

.nutritional-row .sub-text, .nutritional-row .indented p {
    font-size: 0.75em; /* Adjust this value as needed for smaller text */
}


.responsibility-message {
    text-align: center;
    margin: 10px 0;
    background-color: #f4f4f4; /* Light red background */
    border-radius: 15px;
    padding: 10px;
}

.alergen-signs {
    text-align: center;
    margin: 10px 0;
    background-color: #f4f4f4;
    /* Light red background */
    border-radius: 15px;
    padding: 10px;
}

.alergen-signs img {
    width: 90%;
    margin: 0 10px;
}

.prohibition-image {
    width: 30%; /* Adjust as needed
    /* height: auto;  */
    margin: 0 10px;
}

.prohibition-signs {
    display: flex;
    justify-content: center;
}

.responsibility-message h3,
.responsibility-message p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


.ingredients {
    /* margin-bottom: 5px; */
    padding-bottom: 15px;
}
/* DODATKOWE INFORMACJE */
.additional-info {
    background-color: #fff0f0;
    /* Light red background */
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
    /* Keep consistency with other sections */
    text-align: center;
    /* Align text to the left for consistency */
}

.additional-info h3 {
    text-align: center;
    /* Center the title for aesthetic purposes */
    margin-bottom: 15px;
    /* Add some space below the heading */
}

.additional-info p {
    margin: 5px 0;
    text-align: center;
    /* Add some vertical space between paragraphs */
}

.additional-info span {
    text-align: center;
    font-weight: bold; /* Make the text inside <span> bold */
}
/* DODATKOWE INFORMACJE */

@media screen and (max-width: 768px) {
    .product-info .columns, .amount-columns {
        flex-direction: row; /* Keep the row layout for small screens */
        flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .info-column, .amount-column {
        width: 45%; /* Adjust the width to fit side by side */
        margin-bottom: 10px;
    }

    .amount-column img {
        width: 50px; /* Adjust the image size for small screens */
    }

    .nutritional-column {
        /* width: 30%; */
        text-align: center;
    }

    .left-align, .right-align {
        text-align: center;
    }

    .indented {
        padding-left: 10px; /* Slightly less indentation on smaller screens */
    }

    .nutritional-row .sub-text, .nutritional-row .indented p {
        font-size: 0.7em; /* You can adjust this value for smaller screens if needed */
    }

    .text {
        font-size: 0.8em;
    }

    /* .nutritional-row {
        flex-direction: row;
        justify-content: space-between;
    } */

    .nutritional-row .nutritional-column:first-child {
        flex: 0 0 68%;
        align-items: flex-start;
    }

    .nutritional-row .nutritional-column:not(:first-child) {
        flex: 0 0 32%;
        /* flex: 0 0 16%; */
        align-items: flex-end;
    }
}
