/* Google Font for Handwriting Style */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(to bottom right, #c2a2f0, #6ea8f7);

  color: #1c1c1c;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

/* Hero Section with Handwriting Font, Bigger Title and Rounded Corners */
header.hero {
  background: #4f88e1;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    width: 80%;
    max-width: 1000px;
    border-radius: 50px;
  }
  
  header.hero h1 {
    font-family: 'Dancing Script', cursive; /* Fontul scris de mână */
    font-size: 6rem; /* Mărirea dimensiunii titlului */
    font-weight: bold; /* Grosime mai mare pentru titlu */
    margin-bottom: 1rem;
    animation: slideIn 1.5s ease-out;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Umbra pentru titlu */
    color: white;
  }
  
  @keyframes slideIn {
    0% {
      transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  

header.hero p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

button, .button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s;
}

button:hover, .button:hover {
  transform: scale(1.05);
}

.start {
  background-color: #ff7f50; /* Coral, pentru un contrast mai cald */
    color: white;
}

.more {
  background-color: #80d1ff; /* Albastru deschis */
    color: white;
}

/* Section Styling with More Rounded Corners */
.section {
  padding: 3rem;
  background:  #ffffffcc;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  width: 90%;
  max-width: 1200px;
  margin: 2rem 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  

}


.section.light {
  background: #d1c4e9;
  position: relative;
}

h2 {
  font-size: 2.5rem;
  color: #d62828;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.error-text {
  color: #333;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: center;
}

.bone-list {
    display: flex;
    justify-content: center; /* Centrarea listei pe orizontală */
    align-items: center; /* Centrarea pe verticală */
    width: 100%;
    margin-top: 200px; /* Creșterea marginii de sus pentru a muta lista mai jos */
    padding-left: 0; /* Eliminarea paddingului stâng pentru a face lista mai centrată */
    text-align: center; /* Centrarea textului */
}

.bone-list ul {
    list-style: none;
    font-size: 1.2rem;
    margin-top: 50px; /* Adăugarea unui spațiu suplimentar deasupra listei pentru a o muta și mai jos */
    padding-top: 20px; /* Creșterea distanței de la partea de sus a containerului */
}

.bone-list li {
    margin-bottom: 10px; /* Mai mult spațiu între elementele listei */
}

/* Stilizare pentru imagini pentru a le lăsa neafectate */
.bone-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 0; /* Păstrăm poziționarea imaginilor intactă */
}

.bone-images img {
    position: absolute; /* Poziționăm imaginea absolut față de secțiune */
    top: 0; /* Setăm top-ul la 0 pentru a o alinia cu partea de sus a secțiunii */
    right: 0; /* O plasăm în colțul din dreapta */
    height: 100%; /* Setăm înălțimea imaginii la 100% din înălțimea secțiunii */
    width: auto; /* Păstrăm proporțiile imaginii */
    transform: translateY(0); /* Măsurăm imaginea fără a o deplasa pe axa Y */
    z-index: 1; /* Asigurăm că imaginea va fi plasată deasupra altor elemente */
    padding-right: 20px; /* Adăugăm spațiu între marginea dreaptă a secțiunii și imagine */
  }

.bone-images img:hover {
    transform: scale(1.2);
}


.dynamic-img {
  transform: translateX(-20px);
  animation: slideImg 1s ease-in-out;
}

@keyframes slideImg {
  0% {
    transform: translateX(-30px);
  }
  100% {
    transform: translateX(0);
  }
}

.center-img {
  display: block;
  margin: 1rem auto;
  max-width: 300px;
}

.growth {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.growth img {
  height: 100px;
  transition: transform 0.5s ease;
}

.growth img:hover {
  transform: scale(1.1);
}

/* Section Background Adjustments */
.section.light {
  background: #e0c3fc;
}

.section {
  background: #fefefe;
}

.highlight-box {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(145deg, #524dee, #543ee7); /* Gradient pentru un efect mai plăcut */
    padding: 2.5rem 3rem; /* Padding mai larg pentru a oferi mai mult spațiu la interior */
    width: 700px; /* Lățime mai mare pentru a extinde chenarul pe orizontală */
    height: auto; /* Păstrăm înălțimea ajustabilă în funcție de conținut */
    text-align: left;
    border-radius: 0 60px 60px 0; /* Colț rotunjit invers pe dreapta sus */
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15); /* Umbra mai puternică pentru adâncire */
    z-index: 2;
    transform: translateY(0);
    animation: slideFadeIn 1.2s ease-out; /* Animație de intrare */
}

@keyframes slideFadeIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.highlight-box h2 {
    font-size: 3rem; /* Mărirea dimensiunii titlului pentru un impact mai mare */
    margin-bottom: 1rem;
    color: #ffffff; /* Culoare pentru titlu */
    font-weight: bold; /* Grosime mai mare pentru titlu */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Umbra de text pentru mai multă evidențiere */
}

.highlight-box .error-text {
    font-size: 1.3rem; /* Mărirea dimensiunii fontului pentru textul descrierii */
    color: #333; /* Culoare pentru text */
    line-height: 1.6; /* Creșterea distanței între linii pentru mai mult confort la citire */
}

.bone-deco-images img {
    position: absolute;
    height: auto;  
    z-index: 4;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
  }
  .bone-deco-images .img1 {
    bottom: 20px;
    left: -10px;
    transform: rotate(-8deg);
    width: 200px;
  }
  .bone-deco-images .img2 {
    bottom: 130px;
    left: 160px;
    transform: rotate(-5deg);
    width: 200px;
  }
  .bone-deco-images .img3 {
    bottom: 30px;
    left: 270px;
    transform: rotate(10deg);
    width: 200px;
  }
  .bone-deco-images .img4 {
    bottom: -3px;
    left: 120px;
    transform: rotate(-20deg);
    width: 200px;
  }
  .bone-deco-images img:hover {
    transform: scale(1.15);
  }
  /* LIGHT/DARK SWITCHER */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 1.8rem;
  background: #fff;
    color: #8b0000;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: #8b0000;
  color: #fff;
}

body.dark {
  background: linear-gradient(to right, #3b0a0a, #5a1f1f);
  color: white;
}

body.dark .main-content {
  background: rgba(255,255,255,0.05);
}

body.dark .sidebar {
  background: #3a0f0f;
  color: #eee;
}

body.dark .sidebar li:hover {
  background-color: #ffffff22;
  color: #fff;
}

/* LOADER CORTINĂ CU ADN */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  
}

#loader-left, #loader-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url('assets/poze/fundal_rosu.png');
  background-repeat: no-repeat;
  background-size: 200% 100%;
  z-index: 2;
  transition: all 1s ease;
}

