body{
    font-family: "Patrick Hand", cursive;
    font-style: normal;
    font-weight: 400;
    background-color: #1f2024;
    color: white;
    animation: fadeOn 5s;
    transition: background-color 1s linear;
}
.image-container{
    position: relative;
    width: 35%;
    height:400px;
    margin: auto;
    padding: 20px;
}
.slide-image{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.image-one {
    animation: fadeOne 10s infinite;
}
.image-two {
    animation: showImage 3s infinite;
}
@keyframes showImage{
    0%, 40%{
        opacity: 0;
    }
    40.1%, 90%{
        opacity: 1;
    }
    90.1%, 100%{
        opacity: 0;
    }
}
@keyframes fadeOn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
.button-container{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
}
.button{
    background-color: #1f2024;
    color: white;
    border: 1px solid white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    padding: 10px;
    text-decoration: none;
    margin: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s; 
}
.button:hover{
    background-color: white;
    color: #1f2024;
    transition: 0.5s;
    transform: translateY(-5px);
}
.Congrats{
    margin: 10px auto 0 auto;
    text-align: center;
    animation: fadeOn 1.5s ease-out;
    background-color: #19191c;
    border: 1px solid white;
    border-radius: 20px;
    width: 25%;
    font-size: 15px;
    padding: 15px;
}
.lesson{
    text-align: center;
    font-size: 24px;
    margin: 0 auto;
    background-color: #19191c;
    border: 1px solid white;
    border-radius: 20px;
    width: 50%;
    font-size: 15px;
    margin-top: 20px;
}
.Lesson-number{
    text-align:left;
    margin: 10px;
}
.lesson-content{
    text-align: left;
    margin: 10px;
}
@view-transition { navigation: auto; }
.countdown{
    text-align: center;
    font-size: 24px;
    margin: 0 auto;
    font-size: 15px;
}
.startMessage{
    font-size:15px;
    animation: startMessageFadeOn 5s;
}
@keyframes startMessageFadeOn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
.journal-image{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 20px;
}
.journal-container{
    position: relative;
    width: 65%;
    height:500px;
    margin: auto;
    padding: 20px;
    animation-name: slideInFromLeft;
    animation-duration: 1.2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}
@keyframes slideInFromLeft {
    0% {
        transform: translateX(100%);                  
    }
    100% {
        transform: translateX(0);
    }
}
@keyframes slideInFromBottom {
    0% {
        transform: translateX(60%)translateY(50%);
        opacity:0;
    }
    5%{
        transform: translateX(60%) translateY(50%);
        opacity:1;
    }
    100% {
        transform: translateX(60%) translateY(-40px);
        opacity:1;
    }
}
.picture-frame{
    background-color: rgb(247, 247, 235);
    width: 170px;
    height: 210px;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    padding-bottom: 40px;
}
.journal-before, .journal-after{
    display: block;
    object-fit: cover;
    width: 100%;
    height: 170px;
}
.journal-entry{
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}
.lesson-page-entry{
    display: flex;
    margin-left: 80px;
    gap: 30px;
    align-items: center;
}
input{
    padding: 10px;
    border: 1px solid #ccc;
    color: white;
    background-color: #19191c;
    border-radius: 20px;
    font-size: 16px;
    width: 700px;
}
.entry-input{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px; 
}
.reflectionDisplay{
    color: black;
    font-size:12px;
}
.reflectionContent{
    display:none;
    padding: 1px;
    width: 168px;
    color: black;
    font-size: 12px;
}
.journalPage{
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    height: 100%;
}
.reflectionContent.show{
    display:block;
    background-color: rgb(247, 247, 235);
    border-radius: 5px;
    margin-left: -10px;
    transition: all 0.3s ease-in-out;
}
.dropdown-btn{
    border:none;
    background-color: rgb(247, 247, 235);
}
.drawn-arrow {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 190px;
    top: 105px;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}
.journal-entries{
    position:relative;
    z-index: 2;
    padding: 50px;
}
.journal-page{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content:flex-start;
    transform: translateY(20px);
}
.lesson-title{
    color: black;
    font-size: 20px;
    text-align: center;
    margin: 0;
    padding: 20px 10px;
}
.lesson-info{
    color: black;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lesson-info p {
    margin: 5px;
}

.lesson-info p:first-child {
    font-size: 20px;
}

.lesson-info p:last-child {
    font-size: 14px;
    line-height: 1.3;
}
.journal-header{
    display:flex;
    justify-content: space-between;
    align-items: center;
}
select{
    border:none;
    background-color: rgb(247, 247, 235);
}
.flower-scene{
    position: relative;
    width: 200px;
    height: 240px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content:center;
    align-items: flex-end;
}
.flower{
    position: absolute;
    width: 180px;
    height: 220px;
    left: 10px;
    bottom: 0;
    animation: flowerSway 5s ease-in-out infinite alternate;
    transform-origin: bottom center;
}
@keyframes flowerSway{
    from{
        transform: rotate(-2deg);
    }
    to{
        transform: rotate(2deg);
    }
}
.stem{
    fill: none;
    stroke: #6fa8b8;
    stroke-width: 5;
    stroke-linecap: round;
}
.leaf{
    fill: #6fa8b8;
    opacity: .8;
}
.petal{
    fill: #75b9d1;
    opacity: .8;
    filter: drop-shadow(0 0 8px rgba(117,185,209,.7));
}
.flower-center{
    fill: #d2edf2;
    filter: drop-shadow(0 0 10px rgba(210,237,242,.9));
}
.particles{
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.particles span{
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #bce8f2;
    box-shadow: 0 0 8px #bce8f2;
    animation: particleGlow 4s ease-in-out infinite alternate;
}
.particles span:nth-child(1){
    left: 25px;
    top: 80px;
    animation-delay: .2s;
}

.particles span:nth-child(2){
    left: 160px;
    top: 60px;
    animation-delay: 1s;
}
.particles span:nth-child(3){
    left: 40px;
    top: 140px;
    animation-delay: 1.7s;
}
.particles span:nth-child(4){
    left: 155px;
    top: 130px;
    animation-delay: .8s;
}
.particles span:nth-child(5){
    left: 70px;
    top: 40px;
    animation-delay: 2s;
}
.particles span:nth-child(6){
    left: 135px;
    top: 175px;
    animation-delay: 2.5s;
}
.particles span:nth-child(7){
    left: 25px;
    top: 175px;
    animation-delay: 1.3s;
}
.particles span:nth-child(8){
    left: 175px;
    top: 105px;
    animation-delay: 3s;
}
@keyframes particleGlow{
    from{
        opacity: .15;
        transform: translateY(4px) scale(.7);
    }
    to{
        opacity: .9;
        transform: translateY(-6px) scale(1.2);
    }
}
#puzzle-container {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto;
}
.puzzle-piece {
    position: absolute;
    width: 100px;
    height: 100px;
    cursor: grab;
    touch-action: none;
    transition:
        left 2s cubic-bezier(.16, 1, .3, 1),
        top 2s cubic-bezier(.16, 1, .3, 1);
}
.puzzle-piece.entering {
    animation: puzzleFlyIn 5s cubic-bezier(.16, 1, .3, 1) forwards;
}
.puzzle-piece.dragging {
    cursor: grabbing;
    transition: none;
}
.puzzle-piece svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
@keyframes puzzleFlyIn {
    from {
        transform: translate(var(--start-x), var(--start-y));
        opacity: 0;
    }
    60% {
        opacity: 0.7;
    }
    to {
        transform: translate(0, 0);
        opacity: 0.7;
    }
}
@keyframes puzzleEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(.7);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
}
.jenna-bella-image{
    width:150px;
    height:100px;
    object-fit: cover;
    position: absolute;
}
.jenna-bella-peering{
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation-name: slideInFromBottom;
    animation-duration: 1.2s;
    animation-delay: 1.5s;
    animation-fill-mode: both;
}
.frame-one{
    animation: flashImage1 5s infinite;
}
.frame-two{
    animation: flashImage2 5s infinite;
}
@keyframes flashImage1 {
    0%, 45% { opacity: 1; z-index: 2; } 
    50%, 95% { opacity: 0; z-index: 1; }
    100% { opacity: 1; z-index: 2; }
}
@keyframes flashImage2 {
    0%, 45% { opacity: 0; z-index: 1; }  
    50%, 95% { opacity: 1; z-index: 2; }
    100% { opacity: 0; z-index: 1; }
}