@font-face {
    font-family: 'Inclusive Sans';
    src: url('../fonts/InclusiveSans-Regular.woff2') format('woff2'),
         url('../fonts/InclusiveSans-Regular.woff') format('woff'),
         url('../fonts/InclusiveSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Ensures text is user-visible while webfonts are loading */
}

@font-face {
    font-family: 'Inclusive Sans';
    src: url('../fonts/InclusiveSans-Italic.woff2') format('woff2'),
         url('../fonts/InclusiveSans-Italic.woff') format('woff'),
         url('../fonts/InclusiveSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap; 
    /* Ensures text is user-visible while webfonts are loading */
} 

/* base.html styles */
body {
    background-color: #141414;
    color: #fff;
    font-family: 'Inclusive Sans', sans-serif;
}
.navbar {
    background-color: #141414;
}

.logo_nav {
    max-width: 150px;
    /* Adjust the width as needed */
    height: auto;
    /* Maintain aspect ratio */
    margin-left: 50px;
}

#toggleBtn {
    color: #fff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(226, 111, 17, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    /* Orange color for the toggler icon */
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #fff;
}

.nav-menu {
    list-style-type: none;
    padding: 0;
}

.nav-item {
    list-style-type: none;
}

.nav-item.active .nav-link {
    border: 2px solid #e26f11;
    /* Orange border color */
    padding-bottom: 5px;
    /* Adjust padding to make space for the border */
}

.nav-item i {
    color: #e26f11;
    /* Orange color for icons */
}

.nav-item span {
    color: #fff;
    /* White color for text */
}

.nav-item:hover i {
    color: #fff;
    /* White color for icons on hover */
}

.nav-item:hover span {
    color: #e26f11;
    /* Orange color for text on hover */
}

#message {
    color: #e26f11;
}

.display-5 {
    color: #e26f11;
}

hr {
    border: 1px solid #e26f11;

}

strong {
    color: #e26f11;
}

main {
    display: grid;
    width: 95%;
    margin: 0 auto;
    /* font-size: clamp(0.8rem, 2vw, 1.5rem); */
    border: 1px solid rgba(226, 111, 17, 0.5);
    border-radius: 10px;
    box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.6) inset, 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

footer {
    background-color: #141414;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.logo-footer {
    max-width: 100px;
    height: auto;
    /* Maintain aspect ratio */
    margin-top: 10px;
    /* Optional: Add some space above the logo */
    position: relative;
    /* Enable relative positioning */
    margin-top: -15px;
    /* Move the logo upwards */
    vertical-align: middle;
    /* Align vertically with text */
}

#social-networks {
    text-align: end;
    padding: 20px 0;
    display: flex;

    justify-content: space-evenly;
    list-style-type: none;
}

#social-networks i {
    font-size: 160%;
    padding: 5%;
    color: #fff;
}

#social-networks i:hover {
    color: #e26f11;
}

.contact,
.follow {
    font-size: 160%;
    padding: 5%;
    color: #e26f11;
}


/*  home.html page */
.hero-section {
    background-image: url('../images/hero.jpg');
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    height: 60vh;
    /*or 400px; */
    display: flex;

    align-items: center;

    justify-content: center;
    text-align: center;
    color: #fff;

    filter: brightness(0.8) contrast(1.2) saturate(1.5) hue-rotate(30deg);
    overflow: hidden;
}

.hero-text:hover {

    transform: scale(1.08);
    /* Zoom-in effect */
    transition: transform 0.8s ease;
    overflow: hidden;
}

.hero-text {
    background-color: #141414;
    padding: 20px;
    border-radius: 10px;
}

.news {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

.card {
    border: 1px solid rgba(226, 111, 17, 0.5);
    border-radius: 10px;
    box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.6) inset, 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 10;
    padding: 10px;
}

.card:hover {
    transform: scale(1.08);
    /* Zoom-in effect */
    transition: transform 0.8s ease;
    overflow: hidden;
}

.card-img-top {
    max-height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body {
    flex-grow: 1;
    overflow: hidden;
    /* Hide any overflowing content within the card body */
}

.card-footer {
    text-align: left;
}


.btn.submit.btn-sm {
    font-size: 0.875rem;
    padding: 4px 8px;
}

/* Movie lists/search page */

/* Ensure carousel-inner images show at full height and are responsive */
.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure the full image is visible */
    margin: auto;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 40px;
    bottom: 40%;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
}

.carousel-indicators button {
    background-color: #ffffff !important;
    z-index: 1;
}

.carousel-indicators .active {
    background-color: #e26f11 !important;
    z-index: 1;
}

/* Custom styles for carousel control icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    /* Ensure background is transparent */
    background-size: 100%, 100%;
    background-repeat: no-repeat;
    z-index: 2;
    /* Ensure it is on top of the caption */
}

.carousel-control-prev-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 16 16"%3E%3Cpath d="M11.354 1.354a.5.5 0 0 1 0 .707L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/%3E%3C/svg%3E');
}

.carousel-control-next-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 16 16"%3E%3Cpath d="M4.646 1.354a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E');
}


/* forum_post_list.html page */
.post-border {
    border: solid 1px rgba(226, 111, 17, 0.5);
    box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.6) inset, 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.fa-comments,
.fa-thumbs-up,
.fa-thumbs-down {
    color: #e26f11
}

.upvote,
.downvote {
    color: #fff;
    /* Orange upvote and downvote */
}

.upvote:hover,
.downvote:hover {
    color: #e26f11;
    /* Lighter orange on hover */
}

img.movie-poster {
    max-width: 100%;
    max-height: 200px;
    /* Full width on small devices */
}

.read_more {
    color: #e26f11;
}

.read_more:hover {
    color: #fff;
}

.pagination .page-item .page-link {
    color: #e26f11;
    /* Orange text for page links */
}

.pagination .page-item .page-link:hover {
    color: #000;
    /* Black text on hover */
}

.pagination .page-item.active .page-link {
    background-color: #e26f11;
    /* Orange background for active page */
    border-color: #141414;
    /* Orange border for active page */
    color: #fff;
    /* White text for active page */
}

/* forum_post_detail.html page */
.list-group-item {
    margin-bottom: 5px;
    position: relative;
}

.poster-comment {
    display: flex;
    align-items: center;
}

.poster-comment img {
    width: 100%;
    /* Make the image responsive */
    max-width: 200px;
    /* Set a maximum width for larger screens */
    height: auto;
    /* Maintain aspect ratio */
    max-height: 300px;
    /* Set a maximum height */

    object-fit: cover;
    /* Ensure the image covers the container */

}

.comment-actions {
    float: right;
    margin-left: 20px;
    /* Optional: Add some space between the buttons */
}

.submit {
    background-color: #e26f11;
    border-color: #141414;
    color: #fff;
}

.submit:hover {
    background-color: #fff;
    border-color: #141414;
    color: #e26f11;
}

/* media queries */
@media (max-width: 576px) {
    .card {
        margin-bottom: 16px;
    }


    @media (min-width: 768px) {

        /* Adjust the height of the carousel for medium and large devices */
        .carousel-inner img {
            height: 500px;
            /* Adjust this value as needed */
        }

        .card {
            width: 18rem;
            margin: 1rem;
        }

        .card {
            height: 12rem;
            object-fit: cover;
        }

        .card-body {
            height: 8rem;
            overflow: hidden;
        }

        .post-border .col-2,
        .post-border .col-2,
        .post-border .col-4 {
            flex: 0 0 auto;
            width: auto;
        }

    }
}
