* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      }
      body {
        background-color: #1a1a1a;
        color: white;
        overflow-x: hidden;
      }

      .inapoi {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
}
.inapoi:hover {
  background-color: rgb(99, 37, 37);
}

#headerSect{
    background-image: url("/Images/48_rom1.jpeg");
        height: 100vh;
        width: 100%;
        background-color: rgb(0, 0, 0);
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        filter: grayscale(0.1);
        z-index: 1;
     
}
#headerSect::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.444);
        z-index: -1;
      }
.header{
    text-align: center;
        color: white;
        padding: 2rem;  
}

.header h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        letter-spacing: 2px;
      }

.sageata_jos{
  height: auto;
  width: 50px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
   
} 
#arrow1{
  width: 100%;
  height: auto;
  animation: bounce 2s infinite;
  fill: #ffffff;
}
#sect2{
    position: absolute;    
    top:100vh;
    height: 100vh;
    width: 100%;
    left: 0;
    
    
    background-color: rgb(69, 84, 107);
}

.harta{
    top: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
  align-items: top ;
    justify-content: top;
    position: absolute;
    object-fit: cover;
}
#harta1{
  width: 100%;
  height: auto;
  
   
  
  }
  #svgeu{
    width: 100%;    
    height: auto;
    object-fit: cover;
    transform-origin: 0px 0px;
    transform: scale(1);
  }

/*Sectiune pentru meniu */
.dropbtn {
  background-color: #34cddb00;
  color: rgb(0, 0, 0);
  padding: 10px;
  font-size: 40px;
  border: none;
  cursor: pointer;
}

.dropdown {
  position: fixed;
  display: inline-block;
  z-index: 999;
  right: 4px;
  
  
}

.dropdown-content {
  display: none;
  position: fixed;
  background-color: #f1f1f1;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.327);
  height: 100%;
  right: 0;
  top: 0;
  
  width: 300px;
  background: rgba(0, 0, 0, 0.778);
  backdrop-filter: blur(15px);
  
  overflow: hidden;
  
  
  
  padding-top: 15%;
  
}

.dropdown-content a {
  color: rgba(189, 189, 189, 0.758);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
 
  font-size: larger;
  
  

}

.dropdown a:hover {
  color: #ffffff;
}

.show {
  display: block;
  
  
}

.circle-container {
  height: 50px;
  width: 50px;
  background-color: #55555500;
  margin-top: 30%;
  margin-right: 50%;
}

.circle1 {
  height: 50px;
  width: 50px;
  background-color: #55555500;
  border-radius: 50%;

  border: 2px solid rgb(159, 141, 141);
  --mask: linear-gradient(red, red) padding-box,
    conic-gradient(red var(--t, 82%), transparent 0%) border-box;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  rotate: -55deg;
}
@keyframes t {
  to {
    --t: 82%;
  }
}

.circle2 {
  height: 50px;
  width: 50px;
  background-color: #55555500;
  border-radius: 50%;

  border: 2px solid rgb(255, 255, 255);
  --mask: linear-gradient(red, red) padding-box,
    conic-gradient(red var(--p, 82%), transparent 0%) border-box;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  rotate: -55deg;

  margin-top: -106%;
}

.circle-container:hover .circle2 {
  animation: p 0.5s linear;
}

.circle-container:hover .circle1 {
  border: 2px solid rgb(255, 255, 255);
  transition-delay: 0.5s;
}
@keyframes p {
  to {
    --p: 82%;
  }
}

.h3 {
  position: relative;
  margin-top: -80%;
  margin-left: -110%;
  font-size: 60%;
  z-index: 1000;
  font-family: "Times New Roman", Times, serif;
  color:#ffffff;
}

.arata {
  display: none;
}

.cerc1 {
  height: 50px;
  width: 50px;
  background-color: #55555500;
  border-radius: 50%;

  border: 2px solid rgb(251, 253, 141);
  align-items: center;
} 

.x-btn {
  background-color: #34cddb00;
  color: rgb(0, 0, 0);
  padding: 10px;
  font-size: 40px;
  border: none;
  margin: 6%;
}

