/* ============================
    General Styles
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Tajawal", "Noto Sans Arabic";
    text-align: right;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eab676;
    direction: rtl; /* Set RTL direction for the entire page */
}

/* ============================
    Breadcrumb Navigation
============================ */
.breadcrumb {
    background-color: #1e81b0;
    direction: rtl;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    z-index: 1000;
}

.breadcrumb-icon {
    width: 50px;
    height: 50px;
    margin-left: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.breadcrumb-icon:hover {
    transform: scale(1.1);
}

.separator {
    margin: 0 15px;
    color: #ffffff;
    font-size: 50px;
}

.breadcrumb h1 {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin: 0 40px;
    font-size: 2em;
    color: #ffffff;
}

/* ============================
    Buttons & Icons
============================ */
button {
    border: none;
    background-color: transparent;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.5s;
    z-index: 2000;
}

button:focus {
    outline: none;
}

button:hover i {
    color: rgb(102, 102, 102);
}

i {
    color: gray;
    font-size: 4em;
}

/* ============================
    Book Styles
============================ */
.book {
    width: 480px;
    height: 580px;
    position: relative;
    transition: transform 0.5s;
    
}

.paper {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 15px;
    right: 0;
    transform-origin: right center; /* ✅ Makes the page turn from the spine */
    transition: transform 1s ease-in-out;
    perspective: 2000px; /* ✅ Adds 3D depth */

}


.front {
    backface-visibility: hidden;
}


.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    transform-origin: right center;
    transition: transform 0.5s;
    border-radius: 5px; /* ✅ Slight curvature for realistic effect */
    margin: 10px;

}

.front {
    z-index: 1;
    box-shadow: inset -8px 0px 15px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(0deg);
    backface-visibility: hidden; /* ✅ Hides the back of the page */

}

.back {
    z-index: 0;
    box-shadow: inset 8px 0px 15px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(0deg);
    
}

.text-segment {
    cursor: pointer;
    pointer-events: auto !important; /* Ensure text segments are clickable */
    position: relative; /* Ensure they are positioned correctly */
    z-index: 1000; /* Ensure they are above other elements */
}


.front-content,
.back-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: flex-start; /* ✅ Move content to the top */
    align-items: center; /* Keeps content centered horizontally */
    padding: 20px 20px; /* ✅ Adds spacing from the edges */
    text-align: justify; /* ✅ Keeps text formatting */
}

.back-content {
    transform: rotateY(-180deg);
}

.paper .front-content, .paper .back-content, .text-segment {
    pointer-events: auto !important;
}

/* ============================
    Page Flipping Animations
============================ */
.flipped .front {
    transform: rotateY(-180deg); 
    z-index: -1; 
    
}

.flipped .back {
    transform: rotateY(180deg); /* ✅ Almost fully flipped */

}


/* Page Z-Index */
#p1 {z-index: 16;}
#p2 {z-index: 15;}
#p3 {z-index: 14;}
#p4 {z-index: 13;}
#p5 {z-index: 12;}
#p6 {z-index: 11;}
#p7 {z-index: 10;}
#p8 {z-index: 9;}
#p9 {z-index: 8;}
#p10 {z-index: 7;}
#p11 {z-index: 6;}
#p12 {z-index: 5;}
#p13 {z-index: 4;}
#p14 {z-index: 3;}
#p15 {z-index: 2;}
#p16 {z-index: 1;}

#p0 {
    z-index: 1000; /* Ensure front cover is on top */
}
/* ============================
    Text Customization
============================ */
.book-title {
    font-size: 3em;
    margin-bottom: 40px;
}

.cover-img {
    width: 200px;
    height: 270px;
    object-fit: cover;
    border-radius: 30px;
}

.page-content {
    text-align: justify;  
    font-size: 1.4em;  
     
}

.page-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.page-content p {
    margin-bottom: 20px;
}

.text-bottom-left {
    position: absolute;
    bottom: 120px; /* Adjust vertical position */
    left: 80px; /* Adjust horizontal position */
    text-align: left; /* Align text to the left */
    direction: rtl; /* Ensure Arabic text alignment */
    font-size: 1.4em; /* Adjust for readability */
    color: #2b2b2b; /* Dark color like in the image */
    width: 40%; /* Prevents text from stretching too much */
    line-height: 1.6; /* Improve readability */
}

/* ============================
    Navigation Buttons
============================ */
#prev-btn, #next-btn {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#prev-btn {
    left: 65px;
}

#next-btn {
    right: 55px;
}

.custom-icon {
    width: 60px;
    height: 60px;
}

#prev-btn:hover, #next-btn:hover {
    opacity: 0.8;
}

/* ============================
    Play Button
============================ */
.footer-button {
    background: none;
    border: none;
    padding: 0;
    margin-right: 20px;
    cursor: pointer;
    display: inline-block;
}

