:root {
    --dark-green: #292818;
    --dusty-olive: #6F7851;
    --grey-olive: #9B9B87;
    --linen: #FFF6EB;
    --night-bordeaux: #3D0A16;
}

/* 1. The Regular Version */
@font-face {
    font-family: 'Jupiteroid';
    src: url('typeface/Jupiteroid-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

/* 2. The Bold Version */
@font-face {
    font-family: 'Jupiteroid';
    src: url('typeface/Jupiteroid-Bold.ttf');
    font-weight: bold;
    font-style: normal;
}

/* 3. The Italic Version */
@font-face {
    font-family: 'Jupiteroid';
    src: url('typeface/Jupiteroid-Italic.ttf');
    font-weight: normal;
    font-style: italic;
}

/* 4. The Bold-Italic Version */
@font-face {
    font-family: 'Jupiteroid';
    src: url('typeface/Jupiteroid-BoldItalic.ttf');
    font-weight: bold;
    font-style: italic;
}


body {
    background-color: #292818;
    color: #fff6EB;
    font-family: 'Jupiteroid', Courier, monospace;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    cursor: url("Home Page Assets/leafcursor.png"), auto
}

a, button, nav a {
    cursor: url('/Home Page Assets/leafcursor.png'), pointer;
}

#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    
    
    background-image: 
         repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(155, 155, 135, 0.15) 10px, rgba(155, 155, 135, 0.15) 12px, transparent 12px, transparent 30px),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(155, 155, 135, 0.15) 10px, rgba(155, 155, 135, 0.15) 12px, transparent 12px, transparent 30px),
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255, 246, 235, 0.12) 20px, rgba(255, 246, 235, 0.12) 22px, transparent 22px, transparent 60px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255, 246, 235, 0.12) 20px, rgba(255, 246, 235, 0.12) 22px, transparent 22px, transparent 60px)
}

#top-header {
    max-width: 800px;
    margin: 20px auto 5px auto;
    text-align: right;
    color: #FFF6EB;
    font-family: 'Jupiteroid', Courier, monospace;
    font-size: 0.9rem;
}

#mail-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

#site-banner {
  display: block;
    margin-top: 3px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    max-width: 100%;
}

#main-menu {
    text-align: center;
    margin: 0px 0 5px 0; /* space above and below the menu */
}

#main-menu {
    display: flex;
    max-width: 800px;
    margin: 10px auto 0px auto; /* auto centers menu on page */
    gap: 10px; /* this is the space between the buttons */
}

#main-menu a {
    flex: 1;/* equal width for buttons */
    text-align: center;
    
    font-family: 'Jupiteroid', Courier, monospace;
    padding: 12px 0; /*width is automatic (cuz of flex) so just gotta update vertical padding */
    text-decoration: none;
    
    background-color: #3d0a16;
    color: #FFF6EB;
    /*border: 1px solid #292818;*/
    border-radius: 5px;
    box-shadow: 4px 4px 0px #1d0e05;
    transition: 0.1s;
}

#main-menu a:hover,
#main-menu .active {
    background-color: #fff6eb;
    color: #292818;
    box-shadow: 1px 1px 0px #1d0e05;
    transform: translateY(3px);
}

#main-content {
    max-width: 800px;
    width: 100%;
    margin: 15px auto;
    /*padding: 15px;
    background-color: #1d0e05;*/
    /*box-sizing: border-box;
    color: #F5F5DC;*/
}

#main-content h2, 
#main-content p, 
#main-content span {
    margin: 0;
    padding: 0;
}
#main-content h2 {
    text-align: center;
    width: 100%;
    color: #ede4da
}



.home-block {
    background-color: #6F7851;
    border: 2px solid #292818;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 4px 4px 0 #3D0A16;
}

.fly-icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

/* wordcount progress bar start */
.progress-container {
    width: 100%;
    height: 15px;
    background-color: #FFF6EB;
    border: 4px solid #FFF6EB;
    display: block;
    margin-top: 3px;
    box-sizing: border-box;
}

