body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
    height: 100%; /* Ensure the body and html take up full height */
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: black;
    color: #fff;
    text-align: left;
    padding: 10px;
    z-index: 1000;
    height: 50px; /* Fixed height for header */
    box-sizing: border-box; /* Include padding and border in height */
}

.header-title {
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 24px;
    color: #fff;
}

.icons-section {
    position: fixed;
    top: 50px; /* Adjust this value to match the height of the header */
    width: 100%;
    background-color: black;
    overflow-x: auto;
    overflow-y: hidden; /* Hide vertical overflow */
    white-space: nowrap;
    padding: 10px 0;
    z-index: 999;
    height: 80px; /* Fixed height for icons section */
    box-sizing: border-box; /* Include padding and border in height */
    scrollbar-width: none; /* For Firefox */
}

.icons-section::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.icons-container {
    display: flex;
    justify-content: start;
    align-items: center;
    height: 60px; /* Ensure container height fits icons */
    width: max-content; /* Ensure the container expands based on the number of icons */
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 3px solid #333; /* Default border color for non-selected icons */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight color */
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon.active {
    border-color: #ff9800; /* Border color for selected icons */
}

@media (hover: hover) {
    .icon:hover {
        transform: scale(1.1);
    }
}

.content-section {
    position: absolute;
    top: 130px; /* Adjust this value to match the combined height of the header and icons sections */
    bottom: 0;
    width: 100%;
    overflow-y: hidden; /* Hide the vertical scrollbar */
    display: flex;
    flex-direction: column;
}

.content-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.6s ease; /* Slower transition for vertical swipe */
}

.content-item {
    height: calc(100vh - 130px); /* Subtract the height of header and icons section */
    width: 100vw; /* Ensure each content item takes up the full viewport width */
    display: flex; /* Flexbox to align slides horizontally */
    overflow: hidden;
    flex-shrink: 0;
    position: relative; /* Ensure proper positioning */
    background-color: #222; /* Set background color to black test*/
}

.slides-container {
    display: flex;
    height: calc(100% - 70px);
    width: 100%; /* Ensure the container takes up the full content item width */
    transition: transform 0.6s ease; /* Slower transition for horizontal swipe */
}

.item-slide {
    height: 100%;
    width: 100vw; /* Ensure each slide takes up the full viewport width */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #222; /* Set background color to black test */
}

.item-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #222;
}

.slide-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Set the width to 90% */
    text-align: center;
    color: black;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words if necessary */
}

.slide-title span {
    background-color: #fff;
    white-space: pre-wrap;
    font-size: 19px;
    line-height: 1.85;
    font-family: arial, sans-serif;
    padding: 5px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    border-radius: 10px;
    box-shadow: 2px 2px 6px #000;
}

.slide-indicator {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 70px;
    text-align: center;
    padding: 26px 0;
    box-sizing: border-box; /* Include padding in width */
    background-color: black;
}

.dot {
    display: inline-block;
    width: 16px; /* Increased size */
    height: 16px; /* Increased size */
    margin: 0 8px;
    background-color: white; /* Default background color for non-selected dots */
    border-radius: 50%;
    border: 2px solid #333; /* Default border color for non-selected dots */
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow effect */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight color */
}

.dot.active {
    background-color: black; /* Background color for selected dots */
    border-color: #ff9800; /* Border color for selected dots */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Enhanced shadow effect */
}

.icon:focus,
.dot:focus {
    outline: none; /* Remove focus outline */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight color */
}

.like-button {
    position: absolute;
    right: 10px;
    bottom: 17px;
    font-size: 24px;
    cursor: pointer;
    color: #ff9800;
    background: transparent;
    border: none;
}
.like-button i {
    transition: color 0.3s ease;
}
.like-button.liked i {
    color: #ff9800;
}
.like-button i.far {
    color: #ff9800;
}
.like-button i.fas {
    color: #ff9800;
}

.share-button {
    position: absolute;
    right: 40px; /* Adjusted to avoid overlap with the like button */
    bottom: 17px;
    font-size: 24px;
    cursor: pointer;
    color: #ff9800;
    background: transparent;
    border: none;
}