@font-face {
    font-family: 'script1';
    src: url('fonts/AstonScript.ttf') format('woff2');
}

#script {
    font-family: 'script1', sans-serif;
}

.entry-message{
    left: -40px;
    color:rgb(0, 0, 0); 
    -webkit-text-stroke: 0.3px #ffc7db;
    text-shadow: 0 0 10px #ffc7c7;
    font-size: 32px;
    overflow: hidden; /* hides welcome until animation begins*/
    /*keeps typing animation on a single line*/
    white-space: nowrap;
    /*hides the beginning of text*/
    width: 1;
    position: relative;
    /*steps for the number of characters in welcome*/
    animation: typing 4s steps(12) forwards;
    transition: transform 1s;
}

.entry-message::after{
    content: ''; /*blank line*/
    position: absolute;
    bottom:30px; /*keeps cursor at the bottom of the text*/
    right:0; /*keeps cursor at the end of revealed text*/
    width: 0.15ch; /*cursor is the width of one character*/
    height: 0.75px; /*cursor is flat line*/
    background-color: rgb(255, 191, 214);
    animation: blink 1s step-end infinite;
}

@keyframes typing {
    from{
        width: 0;
    }
    to{
        width: 16%;
    }
}

@keyframes blink {
   50%{
    opacity: 0;
   } 
}

body {
    margin: 0;
    padding: 0;
    background-color: rgb(253, 253, 253);
    background-image: url("https://i.pinimg.com/736x/21/e7/af/21e7aff7c476250cd600f13dc23b811d.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed; /* keeps it from scrolling with the page */
}

.layout{
    position: relative;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 0px;
    height: 89vh;
    right: 4%
}

.entry-image{
    border: 20px solid transparent;
    border-image: url("https://solaria.neocities.org/guides/borderimage/ivorylacelarge.png") 20 round;
    border-image-slice: 34;
    background-clip: padding-box;
    position: absolute;
    z-index:-1;
    align-self: center;
    right: 29%;
    opacity: 1;
    transition: opacity 1s ease;
    animation: blink 3s steps(10, end) infinite alternate;
    display: block;
    line-height: 0;
}

.entry-image img{
    height: 200px;
    width: 300px;
    opacity: 1;
    transition: opacity 1s ease;
    animation: blink 3s steps(10, end) infinite alternate;
}

.updates main{
    grid-area: main;
}

.side-bar{
    justify-content: center;
    position: fixed;
    right:40px;
    top:0;
    height: 100vh;
    width: 80px;
    display: flex;
    flex-direction:column;
    align-items: center;
    gap: 0px;
    opacity:0;
    transition: opacity 1.5s ease;
}

.side-item{
    display: flex;
    flex-direction: row-reverse;
    text-align: center;
    align-items: center;
    gap: 30px;
    cursor: pointer;
}

.side-item img{
    animation: beat .60s infinite alternate;
    transform-origin: center;
    height: 50px;
    width: 50px;
    object-fit: cover;
}

.side-bar p{
    width: 60px;
    margin: 0;
    color:#000000; 
    -webkit-text-stroke: 0.3px#ffc7db;
    text-shadow: 0 0 10px #ffc7c7;
}

@keyframes beat{
    from
    {
        transform: scale(0.70) rotate(-7deg)
    }
    to
    {
        transform: scale(0.90) rotate(1deg)
    }
}

.side-item p{
    justify-self: center;
}

body.active .entry-message{
    transform:translateX(-200px);
}

body.active .entry-image{
    opacity: 0;
}

body.active .side-bar{
    opacity:1;
}

.border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url("images/border2.png");
    background-repeat: no-repeat;
    background-size: auto 200px;
    background-position: top left;
    pointer-events: none; /* so it doesn't block clicks */
    z-index: 999;
    line-height: 0;
    font-size: 0;
}

.music-player{
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    z-index: 1000;
}

.play-button{
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.play-button img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song{
    font-size: 20px;
    color:rgb(0, 0, 0); 
    -webkit-text-stroke: 0.3px #ffc7db;
    text-shadow: 0 0 10px #ffc7c7;
}

.panel {
    position: fixed;
    top: 50%;
    right: 4%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 200px;
    border-radius: 40px;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), rgba(255, 182, 213, 0.7) 60%, rgba(230, 140, 180, 0.5));
    box-shadow: 
        0 0 30px rgba(255, 182, 213, 0.6),
        inset 0 4px 20px rgba(255,255,255,0.8);
    z-index: 100;
    padding-top: 0px;
    padding-bottom: 5px;
    padding-left: 10px;
    opacity: 0;
    pointer-events: none; /* prevents clicking when invisible */
    transition: opacity 1.5s ease;
    overflow: visible; /* change from hidden */
}

.panel-inner{
    line-height: 25px ;
    color: rgb(81, 33, 13);
    scrollbar-color: transparent transparent;
    height: 100%;
    overflow-y: auto; /* scrolling lives here */
    padding: none;
    border-radius: 22px; /* clips scroll content to rounded corners */
}

.panel-inner a{
    color: rgb(189, 132, 215);
    font-weight: bold;
    text-decoration-color: rgb(189, 132, 215);
    transition: text-shadow 0.3s ease;
}

.panel-inner a:hover{
    text-shadow: 0 0 100px #ffffff, 0 0 20px rgb(189, 132, 215);
}

.panel-inner h2{
    padding-right: 10px;
    text-align: right;
    letter-spacing: -2px;
    color: rgb(81, 33, 13);
    -webkit-text-stroke: 1px #ffffff;
    paint-order: stroke fill;
    text-shadow: 0 0 20px #ffffff;
}

.panel-inner h3{
    letter-spacing: 1px;
    color: rgb(81, 33, 13);
    text-shadow: 0 0 20px #ffffff;
}

.panel-inner p{
    text-align: center;
    color: rgb(63, 31, 10);
}

.panel-inner h3{
    color: rgb(81, 33, 13);
    text-align: right;
}

.panel-decor{
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 101;
}

.panel.active {
    opacity: 1;
    pointer-events: all; /* re-enables clicking when visible */
}

footer{
    position: fixed;
    margin-bottom: 5px;
    bottom: 0;
    width:100%;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease;
}

body.active footer{
    opacity:0;
}

/*
.intro{
    position: absolute;
    right: 28%; 
    opacity: 0;
    transition: opacity 1s ease;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.intro::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(images/bownotebook.png);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.about p {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 10px;
}

body.active .intro{
    opacity: 1;
}
*/