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

body {
    margin: 0;
    background-color: #ffffff;
    overflow-x: hidden;
}

.navbar {
    height: 82px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #403c3c;
    color: white;
    padding: 0 30px;
    position: relative;
    z-index: 1000;
}

.logo {
    height: 80%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

.menuitems {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    font-size: larger;
}

.menuitem:hover {
    color: rgb(223, 87, 0);
    cursor: pointer;
}

.hamburgerBtn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburgerBtn span {
    height: 3px;
    width: 100%;
    background-color: rgb(223, 87, 0);
    border-radius: 2px;
}

.searchbox {
    width: 100%;
    background: rgb(223, 87, 0);
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#input {
    padding: 10px 15px;
    width: 360px;
    max-width: 90%;
    border-radius: 4px;
    border: none;
    font-size: 15px;
    text-transform: capitalize !important;
}

#input:focus {
    outline: none;
}

.cardscontainer {
    width: 100%;
    max-width: 1050px;
    margin: 35px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 20px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    width: 280px;
    color: black;
    background: #ffffff;
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: scale(1.111);
    z-index: 10;
}

.card img {
    width: 100%;
    border-radius: 6px;
}

.card h2 {
    margin: 10px 2px 4px 2px;
}

.card h6 {
    margin: 4px;
    font-weight: 200;
    font-size: 13px;
}

.card p {
    margin: 0 0 10px 5px;
    font-size: 10px;
    font-weight: lighter;
}

.btnDetails {
    margin-top: auto;
    align-self: flex-end;
    font-size: 10px;
    padding: 8px 14px;
    border: 1px solid black;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.btnDetails:hover {
    background-color: black;
    color: #f0f0f0;
}

#model-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#model-overlay.active {
    display: flex;
}

#model {
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    background-color: white;
    padding: 0px 20px 20px 20px;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

#model img {
    width: 20%;
    margin-top: 33px;
}

#model li {
    list-style: none;
}

.close-btn {
    float: right !important;
    cursor: pointer;
    font-weight: bold;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .hamburgerBtn {
        display: flex;
    }

    .menuitems {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        background-color: #403c3c;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
    }

    .menuitems.active {
        display: flex;
        padding: 10px 0;
    }

    .menuitem {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #524e4e;
    }

    .menuitem:last-child {
        border-bottom: none;
    }

    .card {
        width: 100%;
        max-width: 320px;
    }
}