/* Style général */
body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: #0d0d0d;
  color: #eaeaea;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 15, 0.95);
  padding: 1rem 2rem;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Cursive', serif;
  font-size: 1.5rem;
  color: #b52e2e;
  letter-spacing: 2px;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #eaeaea;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #b52e2e;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #eaeaea;
  cursor: pointer;
}

/* Header - Mobile */
@media (max-width: 768px) {
  header {
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
  }

  .logo {
    position: absolute;
    left: 1rem;
  }

   #lang-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  nav.show {
    max-height: 500px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 10;
  }
}

/* Intro */
.intro {
  text-align: center;
  padding: 4rem 2rem;
  background-color: transparent;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #b52e2e;
}

.intro p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.9;
  white-space: pre-line;
}

#index-page {
  background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
}

.linktree-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
  color: #eaeaea;
  background: transparent;
  border: 2px solid #b52e2e;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.linktree-btn:hover {
  background: #b52e2e;
  color: #0d0d0d;
  box-shadow: 0 0 10px rgba(181, 46, 46, 0.6);
}


.carousel-intro {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.carousel-intro h2 {
  font-size: 1.8rem;
  color: #eaeaea;
  font-weight: normal;
}

.carousel-intro .project-link {
  color: #b52e2e;
  text-decoration: none;
  transition: color 0.3s;
}

.carousel-intro .project-link:hover {
  color: #eaeaea;
  text-shadow: 0 0 8px rgba(181, 46, 46, 0.8);
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 4rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-item {
  flex: 0 0 100%;
  position: relative;
  height: 75vh;
  min-height: 500px; 
  max-height: 850px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 80vh;
  display: block;
  border-radius: 12px;
  filter: brightness(80%) contrast(110%);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item img:hover {
  transform: scale(1.03);
}


/* Caption */
.caption {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.7);
  padding: 1rem;
  border-radius: 5px;
  max-width: 90%;
  text-align: center;
}

.caption h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #b52e2e;
}

.caption p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 15, 0.6);
  color: #eaeaea;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 20;
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .carousel-item {
    height: 40vh;
  }

  .carousel-item img {
    max-height: 60vh;
  }
  .prev,
  .next {
    font-size: 1.4rem;
    padding: 0.3rem 0.6rem;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.97);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
  z-index: 4000;
  background: rgba(0, 0, 0, 0.5);
  font-size: 2rem;
  padding: 0.5rem 0.8rem;
  border-radius: 50%;
  border: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(181, 46, 46, 0.8);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.6rem;
    padding: 0.3rem 0.5rem;
  }

  .lightbox-caption {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .lightbox-img {
    max-height: 70vh;
  }
}

.prev:hover,
.next:hover {
  background: rgba(181, 46, 46, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .caption {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .caption h2 {
    font-size: 1.1rem;
  }

  .caption p {
    font-size: 0.85rem;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
}

.lightbox-caption {
  margin-top: 1rem;
  background: rgba(15, 15, 15, 0.7);
  padding: 1rem;
  border-radius: 5px;
  color: #eaeaea;
}

.lightbox-caption h2 {
  margin: 0;
  color: #b52e2e;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 15, 0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(181, 46, 46, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Portfolio Page */

#portfolio-page {
  background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
  width:100vw;
  min-height:100vh;
  overflow-x: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.portfolio-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(80%) contrast(110%);
  transition: filter 0.3s;
}

.portfolio-card:hover img {
  filter: brightness(100%) contrast(120%);
}

.card-content {
  padding: 1.5rem;
  background: linear-gradient(to top, #0d0d0d, #1a1a1a);
}

.card-content h2 {
  margin: 0;
  color: #b52e2e;
  font-size: 1.4rem;
}

.card-content p {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(181, 46, 46, 0.5);
}

.dinosaur-card .card-content h2 {
  color: #4CAF50;
}

.dinosaur-card:hover {
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5); 
}

/* About Me */
.about-intro {
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;  
  min-height: 100vh; 
  text-align: center;
  padding: 2rem;
  gap: 1rem; 
  background-color: transparent;
  color: #f5f5f5;
}

.logo-divider {
  text-align: center;
  margin: 3rem 0 -5rem 0;
}

.divider-logo {
  width: 120px;
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(181,46,46,0.6));
  transition: opacity 0.3s ease;
}

.divider-logo:hover {
  opacity: 1;
}

.profile-photo img {
  width: 200px;
  height: auto;
  border-radius: 15px;
  border: 2px solid #b52e2e;
}

.about-text {
  flex: 1;
  max-width: 700px;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #b52e2e;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-card {
  background: rgba(20, 20, 20, 0.6);
  border-left: 4px solid #b52e2e;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(181, 46, 46, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 500px;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(181, 46, 46, 0.4);
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
}

.about-card-highlight {
  border-left-color: #5f0404;
  background: rgba(20, 20, 20, 0.6);
  font-style: italic;
  font-weight: bold;
}

.about-card-highlight:hover {
  box-shadow: 0 0 15px rgb(82, 4, 4);
}

/* Favoris */
.favorites {
  padding: 4rem 2rem;
  background-color: transparent;
  color: #fff;
  text-align: center;
}

.favorites h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #b52e2e;
}

.favorites-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.favorite-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  width: 250px;
  height: 350px;
  cursor: pointer;
}

