.food_category_wrapper {
    margin-bottom: 5em;
    scroll-margin-top: 50vh;
}

.food_category_box {
    margin-top: 2em;
    border: 3px solid var(--dark-color);
}

.food_category_title {
    color: var(--dark-color);
    font-size: 1.5em;
    font-weight: 500;
    font-family: var(--font);
    text-transform: uppercase;
    transform: translate(0, -20px);
    background: #fff;
    width: fit-content;
    padding-inline: 5px;
}

.food_items_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: space-around;
    gap: 3em;
}

.food_item {
    padding-inline: 1em;
    padding-bottom: 1.5em;
    position: relative;
}

.food_item_name_price {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 1.2em;
}

.food_item_img {
    justify-content: center;
}

.food_item_img img {
    max-width: 15em;
    width: 80%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.food_item_name {
}

.food_item_desc {
    font-size: 0.9em;
    font-style: italic; 
}

.food_item_price {
    align-self: center;
}

#food-pdf-container, #drinks-pdf-container {
    gap: 2em;
    
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}


.pdf-page-wrapper canvas {
  width: 100% !important;   /* scale canvas visually */
  height: auto !important;  /* keep aspect ratio */
  display: block;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Medium devices (landscape tablets, 768px and up) */
@media screen and (min-width: 768px) {
    .food_items_wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .food_item:not(:nth-child(even)):after {
        content: '';
        position: absolute;
        background-color: var(--secondary-color);
        height: 100%;
        width: .2em;
        z-index: 1;
        top: 0;
        right: 0;
    }
}

/* Large devices (laptops/desktops, 1024px and up) */
@media screen and (min-width: 1024px) {
    #food-pdf-container, #drinks-pdf-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (large laptops and desktops, 1440px and up) */
@media screen and (min-width: 1440px) {
}

/* 4K devices (large laptops and desktops, 2560px and up) */
@media screen and (min-width: 2560px) {
    #food-pdf-container, #drinks-pdf-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
