@font-face {
    font-family: 'Pixelify Sans';
    src: url('fonts/PixelifySans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Prata';
    src: url('fonts/Prata/Prata-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    background-image: url(images/star.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'georgia', serif;
    
}

/* Override background for Layla's art page */
.laylas-art-page {
    background-image: url(images/layla.jpg) !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*GIFS-----------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

#gifs {
    position: absolute;
    z-index: 1000;
}

#cursor-gif {
    display: block;
    width: 150px;
    height: auto;
    margin: auto;
    position: absolute;
    left: 685px;
    top: 540px;
}

#dance-girl {
    display: block;
    width: 150px;
    height: auto;
    margin: auto;
    border: 5px solid rgb(0, 0, 0);
    position: absolute;
    left: 250px;
    top: 550px;
}

#scene-text {
    display: block;
    width: 250px;
    height: auto;
    margin: auto;
    position: absolute;
    left: -700px;
    top: 470px;
    box-align: center;
    z-index: 500;
    font-family: 'pixelify sans', sans-serif;
    font-size: 50px;
    color: white;
    text-shadow:-3px -3px 0 rgb(13, 42, 170), 3px -3px 0 rgb(13, 42, 170),
          -3px 3px 0 rgb(13, 42, 170), 3px 3px 0 rgb(13, 42, 170);
}

#scene-gif {
    display: block;
    width: 250px;
    height: auto;
    margin: auto;
    border: 5px solid rgb(0, 0, 0);
    position: absolute;
    left: -720px;
    top: 460px;
    z-index: 400;
}

#phone-gif {
    display: block;
    width: 150px;
    height: auto;
    margin: auto;
    position: absolute;
    left: -845px;
    top: 45px;
}

#rick1 {
    display: block;
    width: 300px;
    height: auto;
    margin: 20px auto;
    border: 5px solid lab(51.34% 77.25 -21.55);
    border-radius: 8px;
    position: absolute;
    left: 600px;
    top: 95px;
}

#rick2 {
    display: block;
    width: 300px;
    height: auto;
    margin: 20px auto;
    border: 5px solid lab(51.34% 77.25 -21.55);
    border-radius: 8px;
    position: absolute;
    left: 600px;
    top: 350px;
}

#rick3 {
    display: block;
    width: 300px;
    height: auto;
    margin: 20px auto;
    border: 5px solid lab(51.34% 77.25 -21.55);
    border-radius: 8px;
    position: absolute;
    left: 600px;
    top: 605px;
}

/*HEADER--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
#header {
    border: white 7px groove;
    /* let header grow to fit nav */
    background-image: url(images/sky.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 12px 20px;
    position: relative;
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
h1 {
    text-align: center;
    color: white;
    font-size: 70px;
    text-shadow: -3px -3px 0 lab(51.34% 77.25 -21.55), 3px -3px 0 lab(51.34% 77.25 -21.55),
          -3px 3px 0 lab(51.34% 77.25 -21.55), 3px 3px 0 lab(51.34% 77.25 -21.55); color: white;
    font-family: Pixelify Sans, sans-serif;
}


#container h2 {
    text-align: center;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 70px;
    color: white;
    text-shadow: -3px -3px 0 lab(51.34% 77.25 -21.55), 
                 3px -3px 0 lab(51.34% 77.25 -21.55),
                -3px 3px 0 lab(51.34% 77.25 -21.55), 
                 3px 3px 0 lab(51.34% 77.25 -21.55);
    margin-top: 20px;
}
#container p {
    font-size: 30px;
    line-height: 1.6;
    font-family: 'Pixelify Sans', sans-serif;
    margin: 5px 0;
    color: lab(51.34% 77.25 -21.55);
    text-shadow: -3px -3px 0 white, 
                 3px -3px 0 white,
                -3px 3px 0 white, 
                 3px 3px 0 white;
    width: 50%;
    left: 35%;
    position: absolute;
}

