body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    to bottom,
    #e0f2fe,
    #f0fdf4
  ); /* albastru deschis -> verde foarte deschis */
  color: #333;
  line-height: 1.6;
}

header {
  position: relative;
  background: linear-gradient(
    90deg,
    #22c55e,
    #10b981,
    #38bdf8
  ); /* verde -> teal -> albastru */
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  height: auto;
  z-index: 1;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: move-lines 20s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes move-lines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

header h1 {
  font-family: "Georgia", serif;
  font-size: 2.5em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

header p {
  font-size: 1em;
  margin-top: 10px;
  font-style: italic;
}

.container {
  padding: 20px;
  max-width: 60%;
  margin: auto;
}

section {
  margin-bottom: 40px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

section:hover {
  transform: scale(1.02);
}

section h2 {
  font-family: "Georgia", serif;
  font-size: 1.8em;
  color: #0ea5e9; /* albastru accent */
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #0ea5e9, #10b981) 1; /* albastru -> verde */
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

ul {
  list-style-type: circle;
  margin-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

footer {
  background: #7dd3fc; /* albastru deschis */
  color: #0b1220;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 0.9em;
}

footer p {
  margin: 0;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.art-image {
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Secțiuni tematice cu accente albastru-verde */
#definition,
#personal,
#others,
#forms,
#derivative-forms {
  border-left: 8px solid #10b981; /* verde teal */
  padding-left: 15px;
  background: linear-gradient(
    120deg,
    #ccfbf1 30%,
    #ffffff 100%
  ); /* turquoise foarte deschis -> alb */
}

#definition h2,
#personal h2,
#others h2,
#forms h2,
#derivative-forms h2 {
  color: #0f172a; /* text închis, lizibil */
}

#definition p,
#personal p,
#others p,
#forms p,
#derivative-forms p {
  font-family: "Georgia", serif;
  font-size: 1.1em;
  line-height: 1.8;
}

.container::before {
  content: "";
  display: block;
  height: 6px;
  width: 80px;
  background: #10b981; /* verde accent */
  margin: 20px auto;
  border-radius: 3px;
}

blockquote {
  font-family: "Georgia", serif;
  font-style: italic;
  margin: 20px 0;
  padding-left: 20px;
  border-left: 4px solid #38bdf8; /* albastru mediu */
  color: #555;
  background: rgba(125, 211, 252, 0.25); /* #7dd3fc cu transparență */
}

.forms-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
  margin-top: 20px;
}

.form-item {
  width: 250px;
  height: 250px;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  transform-origin: center;
  box-shadow: 0 4px 8px rgba(2, 6, 23, 0.15);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
}

.flip-card-front {
  background-color: #22c55e; /* verde proaspăt */
  color: #0b1220;
  font-size: 1.5em;
  font-family: "Georgia", serif;
}

.flip-card-back {
  background-color: #0ea5e9; /* albastru accent */
  color: #ffffff;
  transform: rotateY(180deg);
  font-family: "Georgia", serif;
  font-size: 0.9em;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .form-item {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 1600px) {
  .container {
    max-width: 90%;
  }

  header h1 {
    font-size: 2.2em;
  }

  header p {
    font-size: 1.1em;
  }
}

@media (max-width: 1200px) {
  header h1 {
    font-size: 2em;
  }

  header p {
    font-size: 1em;
  }

  .forms-list {
    gap: 15px;
  }

  .form-item {
    max-width: 220px;
  }

  section h2 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .forms-list {
    flex-direction: column;
    align-items: center;
  }

  header {
    padding: 40px 15px;
  }

  header h1 {
    font-size: 1.8em;
  }

  header p {
    font-size: 0.9em;
  }

  section h2 {
    font-size: 1.4em;
  }

  .form-item {
    max-width: 180px;
  }
  .flip-card-back {
    font-size: 0.8em;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 30px 10px;
  }

  header h1 {
    font-size: 1.5em;
  }

  header p {
    font-size: 0.8em;
  }

  section {
    padding: 15px;
  }

  section h2 {
    font-size: 1.3em;
  }

  .form-item {
    max-width: 150px;
  }

  footer {
    font-size: 0.8em;
  }
  .flip-card-back {
    font-size: 0.8em;
    padding: 15px;
  }
}

@media (max-width: 320px) {
  header h1 {
    font-size: 1.2em;
  }

  header p {
    font-size: 0.7em;
  }

  section h2 {
    font-size: 1.1em;
  }

  .form-item {
    max-width: 120px;
  }
  .flip-card-front,
  .flip-card-back {
    font-size: 0.6em;
    padding: 8px;
    line-height: 1.5;
  }

  .flip-card-front {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
  }

  .flip-card-back {
    overflow: auto;
  }
}