/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header{
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    height: 10vh;
    max-height: 10vh;
    overflow: hidden;
    background-color:#333;
    color: white;
    position: fixed;
    z-index: 1000;
}
footer{
    text-align: center;
}
.logo{
    width: 85%;
    margin: auto;
    visibility: visible;
    a{
        padding-left:12%;
        font-size: 210%;
    }
}

.user{
    float: right;
    width: 15%;
    text-align: center;
    margin: auto;
    img{
        height: 5vh;
    }
    p{
        margin: 0%;
        padding: 0%;
        font-size: 80%;
    }
}
/* Sidebar Navigation */
.sidebar {
    display: none;
    width: 15%;
    background-color: #333;
    height: 100vh;
    position: fixed;
    margin: 10vh auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}
.menutypetime{
    text-align: center;
    margin: auto;
    #mealType{
        font-size: 100%;
        margin: auto;
    }
    #ordertime{
        font-size:50%;
    }
}
.sidebar.active {
    display: block;
    transform: translateX(0);
}
.sidebar ul {
    list-style: none;
    padding-left: 5%;
    margin: 5vh auto;

}

.sidebar ul li a {
    color: white;
    padding: 6%;
    margin: 2% auto;
    border-radius: 10px ;
    text-decoration: none;
    display: block;
    /* border-bottom: 10px solid rgb(74, 227, 212); */
}

.sidebar ul li a:hover{
    background-color: #555;
}
.sidebar ul li a.active {
    color: black;
    background-color: white;
    border-radius: 30px 0px 0px 30px;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    margin: auto;
    position: fixed;
    top: 2vh;
    left: 2%;
    z-index: 1001;
    cursor: pointer;
    img{
        height: 6vh;
    }
}

/* Main Content */
.main-content {
    transition: margin-left 0.3s ease;
    min-height: calc(100% + 2vh);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto 2%;
    padding: 10vh 0;
}

/* Menu cards */
.menu-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 15px;
    padding: 15px;
    text-align: center;
    width: 25%;
}

.imgformenu {
    width: 100%;
    height: 70px;
    border-radius: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* object-fit: cover; */
}

.menu-item h3 {
    margin: 10px 0;
    color: #333;
}

.menu-item p {
    color: #777;
    font-size: 14px;
}
.menu-item .description{
    max-height: 6vh;
    overflow: scroll;
}
.description::-webkit-scrollbar {
    display: none;
}
.menu-item .price {
    font-size: 16px;
    color: #FF5733;
    font-weight: bold;
}

.menu-item button {
    background-color: #FF5733;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-end; /* Always align the button at the bottom */
}

.menu-item .quantity {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.menu-item .quantity span {
    font-size: 20px;
    margin: 0 10px;
}

/* Sticky button */
#sticky-btn {
    position: fixed;
    bottom: 5px;
    width: 100%;
    text-align: center;
}

#finalOrderBtn {
    background-color: #FF5733;
    color: white;
    border: none;
    padding: 15px;
    font-size: 100%;
    width: 80%;
    max-width: 400px;
    cursor: pointer;
    border-radius: 30px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;

}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}


/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1005;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    
}

.popup-content {
    background-color: white;
    margin: 5% auto;
    padding: 4%;
    width: 70%;
    position: relative;
    border-radius: 20px;

}
#registeralert,#loginalert{
    font-size: 80%;
    color: red;
}

#gif{
    height: 30vh;
    width: 100%;
}
#feedbackimage{
    background-image: url(../images/3.gif);
    background-size: 60%;
    background-repeat: no-repeat;
    /* border: 1px solid red; */
    height: 100%;
    width: 40%;
    margin: auto 30%;
}
#message{
    width: 100%;
    height: 20vh;
    text-align: center;
}

/* Tab content */
.tabcontent {
    display: none; /* Hide tab content */
}

.tabcontent input {
    width: 95%; /* Full width inputs */
    font-size: 90%;
    padding: 1%; /* Padding */
    margin: 1% 0; /* Margin */
    text-align: center;
    border: 1px solid #ccc; /* Border */
    border-radius: 5px; /* Rounded corners */
}
.password-container {
    position: relative;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    cursor: pointer;
}
/* Style for the remember-me section */
.remember-me {
    display: flex;  /* Aligns items in a horizontal row */
    align-items: center;  /* Vertically centers the checkbox with the label */
    gap: 5px;  /* Adds a little space between the checkbox and label */
}