/* Main content wrapper */
.content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 1600px;
    justify-content: center;
    align-items: flex-start; /* keep columns aligned at the top */
}

/* Right sidebar containing side panel and updates */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    /* fixed width to keep sidebar items together */
    flex: 0 0 450px;
    width: 450px;
    align-items: stretch;
}

/* navigation inside the container */
#nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    margin: 0; /* header spacing handled by header gap */
    flex-wrap: wrap; /* allow items to wrap on smaller screens */
}

#nav .nav-item a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-width: 120px; /* keeps buttons uniform */
    height: 40px;
    background: linear-gradient(180deg, #ff8bb3, #ff5a8a);
    border-radius: 8px;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

#nav .nav-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* make nav buttons smaller on narrow screens */
@media (max-width: 700px) {
    #nav { gap: 8px; }
    #nav .nav-item a { min-width: unset; padding: 6px 10px; font-size: 14px; height: 36px; }
}

/* Ensure sidebar stays to the right on medium screens by reducing main container max width */
@media (max-width: 1300px) {
    #container { flex: 1 1 60%; max-width: calc(100% - 480px); }
    .right-sidebar { flex: 0 0 360px; width: 360px; }
}

/* Stack layout on small screens */
@media (max-width: 900px) {
    .content-wrapper { flex-direction: column; align-items: center; }
    .right-sidebar { width: 100%; flex: none; }
    #container { max-width: 100%; }
}

/*pink container, grrrr-------------------------------------------------------------------------------------------------------------------------------------------------------*/
#container {
    border: white 7px groove;
    height: 1000px;
    /* make the main container flexible so the right sidebar fits beside it */
    flex: 1 1 800px;
    max-width: 1000px;
    width: auto;
    overflow: hidden;
    padding: 50px;
    background-image: url(images/pink.png);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    flex-shrink: 1;
    z-index: 10;
}
/*CHATBOX--------------------------------------------------------------------------*/

#chatbox {
    border: lab(56.8% 65.36 -21.96) 7px groove;
    height: 450px;
    width: 270px;
    overflow: hidden;
    padding: 5px;
    background-color: lab(89.75% 14.22 -6.31);
    position: absolute;
    flex-shrink: 0;
    margin-top: 0px;
}


/*side section-----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
#side {
    border: white 7px groove;
    height: 200px;
    width: 400px;
    padding: 50px;
    position: relative;
    flex-shrink: 0;
    background-color: white;
}

#side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/stars.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 50%;
    z-index: 0;
}
/*blog title---------------------------------------------------*/
#blog-title {
    position: absolute;
    color: white;
    font-size: 85px;
    text-align: center;
    z-index: 1;
    top: 37%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-weight: bold;
    font-family: 'Pixelify Sans', sans-serif;
    text-shadow: -3px -3px 0 lab(51.34% 77.25 -21.55), 3px -3px 0 lab(51.34% 77.25 -21.55),
          -3px 3px 0 lab(51.34% 77.25 -21.55), 3px 3px 0 lab(51.34% 77.25 -21.55); color: white;
    
}
/*jellyfish image----------------------------------------------------------------------------------*/
#jellyfish {
    display: block;
    width: 300px;
    margin: 0 auto;
    border: 5px solid palevioletred;
    opacity: 0.7;
    position: relative;
    z-index: 0;
}

/* side actions (buttons) */
.side-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    position: relative;
    z-index: 2;
}

/* blog post button -------------------------------------------------------------------------------------*/
.btn, #blog-posts {
    background: linear-gradient(180deg, #ff8bb3, #ff5a8a);
    color: #fff;
    border: none;
        padding: 16px 28px; /* bigger padding */
        min-width: 300px;   /* ensure noticeable width */
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
        font-size: 20px;    /* larger text */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover, #blog-posts:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 22px rgba(0,0,0,0.2);
}

