/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.header-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20vh;
    min-height: 150px;
    margin-top: 20px; /* Add margin to the top */
    margin-left: 5px;
    margin-right: 5px;


    border-radius: 10px;
}

.header-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.search-section {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;

    border-radius: 5px;
    margin-bottom: 20px;
}

input[type="search"] {
    width: 100%;
    padding: 8px;
    font-size: 16px;
}

.menu-section {
    background-color: #FFC107;
    padding: 10px;

    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-section button {
    background-color: transparent;
    border: none;
    color: #333;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 4px;
}

.menu-section button:hover {
    text-decoration: underline;
}

.content {
    flex-grow: 1;
    padding: 20px;
    background-color: white;

    border-radius: 5px;
    overflow-y: auto;
}

#productList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#productList img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .header-image-container {
        height: 15vh;
        min-height: 100px;
        margin-top: 10px; /* Adjust margin for smaller screens */
    }

    .container {
        padding: 10px;
    }

    .search-section {
        padding: 5px;
        margin-bottom: 10px;
    }

    input[type="search"] {
        font-size: 14px;
    }

    .menu-section {
        padding: 5px;
        margin-bottom: 10px;
    }

    .menu-section button {
        padding: 5px;
        font-size: 14px;
    }

    .content {
        padding: 10px;
    }

    #productList {
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .header-image-container {
        height: 10vh;
        min-height: 80px;
        margin-top: 5px; /* Adjust margin for even smaller screens */
    }

    .search-section {
        margin-bottom: 5px;
    }

    .menu-section {
        margin-bottom: 5px;
    }

    .menu-section button {
        font-size: 12px;
    }

    #productList {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}