*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:fullscreen .shadow,
:not(:root):fullscreen::backdrop {
  background: url(photos/background.webp) no-repeat center;
  background-size: cover;
}

body {
  /* width: 1300px; */
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-content: center;
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
  background: url(photos/background.webp) no-repeat center;
  background-size: cover;
}
.callTo {
  position: absolute;
  display: block;
  top: -100px;
  width: 1000px;
  left: -300px;
  color: #fff;
  font-size: 25px;
}
.callTo h1 {
  animation: scale-text 1.5s ease-out infinite;
}
@keyframes scale-text {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.logo-ayto {
  display: flex;
  justify-content: space-evenly;
  align-items: end;
  flex-direction: column;
  gap: 40px;
}
.logo-ayto img {
  width: 250px;
}
.description {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  color: #fff;
}
.description img {
  width: 120px;
  margin-left: 130px;
}
.container-rules {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.rules {
  margin: -60px 0 0 0;
  padding: 0;
}
.rules h1 {
  margin-bottom: 16px;
}
.rules span {
  font-size: 32px;
}
.rules p {
  margin-bottom: 16px;
  font-size: 16px;
  width: 300px;
}
.rules-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.rules-buttons img {
  width: 25px;
  height: 25px;
  margin: 0 auto;
}
.rules-buttons p {
  margin-left: 30px;
}
.white-bkg {
  position: absolute;
  background: #f6f6f6;
  inset: 0;
  z-index: -10;
}
.shadow {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}
main {
  background: url("./iphone.webp") no-repeat;
  background-size: contain;
  width: 320px;
  height: 640px;
  display: flex;
  position: relative;
  margin: 0 auto;
}

section {
  width: 100%;
  border-radius: 32px;
  display: flex;
  gap: 24px;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 16px 6px;
  margin: 24px;
  background: #f6f6f6;
  z-index: 1;
}

header {
  display: flex;
  justify-content: start;
  padding-left: 1rem;
}
header img {
  width: 24px;
  height: 24px;
}
footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
}
footer button {
  background: url("./tinder-icons.webp") no-repeat;
  background-position: 0px 0px;
  background-size: 175px;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  transition: scale 0.3s ease;
}
footer button:hover {
  scale: 1.4;
}
footer button.is-big {
  background-size: 250px;
  width: 48px;
  height: 48px;
}
footer button.is-undo {
  background-position: -140px 0;
}
footer button.is-remove {
  background-position: -150px 0;
}
footer button.is-fav {
  background-position: -50px 0;
}
footer button.is-star {
  background-position: -70px 0px;
}
.cards {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto;
}
.cards > span {
  display: grid;
  place-content: center;
  color: #777;
  font-size: 14px;
  text-align: center;
  height: 100% !important;
  z-index: -1;
}
.cards article {
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: grab;
  overflow: hidden;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
}
.cards article.go-left {
  transform: translateX(-150%) rotate(-30deg) !important;
}
.cards article.go-right {
  transform: translateX(150%) rotate(30deg) !important;
}
.cards article.go-left,
article.go-right {
  transition: transform 0.3s ease, rotate 0.3s ease;
}
.cards article.reset {
  transition: transform 0.3s ease;
  transform: translateX(0) !important;
}
.choice {
  border-radius: 8px;
  color: black;
  border: 4px solid;
  z-index: 9999;
  position: absolute;
  top: 32px;
  right: 16px;
  opacity: 0;
  padding: 4px 8px;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  width: fit-content;
}
.choice.nope {
  border-color: #ff6e63;
  color: #ff6e63;
  transform: rotate(30deg);
}
.choice.like {
  border-color: #63ff68;
  color: #63ff68;
  left: 16px;
  transform: rotate(-30deg);
}
.cards article img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.cards article h2 {
  font-size: 18px;
  color: white;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  height: 100% !important;
  width: 100% !important;
  padding: 16px;
  z-index: 3;
  background: linear-gradient(to top, #00000088 20%, transparent 40%);
}
.cards article span {
  margin-left: 6px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}
.popup {
  position: absolute;
  width: 100% !important;
  height: 80% !important;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 24px;
  z-index: 20;
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  left: 0px;
  top: 45px;
}
.popup h2 {
  font-size: 16px;
}
.popup button {
  width: 100px;
  padding: 6px 8px;
  background: #000;
  border-style: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 auto;
}
@media (max-width: 600px) {
  body {
    grid-template-columns: 1fr;
  }
  .logo-ayto,
  .description {
    display: none;
  }
}
