/*date of creation: 14th of October, 2025
        created by: Cabbage Sorter*/

:root{
       --background: #d8e1dc;
       --highlightedbackground: #cfd4d7;
       --highlight: #d6bb4e;
       --bar: #f7f0d9;
       --text: #6c7890;
       --quote: #789922;
}

/* S C R O L L B A R*/

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    }
    ::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
    }
    ::-webkit-scrollbar-thumb {
    background: var(--text);
    border: 0px none #ffffff;
    }
    ::-webkit-scrollbar-thumb:hover {
    background: var(--quote);
    }
    ::-webkit-scrollbar-thumb:active {
    background: var(--bar);
    }
    ::-webkit-scrollbar-track {
    background: var(--highlight);
    border: 0px none #ffffff;
    }
    ::-webkit-scrollbar-track:hover {
    background: var(--highlight);
    }
    ::-webkit-scrollbar-track:active {
    background: var(--highlight);
    }
    ::-webkit-scrollbar-corner {
    background: transparent;
    }
    
    ::selection {
    color: white;
    background-color: var(--purpledark);
    }

/* selected text */    

::selection {
        background-color: var(--bar); 
        color:var(--quote); 
    }

html, body{
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
}
html{
        background-color: var(--background);
        font-family: 'Courier New', Courier, monospace;
}   

.main-box{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 0px;
    color: var(--text);
    min-height: 100vh;
}

@media all and (max-width: 1390px) {
    .background-image { 
        display: none; 
    }
    .main-box{
        display: block;
        min-height: auto;
    }
    .content-grid, .latest-reviews{
        max-height: none;
    }
    .site-desc-text{
        overflow-y: scroll;
    }
    .site-desc-img{
    display: none;
    }
}

.main-content{ 
    grid-area: 1 / 1 / 2 / 2; 
}
.background-image{
     grid-area: 1 / 2 / 2 / 3; 
     align-self: center;
     justify-self: center;
}

.background-image{
    display: grid;
    align-items: center;
    max-height: 100vh;
    width: fit-content;
}

.background-image img{
    width: 500px;
    max-height: 100vh;
    object-fit: contain;
}

.main-content{
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas: ". .";
    column-gap: 10px;
}

.navbar{
    background-color: var(--bar);
    color: var(--text);
    display: grid;
    align-content: center;
    justify-content: center;
    border: double 4px;
    border-color: var(--highlight);
    height: 300px;
    width: 10vw;
}

.navbar a{
    color: var(--text);
}

.navbar a:hover{
    color: var(--highlight);
    transition: ease-in 0.2s;
}

.content-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5px 5px; 
    grid-template-areas: 
    "site-description site-description"
    "latest-reviews latest-diary"
    "webrings-etc webrings-etc"
    "updates updates"; 
   
}

.content-grid-wrapper{
     max-height: 100vh;
    overflow-y: auto;
}

.site-description{ 
    grid-area: site-description;
    border: solid 4px;
    border-color: var(--bar);
}

.latest-reviews{
    grid-area: latest-reviews;
    border: solid 4px;
    border-color: var(--bar);
    /*background-image: url('../images/layout-5/bg3.JPG');*/
}
.latest-diary{ 
    grid-area: latest-diary;
    border: solid 4px;
    border-color: var(--bar);
}

.content-title{
    background-color: var(--bar);
    font-weight: bold;
    text-align: center;
    padding: 5px;
    
}

.content-text{
    padding: 10px;
}

.review-thumb{
    width: 100px;
}

.review-title, .diary-date{
    color: var(--quote);
    text-decoration: underline;
}

.review-date{
    color: var(--highlight);
}

.content-text a{
    text-decoration: none;
}

.content-text h3:hover{
    color: var(--highlight);
}

.review-thumb:hover{
    opacity: 0.5;
    transition: ease-in 0.2s;
}

.content-text li{
    list-style: none;
}

.review-link{
    display: grid;
    grid-auto-flow: column;
    padding-bottom: 5px;
    justify-content: start;
    column-gap: 5px;
}

.review-meta{
    display: grid;
    grid-auto-flow: row;
}

.diary-title{
    color: var(--text);
    text-decoration: none; 

}