.favorite-item .overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.8);
  color: #b52e2e;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 15px;
  box-sizing: border-box;
}

.favorite-item:hover .overlay-text {
  opacity: 1;
}

.favorite-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.favorite-item:hover img {
  transform: scale(1.1);
  filter: brightness(60%);
}

.favorite-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-shadow: 1px 1px 5px #000;
  z-index: 2;
}

#aboutme-page {
  background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
}

/* Effet flip 3D photo */
.flip-card {
  background-color: transparent;
  width: 150px;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, 
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  border: 2px solid #b52e2e;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.flip-card-back {
  background: rgba(15, 15, 15, 0.9);
  color: #b52e2e;
  font-size: 1.2rem;
  transform: rotateY(180deg);
  padding: 1rem;
  box-sizing: border-box;
}

/* Flip card logo */
.logo-flip-card {
  background-color: transparent;
  width: 200px;
  height: 200px;
  perspective: 1000px;
  margin: 0 auto;
}

.logo-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 50%;
}

.logo-flip-card:hover .logo-flip-inner {
  transform: rotateX(180deg);
}

.logo-flip-front, 
.logo-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  border: 3px solid #b52e2e;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.logo-flip-front {
  background: radial-gradient(circle at center, rgba(181,46,46,0.2), rgba(15,15,15,0.9));
}

.logo-flip-front img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;  
  filter: drop-shadow(0 0 8px rgba(181,46,46,0.8));
}

.logo-flip-back {
  background: rgba(15, 15, 15, 0.95);
  color: #b52e2e;
  font-size: 1rem;
  padding: 1rem;
  transform: rotateX(180deg);
  box-shadow: 0 0 15px rgba(181, 46, 46, 0.4);
}

/* Contact Form */
.contact-form {
  max-width: 450px;
   margin: -2rem auto 3rem auto;
  padding: 1.5rem 2rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(181, 46, 46, 0.5);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #b52e2e;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: #eaeaea;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 90%;
  margin: 0 auto;
  display: block; 
  padding: 0.6rem 0.8rem;
  border: 1px solid #444;
  border-radius: 5px;
  background: #0d0d0d;
  color: #eaeaea;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #b52e2e;
  box-shadow: 0 0 8px rgba(181, 46, 46, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #b52e2e;
  outline: none;
  box-shadow: 0 0 12px rgba(181, 46, 46, 0.7);
}

.contact-form button.linktree-btn {
  width: 100%;
  padding: 0.7rem 0;
  font-size: 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.contact-form button.linktree-btn:hover {
  background: #b52e2e;
  color: #0d0d0d;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 12px rgba(181, 46, 46, 0.6);
}

#contact-page{
  background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
}


/* Dinosaur Game Page */
.dino-intro {
  background-color : transparent;
}

.dino-intro h1 {
  color: #4CAF50;
}

.dino-intro strong {
  color: #4CAF50;
}

.dino-github-btn {
  border-color: #4CAF50;
}

.dino-github-btn:hover {
  background: #4CAF50;
  color: #0d0d0d;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

.project-media {
  padding: 1rem 2rem 3rem 2rem;
  text-align: center;
  background-color : transparent;
}

.media-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.project-img, .project-video {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #4CAF50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

#dinosaurgame-page {
  background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

#dinosaurgame-page img,
#dinosaurgame-page video {
  height: auto;
  display: block;
}

.scroll-area {
  height: 15vh;
}

#lonelysoulscafe-page {
  background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
}

/* Section fonctionnalités */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  padding: 1rem 2rem 3rem 2rem;
}

