@font-face {
    font-family: 'custom_font'; /* Choose a name for your font */
    src: url('../fonts/VCR_OSD_MONO_1.001.ttf') format('truetype'); /* Path to your TTF file */
    font-weight: normal; /* Adjust as needed */
    font-style: normal; /* Adjust as needed */
}

body {
    font-family: 'custom_font', monospace; /* A monospace font fits the aesthetic */
    margin: 20px;
    background-color: #000000;
    color: #ffffff;
    font-size: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

}

.header-left {
    font-size: 1.2em;
    line-height: 1.4;

    align-self: flex-start; /* This line was added */
}

.header-right {
    position: fixed; /* This anchors it to the viewport */
    top: 20px;      /* Distance from the top of the viewport */
    right: 20px;    /* Distance from the right of the viewport */
    z-index: 100;   /* A higher z-index to ensure it's on top of everything */
}

/* NEW STYLES ADDED FOR THE IMAGE BUTTON */
.arrow-button {
    display: block;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.arrow-button img {
    width: 60px;
    height: 60px;
    display: block;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.arrow-button:hover img {
    filter: invert(19%) sepia(97%) saturate(7400%) hue-rotate(357deg) brightness(98%) contrast(120%);
    transform: scale(0.9);
}

.image-grid {
    display: flex; /* Add this line */
    align-items: center; /* Add this line to center the image vertically */
    height: 100%;
}

.image-grid img {
    max-height: calc(100vh - 120px); /* Sets max height to fit the container */
    width: auto;                    /* Allows the width to scale proportionally */
    display: inline-block;          /* Change to inline-block for proper horizontal layout */
    object-fit: cover;
}

.scrollable-content {
    overflow-x: auto;         /* Enables horizontal scrolling */
    overflow-y: hidden;       /* Disables vertical scrolling */
    width: 100%;
    height: calc(100vh - 120px); /* Adjusts height to fit between fixed header/footer */
    white-space: nowrap;      /* Prevents images from wrapping to the next line */
}

.fade-in-container {
  opacity: 0;
  transform: translate(0, 10vh);
  transition: opacity 1s ease-in-out;
}

.fade-in-container.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Footer Arrows */
.footer-arrows {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* --- NEW STYLES FOR FULLSCREEN MODAL --- */
.fullscreen-modal {
    display: none; /* Added */
    align-items: center; /* Added */
    justify-content: center; /* Added */
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 70px;
    font-family: 'custom_font', monospace;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
    opacity: 0.5;
}

/* Add a hover effect for the text */
.close-button:hover,
.close-button:focus {
    color: #f51616;
    opacity: 1;

}
/* --- END NEW STYLES FOR FULLSCREEN MODAL --- */

/* Media Query for typical iPad screen widths (e.g., 768px to 1024px or larger) */
@media (max-width: 1000px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* 3 columns for landscape iPad */
        /* If you want 2 rows specifically, you don't need to specify grid-template-rows,
           as it will auto-arrange based on the number of items and columns.
           Since you have 6 images, 3 columns will naturally result in 2 rows. */
    }
}

/* Media Query for smaller screens (e.g., phones) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start; /* Or initial */
    }

    .header-left {
        margin-right: 0; /* Reset for mobile */
        margin-bottom: 10px;
    }

    .header-right {
        margin-left: 0; /* Reset for mobile */
        margin-top: 10px;
        align-self: flex-end;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .footer-arrows {
        justify-content: right;
    }
}

/* Further optimization for very small screens if needed */
@media (max-width: 480px) {
    body {
        margin: 10px;
    }
    .header-left {
        font-size: 1em;
    }
    .arrow-button img {
        width: 40px;
        height: 40px;
    }
}

