/* Load the local font */
@font-face {
    font-family: 'KTEGAKI';
    src: url('assets/fonts/KTEGAKI.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
  cursor: auto;
}


/* this does the main styling stuff */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Journal container positioning */
#journal {
    position: relative;
}

/* Journal content styling - no background card */
.journal-content {
    background: url('assets/journalbg5.png') center center no-repeat;
    background-size: auto;
    min-height: 500px;
    padding: 0 50px 100px 50px;
    position: relative;
    margin: 0 100px;
    width: 700px;
    height: 1150px;
    z-index: 10;
    transform: rotate(-2deg);
    overflow: hidden;
}

/* Journal eye image */
.journal-eye {
    position: absolute;
    top: 5px;
    left: 200px;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background-image: url('journal/eye.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    transform: rotate(-35deg);
}

.journal-eye:hover {
    transform: translateX(-50%) scale(1.3);
}

/* flower left */
.journal-deco-left {
    position: absolute;
    top: 350px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: url('assets/deco3.png') center center no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: auto;
    transition: left 0.45s ease;
    
}

/* flower right */
.journal-deco-right {
    position: absolute;
    bottom: 100px;
    right: 100px;
    width: 200px;
    height: 200px;
    background: url('assets/deco1.png') center center no-repeat;
    background-size: contain;
    z-index: 20;
    pointer-events: none;
}

/* text bottom */
.journal-deco-bottom {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: url('assets/deco2.png') center center no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: auto;
    transition: transform 0.45s ease;
}

.journal-deco-bottom:hover {
    transform: translateX(-50%) rotate(10deg);
}

/* Seite image behind journal but in front of tapes */
.journal-seite {
    position: absolute;
    top: 700px;
    left: 270px;
    width: 900px;
    height: 400px;
    background: url('assets/seite.png') center center no-repeat;
    background-size: contain;
    z-index: 0;
    pointer-events: auto;
    transform: rotate(-6deg);
    transition: top 0.45s ease, left 0.45s ease;
}

.journal-seite:hover {
    top: 710px;
    left: 290px;
}

/* Tape decorations positioned to the right of journal */
.journal-tape-1 {
    position: absolute;
    top: 120px;
    right: 70px;
    width: 180px;
    height: 50px;
    background: url('assets/tape1.png') center center no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: auto;
    transform: rotate(-1deg);
    transition: right 0.3s ease;
}

.journal-tape-1:hover {
    right: 15px;
    
}

.journal-tape-1:hover::after {
    content: 'home';
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    color: black;
    font-size: 20px;
    font-family: 'KTEGAKI', cursive;
    white-space: nowrap;
    z-index: 20;
    text-align: right;
    
    pointer-events: auto;
}

.journal-tape-2 {
    position: absolute;
    top: 175px;
    right: 50px;
    width: 180px;
    height: 50px;
    background: url('assets/tape2.png') center center no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: auto;
    transform: rotate(-1deg);
    transition: right 0.3s ease;
    
}

.journal-tape-2:hover {
    right: 10px;
    
}

.journal-tape-2:hover::after {
    content: 'hobbies';
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    color: black;
    font-size: 20px;
    font-family: 'KTEGAKI', cursive;
    white-space: nowrap;
    z-index: 20;
    text-align: right;
    
    pointer-events: auto;
}

.journal-tape-3 {
    position: absolute;
    top: 230px;
    right: 50px;
    width: 180px;
    height: 50px;
    background: url('assets/tape3.png') center center no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: auto;
    transform: rotate(-1deg);
    transition: right 0.3s ease;
    
}

.journal-tape-3:hover {
    right: 20px;
    
}

.journal-tape-3:hover::after {
    content: 'social';
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    color: black;
    font-size: 20px;
    font-family: 'KTEGAKI', cursive;
    white-space: nowrap;
    z-index: 20;
    text-align: right;
    
    pointer-events: auto;
}

.journal-tape-4 {
    position: absolute;
    top: 285px;
    right: 40px;
    width: 180px;
    height: 50px;
    background: url('assets/tape4.png') center center no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: auto;
    transform: rotate(-1deg);
    transition: right 0.3s ease;
    
}

.journal-tape-4:hover {
    right: 10px;
    
}

.journal-tape-4:hover::after {
    content: 'random';
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    color: black;
    font-size: 20px;
    font-family: 'KTEGAKI', cursive;
    white-space: nowrap;
    z-index: 20;
    text-align: right;
    
    pointer-events: auto;
}

/* Rotate only the text content inside the journal */
.journal-content #entries-container {
    transform: rotate(-0.5deg);
    transform-origin: center center;
    margin-left: 40px;
    margin-top: 120px;
    padding-left: 20px;
    max-width: calc(100% - 80px);
    max-height: 900px;
    overflow-y: auto;
    overflow-x: hidden;
}

