@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
    font-family: "Montserrat", sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-size: 24px;
    color: #333;
}

.menu {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 10px 15px;
}

.menu a:hover {
    color: red;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .brand-name {
        margin-top: 10px;
        font-size: 20px;
    }

    .menu {
        gap: 10px;
    }

    .menu a {
        font-size: 16px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 60px;
        height: 60px;
    }

    .brand-name {
        font-size: 18px;
    }

    .menu {
        gap: 5px;
        justify-content: space-evenly;
        width: 100%;
    }

    .menu a {
        font-size: 14px;
        padding: 8px 10px;
        flex-shrink: 1;
    }

    .big-card {
        padding: 15px;
        font-size: 14px;
    }
}

/* New grid layout for menu items */
.container {
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
}

/* Make images circular */
.card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
}

.card h2 {
    margin: 10px 0;
    font-size: 18px;
}

.card p {
    color: #333;
    font-size: 16px;
}

/* Responsive adjustments for the grid */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 15px;
    }

    .card h2 {
        font-size: 16px;
    }

    .card p {
        font-size: 14px;
    }
}

/* Scroll button styles */
.scroll-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.scroll-button:hover {
    background-color: #e2e6ea;
}

/* Popup modal styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.popup-content h2 {
    margin: 10px 0;
    font-size: 18px;
}

.popup-content p {
    font-size: 16px;
    color: #333;
}

/* Back button styles */
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.back-button:hover {
    color: red;
}

#popup-details {
    text-align: left;
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.popup-content ul {
    list-style-type: none;
    padding: 0;
}

.popup-content li {
    margin-bottom: 8px;
}

.popup-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .menu {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center items */
        gap: 10px;
    }

    .menu a {
        flex-basis: 30%; /* Adjust width as necessary */
        text-align: center; /* Center-align text */
    }
}