.x-container {
  background-color: #34cddb00;
  color: rgb(255, 254, 254);
  padding: 10px;
  font-size: 40px;
  border: none;
  cursor: pointer;
  display: none;
}
#x {
  margin-top: -9%;
}

.aratare {
  display: block;
  z-index: 1000;
  position: relative;
}

.aratare:hover .cerc1 {
  background-color: #555555fb;
  transition-property: width;
  transition-duration: 1s;
}

@property --p {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: true;
}
/*end-meniu*/

.panou {
  position: absolute;
  top: 0;
  margin: 2%;
  left: 56%;
  width: 40%;
  height: 96%;
  background-color: rgba(0, 0, 0, 0.8);     
    z-index: 1;
    padding: 30px;
}

.info {
  color: white;
  
  text-align: left;

    font-family: "Times New Roman", Times, serif;
    display: none;
}
.intro {
  color: white;
  font-size: 1.5rem;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  display: none;
}
.activ {
  display: block;
}
#sect3{ 
  position: absolute; 
  padding-top: 20px;   
    top:200vh;
    height: 100vh;
    width: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(69, 84, 107);
}
h3 {
  
  font-size: 1.9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.overlay {
  position: absolute;
  
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1000;
  display: none;
  pointer-events: none;
}
.moldova1{
  top: 70px;
  left: 450px;
}
.valahia1{
  top: 270px;
  left: 350px;
}
.transilvania1{
  top: 70px;
  left: 50px;
}
.apasa{
  display: block;
}
 .grid-container {
  
        display: grid;
       grid-template-columns: 150px repeat(2, 320px);
        gap: 100px;
        justify-content: center;
      }
.regiune {
  margin-top: 50%;
}
      /* Stilurile de bază pentru card (containerul care oferă perspectiva 3D) */
      .card {
        background-color: transparent;
        width: 320px;
        height: 520px;
        perspective: 1000px; /* Creează efectul de adâncime */
        cursor: pointer;
      }

      /* Containerul interior care se va roti efectiv */
      .card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
        transform-style: preserve-3d; /* Esențial pentru 3D */
      }
        
      /* Declanșarea animației la Hover */
      .card:hover .card-inner {
        transform: rotateY(180deg);
      }

      /* Stiluri comune pentru fața și spatele cardului */
      .card-front,
      .card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden; /* Ascunde spatele când e întors */
        border-radius: 12px;
        border: 4px solid #111; /* Conturul gros din imagine */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Împinge textul în jos pe față */
        align-items: center;
        box-sizing: border-box;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      }

      /* Stiluri specifice pentru FAȚA cardului */
      .card-front h2 {
        margin: 0;
        font-size: 1.3rem;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.2;
      }

      /* Culorile de fundal extrase din schița/imaginea ta */
      .bg-blue {
        background-color: #55808c;
      }
      .bg-yellow {
        background-color: #aca213;
      }
      .bg-orange {
        background-color: #9c501e;
      }

      /* Aici poți adăuga imagini reale mai târziu */
      .image-placeholder {
        flex-grow: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
      }

      /* Stiluri specifice pentru SPATELE cardului */
      .card-back {
        background-color: #a8c6de;
        color: #222;
        transform: rotateY(180deg); /* Spatele este deja rotit la 180deg */
        justify-content: center; /* Centrează conținutul pe verticală pe spate */
        text-align: center;
        border: 4px solid #92d3e5; /* Un contur albastru deschis pentru spate, opțional */
      }

      .card-back h3 {
        margin-top: 0;
        font-size: 1.4rem;
        margin-bottom: 15px;
        text-transform: uppercase;
      }

      .card-back p {
        font-size: 1rem;
        line-height: 1.5;
        margin: 0;
      }

      /* Responsivitate pentru ecrane mai mici */
      @media (max-width: 1000px) {
        .grid-container {
          grid-template-columns: repeat(2, 220px);
        }
      }
      @media (max-width: 500px) {
        .grid-container {
          grid-template-columns: 1fr;
        }
        .card {
          width: 100%;
          max-width: 280px;
        }
      }

      .card_img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
      }

      h2 {
        color: #fff;
            font-size: 50px;
            margin-bottom: 10px;
            
      }