/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

/* Header */
header {
    padding: 20px;
    background: linear-gradient(90deg, #333, #555);
    color: white;
}
.header {
    text-align: center;
}
header h1 {
    font-size: 2.5em;
    margin-bottom: 0px;
}

header p {
    font-size: 1.2em;
}

/* Scrollable Video Section */
.scroll-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 900px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: white;
}

.video-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    scroll-behavior: smooth;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Video Styles */
video {
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    height: auto;
}

/* Specific Styles for Vertical Videos */
.video-item.vertical video {
    max-width: 400px;
    height: auto;
}

/* The last one video */
.last_video {
    margin-bottom: 20px;
}
/* Descriptions */
.description {
    text-align: center;
    font-size: 1em;
    color: #333;
}

/* Scroll Buttons */
.scroll-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    border-radius: 50px;
    transition: background 0.3s;
}

.scroll-button:hover {
    background: #555;
}

#scroll-up {
    top: 10px;
}

#scroll-down {
    bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: #333;
    color: white;
    margin-top: 20px;
}




/* Header with class 'return_to_main_page' */
.return_to_main_page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #333, #555);
    padding: 15px;
    z-index: 1000;
    transition: transform 0.3s ease; /* Smooth transition for hide/show */
}

.header-container {
    display: flex;
    justify-content: center;
}

.home-link {
    color: white;
    font-size: 1.8em;
    text-decoration: none;
    font-weight: bold;
}

/* When header is hidden (scrolled down) */
.hide-header {
    transform: translateY(-100%);
}

.back_icon {
justify-content: left;
margin-top: 15px;
margin-left: 30px;
}
.back_icon img {
width: 50px;
height: auto;
}
.back_icon img:hover {
    transform: scale(1.1, 1.1);
    transition: all 0.4s;
}