/* =========================================
   GLOBAL LAYOUT & TYPOGRAPHY
   ========================================= */

body {
    background-color: #f7f7f7; 
    color: #2b2b2b;
    font-family: "Courier New", Courier, monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Keeps the nav locked at the top */
    min-height: 100vh;
    margin: 0;
    padding: 5rem 2rem 2rem 2rem; /* Pushes content down smoothly */
    font-size: 0.85rem;
    text-align: center;
    cursor: url('Bunny.png'), auto;
}

main {
    max-width: 600px; /* Standardized width across all pages */
    width: 100%;
    line-height: 1.6;
}

h1 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 2rem;
    text-transform: lowercase;
    letter-spacing: 2px; /* Added for wider, distinct headers */
}

h2 {
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-decoration: underline;
    letter-spacing: 1px; /* Added for slight header distinction */
}

/* =========================================
   NAVIGATION & ASCII
   ========================================= */

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

a {
    color: #555555;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    transition: all 0.2s ease;
}

a:hover {
    color: #f7f7f7;
    background-color: #2b2b2b;
}

.rabbit {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* =========================================
   LISTS (About & Art Pages)
   ========================================= */

ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.3rem;
}

.gear-list {
    line-height: 1.8;
}

/* =========================================
   GALLERY (Art Page)
   ========================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 2rem;
}

.gallery-item {
    border: 1px solid #cccccc; /* Bumped contrast */
    background: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   BLOG (Blog Page)
   ========================================= */

.post {
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid #cccccc; /* Bumped contrast */
    padding: 1.5rem;
    padding-top: 0.5rem;
    background-color: #ffffff;
}

.post-date {
    color: #888;
    display: block;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    text-align: right;
}

details {
    cursor: pointer;
}

summary {
    list-style: none;
    outline: none;
    line-height: 1.4;
    font-size: 0.8rem; /* Slightly smaller */
    color: #555555; /* Softer color for a 'thinner' feel */
    letter-spacing: 0.5px; /* Adds breathing room to the letters */
}

summary::-webkit-details-marker {
    display: none;
}

/* Expandable Logic */
.read-more, .read-less {
    display: block;
    margin-top: 1rem;
    color: #888;
    text-decoration: underline;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: normal;
}

/* Hide 'read less' by default */
.read-less {
    display: none;
}

/* When the details tag is open, hide 'read more' and show 'read less' */
details[open] .read-more {
    display: none;
}

details[open] .read-less {
    display: block;
}

.full-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #efefef;
    line-height: 1.6;
    color: #2b2b2b; /* Ensures expanded text returns to the darker base color */
}

/* =========================================
   GUESTBOOK (Guestbook Page)
   ========================================= */

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
    text-align: left;
}

input, textarea {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    border: 1px solid #cccccc; /* Bumped contrast */
    padding: 0.8rem;
    background-color: #ffffff;
    color: #2b2b2b;
    outline: none;
}

button {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    background-color: #2b2b2b;
    color: #f7f7f7;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

button:hover {
    opacity: 0.8;
}

.entry {
    border: 1px solid #cccccc; /* Bumped contrast */
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
    text-align: left;
}

.entry-header {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   WEBRING (Webring Page)
   ========================================= */

.ring-container {
    border: 1px solid #cccccc; /* Bumped contrast */
    padding: 2rem;
    background-color: #ffffff;
    margin-bottom: 3rem;
}

.ring-title {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ring-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.neighbors {
    text-align: left;
    display: inline-block;
    margin-top: 2rem;
}

.neighbors h2 {
    text-align: center;
}

.neighbor-link {
    display: block;
    margin-bottom: 0.5rem;
    border-bottom: 1px dotted #cccccc; /* Bumped contrast */
}

.neighbor-link:hover {
    border-bottom: 1px solid #2b2b2b;
    background: none;
    color: #2b2b2b;
}

/* =========================================
   CUSTOM SCROLLBAR
   ========================================= */

/* Width of the entire scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

/* The track (background) of the scrollbar */
::-webkit-scrollbar-track {
    background-color: #f7f7f7;
    border-left: 1px solid black; /* Bumped contrast */
}

/* The draggable handle */
::-webkit-scrollbar-thumb {
    background-color: #cccccc; /* Bumped contrast */
    border-left: 1px solid black;
}

/* Hover effect on the handle */
::-webkit-scrollbar-thumb:hover {
    background-color: #2b2b2b;
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */

#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: transparent;
    color: #555555;
    border: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.2rem 0.5rem;
}

#scrollTopBtn:hover {
    color: #f7f7f7;
    background-color: #2b2b2b;
}

::selection {
    background-color: #2b2b2b;
    color: #f7f7f7;
}

a, button, summary, .read-more, .read-less, details {
    cursor: url('Bunny.png'), pointer;
}