.journal-content h3 {
    color: #373131;
    font-family: 'KTEGAKI', cursive;
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: left;
    font-weight: bold;
    position: relative;
    display: inline-block;
    text-decoration: none !important;
    border-bottom: none !important;
    line-height: 1;
}

.journal-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFB6C1;
}

.journal-content p {
    color: #2c1810;
    font-family: 'KTEGAKI', cursive;
    line-height: 0.9;
    margin-bottom: 15px;
}

.journal-content p b.title-underline {
    text-decoration: underline;
    text-decoration-color: #90EE90;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.journal-content ul {
    color: #2c1810;
    font-family: 'KTEGAKI', cursive;
    line-height: 0.9;
    margin-left: 22px;
}

.journal-content li {
    margin-bottom: 8px;
}

.journal-image-container {
    margin: 20px 0;
    text-align: center;
}

.journal-glued-image {
    max-width: 80%;
    height: auto;
    transform: rotate(-2deg);
    border: 1px solid #d4c4a8;
    background: #f8f4e8;
    padding: 8px;
    position: relative;
    transition: transform 0.3s ease;
}


.journal-glued-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f0e6d2, #e8dcc0);
    z-index: -1;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide default cursor globally */
html {
    cursor: none !important;
}

body {
    font-family: 'KTEGAKI', cursive;
    background-color: #f4e8d8;
    color: #8B4513;
    line-height: 1.6;
    font-size: 18px;
    overflow-x: hidden;
    position: relative;
    
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bgmain.jpg') repeat;
    background-size: auto;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* this does the falling waiki images effect */
.falling-cat {
    position: fixed;
    top: -60px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    animation: fall 16s linear infinite;
    opacity: 0.7;
    border-radius: 8px;
}

@keyframes fall {
    0% {
        transform: translateY(-60px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* this is for the cursor trail effect */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 16px;
    animation: trail-fade 2s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(180deg);
    }
}

/* this does the image modal stuff */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* this handles the layout stuff */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 25px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* this is for the decorative assets */
.decorative-asset {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}

.decorative-asset.top-left {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.decorative-asset.top-right {
    top: 20px;
    right: 20px;
    animation-delay: 1s;
}

.decorative-asset.bottom-left {
    bottom: 20px;
    left: 20px;
    animation-delay: 2s;
}

.decorative-asset.bottom-right {
    bottom: 20px;
    right: 20px;
    animation-delay: 0.5s;
}

.decorative-asset.center-left {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.decorative-asset.center-right {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    animation-delay: 2.5s;
}

.decorative-asset.middle-top {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.8s;
}

.decorative-asset.middle-bottom {
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* this does the header styling */
.header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.header > * {
    position: relative;
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><text x="20" y="25" font-family="Arial" font-size="20" text-anchor="middle" fill="%238b7355" opacity="0.1">🐱</text></svg>');
    pointer-events: none;
    z-index: 0;
}

.title {
    font-size: 3.5em;
    color: white;
    font-weight: bold;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0px 1px black) drop-shadow(0 -1px black) drop-shadow(1px 0 black) drop-shadow(-1px 0 black) drop-shadow(0px 1px #D2691E) drop-shadow(0 -1px #D2691E) drop-shadow(1px 0 #D2691E) drop-shadow(-1px 0 #D2691E);
}

.subtitle {
    font-style: italic;
    color: #8B4513;
    font-size: 1.3em;
    position: relative;
    z-index: 1;
}

.header-cat {
    margin: 10px 0;
    background: rgba(248, 246, 240, 0.9);
    border-radius: 8px;
    padding: 8px;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

/* this is for the ascii cat styling */
.ascii-cat {
    font-family: 'Courier New', monospace;
    color: #8B4513;
    font-size: 14px;
    line-height: 1.2;
    margin: 10px 0;
    background: rgba(248, 246, 240, 0.8);
    border-radius: 6px;
    padding: 10px;
    display: inline-block;
}

/* this does the sidebars */
.sidebar {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: relative;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
}

/* Rank decoration for left sidebar */
.left-sidebar::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -30px;
    width: 200px;
    height: 500px;
    background-image: url('assets/rank1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scaleX(-1);
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}

/* Maytheflowers decoration for left sidebar */
.left-sidebar .maytheflowers-decoration {
    content: '';
    position: absolute;
    bottom: -180px;
    left: 20px;
    width: 210px;
    height: 210px;
    background-image: url('assets/maytheflowers.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar h3 {
    color: #8B4513;
    font-size: 1.4em;
    margin-bottom: 18px;
    text-align: center;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 8px;
    font-weight: bold;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    color: #8B4513;
    text-decoration: none;
    display: block;
    padding: 1px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background: rgba(139, 69, 19, 0.1);
    color: #4b0082;
    text-decoration: underline;
}

/* removed paw prints from all links */

/* this is for the widgets */
.widget {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.widget > * {
    position: relative;
    z-index: 1;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 69, 19, 0.15);
    border-color: #c4b498;
}

/* this reduces spacing for cool sites widget */
.widget:has(.button-links) {
    margin-bottom: 10px;
}

/* this adds a subtle divider after cool sites widget */
.widget:has(.button-links)::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(139, 69, 19, 0.3), transparent);
}

.widget h4 {
    color: #8B4513;
    font-size: 1.3em;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 6px;
    font-weight: bold;
}

/* this is for the mp3 player widget */
.mp3-player {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.15) 0%, rgba(248, 246, 240, 0.9) 100%);
    border: 2px solid rgba(255, 182, 193, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.2);
    position: relative;
    overflow: hidden;
}

.mp3-player::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><text x="10" y="15" font-family="Arial" font-size="15" text-anchor="middle" fill="%238b7355">♪</text></svg>');
    pointer-events: none;
    opacity: 0.4;
}

.screen {
    background: linear-gradient(145deg, rgba(248, 246, 240, 0.95) 0%, rgba(255, 182, 193, 0.1) 100%);
    color: #8B4513;
    font-family: 'KTEGAKI', cursive;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    border: 2px solid rgba(255, 182, 193, 0.4);
    box-shadow: inset 0 2px 8px rgba(255, 182, 193, 0.2), 0 2px 8px rgba(255, 182, 193, 0.2);
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.1);
    position: relative;
    overflow: hidden;
    font-weight: bold;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><text x="20" y="25" font-family="Arial" font-size="12" text-anchor="middle" fill="%238b7355" opacity="0.05">♪</text></svg>');
    pointer-events: none;
    animation: float 4s ease-in-out infinite;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.controls button {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.8) 0%, rgba(255, 182, 193, 0.6) 100%);
    color: #8B4513;
    border: 2px solid rgba(255, 182, 193, 0.6);
    padding: 6px 10px;
    border-radius: 8px;
    
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
    font-family: 'KTEGAKI', cursive;
    min-width: 40px;
    height: 35px;
}