.progress-fill {
    height: 100%;
    background-color: #A34757;
    width: 0%; /* PROGRESS PERCENTAGE!! UPDATE THIS!! */
    transition: width 0.5s ease-in-out;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-family: 'Jupiteroid', Courier, monospace;
    font-size: 12px;
    color: #FFF6EB;
    margin-top: 2px;
}

.side-by-side-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

#about-site {
  flex: 2;
}

#about-site p {
    text-align: center;
    line-height: 1.6;
    margin-top: 10px;
}

#webrings-section {
    flex: 1;
}

#webrings-section p {
    text-align: center;
    font-size: 12px;
}

.webrings-container {
    margin-top: 10px;
    text-align: center;
    line-height: 3;
}

#about-me {
    flex: 1; /* Takes up 1 part (1/3) */
    margin-bottom: 0;
}

#about-me p {
    line-height: 1.1;
    margin-top: 10px;
}

#about-me-pic {
    display: block;
    max-width: 120px;
    height: auto;
    margin: 10px auto;
    background-color: #FFF6EB;
    padding: 10px 10px 30px 10px;
    box-shadow: 3px 3px 0 #3D0A16;
    border-radius: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-button {
    text-decoration: none;
    font-size: 0.8em;
    padding: 3px 6px;
    background-color: #FFF6EB;
    color: #3D0A16;
    border: 1px solid #3D0A16;
    box-shadow: 3px 3px 0 #3D0A16;
    
    transition: all 0.1s ease;
}

.social-button:hover {
    background-color: #3D0A16;
    color: #FFF6EB;
    box-shadow: none;
    transform: translate(2px, 2px);
}

#guestbook {
    flex: 2; /* Takes up 2 parts (2/3) */
    margin-bottom: 0;
}

/* guestbook window */
.guestbook-frame {
    width: 100%;
    height: 400px; /* how much you see of the webpage */
    border: solid 3px #3d0a16;
    border-radius: 3px;
    margin-top: 10px;
}

/* start of the scrollbar */
::-webkit-scrollbar {
  width: 20px;
}

/* the track (the background of the scrollbar) */
::-webkit-scrollbar-track {
  background: #3D0A16;
}

/* the thumb (the part that actually moves) */
::-webkit-scrollbar-thumb {
  background-color: #6F7851; 
  border: 4px solid #3D0A16;
  border-radius: 0;
}

/*blinkies wrapper section*/
.blinkie-wrapper {
    text-align: center;
    margin-top: 20px;
}

.blinkie {
    width: 88px;
    height: 31px;
}

.webring-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 88px;
    height: 31px;
    box-sizing: border-box;
    vertical-align: top;
    background-color: #3D0A16;
    border: 1px solid #FFF6EB;
    padding: 2px 4px;
    font-family: monospace;
    font-size: 9px;
    line-height: 1;
}

.webring-box .ring-title {
    color: #FFF6EB;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.webring-box .ring-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.webring-box .ring-nav a {
    color: #9B9B87;
    text-decoration: none;
    padding: 0 2px;
}


/*the footer section*/
#website-footer {
    margin-top: 10px;
    text-align: center;
    padding-bottom: 20px;
}



/* ==========================================
   JOURNAL PAGE STYLES
   ========================================== */
   
#journal-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.journal-wrapper {
    display: flex;
    gap: 25px;
    background-color: #9b9b87;
    padding: 25px;
    border-radius: 5px;
    
}


.journal-index {
    background: #6F7851;
    padding: 5px 20px;
    border: 1px solid #292818;
    border-radius: 5px;
    box-shadow: 4px 4px 0 #3d0a16;
    font-family: 'Jupiteroid', monospace;
    align-self: flex-start;
    width: 150px; 
    flex-shrink: 0;
}

.journal-index ul {
    list-style-type: none;
    padding: 0;
}

.journal-index li {
    margin-bottom: 8px;
}

.journal-index a {
    color: #3D0A16;
    text-decoration: none;
}

.journal-index a:hover {
    text-decoration: underline;
}

