/* ANIMATION STYLINGS */
/* Glitch Animation */
@keyframes glitch {
    0% { text-shadow: 2px 2px 0 #ff0000, -2px -2px 0 #00ff00; }
    25% { text-shadow: -2px -2px 0 #ff0000, 2px 2px 0 #00ff00; }
    50% { text-shadow: 2px -2px 0 #ff0000, -2px 2px 0 #00ff00; }
    75% { text-shadow: -2px 2px 0 #ff0000, 2px -2px 0 #00ff00; }
    100% { text-shadow: 2px 2px 0 #ff0000, -2px -2px 0 #00ff00; }
}

/* Apply Glitch Effect to Slogan */
.center-slogantext p {
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    animation: glitch 0.8s infinite alternate;
    color: #003F87; /* Blueprint blue */
}

/* Styling for Distorted Text */
.distorted-text {
    font-family: 'Monaco', monospace;
    font-size: 50px;
    font-weight: bold;
    color: #003F87;
    text-align: center;
    position: relative;
    animation: glitch 0.8s infinite alternate;
    margin: 120px auto;
    padding-top: 120px;
    line-height: 1.2;
}

/* GENERAL SITE STYLES */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Monaco', monospace, 'Courier New', Courier, monospace;
    background-color: #f9f9f7;
    color: #003F87;
}

/* TOP NAVIGATION */
nav {
    width: 100%;
    background-color: #f9f9f7;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 60px;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

nav ul li {
    padding: 12px 16px;
}

nav ul li a {
    text-decoration: underline;
    color: #003F87;
    font-size: 12px;
    display: block;
    text-align: center;
}

nav ul li a:hover {
    color: #A7C7E7;
}

/* INDEX PAGE STYLES */
.center-slogantext {
    text-align: center;
    margin: 150px auto;
    padding-top: 80px;
    font-size: 60px;
    line-height: 1.2;
    color: #003F87;
    position: relative;
    z-index: 1;
}

/* MAP STYLING */
.mapcontainer {
    width: 70%;
    margin: 20px auto;
    border: 0px solid black;
    padding: 10px;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
    background-color: white;
}

#map {
    width: 100%;
    height: 500px;
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .mapcontainer {
        width: 90%;
    }
    #map {
        height: 400px;
    }
}

/* POST PREVIEWS */
.post-previewsindex {
    width: 60%;
    margin: 40px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.post-previews {
    text-align: center;
    margin: 20px 0;
}

/* ABOUT PAGE STYLES */
.responsive-image-container {
    width: 50%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.responsive-image-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.two-column-box {
    width: 70%;
    margin: 40px auto 20px;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #F5F5DC;
}

.column {
    flex: 1;
    padding: 20px;
    margin: 0 10px;
    background-color: #f9f9f7;
}

/* Responsive Columns */
@media (max-width: 768px) {
    .responsive-image-container {
        width: 100%;
    }
    .two-column-box {
        flex-direction: column;
    }
    .column {
        margin-bottom: 20px;
    }
}

/* MINDMAP STYLES */
.node circle {
    fill: #999;
    stroke: #003F87;
    stroke-width: 1.5px;
}

.node text {
    font-family: 'Monaco', monospace;
    font-size: 10px;
    font-weight: bold;
    fill: #003F87;
    text-anchor: middle;
    alignment-baseline: middle;
}

/* Links (lines) between nodes */
.link {
    stroke: #003F87 !important;
    stroke-width: 1px !important;
    fill: none !important;
}

/* BLOG POST STYLING */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    flex: 3;
    margin: 20px auto;
    background-color: #f9f9f7;
    padding: 20px;
    color: #003F87;
}

.content h1, .content h5, .content p {
    color: #003F87;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.video-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
    border: 2px solid #003F87;
    border-radius: 10px;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* SIDEBAR */
.sidebar-menu {
    flex: 1;
    background-color: #f9f9f7;
    padding: 20px;
    margin-left: 20px;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
}

.sidebar-menu ul li {
    margin-bottom: 10px;
}

.sidebar-menu ul li a {
    text-decoration: underline;
    color: #003F87;
}

.sidebar-menu ul li a:hover {
    color: #A7C7E7;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .content, .sidebar-menu {
        width: 100%;
        margin: 0;
    }
}

/* CENTER BLOCK FOR GENERATED TEXT */
.generated-text-container {
    width: 330px;
    margin: 100px auto;
    padding: 20px;
    background-color: #f9f9f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    color: #003F87;
}

/* Special Styling for Ocean Map Page */
.ocean-map nav {
    background-color: black !important;
    color: white !important;
}

/* ✅ GENERAL SITE STYLES REMAIN UNCHANGED */

/* 🟢 SPECIAL STYLING FOR OCEAN MAP PAGE ONLY */
.ocean-map {
    background-color: black !important;
    color: white !important;
}

/* ✅ Ocean Map Page - Navbar */
.ocean-map nav {
    background-color: black !important;
    color: white !important;
}

.ocean-map nav ul li a {
    color: white !important;
}

.ocean-map nav ul li a:hover {
    color: #A7C7E7 !important;
}

/* ✅ Ensure All Text is White */
.ocean-map h1, 
.ocean-map h2, 
.ocean-map h3, 
.ocean-map h4, 
.ocean-map h5, 
.ocean-map h6, 
.ocean-map p, 
.ocean-map a {
    color: white !important;
}

/* ✅ Adjust Backgrounds for Containers */
.ocean-map .container,
.ocean-map .mapcontainer,
.ocean-map .content {
    background-color: #222 !important; /* Dark gray background */
    color: white !important;
    border-color: white !important;
}

/* ✅ Adjust Map Styling for Ocean Map Page Only */
.ocean-map .mapcontainer {
    width: 50% !important; /* Reduce width for smaller map */
    margin: 20px auto;
    background-color: black !important;
    padding: 10px;
    border-radius: 5px;
}

/* ✅ Ensure Map is Visible & Adjusted */
.ocean-map #map {
    width: 100%;
    height: 300px !important; /* Reduce map height */
    border: 2px solid white;
}

/* ✅ Content Wrapper for Ocean Map Page */
.ocean-map .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 70%;
    margin: auto;
}

/* ✅ Text Box (Next to Map) */
.ocean-map .text-box {
    flex: 1;
    padding: 15px;
    background-color: #111; /* Slightly lighter than black */
    color: white;
    border-radius: 5px;
    text-align: left;
    font-size: 16px;
}

/* ✅ Adjust Sidebar for Dark Theme */
.ocean-map .sidebar-menu {
    background-color: #111 !important;
    color: white !important;
}

.ocean-map .sidebar-menu ul li a {
    color: white !important;
}

.ocean-map .sidebar-menu ul li a:hover {
    color: #A7C7E7 !important;
}

/* ✅ Responsive Design (Ensure Proper Layout on Mobile) */
@media (max-width: 768px) {
    .ocean-map .content-wrapper {
        flex-direction: column;
        width: 90%;
    }

    .ocean-map .mapcontainer,
    .ocean-map .text-box {
        width: 100% !important;
    }

    .ocean-map #map {
        height: 250px !important;
    }
}

/* OVERRIDE for index page: sidebar nav */
.index-sidebar nav {
    width: 100%;
    position: static; /* No fixed position */
    background-color: transparent; /* Remove background if needed */
    height: auto;
    margin-bottom: 20px; /* Space after nav before posts */
}

/* Nav list inside sidebar */
.index-sidebar nav ul {
    flex-direction: column; /* Stack nav links vertically */
    align-items: flex-start; /* Left align them */
}

/* Nav list items inside sidebar */
.index-sidebar nav ul li {
    padding: 8px 0;
}

.index-sidebar nav ul li a {
    font-size: 14px;
    color: blue;
    text-align: left;
}

/* Optional: hover effect for sidebar links */
.index-sidebar nav ul li a:hover {
    color: red;
}