#loader-left {
  left: 0;
  background-position: left center;
}

#loader-right {
  right: 0;
  background-position: right center;
}

#loader-center {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
}

.site-title {
  font-size: 3rem;
  margin-bottom: 20px;
  
  color: #ffebf0;
  text-shadow: 2px 2px 8px #4f88e1;
}

#rotating-adn {
  width: 100px;
  height: 100px;
  animation: rotateADN 3s linear infinite;
  filter: drop-shadow(0 0 10px #ff4040);
}

@keyframes rotateADN {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loader-close #loader-left {
  transform: translateX(-100%);
}
.loader-close #loader-right {
  transform: translateX(100%);
}
.loader-close #loader-center {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* SEARCH BAR */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: auto;
  z-index: 10;
  margin: 0;
  
}

.search-container input {
  padding: 8px 16px;
  font-size: 14px;
  border: 2px solid #ccc;
  border-radius: 25px;
  width: 400px;
  outline: none;
  background-color: transparent;
  color: white; /* Textul input-ului va fi alb */
  transition: all 0.3s ease;
  position: relative;
}

.search-container input::placeholder {
  color: white; /* Textul "Căutare..." va fi alb */
}

.search-container input:focus {
  border-color: #b22222;
}

.search-container i {
  font-size: 24px;
  margin-left: -40px;
  cursor: pointer;
  color: white; /* Iconița de căutare va fi albă */
}

.search-container i:hover {
  color: #b22222;
}

/* Dark Mode Search */
body.dark .search-container input {
  background-color: transparent;
  color: inherit;
}

body.dark .search-container i {
  color: inherit;
}

body.light .search-container input {
  border-color: #fe6262;
  color: black;
}

body.light .search-container i {
  color: black;
}

/* Stilizare pentru meniul lateral retractabil */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px; /* Inițial, meniul este ascuns pe stânga */
  width: 250px;
  height: 100%;
  background-color: #4f88e1; /* Albastru mai închis pentru meniul lateral */
  color: white;
  z-index: 1000;
  transition: left 0.3s ease-in-out;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
}

.side-menu ul {
  list-style: none;
  padding: 20px;
  margin-top: 50px;
}

.side-menu li {
  margin-bottom: 1.5rem;
}

.side-menu a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.side-menu a i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.side-menu a:hover {
  background-color: #ff7f50; /* Coral pentru hover */
  color: white;
}

#menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #4f88e1;
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  font-size: 2rem;
}

#menu-toggle i {
  display: block;
}

/* Când meniul este deschis */
.side-menu.open {
  left: 0; /* Meniul devine vizibil */
}

/* Adăugăm un efect de opacitate pentru fundal */
body {
  transition: background-color 0.3s ease;
}

body.menu-open {
  background-color: rgba(0, 0, 0, 0.5); /* Fundal semitransparent când meniul este deschis */
}

/* Adăugăm stiluri pentru iconițele din meniu */
#menu-toggle:hover i, .side-menu a:hover i {
  background-color: #ff7f50;
}

/* Butonul Notițe (dreapta sus) */
.top-right {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.notite-btn {
  background-color: #9e32cc;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notite-btn i {
  margin-right: 8px;
  font-size: 20px;
}

.notite-panel {
  position: fixed;
  top: 100px;
  left: 100px;
  width: 800px; /* mai lat */
  height: 600px; /* mai puțin înalt */
  background: #fff;
  border: 2px solid #ae32ba;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: none;
  resize: both;
  overflow: hidden;
  z-index: 9999;
  cursor: move; /* drag din orice punct */
}

.notite-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.notite-header {
  background: #9b2f8b;
  color: white;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  user-select: none;
}

/* Stiluri pentru butonul de închidere (close-small) */
.close-small {
  cursor: pointer;
  font-size: 24px; /* Mărim fontul pentru butonul de închidere */
  color: #ff4040; /* Culoare mai vizibilă pentru buton */
  font-weight: bold; /* Text mai gros pentru buton */
  padding: 5px 10px; /* Adăugăm padding pentru un buton mai mare */
  border-radius: 50%; /* Colțuri rotunjite pentru buton */
  background-color: #fff; /* Fundal alb pentru a-l face mai vizibil */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Umbra pentru un efect 3D */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Tranziție pentru efecte de hover */
}

.close-small:hover {
  background-color: #ff4040; /* Culoare de fundal mai aprinsă la hover */
  color: white; /* Text alb la hover */
  transform: scale(1.1); /* Mărim butonul puțin când trecem cu mouse-ul peste el */
}

.close-small:active {
  transform: scale(0.95); /* Mărire inversă când butonul este apăsat */
}


.notite-panel:active {
  cursor: grabbing;
}