.controls button:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 1) 0%, rgba(255, 182, 193, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    border-color: rgba(255, 182, 193, 0.8);
    
}

.controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.volume-control span {
    color: #8B4513;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.2);
    flex-shrink: 0;
    min-width: 30px;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, rgba(255, 182, 193, 0.3), rgba(255, 182, 193, 0.5));
    outline: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 0;
    min-width: 0;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.6);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.4);
}

.volume-control input[type="range"]::-moz-range-thumb:hover {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.6);
}

/* this is for the guest book widget */
.guestbook-widget {
    background: rgba(240, 237, 230, 0.9);
    border-radius: 12px;
    padding: 18px;
}

.guestbook-widget .entry {
    background: rgba(248, 246, 240, 0.9);
    border: 1px solid #8b7355;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* this does the stats widget */
.stats-widget {
    background: rgba(240, 237, 230, 0.9);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    font-family: 'KTEGAKI', cursive;
}

.counter {
    font-family: 'KTEGAKI', cursive;
    font-size: 1.3em;
    font-weight: bold;
    color: #8B4513;
    margin: 12px 0;
}

/* this is for the paw button */
.paw-button {
    background: none;
    border: none;
    font-size: 2.2em;
    
    transition: transform 0.2s ease;
    margin: 12px 0;
}

.paw-button:hover {
    transform: scale(1.2);
    
}

.paw-button.clicked {
    color: #ff69b4;
    transform: scale(1.1);
}

.paw-count {
    font-weight: bold;
    color: #8B4513;
    margin-left: 12px;
}

/* this handles the main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
}

.section {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.section > * {
    position: relative;
    z-index: 1;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 69, 19, 0.15);
    border-color: #c4b498;
}

.section::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="12" y="18" font-family="Arial" font-size="18" text-anchor="middle" fill="%238b7355">⭐</text></svg>');
    pointer-events: none;
}

.section h2 {
    color: #8B4513;
    font-size: 1.7em;
    margin-bottom: 18px;
    text-align: center;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 12px;
    font-weight: bold;
}

/* this does the cat links grid */
.cat-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cat-link-card {
    background: rgba(255, 182, 193, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.cat-link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 182, 193, 0.6);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.2);
}

