@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}



/** Parti des pages non détailler **/


.gridlayout {
    margin: auto;
    width: auto;
    height: auto;
}

.title {
    text-align: center;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.product-card {
    width: 26.25rem;
    height: 15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: var(--bs-link-color-rgb);
    position: relative;
}

    .product-card:hover {
        box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    }

    .product-card .product-card-back {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bs-body-color);
        opacity: 0.05;
        border-radius: 1rem;
        z-index: -2;
    }

 .product-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

 .product-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name,
.product-price,
.product-detail {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    text-align: left;
}

.product-image {
    width: 180px;
    height: 100px;
    flex-shrink: 0;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.empty-image {
    width: 100px;
    height: 100px;
    background-color: transparent;
    border-radius: 0.5rem;
}


/** Parti des pages détailler **/

.allergenic-section {
    font-size: 0.95rem;
    margin-top: 20px	
}


/* Format phone*/


@media (max-width: 768px) {
    .product-card {
        width: 100%;
        height: auto;
    }

    .product-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-image {
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-top: 1rem;
    }

    .product-image img {
        width: 100%;
        height: auto;
    }
}


/* Page index */
.restaurant {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.restaurant-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.restaurant-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .restaurant-image img {
        width: 100%;
        max-width: 650px;       /*450px*/
        height: auto;
        object-fit: cover;
        border-radius: 0.5rem;
        border: 1px solid #ddd;
    }


/* Page MainLayout */

.main-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-content: center;
}

.header {
    display: block;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    color: black;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    overflow-y: auto;
}



/* Page NavMenu */

.top-menu {
    background-color: white;
    color: black;
    align-items: center;
}

    .top-menu .dxbl-menu-item {
        color: black;
        font-weight: 500;
    }

.menu-mobile {
    display: none;
}

.name-restaurant {
    font-size: 2rem;
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
    margin-top: -30px;
}

@media (max-width: 768px) {
    .menu-desktop {
        display: none;
    }

    .menu-mobile {
        display: block;
    }
}