:root {
    /* Color palette */
    --primary-bg: rgba(0, 0, 0, 1);
    --text-light: rgba(240, 240, 240, 1);
    --border-color: #fff;
    --overlay-bg: rgba(0, 0, 0, 0.8);

    /* Gradients */
    --gradient-item: linear-gradient(to bottom, rgba(39, 78, 77, 1), rgba(24, 47, 47, 1));
    --gradient-title: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(150, 150, 150, 1));
    /*--gradient-header: linear-gradient(to right, rgba(0, 250, 247, 1.0), rgba(250, 46, 0, 1.0));*/
    --gradient-header: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(250, 46, 0, 1.0));
    --gradient-divider: linear-gradient(to right, rgba(24, 47, 47, 1), rgba(0, 250, 247, 1.0));


    /* Spacing */
    --spacing-none: 0px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;

    /* Typography */
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    --font-size-base: 18px;
    --font-size-sm: 16px;
    --font-size-xs: 12px;
}

/* Base styles */
body {
    background-color: var(--primary-bg);
    font-size: var(--font-size-base);
    color: var(--text-light);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/bananas.png");
    background-repeat: repeat;
    background-size: 100px 120px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.flex-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: min(70%, 1200px);
    min-width: 650px; /* Remove fixed minimum */
    padding: 0 20px; /* Add side padding for mobile */
    margin: 0 auto;
}

.flex-item {
    padding: var(--spacing-sm);
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    background: var(--gradient-item);
}

.flex-item-subblog {
    box-sizing: border-box;
    margin-bottom: var(--spacing-md);
}

.flex-item:first-child {
    margin-bottom: 3%;
}

.flex-item-title {
    position: relative;
    padding: 0;
    align-items: stretch;
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    overflow: visible;
}

.flex-item-title-content {
    display: flex;
    flex-direction: row;
    padding: 0;
    align-items: stretch;
    border: 0;
    margin: 0;
    background: var(--gradient-title);
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;

}
.image-container img,
.image-container iframe {
    border: 2px solid #00FAF7;
    box-shadow: 0 0 10px rgba(0, 250, 247, 0.5);
}

/*.image-container {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    margin: 50px 0;*/

/*}*/
/*.image-container img,*/
/*.image-container iframe {*/
/*    background: linear-gradient(135deg, rgba(0, 250, 247, 0.1), rgba(250, 46, 0, 0.1));*/
/*    border: 2px solid;*/
/*    border-image: linear-gradient(135deg, #00FAF7, #FA2E00) 1;*/
/*    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);*/
/*}*/

/*.image-container {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    margin: 50px 0;  !* or use a larger spacing variable if you have one *!*/
/*}*/
/*.image-container img,*/
/*.image-container iframe {*/
/*    border: 2px solid #00FAF7;*/
/*    animation: borderPulse 10s ease-in-out infinite;*/
/*    box-shadow: 0 0 10px rgba(0, 250, 247, 0.5);*/
/*}*/

@keyframes borderPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 250, 247, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 250, 247, 0.8), 0 0 35px rgba(250, 46, 0, 0.4);
    }
}

.promo-text-overlay {
    position: absolute;
    top: 3%;
    left: -2%;
    width: 55%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.mmba-logo-overlay {
    position: absolute;
    top: -18%;
    left: 50%;
    width: 50%;
    height: auto;
    z-index: 3;
    pointer-events: none;
    animation: swingBackAndForth 10s ease-in-out infinite alternate;
    transform-origin: center center;
}

.mmba-logo-overlay-left {
    position: absolute;
    top: -10%;
    left: -6%;
    width: 44%;
    height: auto;
    z-index: 3;
    pointer-events: none;
    /*animation: swingBackAndForth 10s ease-in-out infinite alternate;*/
    transform-origin: center center;
    opacity: 0.1;
}

.exoroids-logo-overlay {
    position: absolute;
    top: -18%;
    left: 25%;
    width: 80%;
    height: auto;
    z-index: 3;
    pointer-events: none;
    /*animation: swingBackAndForth 10s ease-in-out infinite alternate;*/
    transform-origin: center center;
}

.mmba-titlebanner-overlay {
    position: absolute;
    top: 25%;
    left: 55%;
    width: 50%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.mmba-honestwork-overlay {
    position: absolute;
    top: 46%;
    left: 80%;
    width: 30%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.text-image-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.text-image-text {
    flex: 1;
}

.text-image-side {
    max-width: 400px;
    height: auto;
}

.title-image-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 0;
    overflow: hidden; /* This prevents the image from spilling outside the container */
}

#title-image {
    width: 100%;
    height: auto;
    transform: scale(1.2);
    animation: titleImageAnimation 8s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes titleImageAnimation {
    0% {
        transform: scale(1.1) translateX(1%);
    }
    100% {
        transform: scale(1.2) translateX(4%);
    }
}

@keyframes horizontalMove {
    0% {
        transform: translateX(1%);
    }
    100% {
        transform: translateX(4%);
    }
}


.thumbnail {
    max-width: 40%;
    cursor: pointer;
    transition: transform 0.3s;
    margin: var(--spacing-lg);
}

#title-image {
    width: 100%;
    height: auto;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    justify-content: center;
    align-items: center;
}

#full-size-image {
    max-width: 90%;
    max-height: 90%;
}