.cat-link-card h3 {
    color: #8B4513;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 182, 193, 0.5);
    padding-bottom: 8px;
    font-weight: bold;
}

.cat-link-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-link-card li {
    margin-bottom: 8px;
}

.cat-link-card a {
    color: #8B4513;
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.cat-link-card a:hover {
    background: rgba(255, 182, 193, 0.2);
    color: #4b0082;
    text-decoration: underline;
    transform: translateX(5px);
}

/* this is for the gallery grids */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.gallery-item > * {
    position: relative;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-3px) rotate(1deg);
    border-color: #c4b498;
    box-shadow: 
        0 6px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 69, 19, 0.15);
    
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* this does the nini gallery grid */
.nini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.nini-gallery-item {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    
    position: relative;
}

.nini-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.nini-gallery-item > * {
    position: relative;
    z-index: 1;
}

.nini-gallery-item:hover {
    transform: translateY(-3px) rotate(1deg);
    border-color: #c4b498;
    box-shadow: 
        0 6px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 69, 19, 0.15);
    
}

.nini-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.nini-gallery-item:hover img {
    transform: scale(1.1);
}

/* this handles pagination controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
}

.pagination-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.pagination-controls > * {
    position: relative;
    z-index: 1;
}

.pagination-btn {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 6px;
    padding: 12px 20px;
    font-family: 'KTEGAKI', cursive;
    font-size: 16px;
    font-weight: bold;
    color: #8B4513;
    
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, rgba(252, 250, 244, 1) 0%, rgba(245, 242, 235, 0.95) 100%);
    border-color: #c4b498;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    
}

.pagination-btn.disabled {
    background: rgba(200, 200, 200, 0.5);
    border-color: rgba(200, 200, 200, 0.3);
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-info {
    font-family: 'KTEGAKI', cursive;
    font-size: 18px;
    font-weight: bold;
    color: #8B4513;
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid #d4c4a8;
    box-shadow: 
        0 2px 4px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Animated GIFs Gallery */
.gif-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gif-item {
    background: rgba(255, 182, 193, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gif-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 13px;
    pointer-events: none;
    z-index: 0;
}

.gif-item > * {
    position: relative;
    z-index: 1;
}

.gif-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 182, 193, 0.6);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.2);
}

.gif-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gif-item:hover img {
    transform: scale(1.05);
}

.gif-item p {
    color: #8B4513;
    font-size: 0.9em;
    margin: 0;
    font-weight: bold;
}