.footer-button img {
    width: 40px;
    height: auto;
    transition: transform 0.2s;
}

.footer-button:hover img {
    transform: scale(1.1);
    background: transparent !important;
    box-shadow: none !important;
}

/* Ensure footer is properly aligned */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: fixed;
    bottom: 10px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-top: 1px solid #ddd;

}


/* ============================
    Text Highlighting & Clickable Words
============================ */
.highlight {
    background-color: #f1ead8;
    color: black;
    padding: 6px 8px;
    border-radius: 3px;
    margin: 0 !important;
    line-height: 1.2 !important;
    display: inline;
    
}

.text-segment.highlight {
    font-size: 1.3em !important; /* Increase font size */
    transition: font-size 0.2s ease-in-out, color 0.2s ease-in-out; /* Smooth transition */
    padding: 5px !important; /* Add space around text */
    border-radius: 5px !important; /* Rounded edges */
}

.clickable-word {
    color: #007BFF;
    cursor: pointer;
    font-weight: bold;
}

.clickable-word.highlight {
    background-color: #f6f1e4;
    color: #007BFF;
    font-weight: bold;
}

.text-segment {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.text-segment:hover {
    background-color: #f7ecd0;
}


/* ============================
    Word Box (Popup for Word Meanings)
============================ */
.word-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    width: 50%;
    max-width: 800px;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 50px;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    z-index: 1000;
}

/* Content Layout: Image on Left, Text on Right */
.content-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.image-container {
    flex: 0 0 350px;
}

.word-box img {
    display: block;
    width: 10%;
    height: auto;
}

.text-container {
    flex: 1;
    text-align:center;
    font-size: 32px;
    font-weight: bold;
    margin: 20px;
    padding: 20px;
    line-height: 1.5;
}


/* ============================
    Word Box Close Button
============================ */
.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: #ffe07d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 26px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

.close-btn:hover {
    background: #e8bd5c;
    transform: scale(1.1);
}

#playAudioButton {
    margin-top: 15px;
}

#playAudioButton img {
    width: 40px;
    height: 40px;
}

/* ============================
    Paragraph Formatting
============================ */

.book p,
.word-box p {
    text-align: justify;
    padding: 5px;
    line-height: 1.6;
}

.content-wrapper {
    display: block; /* Prevent flex from interfering */
    overflow: hidden; /* Prevents layout issues */
}

.content-wrapper img {
    width: 150px; /* Set the image size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: Rounds the image corners */
    float: left; /* Moves image to the left */
    margin: 5px 15px 10px 0; /* Adds space to the right and below */
}

.text-content {
    text-align: justify; /* Justifies text */
    line-height: 1.8; /* Improves readability */
    width: 100%; /* Prevents text from stretching too much */

}

.book-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #1e81b0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.footer-button {
    background: none;
    border: none;
    cursor: pointer;
}

.footer-icon {
    width: 40px;
    height: auto;
    transition: transform 0.2s;
}

.footer-button:hover .footer-icon {
    transform: scale(1.1);
}


/* Style progress bar */
#bookProgress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background-color: #ccc;
}

#progressText {
    font-size: 14px;
    font-weight: bold;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    appearance: none;
}

progress::-webkit-progress-bar {
    background-color: #ddd;
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background-color: #ffd700;
    border-radius: 5px;
}

#progressText {
    font-size: 14px;
    color: white;
}


.play-prompt {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.9);
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-in-out;
}
#progressPoints {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.progress-point {
    width: 20px;
    height: 20px;
    background-image: url('Images/point.png'); /* Add your point image */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 15px;
    transition: opacity 0.3s ease-in-out;
    opacity: 0.5; /* Default state: faded */
}

