*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-size: 16px;
  background: 
    /* Первый слой: полупрозрачный черный градиент */ linear-gradient(
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.8)
    ),
    /* Второй слой: само изображение */ url(/2page/photo/night.gif);
  background-size: cover;
  background-blend-mode: multiply;
}

.header {
  height: 100px;
}

.middle {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
  padding-bottom: 300px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  margin-bottom: 6em;
}

.wordmark {
  font-size: 6em;
  font-family: "Slackey", cursive;
  color: white;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #3f5a68;
  margin: 0;
}

.main-heading {
  font-size: 4em;
  margin: 0 0 0.25em 0;
}

.fish-list {
  padding: 0;
  margin: 0 auto;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Центрируем карточки */
  gap: 70px; /* Расстояние между карточками */
}

.fish-list-card {
  flex: 0 0 35%; /* Карточка занимает 40% ширины */
  max-width: 40%;
  margin-bottom: 3em;
  min-height: 450px;
  border-radius: 70px;
  overflow: hidden;
}

.fish-list-card-name {
  margin: 1em 0;
  text-align: center;
}

.fish-list-card-image {
  width: 100%;
  height: 70%;
  border-radius: 70px;
}

.blue {
  background-color: #acd7ee;
  color: #21698f;
}

.light {
  background-color: rgb(0, 0, 0, 0.5);
  color: #21698f;
}
.Buy {
  margin-bottom: 5%;
}

.main-heading {
  color: aquamarine;
}
.header-address {
  color: aquamarine;
}
.btn-flip {
  opacity: 1;
  outline: 0;
  line-height: 40px;
  position: relative;
  text-align: center;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  transition: all 0.5s ease;
}

/* Передняя сторона кнопки */
.btn-flip::before {
  content: "Attempt";
  position: relative;
  display: block;
  padding: 0 30px;
  line-height: 40px;
  color: #adadaf;
  background: #323237;
  transform: translateY(0) rotateX(0);
  transition: all 0.5s ease;
}

/* Задняя сторона кнопки */
.btn-flip::after {
  content: "Love me?";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  line-height: 40px;
  color: #323237;
  background: #adadaf;
  transform: translateY(-50%) rotateX(90deg);
  opacity: 0;
  transition: all 0.5s ease;
}

/* При наведении меняем видимость сторон */
.btn-flip:hover::before {
  opacity: 0;
  transform: translateY(50%) rotateX(90deg);
}

.btn-flip:hover::after {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.fish-list-card:nth-child(1) .btn-flip::after {
  content: "klikk";
}
.fish-list-card:nth-child(2) .btn-flip::after {
  content: "cliquer";
}
.fish-list-card:nth-child(4) .btn-flip::after {
  content: "click";
}
.fish-list-card:nth-child(5) .btn-flip::after {
  content: "Глазки";
}
