@font-face {
    font-family: "Lexend";
    src: url("Fonts/Lexend.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Digidither";
    src: url("Fonts/digidither.otf.woff2") format("woff2");
    font-display: swap;
}

:root{
    --available-height: 600px;
    --tile-gap: 30px;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: #1A1A1A;
    font-family: "Lexend", sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Digidither", sans-serif;
    color: #50FF05;
    text-shadow: rgba(80,255,5,0.86) 0px 0px 11px;
    letter-spacing: 2px;
}

a {
    color: white;
    text-decoration: none;
}

header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 20px;
    gap: var(--tile-gap);
    position: relative;
    z-index: 1000;
}

.logo {
    font-family: "Digidither", sans-serif;
    font-size: 48px;
    color: #50FF05;
    text-shadow: rgba(80,255,5,0.86) 0px 0px 11px;
    letter-spacing: 2px;
}

.logo {
    grid-column: 1 / 2;
    margin: 0;
}

nav {
    grid-column: 2 / -1;
    justify-self: start;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu { margin: 0; padding: 0; justify-content: flex-start; }

.menu li a {
    display: inline-block;
    padding: 8px 6px;
}

li{
    list-style-type: none;
}

.menu > li {
    position: relative;
    cursor: pointer;
}

.menu > li { display: flex; align-items: center; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background: #1A1A1A;
    padding: 10px 0;
    border-radius: 4px;
    min-width: 120px;
    z-index: 1001; 
}

.dropdown-content li {
    padding: 8px 15px;
}

.dropdown-content li:hover {
    background: #bc5d5d;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--tile-gap);
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.column {
    display: flex;
    flex-direction: column;
    gap: var(--tile-gap);
}

.row > .column { min-width: 0; min-height: 0; }

.container { max-width: 100%; }

.container{
    display: block;
    width: 100%;
    background-size: cover;
    background-position: center;
    border: 8px solid #111;
    box-sizing: border-box;
    transition: transform 160ms ease, box-shadow 160ms ease;
    outline: 4px solid transparent;
    flex: 0 0 auto;
    position: relative; /* allow overlays and label positioning */
    overflow: hidden;   /* clip overlay/label to tile */
}


.container.square{
    aspect-ratio: 1 / 1;
}

.container.tall{
    aspect-ratio: 4 / 5;
}

.container:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    outline-color: #50FF05;
}

.container[style*="background-image"] {
    background-color: #666;
}

/* Hover overlay: fully opaque green on hover, label anchored bottom-left */
.container::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(80,255,5,0); /* invisible by default */
    transition: background 160ms ease;
    z-index: 1;
    pointer-events: none;
}

.container::before{
    content: attr(aria-label);
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: white;
    font-family: "Lexend", sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 6px 8px;
    background: transparent;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 2;
    pointer-events: none;
    text-align: left;
    max-width: calc(100% - 24px);
    white-space: pre-wrap;
}

.container:hover::after,
.container:focus::after,
.container:focus-within::after {
    background: rgba(80,255,5,1); /* fully opaque green */
}

.container:hover::before,
.container:focus::before,
.container:focus-within::before {
    opacity: 1;
    transform: translateY(0);
}

.three-column {
    display: grid;
    grid-template-columns: minmax(0, 20%) minmax(0, 60%) minmax(0, 20%);
    gap: var(--tile-gap);
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    flex: 1 1 auto;
    overflow-x: hidden;
}

.three-column > .col {
    box-sizing: border-box;
    min-width: 0;
    padding: 0 12px;
}

.three-column .left,
.three-column .right {
    color: #ddd;
    font-size: 14px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    align-self: start;
    box-sizing: border-box;
    max-width: 100%;
}

.three-column .center {
    color: white;
}

/* Layout inside the center column: split text (left) and image (right) 50/50 */
.three-column .center .center-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.three-column .center .center-text {
    flex: 1 1 50%;
}

.three-column .center .center-image {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.three-column .center .center-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
    border: 8px solid #111;
}

.three-column .col img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    border: 8px solid #111;
    margin: 18px 0;
}

.three-column .col iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    border: 0;
    margin: 18px 0;
}

@media (max-width: 800px) {
    .three-column .col img {
        width: 100%;
    }

    /* stack center inner content on narrow screens */
    .three-column .center .center-inner {
        flex-direction: column;
    }

    .three-column .center .center-image {
        flex: 0 0 auto;
    }
}

@media (max-width: 800px) {
    .three-column {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 18px;
    }

    .row {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        gap: 18px;
    }

    .column {
        gap: 18px;
    }

    .container {
        border-width: 6px;
    }

    .logo{ font-size: 28px; }
    header {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .logo { grid-column: 1; }
    nav { grid-column: 1; }

    .menu{
        display: flex;
        position: static;
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        flex-direction: column;
        gap: 8px;
        z-index: auto;
    }

    .menu .dropdown { position: relative; }

    .menu .dropdown-content {
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 8px;
        display: none;
        min-width: 140px;
        z-index: 70;
    }

    .menu .dropdown:hover .dropdown-content,
    .menu .dropdown:focus-within .dropdown-content {
        display: block;
    }
}