/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-image: url('download.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Card Styling */
.card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--rotate, 0deg));
  border: 5px solid #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.caption {
  text-align: center;
  font-size: 1rem;
  color: #333;
  margin-top: 8px;
  font-weight: bold;
}

/* Video Styling */
.video-card {
  width: 300px;
  height: 200px;
  z-index: 1;
  position: fixed;
  /* Keep video fixed in place */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.video-frame {
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

/* Randomize initial positioning for image cards */
.image-card {
  width: 200px;
  height: auto;
  z-index: 2;
  --rotate: calc(-15deg + (30 * var(--random)));
  transition: transform 0.2s ease;
}

/* Media Query for Responsive Design */
@media (max-width: 768px) {
  .card {
    width: 150px;
  }

  .video-card {
    width: 250px;
    height: 150px;
  }
}