.small-hint {
    padding: var(--spacing-none);
    padding-left: var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: normal;
    color: rgba(0.2, 0.2, 0.2, 1);
}

/* Navigation links */
.link-left {
    padding: var(--spacing-sm);
    padding-bottom: 0;
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
}

.link-left:visited,
.link-left-tight:visited {
    padding: var(--spacing-sm);
    padding-bottom: 0;
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
}

.link-left-tight {
    padding: var(--spacing-sm);
    padding-left: 0;
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
}

.link-right {
    padding: var(--spacing-xs);
    margin-left: auto;
    text-decoration: none;
}
.link-right:visited {
    padding: var(--spacing-xs);
    margin-left: auto;
    text-decoration: none;
}

/* Content sections */
.pin-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block;
}

.blog-header {
    padding: var(--spacing-xs) 0;
    padding-left: 10px;
    background: var(--gradient-header);
    cursor: pointer;
    user-select: none;
}

/* Page headings are h1 for SEO, but keep the look of the h2 blog headers */
h1.blog-header {
    font-size: 1.5em;
    /*margin: 0.83em 0;*/
}

.blog-header::before {
    content: "▼";
    display: inline-block;
    margin-right: var(--spacing-sm);
    transition: transform 0.2s ease;
}

.flex-item.collapsed .blog-header::before {
    transform: rotate(-90deg);
}

.flex-item.collapsed > :not(.blog-header) {
    display: none;
}

.flex-item.collapsed {
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
}

.flex-item.collapsed .blog-header {
    margin: 5px;
}

.blog-divider {
    padding: var(--spacing-xs) 0;
    padding-left: 10px;
    background: var(--gradient-divider);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

li.done-list {
    color: #00FAF7;
}

li.wip-list {
    color: #FA2E00;
}

.animated-text-done span {
    display: inline-block;
    animation: waveText 0.8s ease-in-out infinite;
    color: #00FAF7;
    font-weight: bold;
}

.animated-text-done span:nth-child(2) {
    animation-delay: 0.1s;
}

.animated-text-done span:nth-child(3) {
    animation-delay: 0.2s;
}

.animated-text-done span:nth-child(4) {
    animation-delay: 0.3s;
}

.animated-text-wip span {
    display: inline-block;
    animation: waveText 0.8s ease-in-out infinite;
    color: #FF0000;
    font-weight: bold;
}

.animated-text-wip span:nth-child(2) {
    animation-delay: 0.1s;
}

.animated-text-wip span:nth-child(3) {
    animation-delay: 0.2s;
}

.animated-text span {
    display: inline-block;
    animation: waveText 0.8s ease-in-out infinite;
}

.animated-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.animated-text span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes waveText {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

a {
    color: #DD0000;
    font-weight: bold;
    text-decoration: none;
}

a:visited {
    /*color: #00A5A2;*/
    color: #00FAF7;
    font-weight: bold;
    text-decoration: none;
}

a:active,
a:focus {
    color: #ff0000;
    font-weight: bold;
    text-decoration: none;
}

.swing-image {
    animation: swingBackAndForth 1.5s ease-in-out infinite alternate;
    transform-origin: center center;
}

/* Quotation Section */
.quotation-section {
    position: relative;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid #00FAF7;
    /*background: rgba(24, 47, 47, 0.5);*/
    background: rgba(50, 0, 0, 0.5);
    font-style: italic;
    color: var(--text-light);
}

.quotation-marks {
    position: absolute;
    font-size: 4rem;
    line-height: 1;
    color: #00FAF7;
    opacity: 0.3;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', serif;
}

.quotation-marks-open {
    top: 0;
    left: 10px;
}

.quotation-marks-close {
    bottom: 0;
    right: 10px;
    transform: rotate(180deg);
}

.quotation-content {
    position: relative;
    padding: var(--spacing-md) 0;
    padding-left: var(--spacing-md);
}

.quotation-content p {
    margin: var(--spacing-sm) 0;
    line-height: 1.6;
}

.quotation-content p:first-child {
    margin-top: 0;
}

.quotation-content p:last-child {
    margin-bottom: 0;
}

@keyframes swingBackAndForth {
    from {
        transform: rotate(-1deg);
    }

    to {
        transform: rotate(1deg);
    }
}

@media (max-width: 700px) {
    .text-image-row {
        flex-direction: column;
    }

    .text-image-side {
        max-width: 100%;
    }
}