:root {
    --main-color: #f9bd11;
    --sec-color: #000000 ;
}


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

button{
    color: #db1111;
}

html {
    scroll-behavior: smooth;
    background-image: url('images/icons.png');
    background-repeat: repeat;
    background-size: 700px auto;
    background-color: var(--main-color);;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
}


.section-title {
    color: #000000;
    font-size: clamp(20px, 7vw, 27px);
    text-align: center;
    margin: 8px 0px;
    

}

.section-content {
    display: grid;
    gap: 15px;
}

.container {
    max-width: 425px;
    width: 100%;
    background-color: var(--main-color);;
    box-shadow:
        0 0 0 5px black;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--sec-color);;
    font-weight: 600;
    font-size: clamp(16px, 7.5vw, 32px);
}

header {
    background-image: url("images/header.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 90px;
    width: 100%;
    max-width: 425px;
}

#contact {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: var(--main-color);;
    padding: 7px 0px;
    width: 100%;
    max-width: 425px;
}

#numbers {
    display: flex;
    flex-direction: column;
}


.food-card {
    padding: 1px 1px 15px 1px;
    background-color: var(--sec-color);;
    border-radius: 6px;
    margin: 0px 5px 10px 5px;
    box-shadow: 1px 7px 6px rgba(0, 0, 0, 0.3);
}

.food-img {
    height: 100%;
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

hr {
    border: none;
    background-color: var(--main-color);;
    width: 80%;
    margin: 3px auto;
    opacity: 100%;
    height: 4px;
    border-radius: 50px;
}

.food-name {
    text-align: center;
    padding-top: 4px;
    color: var(--main-color);;
    font-weight: bolder;
    font-size: clamp(16px, 7vw, 30px);
}

.food-price {
    text-align: center;
    color: var(--sec-color);;
    font-weight: bolder;
    font-size: clamp(12px, 4vw, 18px);
}

.add-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px 8px 10px;
    margin-right: 13px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.add-btn:hover {
    transform: scale(1.03);
}

.add-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


#order-btn {
    position: fixed;
    bottom: 8%;
    left: 7%;
    background-color: var(--main-color);;
    color: var(--sec-color);;
    border: none;
    border-radius: 8px;
    padding: 5px 15px;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#order-btn:hover {
    transform: scale(1.05);
}

#order-btn:active {
    transform: scale(0.97);
}









.dialog {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.dialog.hidden {
    display: none;
}

.dialog-box {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.dialog-box h2 {
    margin-bottom: 15px;
}

.dialog-box input,
.dialog-box textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #aaa;
    border-radius: 10px;
    font-size: 16px;
}

.dialog-box button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: var(--main-color);;
    color: white;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}




.sticky-nav {
    background-color: black;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* إخفاء شريط التمرير في Firefox */
    -ms-overflow-style: none; /* إخفاء شريط التمرير في IE */
}

.sticky-nav::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير في Chrome/Safari */
}

.nav-bar {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.nav-bar li {
    scroll-snap-align: start;
    flex-shrink: 0; /* منع تصغير العناصر */
}

.nav-bar a {
    color: #ffd660;
    font-size: 18px;
    padding: 9px 12px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.7;
    position: relative;
    -webkit-user-drag: none; /* لمنع السحب في متصفحات webkit */
    user-drag: none; /* للمتصفحات الأخرى */
}

.nav-bar a.current-active {
    color: #ffd660;
    text-shadow: 0 0 10px rgb(255 190 0);
    opacity: 1;
    margin-right: 3px;
    margin-left: 3px;
    margin-bottom: 2px;
    transform: scale(1.05);
}

/* العنصر الأول فقط عند التحميل */
.initial-active {
    color: #fff;
    text-shadow: 0 0 10px rgb(0 0 0 / 100%);
    opacity: 1;
}

.nav-bar a:hover,
.nav-bar a.active {
    color: #f7ff00;
    text-shadow: 0 0 10px rgb(0 0 0 / 90%);
}

/* تأثير التوهج للنص الحالي */
.nav-bar a.active {
    text-shadow: 0 0 10px rgb(0 0 0 / 90%);
}

.sticky-nav.scrolled {
    background-color: rgba(17, 17, 17, 1); /* تغيير الخلفية عند التمرير */
    transition: background-color 0.3s ease; /* إضافة تأثير انتقال */
}


/* تأثير الكشف عن العناصر عند الاقتراب */
@media (hover: hover) {
    .sticky-nav:hover .nav-bar a {
        opacity: 0.7;
    }
    .sticky-nav .nav-bar a:hover {
        opacity: 1;
        transform: scale(1.05);
    }
}