.diary-info{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.diary-type{
    color: var(--highlight);
    font-size: 0.7em;
    font-style: italic;
}

.type{
    color: var(--text);
    font-size: 0.7em;
    font-style: italic;
}

.content-link a{
    color: var(--quote);
    text-align: right;
    justify-self: end;
}

.site-desc-img{
    height: auto;
    align-self: end;
}

.site-desc-content{
    display: grid;
    grid-auto-flow: column;
}

.site-desc-text{
    align-self: center;
    justify-self: center;
}

.review-item a{
    color: var(--text);
}

.review-type:active{
    color: var(--text);
}

.content-text{
    overflow-y: auto;
    max-height: 40vh;
}

.madebyagirl{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}


.webrings-etc{
    grid-area: webrings-etc;
    border: solid 4px;
    border-color: var(--bar);   
}

.updates{
    grid-area: updates;
    border: solid 4px;
    border-color: var(--bar);   
}

.webrings-links-container{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
}

.webrings-links-container a{
    color: var(--quote);
}

.content-text a:hover{
    color: var(--highlight);
    transition: ease-in 0.2s;
}

.update-date{
    color: var(--quote);
    text-decoration: underline;
}

.update-type{
    color: var(--highlight);
    font-size: 0.8em;
    font-style: italic;
}

.update-description{
    font-size: 0.9em;
}

.update-title{
    color: var(--text);
    text-decoration: none; 
}



/* reviews */

.review-container{
    background-color: var(--bar);
    border-color: var(--highlight);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.review-article {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 15px;
    padding: 20px;
    border: double 4px;
    border-color: var(--highlight);
    flex: 1;
}

.back a{
    color: var(--quote);
    text-decoration: none;
    font-weight: bold;
}

.back a:hover {
    color: var(--highlight);
}

.review-header h1 {
    margin: 10px 0 5px 0;
    color: var(--text);
}

.review-header h3 {
    margin: 5px 0;
    color: var(--quote);
    font-weight: normal;
}

.review-meta {
    margin: 0;
    padding-bottom: 10px;
}

.review-meta p {
    margin: 0;
}

.review-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}


.review-body:has(.review-text:only-child) {
    grid-template-columns: 1fr;
}

.review-image {
    top: 20px;
    max-width: 150px;
}

.review-image img {
    width: 150px;
    height: auto;
    border: 3px double var(--highlight);
    display: block;
}

.review-text {
    color: var(--text);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.review-text p {
    margin-bottom: 15px;
}

.review-text img {
    max-width: 150px;
    height: auto;
    margin: 15px 0;
}


.review-text code,
.review-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
    background-color: var(--highlightedbackground);
    padding: 10px;
    border-left: 3px solid var(--highlight);
    margin: 15px 0;
}


.review-text * {
    max-width: 100%;
    overflow-wrap: break-word;
}


@media (max-width: 768px) {
    .review-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-image {
        position: static;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* diary entry specific styles */
.diary-entry .review-image {
    max-width: 800px;
    margin: 0 auto;
}

.diary-entry .review-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 3px double var(--highlight);
    display: block;
    margin: 0 auto;
}

.diary-entry .review-text img {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 15px auto;
    display: block;
}

/* reviews */

.reviews-page {
    background-color: var(--bar);
    padding: 20px;
    border: double 4px;
    border-color: var(--highlight);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.reviews-page h1 {
    margin: 0 0 20px 0;
    color: var(--text);
    text-align: center;
}

/* tabs for reviews */
.tab-navigation {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--highlight);
}

.tab-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text);
    background-color: var(--highlightedbackground);
    border-right: 1px solid var(--highlight);
    transition: all 0.2s ease;
}

.tab-link:hover {
    background-color: var(--highlight);
    color: var(--bar);
}

.tab-link.active {
    background-color: var(--highlight);
    color: var(--bar);
    font-weight: bold;
}

/* sort controls */
.sort-controls {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    justify-content: flex-end;
}

.sort-label {
    color: var(--text);
    font-weight: bold;
    margin-right: 5px;
}

.sort-link {
    padding: 5px 12px;
    text-decoration: none;
    color: var(--text);
    background-color: var(--background);
    border: 1px solid var(--highlight);
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.sort-link:hover {
    background-color: var(--highlight);
    color: var(--bar);
}

.sort-link.active {
    background-color: var(--highlight);
    color: var(--bar);
    font-weight: bold;
}

/* reviews list */
.reviews-list {
    display: grid;
    gap: 15px;
}

.reviews-list .review-item {
    background-color: var(--background);
    border: 1px solid var(--highlight);
    transition: all 0.2s ease;
}

.reviews-list .review-item:hover {
    background-color: var(--highlightedbackground);
    border-color: var(--quote);
}

.reviews-list .review-link {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding: 10px;
    text-decoration: none;
    color: var(--text);
}


.reviews-list .review-link:has(.review-info:only-child) {
    grid-template-columns: 1fr;
}

.reviews-list .review-thumb {
    width: 100px;
    height: auto;
    border: 2px solid var(--highlight);
}

.reviews-list .review-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reviews-list .review-title {
    margin: 0 0 8px 0;
    color: var(--quote);
    font-size: 1.1em;
}

.reviews-list .review-item:hover .review-title {
    text-decoration: underline;
}

.reviews-list .review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
}

