@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, #ff9a9e, #fad0c4, #fbc2eb);
  color: #6a1b9a;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Hero Section */
header.hero {
  background: #f48fb1; /* roz pastel */
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 50px;
  animation: waveBg 10s infinite alternate ease-in-out;
  width: 80%;
  max-width: 1000px;
  margin: 0 10%;
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
  z-index: 2;
}

@keyframes waveBg {
  0% { border-radius: 0 0 60px 60px / 0 0 40px 40px; }
  50% { border-radius: 0 0 75px 45px / 0 0 60px 30px; }
  100% { border-radius: 0 0 60px 60px / 0 0 40px 40px; }
}

header.hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: slideIn 1.5s ease-out;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

h1 .highlight {
  background: white;
  color: #d81b60;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 3rem;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.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: #ec407a; /* roz închis */
  color: white;
}

.more {
  background-color: #f06292; /* roz mediu */
  color: white;
}

.section {
  padding: 3rem;
  background: #ffe4ec; /* fundal cald, aproape alb-roz */
  color: #6a1b9a;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 1200px;
  margin: 2rem 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1.2s ease;
  font-size: 1.1rem;
  line-height: 1.8;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section h2 {
  font-size: 2.5rem;
  color: #ad1457;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.section ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 10px;
}

.section ul li::before {
  content: "💪";
 
  margin-right: 10px;
}

img {
  max-width: 200px;
  margin: 20px auto;
  display: block;
}

/* THEME TOGGLE */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 1.8rem;
  background: #ffe0f0;
  color: #880e4f;
  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: #880e4f;
  color: #fff;
}

body.dark {
  background: linear-gradient(to right, #880e4f, #6a1b9a);
  color: white;
}

/* LOADER */
#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_albastru.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 #c2185b;
}

#rotating-adn {
  width: 100px;
  height: 100px;
  animation: rotateADN 3s linear infinite;
  
  filter: drop-shadow(0 0 10px #f48fb1);
}

@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;
}
/* 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: #ff68e8; 
  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: #ec407a; 
  color: white;
}

#menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color:#ff68e8; 
  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: #ec407a; 
}
/* 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;
}
