p {
  color: #fff;
  font-family: "Montserrat", "serif";
  font-weight: 400;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #dc56c5;
  font-family: "Montserrat", "serif";
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.backdrop {
  display: grid;
  align-items: center;
  justify-content: center;
  position: fixed;
  overflow-x: scroll;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(32, 13, 29, 0.6);
  z-index: 999;
}

body:not(:has(.backdrop.is-hidden)) {
  overflow: hidden;
}

.web-site-logo {
  fill: #ffffff;
  width: 90px;
  height: 107px;
  position: absolute;
  top: 0;
  left: 0;
}

@media (min-width: 768px) {
  .web-site-logo {
    width: 180px;
    height: 150px;
  }
}
@media (min-width: 1440px) {
  .web-site-logo {
    width: 240px;
    height: 200px;
  }
}
.header {
  height: 364px;
}
.header__title {
  font-size: 18px;
  font-weight: 900;
  line-height: 22px;
  max-width: 212px;
  -ms-grid-column-align: center;
  margin: 0 auto;
  text-align: center;
  display: block;
  padding-top: 78px;
}
.header__background {
  width: 100%;
  height: 364px;
  position: absolute;
  top: 0;
  z-index: -1;
}
.header__form-container {
  width: 84%;
  max-width: 500px;
  display: grid;
  gap: 25px;
  margin: 25px auto 0;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #939393;
  font-size: 16px;
  font-family: "Montserrat", "serif";
}
.search-input:-webkit-autofill {
  background-color: transparent;
  color: #939393;
  -webkit-transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}
.search-input::-moz-placeholder {
  color: #939393;
  font-size: 16px;
  font-family: "Montserrat", "serif";
}
.search-input::placeholder {
  color: #939393;
  font-size: 16px;
  font-family: "Montserrat", "serif";
}
.search-bar {
  padding: 10px 30px;
  display: flex;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.2);
}

@supports (-webkit-backdrop-filter: blur(20px)) {
  .search-input {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
}
.button-search-event {
  background: none;
  border: none;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .header__title {
    font-size: 30px;
    line-height: 37px;
    max-width: 353px;
    padding-top: 40px;
  }
  .header__form-container {
    margin-top: 27px;
    max-width: 800px;
    display: flex;
    gap: 30px;
    width: 70%;
  }
  .search-bar {
    width: 100%;
  }
}
@media (min-width: 1280px) {
  .header {
    height: 446px;
  }
  .header__title {
    font-size: 50px;
    line-height: 61px;
    max-width: 589px;
  }
  .header__background {
    height: 446px;
  }
  .header__form-container {
    width: 42%;
    margin-top: 52px;
  }
}
.events-container {
  display: grid;
  gap: 30px 4px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 25px;
}
@keyframes rotate-animation {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
.event-card {
  max-width: 272px;
  position: relative;
  display: grid;
  gap: 5px;
  justify-content: center;
  justify-self: center;
}
.event-card:after {
  content: "";
  width: 79%;
  height: 44%;
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid #dc56c5;
  border-radius: 50px 0px 50px 0px;
  opacity: 0.3;
}
.event-card__image {
  margin-top: 9px;
  width: calc(100% - 10px);
  aspect-ratio: 4/5;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 50px 0px 50px 0px;
  animation: rotate-animation 0.5s ease-in;
}
.event-card__title {
  font-family: "Montserrat", "serif";
  color: #dc56c5;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.event-card__date {
  font-size: 14px;
  line-height: 17.07px;
}
.event-card__locale {
  font-size: 12px;
  font-weight: 600;
  line-height: 14.63px;
}

@media (min-width: 768px) {
  .events-container {
    gap: 45px 13px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 64px;
  }
}
@media (min-width: 1280px) {
  .events-container {
    width: 964px;
    gap: 50px 56px;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
  }
}
@keyframes scale-animation {
  0% {
    transform: scale(0.3);
  }
  100% {
    transform: scale(1);
  }
}
.event-modal-window {
  display: grid;
  background-color: #fff;
  margin: 0 24px;
  border-radius: 150px 0 150px 0;
  padding-bottom: 104px;
  animation: scale-animation 0.1s ease-in;
}
.event-modal-window__content {
  margin-top: 8px;
}
.event-modal-window__info {
  display: grid;
}
.event-modal-window__close-button {
  margin: 25px 25px 0 0;
  background: none;
  border: none;
  justify-self: end;
}
.event-modal-window__avatar {
  margin: 33px auto 0;
  border-radius: 50%;
  width: 38%;
  -o-object-fit: cover;
  object-fit: cover;
  aspect-ratio: 1/1;
}
.event-modal-window__poster {
  display: none;
}
.event-modal-window__title {
  margin-top: 10px;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
}
.event-modal-window__text {
  text-transform: capitalize;
  margin-top: 5px;
  color: #0e0e0e;
}
.event-modal-window__button-for-buy-tickets {
  justify-self: center;
  padding: 9px 16px;
  margin-top: 10px;
  color: #fff;
  font-family: "Montserrat", "serif";
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  border: none;
  border-radius: 5px;
  background-color: #4c00fe;
}

@media (min-width: 768px) {
  .event-modal-window {
    max-width: 800px;
    margin: 30px 86px;
    border-radius: 300px 0 300px 0;
    padding-bottom: 54px;
    padding-right: 17px;
  }
  .event-modal-window__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    margin-top: 33px;
    margin-left: 8%;
    gap: 30px;
  }
  .event-modal-window__avatar {
    margin: 28px auto 0;
    width: 12%;
  }
  .event-modal-window__poster {
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    max-height: 86%;
    aspect-ratio: 3/4;
  }
  .event-modal-window__title {
    text-align: start;
  }
  .event-modal-window__text {
    text-align: start;
  }
  .event-modal-window__button-for-buy-tickets {
    justify-self: start;
  }
}
@media (min-width: 1280px) {
  .event-modal-window {
    max-width: 930px;
  }
}
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 60px auto;
  height: 30px;
}
.pagination-container span {
  color: #fff;
  padding: 6px 12px;
  font-family: "Montserrat", "serif";
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}
.pagination-container span.active {
  border: 1px solid #dc56c5;
  border-radius: 10px 0 10px 0;
  color: #dc56c5;
}

@media (min-width: 768px) {
  .pagination-container span {
    font-size: 16px;
    line-height: 19px;
  }
}
@media (min-width: 1280px) {
  .pagination-container {
    margin: 80px auto;
  }
}
html {
  scroll-behavior: smooth;
}

.up-button {
  position: fixed;
  z-index: 2;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 1px solid black;
  border-radius: 50%;
  background-color: black;
  box-shadow: 1px 1px 14px #dc56c5;
  transform: rotate(90deg);
}

.mid-line {
  width: 35px;
  height: 8px;
  background-color: white;
  border-radius: 0% 10% 10% 0%;
}
.mid-line::before {
  content: "";
  transform: rotate(-45deg);
  display: block;
  width: 24px;
  height: 8px;
  background: white;
  position: relative;
  bottom: 6px;
  left: -6px;
  border-radius: 0% 15% 15% 0%;
}
.mid-line::after {
  content: "";
  transform: rotate(45deg);
  display: block;
  width: 24px;
  height: 8px;
  background: white;
  position: relative;
  top: -2px;
  right: 6px;
  border-radius: 0% 15% 15% 0%;
}

body {
  background-image: url("../src/images/background-mobile.png");
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 768px) {
  body {
    background-image: url("../src/images/background-tablet.png");
  }
}
@media (min-width: 1440px) {
  body {
    background-image: url("../src/images/background-laptop.png");
  }
}