* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow: hidden;
}

body {
  font-size: 1.6rem;
  overflow: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  height: 100vh;
  background: linear-gradient(90deg, #00c9ff 0%, #92fe9d 100%);
}

.stack-cards {
  position: relative;
  width: 346px;
  height: 60%;
  touch-action: none; /* Chặn scroll khi kéo */
}

.card {
  position: absolute;
  inset: 0;
  box-shadow: 9px 7px 25px 5px rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: 9px 7px 25px 5px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 9px 7px 25px 5px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  cursor: grab;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card:active {
  cursor: grabbing;
}

.card .img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none; /* Tránh ảnh chặn sự kiện kéo */
  user-select: none;
  -webkit-user-drag: none;
}

.buttons {
  display: flex;
  gap: 50px;
}

.buttons .btn {
  background: transparent;
  outline: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
}
