/* General styles */
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background-color: #b7b7a4;
    color: #6f4518;
    text-align: left;
    margin: 5rem; 
    padding: 1.6rem;
    font-size: .8rem; 
}

/* Headings */
h1 {
    font-size: 1rem;
    text-align: left;
}

/* Entry list */
ul.entries {
    list-style-type: none;
    padding: 0;
}

ul.entries li {
    margin-bottom: 0.8rem;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

.url {
    border-bottom: 3px solid #fff9bd;
}

a:active {
    opacity: 0.7;
    font-weight: 600;
}

a:hover {
    text-shadow: 0 0 10px rgba(255, 249, 189, 0.79), 
                 0px 0 5px #fff9bd, 
                 0 5px 5px #fff9bd;
    font-weight: 600;
}

.page a.active {
    color: #fbfdd1;
}

/* Horizontal line */
.line {
    width: 112px;
    border-bottom: 0.5px solid rgb(86, 86, 86);
    position: absolute;
}

/* Text body adjustments */
.text-body {
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    width: 60%; 
    margin: 0 auto; 
    max-width: 900px; 
}

/* 🔹 Responsive layout adjustments */
@media (max-width: 900px) {
    body {
        margin: 2rem; 
        padding: 1rem;
    }
    .text-body {
        width: 90%; 
        padding: 1rem;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
    body {
        margin: 1rem;
        padding: 1rem;
        font-size: 0.95rem; 
    }
    .text-body {
        width: 100%; 
        padding: 1rem;
        font-size: 1rem;
    }
}

/* 🔹 Disable scrolling on the front page */
body.front-page {
    overflow: hidden;
    height: 100vh;
    background-color: #c1c1c1;
}

/* 🔹 Background Canvas for p5.js */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}
/* Navigation Buttons */
.navigation {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding: 1rem 0;
    align-items: flex-start; 
    font-weight: 100;
}

.nav-button {
    background: none;
    border: none;
    color: #5E5E5E;
    padding: 0rem 0rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    text-shadow: 0 0 10px rgba(255, 249, 189, 0.79), 
                 0px 0 5px #fff9bd, 
                 0 5px 5px #fff9bd;
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-link {
    position: fixed;
    right: 6vw;
    bottom: 5vh;

    z-index: 10;
}

.image-link img {
    width: clamp(120px, 18vw, 200px);
    height: auto;

    filter: grayscale(50%);
    transition: filter 0.4s ease, transform 0.3s ease;

    display: block;
    opacity: 0.6;
}

.image-link img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    opacity: 1;
}

/* mobile */
@media (max-width: 768px) {

    .image-link {
        right: 5vw;
        bottom: 3vh;
    }

    .image-link img {
        width: 26vw;
        min-width: 90px;
        max-width: 130px;
    }

}