/* this is for the cat grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.cat-card {
    background: rgba(240, 237, 230, 0.9);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    
}

.cat-card h3 {
    color: #4b0082;
    margin-bottom: 10px;
    font-weight: bold;
}

/* this is for the tips box */
.tips-box {
    background: rgba(240, 237, 230, 0.9);
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.tips-box ul {
    margin-left: 22px;
}

.tips-box li {
    margin-bottom: 6px;
    color: #8B4513;
}

/* this does the mood translator */
.mood-translator {
    background: rgba(240, 237, 230, 0.9);
    border-radius: 10px;
    padding: 18px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.mood-translator p {
    margin-bottom: 10px;
    color: #8B4513;
}

/* this is for the guest book */
.guest-book {
    background: rgba(240, 237, 230, 0.9);
    border-radius: 12px;
}

.old-web-box {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 18px;
    border-radius: 6px;
    margin: 18px 0;
    border: 1px solid #00ff00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
    font-size: 14px;
}

.old-web-box p {
    margin-bottom: 10px;
    text-shadow: 0 0 6px #00ff00;
}

/* this does the guest book form */
.guestbook-form {
    background: rgba(248, 246, 240, 0.9);
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border: 2px solid #8b7355;
    border-radius: 6px;
    font-family: 'Indie Flower', cursive;
    font-size: 16px;
    background: rgba(248, 246, 240, 0.9);
}

.guestbook-form button {
    background: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    
    font-family: 'Indie Flower', cursive;
    font-size: 16px;
    font-weight: bold;
}

.guestbook-form button:hover {
    background: #4b0082;
    
}

/* this is for the retro counter */
.retro-counter {
    text-align: center;
    background: rgba(240, 237, 230, 0.9);
    color: #8B4513;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.blink {
    animation: blink 1.5s infinite;
    font-weight: bold;
    font-size: 1.2em;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* this does the footer */
.footer {
    grid-column: 2 / 3;
    text-align: center;
    background: transparent; /* Hide the background */
    border: none; /* Hide the border */
    border-radius: 0; /* Remove border radius */
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 75px;
    box-shadow: none; /* Hide the box shadow */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Removed the emoji background pattern */
    pointer-events: none;
    z-index: 0;
}

.footer-cats {
    font-size: 1.6em;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

.footer-cats span {
    display: inline-block;
    margin: 0 12px;
    animation: wiggle 3s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(4deg); }
    75% { transform: rotate(-4deg); }
}

.footer p {
    margin-bottom: 10px;
    color: #f7f7f7; /* Bright beige color */
    position: relative;
    z-index: 1;
    font-size: 1.5em; /* Make text even bigger */
    opacity: 1; /* Show the text */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for better readability */
}

.footer a {
    color: #F5F5DC; /* Bright beige color */
    text-decoration: none;
    font-weight: bold;
    position: relative;
    z-index: 1;
    font-size: 1.2em; /* Make text bigger */
    opacity: 1; /* Show the text */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for better readability */
}

.footer a:hover {
    text-decoration: underline;
    color: #F5F5DC; /* Keep bright beige on hover */
    
    opacity: 1; /* Show on hover */
}

.footer a img {
    vertical-align: middle;
    margin-left: 8px;
    opacity: 1; /* Show the image */
}

/* Footer flowers decoration */
.footer-flowers {
    width: 100vw;
    height: 70px;
    background: url('assets/footerflowers.png') repeat-x;
    position: fixed;
    left: 0;
    bottom: 0px;
    z-index: 20;
}

.knight-left {
    position: fixed;
    left: 50px;
    bottom: 0px;
    height: 400px;
    width: auto;
    z-index: 10;
}

.knight-right {
    position: fixed;
    right: 50px;
    bottom: 0px;
    height: 360px;
    width: auto;
    z-index: 10;
}

/* Bottom background image styling */
.bottom-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 1;
}

.bottom-background img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    max-height: 500px;
}

/* this does the version number styling */
.version-number {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 11px;
    color: rgba(139, 69, 19, 0.4);
    font-family: 'Courier New', monospace;
    z-index: 1000;
    pointer-events: none;
    user-select: none;
    opacity: 0; /* Hide the version number but keep its space */
}

/* this is for the links */
a {
    color: #8B4513;
    transition: color 0.3s ease;
    
}

a:hover {
    color: #4b0082;
    
}

/* this does the lists */
ul {
    margin-left: 22px;
}

li {
    margin-bottom: 6px;
}

/* this is for strong text */
strong {
    font-weight: bold;
    color: #4b0082;
}

/* this does emphasized text */
em {
    font-style: italic;
    color: #8B4513;
}

/* this handles scrollbar styling */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #f4e8d8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #8b7355;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
} 