.reviews-list .review-type {
    color: var(--text);
    font-style: italic;
}

.reviews-list .review-author {
    color: var(--text);
}

.reviews-list .review-rating {
    color: var(--quote);
    font-weight: bold;
}

.reviews-list .review-date {
    color: var(--highlight);
}

@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .reviews-list .review-link {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }
    
    .reviews-list .review-thumb {
        width: 80px;
    }
}

.review-text a{
    color: var(--quote);
}

/* about page */
.about-page {
    border: double 4px;
    border-color: var(--highlight);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: var(--bar);
}

.tab-content {
    padding: 20px
}

.about-section,
.favourites-section,
.things-section {
    color: var(--text);
}

.about-section h2,
.favourites-section h2,
.things-section h2 {
    color: var(--quote);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--highlight);
    padding-bottom: 5px;
}

.about-section h3,
.favourites-section h3,
.things-section h3 {
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 10px;
}

.about-section p,
.favourites-section p,
.things-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.favourites-section ul,
.things-section ul {
    list-style-type: disc;
    margin-left: 30px;
    margin-bottom: 15px;
}

.favourites-section li,
.things-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.about-section{
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;    
}

.about-section > * {
    flex: 1 1 300px;
    min-width: 250px;
    box-sizing: border-box;
}

.about-img-container {
    flex: 0 0 auto;
    max-width: 500px;
}

.about-img {
    width: 100%;
    border: 3px double var(--highlight);
    display: block;
}

/* favorites section - anime/manga gallery */
.favourites-content {
    padding: 0;
}



.favourites-section-header {
    text-align: center;
    margin: 20px 0;
}

.favourites-banner {
    max-width: 100%;
    width: 800px;
    height: auto;
}

.anime-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 20px 0;
}

.anime-img-title {
    position: relative;
    width: 100px;
    height: 143px;
}

.anime-img {
    width: 100px;
    height: 143px;
    object-fit: cover;
    transition: opacity 0.2s ease-in;
}

.anime-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s, opacity 0.3s ease;
    text-align: center;
    word-wrap: break-word;
    width: 100px;
    border-radius: 5px;
}

.anime-img-title:hover {
    cursor: pointer;
}

.anime-img-title:hover .anime-title {
    visibility: visible;
    opacity: 1;
}

.anime-img-title:hover .anime-img {
    opacity: 0.3;
}

.favourites-content a {
    text-decoration: none;
    color: inherit;
}


@media (max-width: 1010px) {
    .main-content {
        display: block;
        padding-top: 60px; 
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 10px 0;
    }
    
    .navbar a {
        padding: 8px 15px;
        border-right: 1px solid var(--highlight);
        display: inline-block;
    }
    
    .navbar a:last-child {
        border-right: none;
    }

    /* about section responsiveness */
    .about-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-section > * {
        flex: none;
        max-width: 100%;
        min-width: auto;
    }
    
    .about-img-container {
        max-width: 500px;
        margin-bottom: 15px;
    }
}