.journal-scroll {
    flex: 1;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 15px;
}

.journal-card {
    background-color: #6F7851;
    padding: 25px;
    margin-bottom: 10px;
    border: 2px solid #292818;
    box-shadow: 4px 4px 0px #3D0A16;
    border-radius: 5px;
}

.journal-card img {
    display: block;
    margin: 10px auto;
    max-width: 60%;
    height: auto;
}


/* ==========================================
   STORIES PAGE STYLES
   ========================================== */
   
#stories-content {
    max-width: 800px;
    margin: 40px auto; 
    width: 100%;
    box-sizing: border-box;
}

  
.stories-icon-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 100px;
}


.story-icon {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: contain;
    transition: none; 
}


.story-icon-link:hover .story-icon {
    transform: rotate(5deg); 
}


/* ==========================================
   STORIES READING PAGE STYLES
   ========================================== */

.story-header {
    max-width: 800px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
}

.story-back-button:hover {
    text-decoration: underline;
}

#story-container {
    max-width: 800px;
    margin: 5px auto 15px auto;
    padding: 20px 40px 60px 40px;
    background-color: #1D0E05;
}

.story-title-block {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px dashed;
    color: #9b9b87;
    padding-bottom: 25px;
    padding-top: 20px;
}

.story-title {
    font-family: 'Jupiteroid', serif;
    font-size: 2.5rem;
    color: #fff6eb;
    margin: 0 0 10px 0;
}

.story-subtitle {
    font-family: monospace;
    font-size: 0.85rem;
    color: #fff6eb;
}

.manuscript-text p {
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 10px;
    color: #b7aba1;
    text-align: justify;
}

.manuscript-text .scene-break {
    text-align: center;
    margin: 40px 0;
    font-family: monospace;
    opacity: 0.5;
    letter-spacing: 5px;
}

.story-back-button {
    display: inline-block;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    color: #1D0E05;
    background-color: #9b9b87;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #3D0A16;
    margin-bottom: 40px;
    
}

.story-back-button:hover {
    background-color: #fff6eb;
    color: #3D0A16;
}
.story-back-nav {
    max-width: 800px;
    margin: 40px auto 0 auto;
}






/* ==========================================
      POETRY PAGE STYLES
   ========================================== */


.poetry-box {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px 40px 40px 40px;
    background-color: #1D0E05;
}

.poetry-text p {
    text-align: center;
}

.back-to-top-container {
    text-align: center;
    margin: 30px auto 50px auto;
}

.back-to-top-button {
    font-family: monospace;
    font-size: 0.85rem;
    color: #fff6eb;
    text-decoration: none;
    border: 1px solid #fff6eb;
    padding: 8px 12px;
    border-radius: 4px;
    background: #3d0a16;
}

.back-to-top-button:hover {
    text-decoration: underline;
}






/* ==========================================
   ART PAGE STYLES
   ========================================== */

.gallery-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.art-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 40px;
}

.art-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
    background-color: #6f7851;
    border: 2px solid #292818;
    border-radius: 5px;
    box-shadow: 4px 4px 0 #3d0a16;
    padding: 12px;
    box-sizing: border-box;
}

.art-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.art-caption {
    font-family: monospace;
    font-size: 0.8rem;
    color: #1d0e05;
    text-align: center;
    margin-top: 10px;
}

/* for mobile */
@media (max-width: 900px) {
    .art-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .art-grid { column-count: 1; }
}




/* ==========================================
   KNITTING PAGE STYLES
   ========================================== */
.page-note {
    text-align: center;
    max-width: 600px;
    margin: 30px auto 10px auto;
    padding: 0 15px;
}

.page-note p {
    font-family: monospace;
    font-size: 0.85rem;
    color: #9b9b87;
    line-height: 1.5;
    font-style: italic;
}

.art-caption .pattern-link {
    color: #3d0a16; 
    text-decoration: underline;
    font-weight: bold;
}

.art-caption .pattern-link:hover {
    color: #fff6eb;
}
