@font-face {
    font-family: "FreePixel";
    src: url("https://sadhost.neocities.org/fonts/FreePixel.ttf") format("truetype");
}

:root {
    --background: rgba(10, 20, 15, 0.8); /* dark forest glass */
    --main-color: #2E8B57;              /* sea green */
    --main-color-dk: #1C3B2A;           /* dark moss */
    --accent-1: #A4D792;                /* soft fern green */
    --accent-2: #66CDAA;                /* medium aquamarine */
    --content-spacing: 5px;
   --background-img: url('../images/image-1ovshh19.png');
    /* nature bar background */
    --text-color: #E0F2E9;
    --link-color: var(--accent-1);
    --border: 1px solid #1C3B2A;
}
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "FreePixel", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--background);
    background-image: var(--background-img);
    background-position: center;
    background-attachment: fixed;
    overflow-y: auto;
    max-width: 100%;
}

.body {
    background-color: rgba(28, 43, 25, 0.65); /* Semi-transparent overlay for depth */
    color: var(--text-color);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    max-width: 4000px;
}

.container {
    display: inline-block;
    text-align: center;
}

.head {
    color: var(--accent-2);
    text-align: center;
}

p {
    text-align: center;
    word-wrap: break-word;
    font-size: 1.1em;
    line-height: 1.5em;
}

a {
    position: relative;
    color: var(--accent-1);
    text-decoration: none;
}

a:before {
    content: "";
    height: 2px;
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    background-color: var(--accent-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover {
    color: var(--accent-2);
}

a:hover:before {
    transform: scaleX(1);
}

.list {
    display: flex;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    margin-bottom: 20px;
}

/* Image containers */
.image1, .image2, .image3, .image4, .image5 {
    max-width: 150px;
    max-height: 400px;
    overflow: hidden;
    margin: 10px;
    transition: max-width 0.3s ease, max-height 0.3s ease;
}

/* Consistent image aspect + hover effect */
.image1 img, .image2 img, .image3 img, .image4 img, .image5 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 9/16;
    border: none; /* No border */
    border-radius: 6px;
    transition: transform 0.1s cubic-bezier(0.68, -0.55, 0.27, 1.55), filter 0.1s ease-out; /* Snappy transition */
}

.image1 img:hover, .image2 img:hover, .image3 img:hover, .image4 img:hover, .image5 img:hover {
    filter: brightness(1.2); /* Quick brightness boost */
    transform: scale(1.1) translateY(-5px); /* Quick, snappy scale & small vertical jump */
}


.list #same {
    transition: transform 0.1s cubic-bezier(0.68, -0.55, 0.27, 1.55), filter 0.1s ease-out; /* Snappy transition */
    filter: brightness(0.6);
}

.list #same:hover {
    filter: brightness(1);
   transform: scale(1.1) translateY(-5px); /* Quick, snappy scale & small vertical jump */
}

.list #same:hover + #same {
    filter: brightness(0.8);
}

/* Add these styles to your about.css file */

/* Positioning for the left-top corner GIF */
.gif-left {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000; /* Ensure the GIF stays above other content */
}

/* Positioning for the right-top corner GIF */
.gif-right {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000; /* Ensure the GIF stays above other content */
}

/* Optional: Make sure the images don't overflow the page */
.gif-left img, .gif-right img {
    width: 150px; /* Adjust based on the size you want */
    height: auto;
}


/* Social nav */
nav.social {
    display: inline-block;
    padding: 0;
    margin-bottom: 18px;
}

nav.social li {
    list-style: none;
    float: left;
}

nav.social li a {
    padding: 5px;
}

nav.social li:first-child a {
    padding-left: 0;
}

nav.social li a img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    filter: brightness(0.9);
}
@media (max-width: 768px) {
    html, body {
        height: auto;
        overflow-y: auto;
        align-items: flex-start; /* Align content to top on mobile */
        background-size: cover;
        padding: 10px;
    }

    .body {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 90%;
        max-width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    /*.list {
        flex-direction: column;
        align-items: center;
    }*/

    .gif-left img, .gif-right img {
        width: 100px;
    }
}
