
.stories-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.stories-container.dragging {
  cursor: grabbing;
}

.story-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
  cursor: pointer;
}
.story-circle.active {
  border-color: #e1306c;
}
.story-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99999;
}
.story-modal.show {
  opacity: 1;
  visibility: visible;
}
.story-content-wrapper {
  position: relative;
  width: 90%;
  max-width: 400px;
  height: 90%;
  max-height: 700px;
  background-color: #000;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: grab;
}
.story-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
  transition: opacity 0.2s ease-in-out;
}
.story-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9;
}
.story-info img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.story-info span {
  font-weight: bold;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
}
.story-text {
  padding: 15px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 5;
  text-align: left;
  direction: ltr;
  text-overflow: ellipsis;
  overflow: hidden;
}
.story-text:hover {
    cursor:pointer;
    color:dodgerblue;
}
.timeline-container {
  position: absolute;
  top: 0;
  left: -2px;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 15;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  overflow: hidden;
  display: flex;
  gap: 2px;
  padding: 0 4px;
}
.timeline-segment {
  flex-grow: 1;
  height: 100%;
  background-color: rgba(50,50,50,0.7);
  border-radius: 0px;
  overflow: hidden;
}
.timeline-progress {
  height: 100%;
  width: 0%;
  background-color: #ccc;
  transition: width linear;
}
.story-name {
  text-align: center;
  font-size: 0.80rem;
  color: #666;
  width: 4rem;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.2em;
  height: 3em;
  direction: rtl;
  position:relative;
  top:6px;
}
.bg-gray-700 {
    --tw-bg-opacity: 1;
    border: 3px solid #d62976;
    padding: 3px;
}
.items-center {
    align-items: center;
}
.overflow-x-scroll {
    overflow-x: scroll;
}
.flex-col {
    flex-direction: column;
}
.flex {
    display: flex;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.max-w-4xl {
    max-width: 56rem;
}
.w-full {
    width: 100%;
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.mb-12 {
    margin-bottom: 3rem;
    margin-top:100px;
}

.close-button {
    font-size: 40px;
    font-weight: bold;
    top: -8px;
    width: 60px;
    height: 85px;
    z-index: 999999;
}