/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Body Styling */
body {
  background-color: rgb(20, 20, 20);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;  /* Align content to top */
  height: 100vh;
  margin: 0;
  overflow-y: auto; /* Allow scrolling */
}

/* Script Frame and Boxes */
.script-frame {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
  max-width: 800px;
  width: 100%;
  height: auto; /* Allow the frame to grow as needed */
}

/* Script Box */
.script-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(27, 27, 27);
  border-radius: 5px;
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s ease;
  border: 2px solid #444;  /* Added outline for script-box */
}

.script-box:hover {
  transform: translateY(-5px);
  border: 2px solid #fff;  /* Outline change on hover */
}

/* Thumbnail Styling */
.script-thumbnail {
  width: 100%;
  max-width: 768px;
  height: auto;
  max-height: 432px;
  object-fit: cover;
  border-radius: 5px;  /* Added rounded corners for ellipse effect */
}

/* Label Styling */
.label {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin: 10px 0;
  text-align: center;
}

/* Copy Button Styling */
.copy-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: absolute;
  bottom: 60px; /* Moves button up slightly */
  left: 92.3%;
  transform: translateX(-50%);
  z-index: 2;
}

.copy-btn:hover {
  background-color: #0056b3;
}

/* Description Styling */
.description {
  position: absolute;
  bottom: 0; /* Positions the description at the bottom */
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  visibility: hidden; /* Hidden by default */
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

/* Show Description on Hover */
.script-box:hover .description {
  visibility: visible;
  opacity: 1;
}
