body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    cursor: auto;
    position: relative;

    /* allow scrolling */
    min-height: 100vh;
    display: block; /* switch back to normal flow */
    overflow-x: hidden; /* only hide sideways overflow */
}

.menu-container {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 10px;
    z-index: 1000; /* keep above other content */
}

.menu-toggle {
    cursor: pointer;
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.5s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.menu-toggle svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.menu-toggle.moving {
    margin-top: 50px;
}

.menu-toggle.flipped {
    transform: rotate(180deg);
}

.menu-options {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.021);
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0; /* remove overlap spacing */
}
.menu-options.show {
    max-height: 200px;  /* taller so content can fit */
    opacity: 1;
}

.menu-options a {
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    flex: 1;
    text-align: center;
    border-right: 2px solid #444;
}

.menu-options a:last-child {
    border-right: none;
}

.menu-options a:hover {
    animation: bounce 0.3s;
    background-color: #131313;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes flash {
    0% { background-color: white; }
    50% { background-color: rgb(255, 255, 255); }
    100% { background-color: white; }
}


.flash {
    animation: flash 0.3s ease-in-out;
}

.intro-text {
    margin-top: 2rem; 
    text-align: center;
    line-height: 2;
    margin-bottom: 30px;
    font-size: 20px;
    max-width: 40%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transition: opacity 2s ease;
}

.intro-text.visible {
    opacity: 1;
}

.socom-image {
    display: block;
    margin: 60px auto 0 auto; /* centers image horizontally */
    height: auto;
    opacity: 0;
    transition: opacity 2s ease;
}

.socom-image.visible {
    opacity: 1;
}


.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.icon {
    width: 50px;
    height: 50px;
    margin: 20px;
    transition: transform 0.3s;
    cursor: pointer;
}

.icon:hover {
    transform: scale(2.1);
}

#qrCode {
    margin-top: 20px;
    display: none;
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#staticCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.centered-rune {
    width: 200px;
    height: auto;
    animation: spin 40s linear infinite;
    transition: transform 0.2s;
}

.tome-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tome-container.shifted {
    transform: translateX(100px);
}


.tome {
    display: inline-block;
    position: relative;
    width: 100px;
    text-align: center;
    text-decoration: none;
}

.tome-icon {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.tome:hover .tome-icon {
    transform: translateY(-5px);
}

.book-title {
    display: block;
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    margin-bottom: 5px;
    margin-top: 5px;
}


.tome:hover .book-title {
    opacity: 1;
}

.tome-title-display {
    position: absolute;
    top: 150px;
    text-align: center;
    width: 100%;
    font-size: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.tome-title-display.visible {
    opacity: 1;
}

div#map {
    /* maximum height and width is 75% of screen */
    width: 640px;
    max-width: 75%;
    height: 480px;
    max-height: 75vh;
}

.search-container {
    margin-top: 20px;
    position: relative;
    text-align: center;
}

#searchBar {
    width: 300px;
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#searchResults {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
}

.search-item {
    padding: 10px;
    cursor: pointer;
}

.search-item:hover {
    background-color: #f1f1f121;
}

.faq-section {
    max-width: 800px;
    margin: 8rem auto 4rem;
    padding: 0 1rem;
    font-family: "Courier New", monospace;
    color: #e7d6d6;
    background: rgba(8, 8, 8, 0);
    border: 2px solid #00000000;
    border-radius: 8px;
    box-shadow: 0 0 15px #3e424200;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ffcc;
}

.faq-item {
    border-bottom: 1px dashed #00ffcc;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.faq-question {
    cursor: pointer;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.faq-question:hover {
    animation: bounce 0.3s;
    background-color: rgba(0, 255, 204, 0.1); /* keep your neon hover look */
}

.faq-toggle {
    transition: transform 0.3s ease;
    color: #ff009915;
    text-shadow: 0 0 8px #ff0099;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1rem;
    color: #e6fff7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(90deg);
}