/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    /* Hide scrollbars for full screen effect */
    background-color: #000;
}

/* Background Photos */
#photo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Stretch to fill */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bg-photo.active {
    opacity: 1;
}

/* News Bar */
#news-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #000;
    color: #FFD700;
    /* Yellow */
    overflow: hidden;
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #FFD700;
}

#news-content {
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%;
    /* Start from right */
    font-size: 1rem;
    font-weight: bold;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Menu Bar */
#menu-bar {
    position: absolute;
    top: 40px;
    /* Below news bar */
    left: 0;
    width: 100%;
    background-color: #FFD700;
    /* Yellow */
    z-index: 100;
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #FFD700;
    color: #000;
}

.main-menu {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

.main-menu>li {
    position: relative;
    padding: 15px 20px;
    cursor: pointer;
}

.main-menu>li>a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
}

.main-menu>li:hover {
    background-color: #e6c200;
}

/* Sub Menu */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFD700;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 101;
}

.main-menu>li:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 10px 15px;
    border-bottom: 1px solid #e6c200;
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu li a {
    text-decoration: none;
    color: #000;
    display: block;
}

.sub-menu li:hover {
    background-color: #e6c200;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    color: #000;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Editor Styles */
.editor-item {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.editor-item input,
.editor-item textarea {
    padding: 5px;
}

.editor-item button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    body {
        overflow: auto;
        /* Allow scrolling on mobile if content overflows */
    }

    #news-bar {
        position: fixed;
        /* Keep news visible */
        height: 30px;
    }

    #news-content {
        font-size: 0.9rem;
    }

    #menu-bar {
        position: fixed;
        top: 30px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;
        /* Hide via JS toggle */
        flex-direction: column;
        width: 100%;
        background-color: #FFD700;
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu>li {
        width: 100%;
        border-bottom: 1px solid #e6c200;
        padding: 10px 20px;
    }

    .sub-menu {
        position: static;
        /* Relative to list item on mobile */
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
        display: none;
        /* Keep hidden until hover/click - simplified for touch: always show or click */
    }

    /* For simple mobile touch, we can just show submenus or make them clickable. 
       Hover doesn't work well on touch. 
       Let's make submenus visible if parent is active/hovered, or just style them embedded.
    */
    .main-menu>li:hover .sub-menu {
        display: block;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .editor-item {
        flex-direction: column;
        align-items: stretch;
    }
}