.menu-button.relative {
    display: none;
}

/* Styles for iPad */
@media (max-width: 768px) {

    div#coder {
        display: none;
    }

    .menu-button.relative {
        display: block;
        margin-left: 6rem;
    }
    button.ml-4.bg-blue-500.text-white.px-4.py-2.rounded-full {
        margin-left: 3rem;
    }
    nav.flex.justify-between.items-center.p-4 {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .flex.space-x-4.items-center {
        display: flex;
        justify-content: space-around;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 10px 0;
    }

    .relative {
        bottom: 20%;
        left: 0px;
        right: 20px;
        padding: 15px;
        border: 1px solid red;
        border-radius: 15px;
    }

    h1.text-5xl.font-bold {
        font-size: 32px;
        margin-bottom: 10px;
    }

    p.text-xl.mt-4 {
        font-size: 16px;
        margin-bottom: 20px;
    }


}

/*


@media (min-width: 769px) and (max-width: 1024px) {
    div#coder {
        display: none;
    }
    button.ml-4.bg-blue-500.text-white.px-4.py-2.rounded-full {
        margin-left: 3rem;
    }
    .menu-button.relative {
        display: block;
        margin-left: 6rem;
    }

    nav.flex.justify-between.items-center.p-4 {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .flex.space-x-4.items-center {
        display: flex;
        justify-content: space-around;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 10px 0;
    }

    .relative {
        bottom: 20%;
        left: 0px;
        right: 20px;
        padding: 15px;
        border: 1px solid red;
        border-radius: 15px;
    }

    h1.text-5xl.font-bold {
        font-size: 32px;
        margin-bottom: 10px;
    }

    p.text-xl.mt-4 {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

*/
button.ml-4.bg-blue-500.text-white.px-4.py-2.rounded-full {
    margin-right: 1rem;
}
button.flex.items-center.space-x-1.px-4.py-2.bg-white.text-black.rounded-full,button.flex.items-center.space-x-1.px-4.py-2.bg-gray-800.text-white.rounded-full,button.flex.items-center.space-x-1.px-4.py-2.bg-gray-800.text-white.rounded-full{
    background-color: #000000;
    color:rgb(255, 255, 255);
}
button.flex.items-center.space-x-1.px-4.py-2.bg-white.text-black.rounded-full:hover,button.flex.items-center.space-x-1.px-4.py-2.bg-gray-800.text-white.rounded-full:hover,button.flex.items-center.space-x-1.px-4.py-2.bg-gray-800.text-white.rounded-full:hover,.st0:hover{
    background-color: white;
    color: black;
    fill:#000
}
button.bg-gray-800.text-white.px-4.py-2.rounded-full:hover{
    background-color: #fff;
    color: black;
}

@media (max-width: 640px) {
    .menu-content {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 90%); 
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
        transform: scale(0.5);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    div#style-all {
        background: #222025;
        padding: 10px;
        border: red 1px solid;
        border-radius: 50px;
        margin-top: 2rem;
        margin-bottom: -5vw;
        z-index: 999;
    }
    .menu-content.active {
        display: grid;
        transform: scale(1);
        opacity: 1;
        align-content: space-around;
        justify-content: center;
        align-items: center;
    }
    
    .menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .menu-button:hover {
        background-color: rgba(39, 36, 36, 0.7);
    }
    
    .menu-button.active + .menu-content {
        display: block;
    }
    
    .menu-content .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        color: white;
        cursor: pointer;
    }
    
    @keyframes slideIn {
        0% {
            transform: scale(0.5);
            opacity: 0;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
}     


.hmam-footer {
padding: 20px;
background-color: #000;
color: #fff;
}
.hmam-footer .hmam-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.hmam-footer .hmam-col {
margin: 10px;
min-width: 150px;
}
.hmam-footer h3 {
margin-bottom: 15px;
font-size: 18px;
}
.hmam-footer ul {
list-style: none;
padding: 0;
}
.hmam-footer ul li {
margin-bottom: 10px;
}
.hmam-footer ul li a {
color: #fff;
text-decoration: none;
}
.hmam-footer .hmam-bottom {
text-align: center;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #444;
}
.hmam-footer .hmam-bottom img {
width: 50px;
margin-bottom: 10px;
margin-left: 47vw;
}
.hmam-back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
animation: bounce 2s infinite;
}
.hmam-back-to-top a {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
background-color: #00f;
color: #fff;
border-radius: 50%;
text-decoration: none;
font-size: 24px;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-20px);
}
60% {
transform: translateY(-10px);
}
}
@media (min-width: 769px) and (max-width: 1024px) {
.hmam-footer .hmam-col {
flex: 1 0 100%;
max-width: 100%;
text-align: center;
}
.hmam-footer h3 {
font-size: 16px;
}
}
@media (min-width: 769px) and (max-width: 1024px) {
.hmam-footer .hmam-col {
flex: 1 0 45%;
max-width: 45%;
}
.hmam-footer h3 {
font-size: 17px;
}
}



