@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Sour Gummy", sans-serif;
}

html,
body {
    /* background-color: #324b70; */
    
    background: #020024;
    background: -webkit-linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 57%, rgba(0, 212, 255, 1) 100%);
    background: -moz-linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 57%, rgba(0, 212, 255, 1) 100%);
    background: linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 57%, rgba(0, 212, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#020024", endColorstr="#00D4FF", GradientType=1);

    font-family: 'Proxima Nova', sans-serif;
    height: 100vh; 
    /* overflow: hidden; */
    /* overflow-x: hidden; */
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
}

.back_button{
    /* margin-left: 20px;
    margin-top: 20px;
    margin-right: 0; */
    padding: 10px;
    border: none;
    background-color: transparent;

    z-index: 1; 
    position: absolute; 
    top: 20px; 
    left: 20px;
}
.back_button:hover{
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.349);
    border-radius: 10px;
}

.body{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.body_center {
    margin-top: 40px;
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 10px;

    overflow-y: auto; /* Allows scrolling */
    overflow-x: hidden;
}

.body_inside {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 2;
}

h1 {
    color: rgb(255, 255, 255);
    padding-bottom: 10px;
}

video {
    border-radius: 10px;
}

.comment_sec {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid #ffffff;
    border-radius: 10px;
    overflow-y: auto; /* Allows scrolling */
    display: flex;
    flex-direction: column;
}

.comment_sec .comments {
    width: 100%;
    height: 200px;
    overflow-y: auto; /* Allows scrolling */
    overflow-x: hidden;
    padding: 10px;
    flex-grow: 1;
    
    /* display: flex;
    flex-direction: column-reverse; */
}

.comment_sec .comment_title {
    color: white;
    font-size: 20px;
    padding: 10px;
    flex-grow: 0;
}

.comment {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.comment_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.comment_name {
    font-weight: bold;
    color: white;
}
.comment_date {
    color: white;
}
.comment_content {
    margin-top: 10px;
    color: rgb(241, 241, 241);
}

.comment_sec .box_input{
    flex-grow: 0;

    /* height: 100px ; */
    display: flex;
    flex-direction: row;
    gap: 5px;
    
    border-top: 1px solid #ffffff;  
}

.box_input .div2{
    padding: 10px;
}

.box_input .div1{
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;

    padding: 10px 0px 10px   10px;  
}

.box_input .div2{
    display: flex;
    align-items: center;
}

.box_input .div1 input{
    font-size: 15px;
    width: 100%;
    height: 30px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ffffff;
    padding-left: 10px;
}

.box_input .div1 textarea{
    flex-grow: 1;

    font-size: 15px;
    width: 100%;
    height: 30px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ffffff;
    padding-left: 10px;
}

.div2 button{  
    width: 40px;
    height: 40px;

    border-radius: 5px;
    background-color: transparent;

    border: 1px solid #ffffff;
}

.div2 button:hover{
    cursor: pointer;
    background-color: #ffffff48;
}


/* for bubbles */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    animation: rise 10s infinite ease-in;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.7;   
    }
    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

#viewer {
    min-width: 70%;
    height: 600px;
    overflow-x: hidden;
    overflow-y: visible;
    border: 2px solid #ccc;
    position: relative;
    border-radius: 10px;
    z-index: 2;
    background-color: transparent;
}

#viewer img {
    width: 100%;
    /* object-fit: fill; */
    transition: transform 0.3s ease;
    transform-origin: center center;
    /* border-radius: 10px; */
}

#viewer::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 10px;
}

#viewer::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}


.video-container {
    position: relative;
    min-width: 70%;
    max-width: 960px; /* Optional: keep it from getting too wide on desktops */
    aspect-ratio: 16 / 9; /* Cleaner alternative to padding-top trick */
    overflow: hidden;
    z-index: 2;
    border-radius: 10px;
    margin: 0 auto; /* Center horizontally */
}

.video-yt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Fill the container */
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* .comments {
    overflow-y: auto;
} */

.comments::-webkit-scrollbar {
    width: 12px; /* Total width of the scrollbar */
    background-color: transparent;
}

.comments::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid transparent; /* This adds spacing */
    background-clip: content-box; /* Ensures the background color doesn’t bleed into the border */
}



form input, form textarea, form select{
    outline: none;
    color: white;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: white;
}
::-moz-placeholder { /* Firefox 19+ */
    color: white;
}
:-ms-input-placeholder { /* IE 10+ */
    color: white;;
}
:-moz-placeholder { /* Firefox 18- */
    color: white;
}

/* laptops */
@media (max-width: 1440px) {
    html,
    body{
        overflow: auto;
        height: 100%;

        background: -webkit-linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 60%, rgba(0, 212, 255, 1) 100%);
        background: -moz-linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 60%, rgba(0, 212, 255, 1) 100%);
        background: linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 60%, rgba(0, 212, 255, 1) 100%);

        z-index: 3;
    }

    body{
        display: block;
    }

    .body{
        padding-bottom: 50px;
    }

    /* info and HoF */
    .body_center {
        margin-top: 40px;
        width: 70%; 
        gap: 5px;
        scroll-behavior: smooth;
        overflow-y: auto;
    }

    #viewer {
        min-width: 100%;
        height: auto;
    }

    .body_inside {
        flex-direction: column;
    }

    .body_inside video{
        width: 100%;
    }

    .video-container {
        min-width: 100%;
    }

    .comment_sec{
        margin-top: 20px;
    }

    .comment_sec .comment_title {
        order: 2;
    }
    
    .comment_sec .comments {
        order: 3;
        overflow-y: auto;
        height: auto;
    }
    
    .comment_sec .box_input {
        order: 1;
    }

    .comment_sec .box_input{
        border-bottom: 1px solid #ffffff;  
        border-top: none;  

    }

}

/* tablets */
@media (max-width: 768px) {
    .back_button{
        padding: 5px;
        top: 5px; 
        left: 5px;
    }
    .back_button img{
        width: 40px;
    }

    .body{
        padding-top: 50px;
        padding-bottom: 20px;
    }

    /* info and HoF */
    .body_center {
        margin-top: 20px;
        width: 95%;
        gap: 5px;
    }

    /* #viewer {
        min-width: 100%;
        height: auto;
    } */

    .body_center h1{
        font-size:25px;
        padding-bottom: 0;
        line-height: 0.8;
    }

}

@media (max-width: 425px) {
    html,
    body{
        background: -webkit-linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 70%, rgba(0, 212, 255, 1) 100%);
        background: -moz-linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 70%, rgba(0, 212, 255, 1) 100%);
        background: linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(8, 30, 135, 1) 70%, rgba(0, 212, 255, 1) 100%);
    }

    .back_button img{
        width: 25px;
    }

    /* info and HoF */
    .body_center {
        width: 100%;
    }

    .body_center h1{
        font-size: 20px;
        padding-left: 10px;
    }

    #viewer,
    video,
    .video-container,
    .video-yt {
        border-radius: 0px;
    }

    .comment_sec{
        width: 98%;
        margin-left: auto;
        margin-right: auto;
    }
}