/* =====================================================
   Basic CSS Template
   Author: Ana Fraley
   Date: 2025-11-04
   Description: This a website to display information on Beatrix Potter and her work.
   ===================================================== */

/* 
========================================
Acknowledgements & Citations
========================================
Website Design & Development:
- Ana Fraley
- Microsoft Copilot AI (Assistance, ideas, and some image generation)

Illustrations & Content Sources:
- New York Public Library Digital Collections: https://digitalcollections.nypl.org/search/index?q=beatrix+potter&filters=%5Brights%3DpublicDomain%5D
- The British Museum: https://www.britishmuseum.org/collection/animals/beatrix-potter-flopsy-bunnies-and-british-museum
- Project Gutenberg: https://www.gutenberg.org/files/19805/19805-h/19805-h.htm
- The Wonderful World of Peter Rabbit: https://peterrabbit.com
- Robert James Workshop: https://www.robertjamesworkshop.com/img/dynamic/1200/w/90/61e7a09a6db64cb034530b16a8ed1870.jpg
- Penguin Classics: https://www.penguin.co.uk/series/BP123/beatrix-potter-originals
- The Public Domain Review Essay: https://publicdomainreview.org/essay/the-tale-of-beatrix-potter/
- Victoria and Albert Museum: https://www.vam.ac.uk/collections/beatrix-potter
- Microsoft Pilot

Activities, Podcasts, Videos, and Books:
- Free Kids Books: https://freekidsbooks.org/wp-content/uploads/2019/12/FKB-Kids-Stories-Peter-Rabbit.pdf
- Once Upon a Printable: https://onceuponaprintable.com/category/beatrix-potter/
- InLiterature (Recipes): https://inliterature.net/browse-recipes-by-book/?_search=peter%20rabbit
- Project Gutenberg: https://www.gutenberg.org/files/19805/19805-h/19805-h.htm
- The Tale of Peter Rabbit (Video): https://www.youtube.com/watch?v=4lap3RjPEl8

Website Sources:
- Start Bootstrap: https://startbootstrap.com/snippets
- Get Bootstrap: https://getbootstrap.com
========================================
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}



@font-face{
  font-family: playfair-variablefont;
  src: url(../Fonts/Playfair/Playfair-VariableFont_opsz\,wdth\,wght.ttf);
font-display:swap; 
}

@font-face{
  font-family: cedarvillecursive-regular;
  src: url(../Fonts/Cedarville_Cursive/CedarvilleCursive-Regular.ttf);
  font-display: swap;

}

body {
  font-family: playfair-variablefont, serif !important;
  line-height: 1.6;
  background: white;
  color: #333;
}

/* -----------------------------
   Header Styles
   ----------------------------- */
/* Citation: Inspired by W3C HTML5 semantic structure */
header h1 {
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-family:cedarvillecursive-regular, cursive !important;
  
}
h2 {
  color: black;
  padding: 20px 0;
  text-align: center;
  font-family:cedarvillecursive-regular, cursive !important;
  
}

h1 {
  color: black;
  padding: 20px 0;
  text-align: center;
  font-family:cedarvillecursive-regular, cursive !important;
  font-size:50px;
  
}

h1, h2, h3, h4, h5, h6{letter-spacing: -0.02em !important;}



/* Buttons */
.btn {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-family: ;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: var(--bs-border-width);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: var(--bs-border-radius);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}
.btn-primary {
    --bs-btn-color: #abc289;
    --bs-btn-border-color: #abc289;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #abc289;
    --bs-btn-hover-border-color: #abc289;
    --bs-btn-focus-shadow-rgb: 140, 203, 185;
    --bs-btn-active-color: #abc289;
    --bs-btn-active-bg: #abc289;
    --bs-btn-active-border-color: #abc289;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #abc289;
    --bs-btn-disabled-border-color: #abc289;
      --bs-btn-background-color: #abc289;
    }


/* Hero-Section (in Header) */

.hero-section {
  background-image: url('Images/CloseUp.png');
  background-size: cover;
  background-position: center;
  height: 40vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Overlay for readability */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background-color: rgba(90, 143, 184, 0.2);
   z-index: 1;
}

/* Text styling */
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content h1 {
  font-size: 100px;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* Dark shadow for contrast */
}

.hero-content p {
  font-size: 40px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
/* Header Photo */
header {
    background: #FBEDE7;
    color: white;
  width: 100%;
  height: auto; /* Keeps the aspect ratio */
  display: block; /* Removes any inline spacing */
}


/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
}
.navbar {
    font-family: cedarvillecursive-regular, serif !important;
font-size:20px;
      background-color: #7BAFd4;
    }

    .navbar-brand, .nav-link, .dropdown-item {
      color: rgb(44, 14, 14) !important;
    }

    .nav-link:hover, .dropdown-item:hover {
            background-color: #F29699;

      color: rgb(44, 14, 14) !important;
    }

    .dropdown-menu {
      background-color: #7BAFd4;
      border: none;
    font-family: cedarvillecursive-regular, serif !important;
    }

    .dropdown:hover .dropdown-menu {
      display: block;
      margin-top: 0;
    }

    .navbar-toggler {
      border-color: var(--ink-brown);
    }

    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%235A4634' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(90,70,52, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

/* -----------------------------
   Main Content Styles
   ----------------------------- */
main {
  margin: 20px 0;
}

section {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 5px;
}

/* -----------------------------
   Aside Styles
   ----------------------------- */
aside {
  background: #7BAFd4;
  padding: 15px;
  border-radius: 5px;
  margin:0px;
}
.asidegreen {
  background: #abc289;
  padding: 20px;
  border-radius: 5px;
  margin:10px;
}

