/* General Styles */
body {
    background-color: #1f1f29;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
}

/* Menu Container */
.menu-container {
    position: relative;
    z-index: 950;
}

/* Menu Toggle Button */
#menu-toggle-button {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
    position: fixed;
    font-size: 30px;
    z-index: 999;
    background: none;
    border: none;
    color: #aaaaaa;
    cursor: pointer;
    /* Add your preferred styling for the button */
}

/* Menu Bar */
.menu-bar {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 998; /* 998 for menu-bar, 1 for menu-bar-hidden */
    background-color: #333;
    max-width: 720px;
    border-width: 0px 2px 2px 2px;
    border-style: none outset outset outset;
    border-radius: 0px 0px 10px 10px;
    transition: max-height 1.5s ease-out;
    max-height: 1000px;
    overflow: hidden;
}

/* Menu Bar - Hidden */
.menu-bar-hidden {
    display: flex;
    justify-content: center;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1; /* 998 for menu-bar, 1 for menu-bar-hidden */
    background-color: #33333300;
    max-width: 720px;
    border-width: 0px;
    border-style: none;
    transition: max-height 1.5s ease-out;
    max-height: 1000px;
    overflow: hidden;
}

/* Menu Items */
.menu-bar ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #333; /* #1f1f2900 for menu-bar-hidden */
}

.menu-bar-hidden ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #1f1f2900; /* #1f1f2900 for menu-bar-hidden */
}

.menu-bar li a {
    display: block;
    color: white; /* #1f1f29 for menu-bar-hidden */
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-bar-hidden li a {
    display: block;
    color: #1f1f29; /* #1f1f29 for menu-bar-hidden */
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-bar li a:hover {
    background-color: #111;
}

.menu-bar-hidden li a:hover {
    background-color: #1f1f2900;
}

.menu-bar li a:active {
    background-color: blue;
}

.menu-bar-hidden li a:active {
    background-color: #1f1f2900;
}

.menu-bar li a.selected {
    background-color: blue;
}

/* Collapsed Menu Bar */
.menu-bar.collapsed, .menu-container.collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.menu-bar-hidden.collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #33333300;
}

/* Content */
.content {
    width: 100%;
    float: none;
    padding-top: 0px;
}

/* Card */
.card {
    background-color: #a4e2ec3f;
    border: 1px solid #ccc;
    margin: 10px;
    padding: 10px;
    text-align: center;
    border-radius: 30px;
    border-style: outset;
    transition: box-shadow 0.3s ease;
    max-width: 720px;
    margin: 0 auto 20px auto;
}

.card:hover {
    box-shadow: 0 0 10px #9ecaed;
}

.card img {
    height: 50px;
    object-fit: cover;
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 0px;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 45px;
    padding-left: 20px;
    padding-right: 20px;
    border: 3px solid #f00;
    border-radius: 0px;
    border-style: outset;
    animation: color-change 10s infinite;
}

@keyframes color-change {
    0%, 100% { border-color: #f00; }
    25% { border-color: #0f0; }
    50% { border-color: #00f; }
    75% { border-color: #0ff; }
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

/* Sidebar Toggle */
#sidebarToggle {
    position: fixed;
    top: 10px;
    left: 8px;
    font-size: 30px;
    z-index: 999;
    background: none;
    border: none;
    color: #f00;
    padding-left: 30px;
    animation: color-change2 10s infinite;
    cursor: pointer;
}

@keyframes color-change2 {
    0%, 100% { color: #f00; }
    25% { color: #0f0; }
    50% { color: #00f; }
    75% { color: #0ff; }
}

#sidebarToggle i {
    position: absolute;
    top: 0px;
    left: 0px;
    transition: opacity 0.3s ease;
}

/* Sidebar Scrollbar (Chrome, Edge, Safari) */
.sidebar::-webkit-scrollbar {
    width: 40px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2f2f2f;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888888;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Button Styles */
.addToCart {
    background-color: #4CAF50; /* #f44336 for removeFromCart */
    color: white;
    padding: 10px 24px;
    margin: 10px 2px;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    font-size: 16px;
    max-width: 200px;
}

.removeFromCart {
    background-color: #f44336; /* #f44336 for removeFromCart */
    color: white;
    padding: 10px 24px;
    margin: 10px 2px;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    font-size: 16px;
    max-width: 200px;
}

.addToCart:hover, .removeFromCart:hover {
    opacity: 1;
}