/* Style for the checkbox */
.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Optional style for the label */
.remember-me label {
    font-size: 14px;
    cursor: pointer;  /* Changes cursor to pointer when hovering over the label */
}
/* Optional style for the label */
.remember-me a{
    font-size: 100%;
    color: #000;
    text-decoration: underline;
    cursor: pointer;  /* Changes cursor to pointer when hovering over the label */
}


button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    padding: 10px; /* Padding */
    border-radius: 5px; /* Rounded corners */
    margin: 1% auto;
    cursor: pointer; /* Pointer cursor */
    width: 100%; /* Full width */
}

button:hover {
    background-color: #45a049; /* Darker green on hover */
}
/* Custom Styles for Radio and Checkbox */
input[type="radio"] {
    /* display: none; */
}

input[type="radio"] + label {
    position: relative;
    /* padding-left: 35px; */
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    display: inline-block;
    margin-bottom: 10px;
}

/* Circle for radio button */
input[type="radio"] + label::before + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #eee;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Square for checkbox */
input[type="checkbox"] + label::before {
    border-radius: 4px; /* Square checkbox */
}

/* Inner circle for selected radio button */
input[type="radio"]:checked + label::after {
    content: "";
    height: 11px;
    border-radius: 50%;
    background-color: #4CAF50; /* Green for selected */
}



input[type="radio"]:hover + label::before:hover + label::before {
    background-color: #ddd;
}

input[type="radio"]:checked + label::before:checked + label::before {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}
/* Style for the alert popup */
.alert-popup {
    display: none;
    position: fixed;
    z-index: 1005;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.alert-popup-content {
    background-color: white;
    padding: 2%;
    border-radius: 8px;
    width: 77%;
    left: 9%;
    top: 36%;
    text-align: center;
    position: relative;
    p{
        font-size:50%;
    }
}

.alert-popup-content .ok-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    width: 20%;
    border-radius: 5px;
    cursor: pointer;
}

.alert-popup-content .ok-btn:hover {
    background-color: #218838;
}



/* Profile Section */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.profile-item {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.6;
}

.profile-item label {
    font-weight: bold;
    color: #12c2e9;
}

/* Orders Section */
.order-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.order-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

/* About Section */
.about-container {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.about-item {
    margin-bottom: 20px;
    color: #12c2e9;
    font-size: 18px;
    line-height: 1.8;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* For screens smaller than 768px, make the sidebar hidden initially */
    .sidebar {
        width: 25%; /* Sidebar will take 60% of the screen */
        transform: translateX(-100%);
    }

    .sidebar.active {
        display: block;
        transform: translateX(0);
    }
    .hamburger{
        display: block;
    }
    .logo{
        a{
            font-size:100%;
        }
        text-align:center;
        margin-left: 16%;
        width: 31%;
    
    }
    .user{
        width: 35%;
    }   
    .popup-content {
        margin: 14% auto;
        overflow: scroll;
    }
    #main-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .menu-item {
        width: 33%;
    }
    .menu-item img{
        height: 10vh;
    }
    .modal-content{
        margin: 30% auto;
    }
    table{
        font-size: 60%;
    }
    table th{
        width: 10%;
    }
    .tabcontent input {
        padding: 2% 0%; /* Padding */
        margin: 2% 0; /* Margin */
    }
}

@media screen and (max-width: 480px) {
    /* Further adjustments for smaller mobile screens */
    .sidebar {
        transform: translateX(-100%);
        width: 45%; /* Sidebar will take 60% of the screen */
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .popup-content {
        margin: 30% auto;
        font-size: 70%;
    }
    .hamactive{
        display: block;
    }
    .logo{
        text-align:center;
        margin-left: 16%;
        width: 31%;
    }
    .orders-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 50%;
    }
    .menu-item {
        width: 25%;
    }
    .menu-item h3,p {
        color:#FF5733;
        font-size: 60% !important;
    }
    .alert-popup-content p{
        font-size:150% !important;
    }
    .description{
        height: 4vh !important;
    }
    .modal-content{
        margin: 40% auto;
    }
    .tabcontent input {
        padding: 4% 0%; /* Padding */
        margin: 4% 0; /* Margin */
    }
}