.progress-point.active {
    opacity: 1; /* Highlight active step */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Popup Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.popup-content h2 {
    margin-bottom: 20px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}

/* Action Buttons */
.action-btn {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: #0056b3;
}

/* Button Icons */
.btn-icon {
    width: 40px;
    height: 40px;
    margin: 10px;
}

#b16, #f1 {
    background-image: url('../assets/images/dogCat/dogCatCover2.png'); /* One wide image */
    background-size: 200% 100%; /* Double width so each div gets half */
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b16 {
    background-position: right center; /* Shows the left side (Back Cover) */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#f1 {
    background-position: left center; /* Shows the right side (Front Cover) */
}

#b1 {
    background-image: url('../assets/images/dogCat/dogCatColorful4.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}


#f2 {
    background-image: url('../assets/images/dogCat/dogCatColorful4.png'); 
    background-size: 200% 100%; 
    background-position: left center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}


#b2 {
    background-image: url('../assets/images/dogCat/dogCatRed2.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}


#f3 {
    background-image: url('../assets/images/dogCat/dogCatRed2.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b3 {
    background-image: url('../assets/images/dogCat/dogCatWhite2.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f4 {
    background-image: url('../assets/images/dogCat/dogCatWhite2.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b4 {
    background-image: url('../assets/images/dogCat/dogCatBlack.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f5 {
    background-image: url('../assets/images/dogCat/dogCatBlack.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b5 {
    background-image: url('../assets/images/dogCat/dogCatBlue.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f6 {
    background-image: url('../assets/images/dogCat/dogCatBlue.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b6 {
    background-image: url('../assets/images/dogCat/dogCatGreen2.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f7 {
    background-image: url('../assets/images/dogCat/dogCatGreen2.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b7 {
    background-image: url('../assets/images/dogCat/dogCatYellow.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f8 {
    background-image: url('../assets/images/dogCat/dogCatYellow.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b8 {
    background-image: url('../assets/images/dogCat/dogCatBrown.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f9 {
    background-image: url('../assets/images/dogCat/dogCatBrown.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b9 {
    background-image: url('../assets/images/dogCat/dogCatGray.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f10 {
    background-image: url('../assets/images/dogCat/dogCatGray.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b10 {
    background-image: url('../assets/images/dogCat/dogCatRose.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f11 {
    background-image: url('../assets/images/dogCat/dogCatRose.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b11 {
    background-image: url('../assets/images/dogCat/dogCatPurple.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f12 {
    background-image: url('../assets/images/dogCat/dogCatPurple.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b12 {
    background-image: url('../assets/images/dogCat/dogCatSilver.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f13 {
    background-image: url('../assets/images/dogCat/dogCatSilver.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b13 {
    background-image: url('../assets/images/dogCat/dogCatGolden.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f14 {
    background-image: url('../assets/images/dogCat/dogCatGolden.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b14 {
    background-image: url('../assets/images/dogCat/dogCatOrange.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f15 {
    background-image: url('../assets/images/dogCat/dogCatOrange.png'); 
    background-size: 200% 100%; 
    background-position: left center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#b15 {
    background-image: url('../assets/images/dogCat/dogCatColorful5.png'); 
    background-size: 200% 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#f16 {
    background-image: url('../assets/images/dogCat/dogCatColorful5.png'); 
    background-size: 200% 100%; /* Doubles the width */
    background-position: left center; /* Shows the right side of the image */
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}



/* ✅ Adjustments for Small Screens */
@media (max-width: 768px) {
    /* ✅ Make breadcrumb flexible */
    .breadcrumb {
        flex-direction: row;
        justify-content: center;
        text-align: center;
        padding: 5px;
    }

    .breadcrumb-icon {
        width: 50px; /* Smaller breadcrumb icons */
        height: 50px;
        margin: 5px;
    }

    /* ✅ Center book properly */
    .book {
        width: 95vw !important;
        height: auto !important;
        max-width: 95vw !important;
        max-height: 75vh !important;
        margin-top: 50px; /* Push book down */
    }

    /* ✅ Fix navigation buttons */
    #prev-btn, #next-btn {
        width: 35px;
        height: 35px;
    }

    /* ✅ Adjust footer */
    .book-footer {
        flex-direction: column; /* Stack items */
        text-align: center;
        padding: 10px;
    }

    /* ✅ Reduce text size */
    .text-content {
        font-size: 1.1em !important;
        padding: 5px;
        text-align: center !important;
    }
}



.logged-in #authSection {
    display: none;       /* disappear once the user is authenticated */
  }

  #protectedContent { display: none; }     /* hidden by default */

  /* === LOGIN AREA ========================================================= */

  #authSection {
    position: fixed;
    inset: 0; 
    display: flex;
    margin-top: 60px;
    place-items: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
    background: linear-gradient(to top right, #fbe7d0, #fcdada);
    font-family: 'Noto Sans Arabic', sans-serif;
    overflow: hidden;
    padding: 30px;
  }
  
  .auth-glass {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    padding: 30px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease forwards;
  }
  
  .auth-glass h1 {
    font-size: 2rem;
    color: #4b2e2e;
    margin-bottom: 5px;
  }
  
  .auth-glass p {
    color: #6c4f4f;
    margin-bottom: 15px;
    font-size: 1rem;
  }
  
  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .auth-form input {
    padding: 10px 10px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #d9b8b8;
    background: #fffaf6;
    text-align: right;
    transition: border 0.2s ease;
  }
  
  .auth-form input:focus {
    border-color: #a65c5c;
    outline: none;
  }
  
  .auth-form button {
    padding: 10px;
    font-size: 1rem;
    background-color: #a65c5c;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .auth-form button:hover {
    background-color: #7d4545;
  }
  
  .auth-glass .or {
    font-weight: bold;
    margin: 8px 0;
    color: #b66;
  }
  
  .auth-icon {
    width: 60px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
  