.btn:active, #blog-posts:active {
    transform: translateY(0);
}
.btn:hover, #blog-posts:hover, #blog-posts:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 22px rgba(0,0,0,0.2);
}
.btn:active, #read-more:active, #blog-posts:active {
    transform: translateY(0);
}

#lil-heart {
    width: 25px;
    height: auto;
    margin-left: 2px;
    vertical-align: middle;
}

/*UPDATES BOX----------------------------------------------------------------------------------------------------------------------------------------------------------------*/

#updates {
    border: white 7px groove;
    height: 400px;
    width: 450px;
    overflow: auto;
    padding: 20px;
    background-color: white;
    position: relative;
    flex-shrink: 0;
}

#updates > * {
    position: relative;
    z-index: 1;
}

#updates::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1000px;
    background-image: url(images/smash.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: local;
    opacity: 30%;
    z-index: 0;
}

#updates h2 {
    position: relative;
    z-index: 1;
    text-align: center;
    font-family: 'Pixelify Sans', sans-serif;
    color: rgb(238, 239, 243);
    font-size: 40px;
    margin-top: -5px;
    margin-bottom: 15px;
    text-shadow:-3px -3px 0 rgb(13, 42, 170), 3px -3px 0 rgb(13, 42, 170),
          -3px 3px 0 rgb(13, 42, 170), 3px 3px 0 rgb(13, 42, 170);
}

#updates h3 {
    position: relative;
    z-index: 1;
    font-family: 'Pixelify Sans', sans-serif;
    color: rgb(238, 239, 243);
    font-size: 25px;
    margin: 10px 0;
    text-shadow:-3px -3px 0 rgb(13, 42, 170), 3px -3px 0 rgb(13, 42, 170),
          -3px 3px 0 rgb(13, 42, 170), 3px 3px 0 rgb(13, 42, 170);
}
#updates p {
    position: relative;
    z-index: 1;
    font-family: 'Pixelify Sans', sans-serif;
    color: rgb(238, 239, 243);
    font-size: 25px;
    margin: 5px 0 15px 0;
    text-shadow: -2px -2px 0 rgb(13, 42, 170),  
                 2px -2px 0 rgb(13, 42, 170),
                -2px  2px 0 rgb(13, 42, 170),
                 2px  2px 0 rgb(13, 42, 170);
}


/*ABOUT PAGE*/

#container-about {
    border: white 7px groove;
    height: 700px;
    width: 1000px;
    overflow: auto;
    padding: 50px;
    position: relative;
    flex-shrink: 0;
    background-image: url(images/paper.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: local;
}
#container-about > * {
    position: relative;
    z-index: 1;
}

#h2-about {
    text-align: center;
    font-family: 'Pixelify Sans', sans-serif;
    color: lab(51.34% 77.25 -21.55);
    font-size: 70px;
    
}

#p-about {
    font-size: 50px;
    line-height: 1.6;
    font-family: 'Pixelify Sans', sans-serif;
    margin: 20px 0;
    color:lab(51.34% 77.25 -21.55);
}

/*ART GALLERY*/

#h2-art-gallery {
    text-align: center;
    font-family: 'Pixelify Sans', sans-serif;
    color: white;
    font-size: 70px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    text-shadow: 4px -4px 0 rgb(13, 42, 170),  
                 4px -4px 0 rgb(13, 42, 170),
                -4px  4px 0 rgb(13, 42, 170),
                 4px  4px 0 rgb(13, 42, 170);
}

#container-art-gallery {
    border: white 7px groove;
    height: 900px;
    width: 1300px;
    overflow: auto;
    padding: 50px;
    position: relative;
    flex-shrink: 0;
    background-color: white;
    background-size: 1000px;
    background-position: center;
    background-attachment: local;
    background-repeat: repeat;
}

#container-art-gallery >* {
    position: relative;
    z-index: 1;
}