@media (max-width: 800px) {
    .main-content {
        padding-top: 100px; 
    }
    
    .navbar {
        flex-wrap: wrap;
        padding: 5px 0;
    }
    
    .navbar a {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    /* responsive anime/manga gallery */
    .favourites-banner {
        width: 90%;
        max-width: 600px;
    }
    
    .anime-img-title {
        width: 120px;
        height: 172px;
    }
    
    .anime-img {
        width: 120px;
        height: 172px;
    }
    
    .anime-title {
        width: 100px;
        font-size: 0.8em;
        padding: 5px;
    }
}

@media (max-width: 600px) {
    .anime-flex-container {
        padding: 15px 0;
    }
    
    .anime-img-title {
        width: 100px;
        height: 143px;
        margin: 2px;
    }
    
    .anime-img {
        width: 100px;
        height: 143px;
    }
    
    .anime-title {
        width: 80px;
        font-size: 0.7em;
        padding: 3px;
    }
}

/* web.php */
.web-wrapper {
    background-color: var(--bar);
    padding: 20px;
    border: double 4px;
    border-color: var(--highlight);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.web-page {
    width: 100%;
}

.buttons-section {
    padding: 20px;
}

.buttons-banner-container {
    text-align: center;
    margin-bottom: 20px;
}

.buttons-banner {
    max-width: 100%;
    height: auto;
}

.buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.buttons-grid a {
    display: inline-block;
    line-height: 0;
}

.buttons-grid img {
    width: 88px;
    height: 31px;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.my-buttons,
.my-banner {
    margin: 30px 0;
    text-align: left;
}

.my-buttons img,
.my-banner img {
    margin-right: 5px;
    margin-bottom: 5px;
}

.my-buttons a{
 text-decoration: none;
}

.dead-buttons-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--highlight);
}

.cemetery-header {
    font-style: italic;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 15px;
}

.dead-buttons img {
    opacity: 0.6;
    filter: grayscale(30%);
}

.dead-buttons a:hover img {
    opacity: 0.8;
}


.directories-section {
    padding: 20px;
}

.directories-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.directory-item {
    padding: 15px;
    background-color: var(--bar);
    border-radius: 5px;
}

.directory-item h3 {
    margin: 0 0 10px 0;
}

.directory-item h3 a {
    color: var(--text);
    text-decoration: none;
}

.directory-item h3 a:hover {
    color: var(--quote);
}

.directory-item p {
    margin: 0;
    color: var(--text);
}


.webring-section {
    padding: 20px;
}

.webring-section h2 {
    margin-top: 0;
}

/* about things section */
.things-section {
    gap: 2rem;
    font-size: 0.9em;
}

.things-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.things-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.things-item img{
    max-height: 200px;
    width: auto;
    border-radius: 8px;
}

.things-desc {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    max-width: 35vw;
    
}

.things-strong {
    font-weight: bold;
    color: var(--quote);
    margin-bottom: 0.5rem;
}

.box1{
    background-color: var(--background);
    border: double 4px;
    border-color: var(--highlight);
    padding: 15px;
    margin-top: 2rem;
    font-size: 0.9rem;
    max-width: 50%;
    
}

.box1 h3{
    border-bottom: 1px solid var(--highlight);
}

.box1 a{
    color: var(--quote);
    text-decoration: none;
}

.box2{
    padding: 15px;
    margin-top: 1rem;
    overflow-y: scroll;
    max-height: 40vh;
    
}

.box3-2{
    border-bottom: var(--highlight) solid 1px;
    border-left: var(--highlight) solid 1px;
    border-right: var(--highlight) solid 1px;
    padding: 2px;
}

.box3-1{
    display: grid;
    grid-template-columns: 32px auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: center;
    margin-top: 8px;
    border: 1px solid var(--highlight);
    background-color: var(--bar);
}

.box3-1 img{
    grid-row: 1 / 3;
    grid-column: 1;
    width: 32px;
    height: 32px;
    align-self: start;
}

.cname{
    grid-column: 2;
    grid-row: 1;
    font-weight: bold;
    color: var(--quote);
    align-self: end;
}

.cdate{
    grid-column: 2;
    grid-row: 2;
    font-size: 0.8rem;
    color: var(--highlight);
    align-self: start;
}

/*possible chat in the future*/
.chat-form {

    gap: 8px;
    margin-top: 1rem;
}


.chat-submit-btn {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: stretch;
}

.chat-form input[type="text"],
.chat-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--highlight);
    background-color: var(--highlightedbackground);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
}

.chat-form textarea {
    resize: vertical;
}

.chat-submit-btn {
    padding: 8px 16px;
    background-color: var(--highlight);
    color: var(--text);
    border: 1px solid var(--quote);
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.chat-submit-btn:hover {
    background-color: var(--text);
    color: var(--bar);
}

/* basic button styling */
.chat-submit-btn {
    background-color: var(--bar);
    color: var(--text);
    border: 1px solid var(--highlight);
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-form-group:nth-child(2) label{
    font-size: 0.7em;
}
/* custom file input styling */
#chat-avatar {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    background-color: var(--bar);
    color: var(--text);
    border: 1px solid var(--highlight);
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.2s ease;
}

.custom-file-upload:hover {
    background-color: var(--highlight);
    color: var(--bar);
}


/*archive page */

.archives-content {

}

.archives-content p {
    color: var(--text);
    font-size: 0.8em;
}

.archives-tree {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8em;
    line-height: 1.6;
    overflow-x: auto;
    color: var(--text);
}

.archives-tree a {
    color: var(--quote);
    text-decoration: none;
}

.archives-tree a:hover {
    color: var(--highlight);
    text-decoration: underline;
}