.features-list {
  flex: 1 1 300px;
  max-width: 500px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 2rem;
}

.features-list h2 {
  color: #b52e2e;
  margin-bottom: 1rem;
}

.features-list ul {
  list-style: none;
  padding: 0;
}

.features-list li {
  margin-bottom: 0.7rem;
  padding-left: 1.2rem;
  position: relative;
}

.features-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: #b52e2e;
}

.features-list li a {
  color: #eaeaea;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.features-list li a:hover {
  color: #b52e2e;
}

/* Section démonstrations */
.demo-section {
  padding: 1rem 2rem 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.demo-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #b52e2e;
}

.feature-demo {
  margin-bottom: 4rem;
}

.feature-demo h3 {
  color: #eaeaea;
  margin-bottom: 0.5rem;
}

.feature-demo p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.feature-demo .media-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.feature-demo .project-img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #b52e2e;
  box-shadow: 0 0 15px rgba(181, 46, 46, 0.5);
}

.feature-demo .project-video {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #b52e2e;
  box-shadow: 0 0 15px rgba(181, 46, 46, 0.5);
}

/* Lonely Souls Café Intro */

.lonelysoulscafe-intro strong {
  color: #b52e2e;
}

.lonelysoulscafe-intro {
  padding: 2rem 2rem;
}

.intro .subtitle {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: normal;
  color: #eaeaea;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.lonelysoulscafe-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  background: rgba(15, 15, 15, 0.6);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border-left: 3px solid #b52e2e;
  box-shadow: 0 0 10px rgba(181, 46, 46, 0.15);
  max-width: 600px;
  margin: 1rem auto;
}

/* Bouton de changement de langue */
#lang-btn {
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  border-radius: 20px;
  margin: 0;
  align-self: center;
}

#secret-reve {
  cursor: default; 
  text-decoration: none; 
  color: inherit;
}

#easter-owl {
  position: fixed;
  bottom: 20%; 
  left: -150px;
  width: 120px;
  opacity: 0;
  pointer-events: none; 
  z-index: 9999;
  transition: transform 8s linear, opacity 0.5s;
}

#easter-owl.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(120vw) translateY(-50px);
}

/* Easter Egg Modal */
.modal {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a1a1a;
  border: 2px solid #b52e2e;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(181, 46, 46, 0.6);
  animation: fadeInScale 0.3s ease;
}

.modal-content h2 {
  color: #b52e2e;
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1rem;
  color: #eaeaea;
}

.modal-content input {
  width: 80%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  border-radius: 5px;
  background: #0d0d0d;
  color: #eaeaea;
  font-family: 'Georgia', serif;
}

.modal-content input:focus {
  outline: none;
  border-color: #b52e2e;
  box-shadow: 0 0 8px rgba(181, 46, 46, 0.6);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #eaeaea;
  font-size: 1.5rem;
  cursor: pointer;
}

.error-message {
  color: #b52e2e;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@keyframes fadeInScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#blue-rose {
  position: relative;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;   
  height: auto;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1.5s ease-in-out;
  pointer-events: none;
  z-index: 9999;
}

#blue-rose.show {
  opacity: 1;
  transform: translate(-50%) scale(1.1);
  pointer-events: auto;
}

.scroll-text {
  font-weight: bold;  
  color: red;    
  display: block;  
  white-space: normal;
  word-wrap: break-word;
}

.scroll-title {
  color: #b52e2e;
}

.scroll-img, .scroll-video {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid red;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.blue-rose-msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 50, 0.9);
  border: 2px solid #1e3a7a;
  color: #cce0ff; 
  padding: 1.5rem 2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  text-align: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(30, 58, 122, 0.6);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.blue-rose-msg.show {
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

.red-rose-msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(50, 10, 10, 0.9);
  border: 2px solid #b52e2e;
  color: #ffcccc;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  text-align: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(181, 46, 46, 0.6);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.red-rose-msg.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}




