body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #2d3436;
    position: relative;
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-image, #background-image-sub {
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    animation: panImage 60s linear infinite;
}

@keyframes panImage {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10%, -10%);
    }
    100% {
        transform: translate(0, 0);
    }
}

header {
    background: linear-gradient(135deg, #0984e3, #00b894);
    color: white;
    text-align: center;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    opacity: 0.9;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.center {
    font-size: 16px;
    margin-top: 10px;
}

main {
    padding: 20px;
    padding-bottom: 80px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 600px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-box {
    background: linear-gradient(135deg, #74b9ff, #55efc4);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #2d3436;
    transition: transform 0.2s, box-shadow 0.2s;
    max-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.menu-box:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.menu-box i {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

a.menu-box {
    text-decoration: none;
}

footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
    opacity: 0.9;
}

#submenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.submenu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 80px;
}

.back {
    width: 100%;
    background: linear-gradient(135deg, #d63031, #e17055);
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.modal-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #dfe6e9;
}

.modal-content button {
    background: #00b894;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}