.asidepink {
   background: #F29699;
  padding: 15px;
  border-radius: 5px;
}
.asidewhite{
   background: #FFFFFF;
  padding: 20px;
  border-radius: 5px;
}

.animated-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* Article */
article {
  background:white;
  padding: 20px;
  margin:10px;
  border-radius: 5px;
}

/* Animated Image */
.animated-img {
  padding: 20px; /* Adds space around the image */
  transition: transform 0.5s ease, box-shadow 0.5s ease; /* Smooth animation */
}

.animated-img:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Adds shadow effect */
}


/* Animated Quote */


.animated-quote {
  background-size: cover;
  background-position: center;
  height: 4vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  font-family: "playfair";
  font-size: 40px;

}

.animated-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}



/* Another Animated Quote Banner */
.quote-banner {
  padding: 60px 20px;
  text-align: center;
  font-family: 'cedervillecursive-regular';
  position: relative;
  overflow: hidden;
}


/* Text styling */
.quote-text blockquote {
  font-size: 1.8rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1.5s ease forwards;
}

.quote-author {
  font-size: 1.2rem;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1.5s ease forwards;
  animation-delay: 1s;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Typewriter effect */

.typewriter {
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
}
/* Card Styles */

.card {
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card:hover .card-body {
  background-color: rgba(171, 194, 137, 0.1);
}
.card-footer .btn:hover {
  box-shadow: 0 0 10px #abc289;
}

.card-img-top {
    width: auto;           /* Fill card width */
    height: auto;          /* Keep aspect ratio */
    object-fit: cover;     /* Crop excess without distortion */
    max-height: 350px;     /* Optional: limit height for consistency */
 
}



/* About the Author Carousel */
.carousel-item {
  height: 100vh; /* Full viewport height */
  min-height: 300px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; /* Minimal cropping, fills screen */
  padding:30px;
}

.carousel-caption {
  bottom: 10%; /* Move caption up for better visibility */
  text-align: center;
  font-size: clamp(1rem, 2vw, 2rem); /* Responsive text */
  padding:0;
  margin:0;
}





/* Multiple Language Quotes */

.scroll-container {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 80px;
  font-size: 2rem;
  color: #F29699; 
  text-shadow: 1px 1px #333;
    display: flex;
  align-items: center;
  padding-left: 10px;
}

.scroll-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 150s linear infinite;
  font-family: cedarvillecursive-regular;
  src: url(../Fonts/Cedarville_Cursive/CedarvilleCursive-Regular.ttf);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Floating Animation*/
.floating-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* -----------------------------
   Footer Styles
   ----------------------------- */
footer.bg-dark {
  background: #7BAFd4 !important;
  color: #7BAFd4;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
  height: 70px;
  align-content: center;
}
footer {
  width: 100%;
  bottom: 0;
  left: 0;
  background-color: #7BAFd4; /* Your custom color */
  color: #fff;          /* Text color */
  text-align: center;
}


/* Gallery from CodePen */

.Gallery {
            background: #f9f9f9;
        }
        
        .flex-column {
            max-width: 260px;
        }
        
        img {
            margin: 5px;
        }

        
        .scale {
            transform: scaleY(1.05);
            padding-top: 5px; 
        }

        /* Container animation */
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInZoom 1s ease forwards;
}

/* Staggered animation for each image */
.gallery img:nth-child(1) { animation-delay: 0.2s; }
.gallery img:nth-child(2) { animation-delay: 0.4s; }
.gallery img:nth-child(3) { animation-delay: 0.6s; }
.gallery img:nth-child(4) { animation-delay: 0.8s; }
.gallery img:nth-child(5) { animation-delay: 1s; }
.gallery img:nth-child(6) { animation-delay: 1.2s; }
.gallery img:nth-child(7) { animation-delay: 1.4s; }
.gallery img:nth-child(8) { animation-delay: 1.6s; }

/* Keyframes for fade-in and zoom */
@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover effect */
.gallery img:hover {
  transform: scale(1.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Video Link */

/* Wrapper for centering */
.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Thumbnail container */
.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    max-width: 760px; /* Limit size */
    aspect-ratio: 16 / 9; /* Keeps video ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
}

/* Image styling */
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hover effect */
.video-thumbnail:hover .overlay {
    opacity: 1;
}

/* Play button styling */
.play-button {
    font-size: 60px;
    color: white;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 20px;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .play-button {
    transform: scale(1.2);
}

/* Responsive behavior */
@media (max-width: 768px) {
    .video-thumbnail {
        max-width: 90%;
    }
    .play-button {
        font-size: 40px;
        padding: 15px;
    }
}

/* Acknowledgemnts Page */

#acknowledgements-page {
  background-size: cover;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#acknowledgements-page .card {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #F29699;
  border-radius: 10px;
}

#header {
    background: #F29699;
    color: black;
    width:100%;

}


#acknowledgements-page .card:hover .card-body {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Accordion Drop Down */
.accordion {

    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem #7BAFd4;

}

.accordion-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color: #7BAFd4;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)
}

/* Fancy Quote */


.fancy-quote-box {
  width: 100%; /* Full width */
  background: #FFFFFF;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  margin: 0; /* Remove auto margin */
  border-radius: 0; /* Optional: remove rounded corners for edge-to-edge */
  animation: fadeInBox 1.5s ease forwards;
}

.fancy-quote {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  font-family: cedarvillecursive-regular, cursive;
  color: #333;
  opacity: 0;
  animation: fadeInQuote 2s ease forwards;
}

@keyframes fadeInQuote {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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



/* End of CSS Template */