/* WhatsApp Button */
#whatsapp-button {
position: fixed;
bottom: 20px;
left: 20px;
width: 60px;
height: 60px;
background-color: #25D366;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 1000;
}

#whatsapp-button img {
width: 70%;
height: 70%;
}

/* WhatsApp Chat Box */
#whatsapp-chat {
position: fixed;
bottom: 100px;
left: 0px;
width: 400px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
display: none;
flex-direction: column;
z-index: 1000;
animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

#whatsapp-chat .header {
background-color: #25D366;
color: #fff;
padding: 1rem;
text-align: center;
border-radius: 0px 0px 50px 50px;
}

#whatsapp-chat .header h2 {
margin-bottom: 0.5rem;
}

#whatsapp-chat .header span {
font-weight: bold;
}

#whatsapp-chat .content {
padding: 1rem;
}

#whatsapp-chat .contact {
display: flex;
align-items: center;
margin-bottom: 1rem;
}

#whatsapp-chat .contact img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 1rem;
}

#whatsapp-chat .contact-text h3, 
#whatsapp-chat .contact-text p {
color: #000;
}

#whatsapp-chat .contact-text h3 {
margin-bottom: 0.25rem;
}

#whatsapp-chat .contact a {
margin-left: auto;
color: #25D366;
}

#whatsapp-chat #close-chat {
background: none;
border: none;
color: #000;
font-size: 1.5rem;
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}

/* Responsive for Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
#whatsapp-button {
bottom: 30px;
left: 30px;
}

#whatsapp-chat {
bottom: 120px;
left: 0px;
width: 350px;
}
}

/* Responsive for Mobile Devices */
@media (max-width: 768px) {
#whatsapp-button {
bottom: 10px;
left: 10px;
width: 50px;
height: 50px;
}

#whatsapp-button img {
width: 60%;
height: 60%;
}

#whatsapp-chat {
bottom: 80px;
left: 0px;
width: 90%;
}

#whatsapp-chat .header {
padding: 0.75rem;
}

#whatsapp-chat .content {
padding: 0.75rem;
}
}
.groung {
background-color: #181818;
border-bottom: 1px red solid;
border-top: 1px black solid;
border-left: red 1px solid;
border-radius: 0px 0px 0px 15px;
}
.nav {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    background: black;
    width: 37%;
    border-radius: 50px;
    direction: rtl;
}

.nav button {
background-color: #000;
border: none;
color: white;
padding: 15px 30px;
cursor: pointer;
margin: 0 10px;
border-radius: 50px;
}

.nav button.active {
background-color: white;
color: black;
border-radius: 50px;
margin-left: 0rem;
}

.filter-button {
position: absolute;
right: 10px;
background-color: #007bff !important;
border: none;
color: white;
padding: 15px 50px !important;
cursor: pointer;
border-radius: 50px;
}

.car-list {
display: flex;
justify-content: center;
flex-wrap: wrap;
padding: 20px;
}
.car {
position: relative;
margin: 50px;
text-align: center;
overflow: hidden;
transition: transform 1.0s ease-in-out;
border-radius: 15px;
}

.car:hover {
transform: translateY(-5%);
background-color: rgba(255, 0, 0, 0.192);
border: 2px rgba(255, 0, 0, 0.192) solid;
}