/* this is for responsive design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .footer {
        order: 3;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .nini-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .cat-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .gif-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2.2em;
    }
    
    .title::before,
    .title::after {
        content: none !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .nini-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .cat-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gif-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .section {
        padding: 18px;
    }
    
    .header-cat {
        font-size: 10px;
        padding: 10px;
    }
    
    body {
        font-size: 16px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .page-info {
        font-size: 16px;
        padding: 8px 16px;
    }
} 

/* this is for the cat links section */
.cat-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* this is for the nekowebring section */
#nekowebring .webring-info > a:first-of-type {
    position: relative;
    top: 12px;
    display: inline-block;
}

.cat-link-card {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.cat-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.cat-link-card > * {
    position: relative;
    z-index: 1;
}

.cat-link-card:hover {
    transform: translateY(-3px);
    border-color: #c4b498;
    box-shadow: 
        0 6px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 69, 19, 0.15);
}

.cat-link-card h3 {
    margin: 0 0 15px 0;
    color: #8B4513;
    font-size: 1.2em;
}

.cat-link-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-link-card li {
    margin-bottom: 8px;
}

.cat-link-card a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cat-link-card a:hover {
    color: #D2691E;
    text-decoration: underline;
}

/* this is for the atabook section */
.atabook-container {
    margin-top: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
}

.atabook-frame {
    border-radius: 8px;
    background: white;
} 

/* remove paw print before links in the buttons widget only */
.widget h4:contains('Buttons') + div a::before,
.widget h4:contains('🎨 Buttons') + div a::before {
    content: none !important;
    margin-right: 0 !important;
} 

.button-links a::before {
    content: none !important;
    margin-right: 0 !important;
}

.button-links {
    margin: 5px 0 !important;
}

.button-links a {
    margin: 0 0.5em !important;
}

.button-links a:hover {
    background: none !important;
    text-decoration: none !important;
}

/* remove hover effect for the banner button */
.widget a[href="https://kadser.nekoweb.org/"]:hover {
    background: none !important;
    text-decoration: none !important;
}

/* remove paw prints from all links */
a::before {
    content: none !important;
    margin-right: 0 !important;
}

/* this is for the site stats section */
.site-stats {
    margin-top: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.stat-item > * {
    position: relative;
    z-index: 1;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #c4b498;
    box-shadow: 
        0 6px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 69, 19, 0.15);
}

.stat-item h3 {
    color: #8B4513;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.2);
}

.stat-item p {
    color: #8B4513;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.1);
} 

#statuscafe {
    padding: 15px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 240, 0.98) 100%) !important;
    border: 2px solid #8B4513 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15) !important;
    font-family: 'KTEGAKI', cursive !important;
    color: #8B4513 !important;
    position: relative !important;
    margin-top: 10px !important;
    display: block !important;
}

#statuscafe::before {
    content: '' !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    width: 20px !important;
    height: 20px !important;
    border-top: 3px solid #8B4513 !important;
    border-left: 3px solid #8B4513 !important;
}

#statuscafe::after {
    content: '' !important;
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    border-bottom: 3px solid #8B4513 !important;
    border-right: 3px solid #8B4513 !important;
}

#statuscafe-username {
    margin-bottom: 10px !important;
    font-weight: bold !important;
    font-size: 0.9em !important;
    text-align: center !important;
    border-bottom: 2px dotted #8B4513 !important;
    padding-bottom: 8px !important;
    opacity: 0.8 !important;
    font-family: 'KTEGAKI', cursive !important;
    color: #8B4513 !important;
}

#statuscafe-content {
    margin: 0 !important;
    line-height: 1.6 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
    font-family: 'KTEGAKI', cursive !important;
    color: #8B4513 !important;
}

/* Alternative selectors in case the structure changes */
div[id="statuscafe"] {
    padding: 15px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 240, 0.98) 100%) !important;
    border: 2px solid #8B4513 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15) !important;
    font-family: 'KTEGAKI', cursive !important;
    color: #8B4513 !important;
    position: relative !important;
    margin-top: 10px !important;
}

