/* Apply Roboto font to the entire document */
html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Acknowledgements styling */
.acknowledgements {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 10px;
    text-decoration: none;
    color: #6b6b6b;
    display: block; /* Ensures it takes up full width */
}

/* Responsive images */
.responsive {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

/* Center content */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px; /* Prevents it from being too wide on large screens */
    width: 100%;
    margin: 40px auto; /* Centers the container */
    padding: 0 24px;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Keeps video centered */
    width: 100%;
    max-width: 800px;
}

/* Make video responsive */
.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* Custom play button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Hide button when video plays */
.hidden {
    display: none;
}

/* Header Wrapper */
.header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
    margin-bottom: 5px;
}

/* Transcript Wrapper */
.transcript-wrapper {
    align-self: flex-start;
    margin-top: 10px;
    width: 100%;
    max-width: 800px;
}

/* Transcript link styling */
.transcript {
    font-size: 16px;
    text-decoration: none;
    color: #0073e6;
    display: block;
}

.transcript:hover {
    text-decoration: underline;
}

/* Adjust spacing for smaller screens (tablets & mobile) */
@media (max-width: 768px) {  
    .container {
        padding: 0 16px;
    }

    .header-wrapper,
    .transcript-wrapper,
    .video-wrapper {
        padding: 0 12px;
        max-width: 100%;
    }

    .video-container {
        padding: 0 12px;
        max-width: 100%;
        margin-right: 24px;
    }
}

/* Even smaller screens (phones) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-wrapper {
        width: 100%;
        max-width: 100%; 
    }

    .header-wrapper img {
        width: 100%; /* Ensures the image scales with the container */
        max-width: 400px; /* Prevents it from becoming too large */
        height: auto; /* Maintains aspect ratio */
        display: block; /* Removes any extra space below the image */
    }

    .video-wrapper {
        padding: 0 12px;
        max-width: 100%;
    }

    .video-container {
        padding: 0 12px;
        max-width: 100%;
        margin-right: 24px;
    }

}