.car:nth-child(odd):nth-of-type(3n+1),
.car:nth-child(odd):nth-of-type(3n+2),
.car:nth-child(odd):nth-of-type(3n+3) {
width: calc(33.333% - 10rem);
}

.car:nth-child(even):nth-of-type(2n+1),
.car:nth-child(even):nth-of-type(2n+2) {
width: calc(30% - 6rem) !important;
}

.car img {
width: 100%;
transition: transform 1.0s ease-in-out;
}

.car-details {
position: absolute;
bottom: 45px !important;
left: 0;
width: 100%;
color: white;
padding: 10px;
box-sizing: border-box;
opacity: 0;
transition: opacity 1.0s ease-in-out, bottom 1.0s ease-in-out;
z-index: 999;
}

.car:hover .car-details {
opacity: 1;
bottom: 0;
}

.car:hover img {
transform: translateY(-10%);
}

.car p {
margin: 40px 0;
}
.car-price {
background: rgba(255, 0, 0, 0.192);
opacity: 0;
transition: opacity 0.5s ease-in-out;

}
small.col {
color: #636363;
}
.block {
padding: 10px;
}
.block:hover {
background-color: #ff0000;
color: #ffffff;
font-weight: bold;
}
.car:hover .car-price {
opacity: 1;
}
.btn:hover {
background-color: white;
color: #000;
border-radius: 50px;
}

/*فلتر*/

.side-filter {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
right: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
color: white;
}

.side-filter .filter-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 16px;
}

.side-filter .filter-content {
padding: 16px;
}

.side-filter .closebtn {
font-size: 36px;
cursor: pointer;
}

.sort-by, .filters, .car-style, .car-brands {
margin-bottom: 20px;
}

.car-style-options, .car-brands-options {
display: flex;
flex-wrap: wrap;
}

.car-style-options div, .car-brands-options div {
background-color: #333;
padding: 10px;
margin: 5px;
border-radius: 5px;
cursor: pointer;
}

.show-results {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;
text-align: center;
display: block;
width: 100%;
margin-top: 20px;
border-radius: 5px;
}

@media (max-width: 768px) {
.side-filter {
width: 100%;
}
}

@media (min-width: 769px) and (max-width: 1024px) {
.side-filter {
width: 50%;
}
}

@media (min-width: 1025px) and (max-width: 1280px) {
.side-filter {
width: 40%;
}
}

@media (min-width: 1281px) {
.side-filter {
width: 30%;
}
}

@media (max-width: 768px) {
.nav {
display: flex;
width: 70%;
flex-wrap: wrap;
}
.filter-button {
position: inherit;
}
.car-list {
flex-direction: column;
align-items: center;
}
.car {
width: 100% !important;
margin: 10px 0;
}
.hmam-footer .hmam-bottom img {
width: 50px;
margin-bottom: 10px;
margin-left: 40vw;
}
.car:nth-child(even):nth-of-type(2n+1),
.car:nth-child(even):nth-of-type(2n+2) {
width: calc(0% - 0rem);
}
}

@media (min-width: 769px) and (max-width: 1024px) {
.nav {
display: flex;
width: 90%;
flex-wrap: wrap;
}
.filter-button {
position: inherit;
}
.car-list {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
}
.car {
width: 100% ;
margin: 10px 0;
}
.hmam-footer .hmam-bottom img {
width: 50px;
margin-bottom: 10px;
margin-left: 40vw;
}
}

@media (min-width: 1000px) and (max-width: 1280px) {
.nav {
display: flex;
width: 63%;
flex-wrap: wrap;
}

.car-list {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
}

.filter-button {
position: absolute;
}
.car:nth-child(odd):nth-of-type(3n+1),
.car:nth-child(odd):nth-of-type(3n+2),
.car:nth-child(odd):nth-of-type(3n+3) {
width: calc(33.333% - 1rem);
}

.car:nth-child(even):nth-of-type(2n+1),
.car:nth-child(even):nth-of-type(2n+2) {
width: calc(30% - 0rem);
}
.car {
margin: 0px;
}
}