div[id="statuscafe-username"] {
    margin-bottom: 10px !important;
    font-weight: bold !important;
    font-size: 0.9em !important;
    text-align: center !important;
    border-bottom: 2px dotted #8B4513 !important;
    padding-bottom: 8px !important;
    opacity: 0.8 !important;
    font-family: 'KTEGAKI', cursive !important;
    color: #8B4513 !important;
}

div[id="statuscafe-content"] {
    margin: 0 !important;
    line-height: 1.6 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
    font-family: 'KTEGAKI', cursive !important;
    color: #8B4513 !important;
}

/* Rank decoration for right sidebar */
.sidebar:not(.left-sidebar)::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -40px;
    width: 200px;
    height: 500px;
    background-image: url('assets/rank1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scaleX(1) scaleY(-1);
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}

/* Rank2 decoration for right sidebar */
.sidebar:not(.left-sidebar) {
    position: relative;
}

.sidebar:not(.left-sidebar)::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -40px;
    width: 200px;
    height: 500px;
    background-image: url('assets/rank1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scaleX(1) scaleY(-1);
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}

/* Rank2 decoration for right sidebar - using a different approach */
.sidebar:not(.left-sidebar) .rank2-decoration {
    content: '';
    position: absolute;
    top: 580px;
    right: -105px;
    width: 200px;
    height: 600px;
    background-image: url('assets/rank2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scaleX(1) scaleY(1);
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

/* Header layout for follow button */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    position: relative;
}

/* Top banner positioning */
.top-banner-left {
    position: fixed;
    top: -10px;
    left: 10px;
    z-index: 1000;
}

.top-banner-right {
    position: fixed;
    top: -10px;
    right: 10px;
    z-index: 1000;
}

.header-reading {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.header-angel {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-right {
    position: absolute;
    bottom: 10px;
    right: 15px;
    z-index: 10;
}

.follow-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(252, 250, 244, 0.95) 0%, rgba(245, 242, 235, 0.9) 100%);
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    color: #8B4513;
    font-weight: normal;
    text-decoration: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(139, 69, 19, 0.1);
    font-size: 14px;
    min-width: 140px;
    text-align: center;
    font-family: 'KTEGAKI', cursive;
    position: relative;
    overflow: hidden;
    transform: rotate(-4deg);
    margin-right: 10px;
    line-height: 1.2;
}

.follow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="paper" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%238b7355" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

.follow-button span {
    position: relative;
    z-index: 1;
}

.follow-button:hover {
    transform: translateY(-2px) rotate(-4deg);
    box-shadow: 
        0 6px 12px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 69, 19, 0.15);
    border-color: #c4b498;
}

/* Follow button styles */
.follow {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: 2px solid #ff4757;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 107, 157, 0.3);
}

.follow:hover {
    background: linear-gradient(135deg, #ff5252, #b33939);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 157, 0.4);
}

.following {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    border: 2px solid #2ed573;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(46, 213, 115, 0.3);
}

.following:hover {
    background: linear-gradient(135deg, #26d0ce, #2ed573);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 213, 115, 0.4);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-right {
        padding-top: 0;
    }
    
    .header-cats {
        gap: 10px !important;
    }
    
    .header-cat img {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Adjust top banner size on mobile */
    .top-banner-left img,
    .top-banner-right img {
        width: 60px !important;
        height: auto !important;
        max-height: 80px !important;
    }
    
    /* Adjust reading image size and position on mobile */
    .header-reading {
        left: 10px;
    }
    
    .header-reading img {
        width: 120px !important;
        height: auto !important;
        max-height: 180px !important;
    }
    
    /* Adjust angel image size and position on mobile */
    .header-angel {
        right: 35px;
    }
    
    .header-angel img {
        width: 96px !important;
        height: auto !important;
        max-height: 144px !important;
    }
    
    /* Adjust top banner positioning on mobile */
    .top-banner-left {
        top: 5px;
        left: 5px;
    }
    
    .top-banner-right {
        top: 5px;
        right: 5px;
    }
}
