@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --background: #5a0383;
    --main: #163B34;
    --secondary: #5a0383;
    --text: #666;
}

a{
    margin-bottom: 5px;
    gap: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

body {
    background-color: var(--background);
    font-family: "Montserrat", sans-serif; 
    margin: 0;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    flex-direction: column;
    scroll-behavior: smooth;
}

#loading {
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    margin: auto 0;
}

#display {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.scrol{
    text-decoration: none;
}

#header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

#logo-resto {
    margin: 10px 0 10px 0 ;
    width: 250px;
    height: auto;
    border-radius: 15px;
}

#logo-powered{
    width: 200px;
    height: auto;
}

.title-part{
    color: white;
    font-size: 1.5em;
    text-align: start;
    margin: 0;
    width: 90%;
}

.category-title-link{
    color: #163B34;
    margin: 0 5px 0 5px;
    font-size: 1.2rem;
    background-color: white;
    border-radius: 25px;
    padding: 10px;
}

#category-menu {
    display: flex;
    overflow-x: auto;
    padding: 10px 10px 15px 10px;
    top: 0;
    z-index: 1000;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;

}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    margin-right: 20px;
}

.section{
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction:column ;

}


.category-name {
    font-size: 12px;
    color: var(--white);
}

.dish-container {
    margin: 10px 0 10px 0 ;
    width: 95%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.dish-card {
    width: 95%;
    height: 120px;
    background-color:white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.dish-image {
    width: 120px;
    height: 120px;
    object-fit: cover; /* Maintain aspect ratio and crop */
    border-radius: 15px;
}

.dish-info {
    position: relative;
    height: 100%;
    flex-grow: 1;
    margin: 7px;
    text-align: left;
}

.dish-title {
    font-weight: bold;
    margin: 0;
    font-size: 1.2em;
    color: var(--background);
}

.dish-description {
    font-size: 0.8em;
    color: var(--background);
    margin: 0;
}

.dish-price {
    position: absolute;
    bottom: 0;
    height: 29px;
    font-size: 1.2em;
    color: var(--secondary);
    margin: 0;
    bottom: 100;
}

.dish-info-line {
    flex-grow: 1;
    margin: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.dish-card-line {
    width: 95%;
    background-color:white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}
.dish-title-line {
    font-weight: bold;
    margin: 0;
    font-size: 1.2em;
    color: var(--background);
}

.dish-price-line {
    width: 108px;
    height: 30px;
    font-size: 1.3em;
    color: var(--secondary);
    margin: 0;
}

.dish-card-bis {
    width: 95%;
    background-color:white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}
.dish-price-bis{
    font-size: 1.3em;
    color: var(--secondary);
    margin: 0;
    bottom: 100;
}

.dish-description-bis {
    font-size: 0.8em;
    color: var(--background);
    margin: 0;
}

