/* fonts */
@font-face {
    font-family: adabelle;
    src: url(https://dl.dropbox.com/s/kp4x66rhekt1fz5/AdabelleHandwriting-Regular.ttf);
}

@font-face {
    font-family: Nintendo-DS-BIOS;
    src: url(https://dl.dropbox.com/s/vlxjtnvrl9s0snp/Nintendo-DS-BIOS.ttf);
}

@font-face {
    font-family: starborn;
    src: url(https://dl.dropbox.com/s/l0541on0m5eqvdj/Starborn.ttf);
}

@font-face {
    font-family: cutie;
    src: url(https://dl.dropbox.com/s/xo075bh6tbd4f7d/CP.ttf);
}

@font-face {
    font-family: magazine;
    src: url(https://dl.dropbox.com/s/9a122x5sim0udkw/MagazineLetterByBrntlbrnl-Regular.ttf);
}

@font-face {
    font-family: pixel;
    src: url(https://dl.dropbox.com/s/kmhe7d3n18vdz5e/w95fa.woff?dl=0);
}
 
@font-face {
    font-family: Frighted;
    src: url(https://dl.dropbox.com/s/ct0s037q78sao3f/Frighted.ttf);
}

@font-face {
    font-family: DigiBop;
    src: url(https://dl.dropbox.com/s/8maabpvuycdrlai/DigiBop-Regular.ttf);
}

@font-face {
    font-family: hearts;
    src: url(https://dl.dropbox.com/s/1479f8x52y3z5u4/rainyhearts.ttf);
}

/* scrollbar */
html {
    overflow: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
}

/* link */
a {text-decoration: none; color: black;}

/* cursor */
body, * {
    cursor: url('https://cdn.cursors-4u.net/previews/russian-blue-cat-c0431f6b-32.webp') 32 32, auto !important;
}

/* background */
body {
    background-image: url('https://i2.glitter-graphics.org/pub/429/429692wfax5f9gka.jpg');
    background-attachment: fixed;
    background-repeat: repeat;
    /*overflow: hidden;*/
}

/* container with boundary */
.container {
    border-width:12px;
    border-style:solid;
    border-image: url("https://i.imgur.com/Kh6qtcn.png") 11 fill round;
    margin: auto;
    width: 884px;
    height: 780px;
    position: relative;
    padding: 5px;
    z-index: 4;
}

/* banner */
.container-one {
    background-image: url('https://i1.glitter-graphics.org/pub/519/519821po41a2leng.gif');
    background-repeat: repeat;
    width: 881px;
    position: relative;
    left: 2px;
    height: 170px;
    z-index: 3;
}
.name {
    font-family: cutie;
    font-size: 4em;
    color: #FFFFFF;
    position: relative;
    text-align: center;
    top: 65px;
}

/* about me */
.bg, .in { box-sizing: border-box;}
.bg {
    background: #FE82B624;
    background-image:url(https://i2.glitter-graphics.org/pub/774/774142q984xsoj8d.gif);
    background-repeat: repeat;
    padding:10px;
    width:43%;
    position: absolute;
    top: 190px;
    left: 10px;
    border-radius: 20px;
}
.in {
    background: #FFF;
    color: #000;
    padding:10px;
    border:1px solid black;
    font-family: pixel;
    line-height: 1.125em;
    height: 150px;
    overflow-y:auto;
    border-radius: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    box-shadow: inset 13px 0 6px -10px rgb(66 66 66 / 30%), inset -13px 0 6px -10px rgb(66 66 66 / 30%), inset 0 13px 6px -10px #f0f0f0, inset 0 0 0 -10px rgb(66 66 66 / 30%);
}
.intro {
    font-family: Nintendo-DS-BIOS;
    color: black;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 13px;
    margin-left: 5px;
    letter-spacing: 1px;
}
mark {
    font-family: Frighted;
    line-height: 1.2;
    background: linear-gradient(#361F02 50%, white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1em;
}

/* external links */
.navi {
    border: 4px solid #c8a98c;
    height: 70px;
    background: white;
    width: 180px;
    position: relative;
    box-shadow: inset 13px 0 6px -10px rgb(66 66 66 / 30%), inset -13px 0 6px -10px rgb(66 66 66 / 30%), inset 0 13px 6px -10px #f0f0f0, inset 0 0 0 -10px rgb(66 66 66 / 30%);
    margin-top: 230px;
    margin-left: 12px;
    border-radius: 30px;
}
.button-link {
    border-radius: 50px;
    border: 2px solid black;
    background-image: url('https://dl.glitter-graphics.com/pub/3468/3468218gbo7gsyyum.jpg');
    background-size: cover;
    font-family: pixel;
    font-size: 1.1em;
    color: black;
    width: 130px;
    height: 22px;
    margin-top: 8px;
    margin-left: 25px;
}

/* calender */
.custom-calendar {
    position: absolute;
    top: 190px;
    left: 673px;
    width: 180px;
    height: 200px;
    background-color: #a6cbfa;
    border: 3px solid #768deb;
    border-radius: 16px;
    padding: 12px;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Fredoka One', sans-serif;
    z-index: 7;
}
.custom-header {
    font-family:'pixel';
    font-size: 20px;
    font-weight: bold;
    color: #14385d;
    margin-bottom: 10px;
    text-align: center;
    background: #6398f5;
    padding: 4px;
    border-radius: 20px;
}
.custom-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 9px;
    color: #3c048b;
    margin-bottom: 6px;
    font-weight: bold;
    text-transform: uppercase;
}
.custom-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
    font-size: 8px;
}
.custom-day-cell {
    padding: 6px 0;
    background: #cae0f9;
    border-radius: 8px;
    color: #101010;
    font-weight: bold;
    transition: transform 0.2s ease;
}
.custom-day-cell:hover {
    transform: scale(1.1);
    background: #bbceed;
    cursor: pointer;
}
.custom-day-empty {
    background: transparent;
}
.custom-day-cell.current-custom-day {
    background: #7e92ec;
    border: 2px dashed #2b1146;
    color: #050505;
    animation: custom-bounce 1s infinite alternate;
}
@keyframes custom-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}


/* custom popup */
.custom-popup-hidden {
    display: none;
}
.custom-popup-visible {
    display: block;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    padding: 6px 15px;
    border: 1px solid #ffb6c1;
    border-radius: 12px;
    font-size: 12px;
    font-family: sans-serif;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
    0% { top: -20px; opacity: 0; }
    100% { top: 15px; opacity: 1; }
}

/* credits */
.simple-resources {
    position: absolute;
    top: 500px;
    left: 680px;
    width: 200px;
    box-sizing: border-box;
}
.resources-list {
    max-height: 130px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    background-color: #c0c6f0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.resources-list a {
    font-size: 0.9rem;
    color: #555;
    width: max-content;
}
.resources-list a:hover {
    color: #8387f4;
}
.resources-title {
    background-color: #ffffff; 
    margin: 0;
    padding: 3px 0 5px 0;
    border-radius:15px;
    text-align: center;
    font-family: starborn;
    font-size: 14px;
    color: #333333;
    letter-spacing: 1px;
}
.link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.link-with-icon img {
    width: 15px;
    height: auto;
}

/* phone */
.phone_pos {
    position: absolute;
    top: 300px;
    left: 410px;
}
.iphone-se-container {
    width: 250px;
    height: 450px;
    background-color: #1e1e1e;
    border: 4px solid #3a3a3a;
    border-radius: 36px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.iphone-top-bezel {
    width: 100%;
    height: 45px;
    background-color: #1e1e1e;
    position: relative;
    flex-shrink: 0;             
    display: flex;
    justify-content: center;
    align-items: center;
}
.iphone-speaker {
    width: 35px;
    height: 3px;
    background-color: #444;
    border-radius: 10px;
}
.iphone-camera {
    position: absolute;
    left: 115px;
    top: 19px;
    width: 6px;
    height: 6px;
    background-color: #0d1b2a;
    border-radius: 50%;
}
.iphone-bottom-bezel {
    width: 100%;
    height: 55px;
    background-color: #1e1e1e;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.iphone-home-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #444;     
    background-color: #1e1e1e;
    cursor: pointer;
    box-shadow: inset 0px 1px 3px rgba(0,0,0,0.2);
}
.iphone-screen-scroll {
    width: 100%;
    flex-grow: 1;               
    background-color: #fff5f6;  
    overflow-y: auto;           
    overflow-x: hidden;
    padding: 16px;
    box-sizing: border-box;
    scrollbar-width: none; 
}
.iphone-screen-scroll::-webkit-scrollbar { width: 0; background: transparent; }

/* phone dialogue */
.dialogue-content-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.chat-bubble {
    max-width: 80%;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.2;
    word-wrap: break-word;
    font-family: hearts;
}
.bubble-left {
    align-self: flex-start;
    background-color: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px;
    border: 1px solid #ffd1dc;
}
.bubble-right {
    align-self: flex-end;
    background-color: #ffb6c1;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.bubble-right p, .bubble-left p { margin: 0; }


/* Main Notebook Outer Container */
.notebook-container {
    position: absolute;
    width: 175px;
    height: 130px;
    top: 360px;
    left: 220px;

    background: #dbd9d9;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column; /* Stacks header above scrollable content */
    margin-top: 20px; /* Adjusted space for smaller top spiral rings */
}

/* Scaled Spiral Rings Generator (Top Edge) */
.notebook-container::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 5%;
    width: 90%;
    height: 16px;
    /* Generates smaller, tighter repeating spiral loops */
    background: repeating-linear-gradient(
    to right,
    #95a5a6 0px,
    #95a5a6 4px,
    #bdc3c7 6px,
    transparent 6px,
    transparent 16px
    );
    z-index: 10;
}

/* Scaled Fixed Title Region (Does not scroll) */
.notebook-header {
    padding: 12px 10px 8px 10px; /* Reduced padding for tight space */
    border-bottom: 1.5px solid #e2e8f0;
    background-color: #c7f7e0;
    flex-shrink: 0; /* Prevents the header from shrinking */
}

.notebook-title {
    font-family: DigiBop;
    margin: 0;
    font-size: 0.85rem; /* Smaller font to fit the 180px width cleanly */
    color: #2c3e50;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Safely cuts off text if title gets too long */
}

.note_text {
    font-family: adabelle;
    line-height: 1.4;
    font-size: 13px;
}

.notebook-content {
    flex-grow: 1; /* Fills up all remaining vertical space */
    overflow-y: auto; /* Activates vertical scrollbar when content overflows */
    padding: 10px; /* Compact padding */
    
    /* Typography optimized for a tiny micro-container */
    font-size: 0.75rem; 
    line-height: 14px; 
    color: #475569;
}

/* Clean spacing for text inside the tiny container */
.notebook-content p {
    margin: 0 0 8px 0;
}
.notebook-content p:last-child {
    margin-bottom: 0;
}

/* Ultra-thin Scrollbar to maximize viewing area */
.notebook-content::-webkit-scrollbar {
    width: 4px;
}
.notebook-content::-webkit-scrollbar-track {
    background: transparent;
}
.notebook-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.notebook-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tamagotchi Egg Shell */
.tamagotchi-container {
    position: absolute;

    width: 250px;
    height: 275px;

    top: 500px;
    left: 20px;
    background: linear-gradient(135deg, #fff9db, #ffe066); /* Retro coral red */
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%; 
    box-shadow: inset -6px -10px 15px rgba(0,0,0,0.2), 
                inset 6px 6px 10px rgba(255,255,255,0.4),
                0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px;
}

/* Keychain Loop Hole at the top */
.tamagotchi-container::before {
    content: "";
    position: absolute;
    top: -6px;
    width: 14px;
    height: 14px;
    background: #bdc3c7;
    border: 3px solid #7f8c8d;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: -1;
}

/* Outer Screen Frame Decoration */
.screen-frame {
    width: 175px;
    height: 130px;
    background: #f6ecdb;
    border: 3px solid #fcc419;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
    margin-bottom: 5px;
}

/* The Internal LCD Screen Frame Container */
.lcd-screen {
    width: 135px;
    height: 100px;
    background-color: #a4b0be; /* Retro greenish-gray LCD background */
    border: 2px solid #57606f;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Fixed Header Zone (Does not move or scroll) */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 4px 6px;
    box-sizing: border-box;
    border-bottom: 1px dashed #57606f;
    flex-shrink: 0; /* Keeps it from squishing */
    
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: bold;
    color: #1e272e;
}

/* Scrollable Content Layer (Below the Header) */
.scrollable-content {
    flex-grow: 1; /* Absorbs the rest of the height */
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    overflow-y: auto; /* Active scrolling for text only */
    
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.6rem;
    font-weight: bold;
    line-height: 11px;
    color: #1e272e;
    scrollbar-width: none;
}

.scrollable-content p {
    margin: 0 0 8px 0;
}
.scrollable-content p:last-child {
    margin-bottom: 0;
}

/* Micro Bouncing Duck Graphic inside Header */
.duck-wrapper {
    display: inline-block;
    animation: mini-bounce 0.6s infinite alternate ease-in-out;
}

.mini-duck {
    position: relative;
    width: 16px;
    height: 14px;
}

/* Tiny Duck Body */
.duck-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 13px;
    height: 9px;
    background-color: #1e272e;
    border-radius: 4px 4px 5px 5px;
}

/* Tiny Duck Head */
.duck-head {
    position: absolute;
    top: 0;
    right: 1px;
    width: 8px;
    height: 8px;
    background-color: #1e272e;
    border-radius: 50%;
}

/* Tiny Duck Beak */
.duck-beak {
    position: absolute;
    top: 2px;
    right: -2px;
    width: 4px;
    height: 2px;
    background-color: #1e272e;
    border-radius: 0 1px 1px 0;
}

/* Tiny Duck Eye (LCD cutout) */
.duck-eye {
    position: absolute;
    top: 2px;
    right: 3px;
    width: 1.5px;
    height: 1.5px;
    background-color: #a4b0be;
    border-radius: 50%;
}

/* Animation Keyframes for the Mini Header Duck */
@keyframes mini-bounce {
    0% {
    transform: translateY(0px);
    }
    100% {
    transform: translateY(-2px); /* Tighter, localized micro-bounce */
    }
}

/* Front Face Buttons (Purely Decorative) */
.button-rack {
    display: flex;
    gap: 14px;
    margin-top: 5px;
}

.tama-btn {
    width: 14px;
    height: 14px;
    background: #d0bfff;; 
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 0 #4e3161, 0 4px 5px rgba(0,0,0,0.2);
}

/* Ultra-fine custom scrollbar for text layer */
.scrollable-content::-webkit-scrollbar {
    width: 3px;
}
.scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(30, 39, 46, 0.4);
    border-radius: 2px;
}

