/* Move the entire CSS content from the <style> tag here */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background-color: #1a1a1a;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #222;
    border-bottom: 1px solid #333;
}

.controls select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #444;
    background-color: #1a1a1a;
    font-size: 1rem;
    color: #e2e8f0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 0.5rem);
    background-position-y: 50%;
}

.header {
    background: linear-gradient(135deg, #000, #222);
    color: #00ff66;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    animation: pulse 2s infinite;
}

.header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.05rem;
    text-shadow: 0 0 10px #00ff66;
}

.business-hours {
    background-color: #222;
    color: #00ff66;
    padding: 1rem;
    border-bottom: 1px solid #333;
    text-align: center;
}

.section {
    padding: 1rem;
}

.section-title {
    background-color: #333;
    color: #00ff66;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    animation: slideIn 0.5s ease-out;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.menu-item {
    background-color: #222;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    border: 1px solid #333;
    animation: fadeIn 0.5s ease-out;
}

.menu-item:hover {
    transform: scale(1.02);
}

.item-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.price {
    color: #00ff66;
    font-weight: 700;
}

#main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00ff66;
    text-align: center;
    z-index: 3000;
}

#main-menu h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.7);
}

#start-button {
    background-color: #1a1a1a;
    border: 2px solid #00ff66;
    border-radius: 5px;
    padding: 1rem 2rem;
    color: #00ff66;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-button:hover {
    background-color: #222;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding: 1.5rem;
    }

    .controls {
        flex-direction: row;
        padding: 1.5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .controls {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .controls select {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .menu-item {
        margin-bottom: 0.75rem;
    }

    .item-header {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .video-container {
        max-height: 200px;
    }

    .video-player {
        max-height: 200px;
    }

    .section-title {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .business-hours {
        padding: 0.75rem;
    }

    .business-hours h3 {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .business-hours p {
        font-size: 0.875rem;
        margin: 0.25rem 0;
    }
}

.favorites-btn {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.favorites-btn:hover {
    background-color: #222;
    border-color: #00ff66;
    color: #00ff66;
}

@media (min-width: 640px) {
    .favorites-btn {
        margin: 0;
    }
}

/* Favorite button and animation styles */
.item-header {
    position: relative;
}

.favorite-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 5rem;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
}

.favorite-animation.animate {
    animation: favoritePopup 0.5s ease-out forwards;
}

@keyframes favoritePopup {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.favorite-heart-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: favorite-pop 1s ease-out forwards;
    pointer-events: none;
}

@keyframes favorite-pop {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.menu-item[data-favorite="true"] .favorite-button {
    animation: favoritePulse 0.3s ease-in-out;
}

/* Add mobile touch feedback */
@media (hover: none) {
    .menu-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .favorite-button {
        padding: 12px;  /* Larger touch target */
    }
}

/* Double tap instruction (optional) */
.double-tap-hint {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    padding: 0.5rem;
    margin-top: 1rem;
}

.back-btn {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
    margin: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #222;
    border-color: #00ff66;
    color: #00ff66;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .menu-item:hover {
        transform: none;
    }

    .controls select {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Video Player Enhancements */
.video-container {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.video-container.active {
    max-height: 500px;
    margin: 0.5rem 0;
}

.video-player {
    width: 100%;
    border-radius: 0.5rem;
    background-color: #000;
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Touch Feedback */
.menu-item:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Better Video Controls */
video::-webkit-media-controls {
    background-color: rgba(0,0,0,0.5);
    border-radius: 0.5rem;
}

video::-webkit-media-controls-panel {
    padding: 0.5rem;
}