#container-art-gallery::before {
     content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/swirly.jpeg);
    background-repeat: repeat;
    background-size: cover;
    opacity: 0.7;
    z-index: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-gap: 10px;
}

#art {
    width: 645px;
    height: auto;
    border: 5px solid lab(51.34% 77.25 -21.55);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/*BLOG*/

#h2-blog {
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 50px;
    position: relative;
    z-index: 2;
    margin-top: -30px;
    text-shadow: 0 14px 22px #80616a;
}

#container-blog {
     border: white 7px groove;
    height: 1200px;
    /* make the main container flexible so the right sidebar fits beside it */
    flex: 1 1 800px;
    max-width: 1000px;
    width: auto;
    overflow: hidden;
    padding: 50px;
    background-image: url(images/pink.png);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    flex-shrink: 1;
}

#container-blog >* {
    position: relative;
    z-index: 1;
}

#container-blog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/soft.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.7;
    z-index: 0;
}

#side-blog {
   border: white 7px groove;
    height: 1000px;
    width: 400px;
    padding: 50px;
    position: relative;
    flex-shrink: 0;
    background-color: white;
}

#side-blog >* {
    position: relative;
    z-index: 1;
}

#side-blog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/jellyfish1.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.7;
    z-index: 0;
}

/*BLOG POSTS--------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

#blogposts {
    background: linear-gradient(180deg, #f0d2e2, #d1a8be);
    color: #fff;
    border: none;
        padding: 16px 28px; /* bigger padding */
        min-width: 300px;   /* ensure noticeable width */
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Pixelify Sans', sans-serif;
        font-size: 30px;    /* larger text */
    box-shadow: 0 6px 12px #c983a7;
    transition: transform 120ms ease, box-shadow 120ms ease;
    text-align: center;
}

#h2-blog-post {
    text-align: center;
    font-family: 'Pixelify Sans', sans-serif;
    color: rgb(80, 9, 50);
    font-size: 35px;
    margin-top: 20px;
}

#p-blogposts {
    font-size: 23px;
    line-height: 1.6;
    margin: 20px 0;
    color: rgb(80, 9, 50);
}


/*CODING PROJECTS*/

/*BOOK REVIEWS*/

/*LAYLAS ART*/

#container-layla {
    border: white 7px groove;
    height: 900px;
    width: 1300px;
    overflow: auto;
    padding: 50px;
    position: relative;
    flex-shrink: 0;
    background-color: white;
    background-image: url(images/greenbricks.png);
    background-size: 1000px;
    background-position: center;
    background-attachment: local;
    background-repeat: repeat;
}

#container-layla img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border: 5px solid lab(51.34% 77.25 -21.55);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

#h2-layla {
    text-align: center;
    font-family: 'Pixelify Sans', sans-serif;
    color: lab(51.34% 77.25 -21.55);
    font-size: 70px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    text-shadow:-3px -3px 0 white, 3px -3px 0 white,
          -3px 3px 0 white, 3px 3px 0 white;
}

/*COMMISSION INFO*/

#container-commissions {
    border : white 7px groove;
    height: 800px;
    width: 1000px;
    overflow: auto;
    padding: 50px;
    position: relative;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: local;
}

#container-commissions > * {
    position: relative;
    z-index: 1;
} 

#container-commissions::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1093px;
    height: 1300px;
    background-image: url(images/sparkleswirl.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

#h2-commissions {
    text-align: center;
    font-family: 'Prata', sans-serif;
    color: white;
    font-size: 70px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    text-shadow: 0cqb 14px 22px #581a6b;
}
#h2-commissions2 {
    text-align: center;
    font-family: 'Prata', sans-serif;
    color: white;
    font-size: 40px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    text-shadow: 0cqb 14px 22px #581a6b;
}
#p-commissions {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    font-family: 'Prata', sans-serif;
    margin: 20px 0;
    color: #581a6b;
    position: relative;
    z-index: 2;
    text-shadow: 0cqb 7px 7px white;
}