* {
  margin: 0;
  padding: 0;

}

body{
  background-color: black;
}

.MYcontainer{
  width: 100%;
  font-size: 22px;
  font-family: Avantgarde, TeX Gyre Adventor, URW Gothic L, sans-serif;
  font-weight: 900;
 
  padding: 1.1rem 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: aliceblue;
  z-index: 1;
  
   
}

.text{
  display: flex;
  justify-content: space-around;
}
.images{
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 70px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.images:hover{
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0);
}

.imge {
  position: fixed; /* замість absolute */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.6;
  object-fit: cover;
}


a {
  text-decoration: none; 
  color: inherit;       
}


.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/*
.cipherr{
  width: 350px;
  height: 500px;
  margin-top: 300px;
  margin-left: 120px;
}

.aglaea{
  width: 350px;
  height: 500px;
  margin-top: 300px;
  margin-left: 180px;
}
.castorice{
  width: 350px;
  height: 500px;
  margin-top: 300px;
  margin-left: 200px;
}
.anaxa{
  width: 350px;
  height: 500px;
  margin-top: 100px;
  margin-left: 120px;
}
.mydei{
  width: 350px;
  height: 500px;
  margin-top: 100px;
  margin-left: 180px;
}
.tribbie{
  width: 350px;
  height: 500px;
  margin-top: 100px;
  margin-left: 200px;
}
.hyacine{
  width: 350px;
  height: 500px;
  margin-top: 100px;
  margin-left: 120px;
}
.cerydra{
  width: 340px;
  height: 490px;
  margin-top: 100px;
  margin-left: 180px;
  border: 7px rgb(218, 218, 218) solid;
}
.hysilens{
  width: 340px;
  height: 490px;
  margin-top: 100px;
  margin-left: 200px;
  border: 7px rgb(218, 218, 218) solid;
}*/

.card {
  width: 350px;
  height: auto;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  margin: 20px;
  display: inline-block;
  vertical-align: top;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0);
}

.caption {
  margin-top: 10px;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Індивідуальні позиції для кожної картки (опційно) */
.cipherr   { margin-left: 50px; }
.aglaea    { margin-left: 60px; }
.castorice { margin-left: 70px; }
.anaxa     { margin-left: 80px; }
.mydei     { margin-left: 90px; }
.tribbie   { margin-left: 100px; }
.hyacine   { margin-left: 110px; }
.cerydra   { margin-left: 120px; }
.hysilens  { margin-left: 130px; }

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* вирівнює по центру */
  gap: 30px; /* відступи між картками */
  padding: 150px;
}
