body {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: #333;
}
#submitVideoBtn {
    background-color: #1f5ea7;
    color: #ffffff;
    display: inline-flex;
    width: 16.75rem;
    height: 3.5rem;
    line-height: 3.5rem;
    padding: 0 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3rem;
    padding-left: calc(0.3rem + 0.5rem);
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 2rem;
    flex-direction: row-reverse;
    transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
}
#videoForm {
    position: relative;
    z-index: 1002;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

#videoForm.active {
    transform: scale(1.05);
}

#videoUrl {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #1f5ea7;
    border-radius: 8px;
    margin-bottom: 20px;
}

#videoForm button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #1f5ea7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#videoForm button[type="submit"]:hover {
    background-color: #a52323;
}

#videoCarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

#videoList {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    gap: 20px; /* Adjust based on your design */
}

#videoList::-webkit-scrollbar { 
    display: none;  /* WebKit */
}

.video-item {
    flex: 0 0 auto;
    width: 300px; /* Adjust based on your design */
    background-color: #ffffffb2;
}

.video-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px;
}

.video-item video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px;
}

.video-item h3 {
    margin: 10px 0;
    font-size: 1em;
    color: #333;
}

.video-item p {
    font-size: 0.9em;
    color: #666;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#prevButton {
    left: 10px;
}

#nextButton {
    right: 10px;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Tweet composition UI styles */
#messagecontainer.tweet-composition-ui {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 90%;
    max-width: 900px;
    z-index: 1000;
    color: #14171a; /* Twitter's default text color */
}

#messagecontainer.tweet-composition-ui .tweet-form {
    display: flex;
    flex-direction: column;
}

#messagecontainer.tweet-composition-ui h3 {
    color: #1da1f2;
    margin-bottom: 15px;
    font-size: 1.5em;
}

#messagecontainer.tweet-composition-ui textarea {
    resize: none;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

#messagecontainer.tweet-composition-ui .char-count {
    align-self: flex-end;
    color: #657786;
    font-size: 14px;
    margin-bottom: 10px;
}

#messagecontainer.tweet-composition-ui .char-count.over-limit {
    color: #e0245e;
}

#messagecontainer.tweet-composition-ui .button-container {
    display: flex;
    justify-content: space-between;
}

#messagecontainer.tweet-composition-ui button {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#messagecontainer.tweet-composition-ui .post-tweet-btn {
    background-color: #1da1f2;
    color: white;
}

#messagecontainer.tweet-composition-ui .post-tweet-btn:hover {
    background-color: #1a91da;
}

#messagecontainer.tweet-composition-ui .cancel-tweet-btn {
    background-color: #e1e8ed;
    color: #657786;
}

#messagecontainer.tweet-composition-ui .cancel-tweet-btn:hover {
    background-color: #d1d8dd;
}


@media (max-width: 1920px) {
        
}
@media (max-width: 1680px) {
        
}
@media (max-width: 1280px) {
        
}
@media (max-width: 1024px) {

}
@media (max-width: 980px) {
        
}  
@media (max-width: 768px) {
    .video-item {
        flex: 0 0 420px;
    }
    #videoCarousel {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .video-item {
        flex: 0 0 420px;
    }
    #videoCarousel {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

}
@media (max-width: 360px) {
    .video-item {
        flex: 0 0 320px;
    }
    #videoCarousel {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

}