@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: rgb(230, 230, 230);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

h1 {
    font-size: 40px;
    margin: 10px;
}

.main {
    display: flex;
    max-width: 1200px;
    width: 100%;
    height: 80vh; /* Adjusted height */
    border-radius: 10px;
    padding: 20px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.video-container {
    flex: 2; /* Video container takes up twice the space */
    padding: 10px;
    border-radius: 10px;
    box-shadow: rgba(55, 55, 55, 0.2) 0px 7px 29px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-playlist {
    padding: 10px;
}

.video-playlist h2 {
    margin-left: 10px;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    max-height: 400px; /* Set max height for video */
    border-radius: 10px;
}

.playlist-selector {
    flex: 1; /* Playlist container takes up 1/3 of the space */
    padding: 10px;
    overflow-y: auto; /* Allow the playlist to scroll */
    height: 100%;
    box-shadow: rgba(55, 55, 55, 0.2) 0px 7px 29px 0px;
    border-radius: 10px;
    background-color: #fff;
}

.playlist-selector button {
    display: flex;
    align-items: center;
    width: 280px;
    height: 60px;
    border-radius: 5px;
    border: none;
    margin: 3px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    cursor: pointer;
    background-color: #fff;
}

.playlist-selector button:hover {
    background-color: rgb(200, 200, 200);
}

.active {
    background-color: rgb(200, 200, 200);
}

h4 {
    margin: 5px;
    text-align: center;
}

.playlist-selector button img {
    width: 100px;
    height: 60px;
    border-radius: 5px 0px 0px 5px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
        height: auto; /* Allow flexibility on smaller screens */
        padding: 10px;
    }

    .video-container {
        width: 100%;
        padding: 10px;
    }

    .playlist-selector {
        width: 100%;
        padding: 10px;
    }

    .playlist-selector button {
        width: 100%;
    }

    .video-container iframe {
        width: 100%;
        height: auto;
        max-height: 300px; /* Adjust max height for smaller screens */
    }
}
