/* Reset CSS */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Main container */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Individual movie styles */
.movie {
    position: relative;
    width: calc(25% - 20px);
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 1245px) {
    .container {
        justify-content: space-around;
    }
    .movie {
        width: calc(33% - 20px);
    }
}
@media screen and (max-width: 770px) {
    .movie {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 600px) {
    .movie {
        width: calc(100% - 20px);
    }
}



/* Movie image styles */
.movie img {
    width: auto;
    max-width: 100%;
    height: 357px;
}

/* Movie title styles */
.movie .title {
    margin-top: 10px;
    font-weight: bold;
    color: #996666;
    font-size: 16px;
}

/* Movie subtitle styles */
.movie .subtitle {
    width: auto;
    height: 16px;
    margin-right: 5px;
}

/* Movie genres styles */
.genres {
    font-style: italic;
    color: #666;
}

/* Links styles */
.movie a,
.genres a {
    text-decoration: underline;
    color: #171514;
}

/* Background color */
body {
    background: #e6d5a1;
}

/* Filters container */
.filters-container {
    position: relative;
    margin-bottom: 20px;
    /* Add margin for spacing */
    display: flex;
    /* Use flexbox layout */
    flex-wrap: wrap;
    /* Wrap items to next line if needed */
    justify-content: space-between;
    /* Distribute space between elements */
    align-items: center;
    /* Center items vertically */
    padding: 10px;
}

/* Filters */
.filters {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #edecc2;
    flex-grow: 1;
    display:flex;
    margin-left: 10%;
    align-items: center;
}

/* Show filters when toggler is clicked */
.filters-container.active .filters {
    display: block;
}

/* Filter select styles */
.filters select {
    padding: 5px 10px;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    /* Add border radius */
    background-color: #fff;
}

/* Filter toggler styles */
.filters-toggler {
    background-color: #907472;
    color: #eaeaea;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    /* Add border radius */
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    /* Add margin below toggler */
    width: 48%;
}

/* "See more" button styles */
.see-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #5b2522;
    /* Main color */
    color: #e6d5a1;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    /* Required for positioning the arrow */
}

.see-more:hover {
    background-color: #a65152;
}

.see-more::after {
    content: ' ';
    position: absolute;
    top: 50%;
    right: 10px;
    /* Adjust as needed */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #ffffff;
    /* Arrow color */
    transform: translateY(-50%);
    transition: right 0.3s ease-in-out;
    /* Smooth sliding effect */
    opacity: 0;
    /* Initially hide the arrow */
}

.see-more:hover::after {
    right: 5px;
    /* Slide the arrow to appear */
    opacity: 1;
    /* Make the arrow visible */
}

/* Title container styles */
.title-container {
    background-color: #000000;
    color: #e6d5a1;
    margin-bottom: 20px;
}

/* Subtitle styles */
h2.subtitle {
    padding-bottom: 1%;
}

/* Title styles */
h1.type_see_more {
    padding-top: 1%;
    margin: 0;
    padding-bottom: 1%;
    text-align: center;
}

/* Subtitle addon styles */
.subtitleaddon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    height: 50px !important;
}

/* Poster wrapper styles */
.poster-wrapper {
    position: relative;
    display: inline-block;
    /* Ensures the wrapper fits the size of the poster */
}

/* Main page link styles */
.main-page-link {
    text-decoration: underline;
    color: #e6d5a1;
}

/* Cropped poster styles */
.cropped_poster {
    background-size: auto 100%;
    background-position: center top;
    overflow: hidden;
    height: 357px;
    width: 250px;
    background-repeat: no-repeat;
}

/* Filter select styles */
.filters select {
    display: inline-block;
    /* Display selects inline with labels */
    padding: 5px 10px;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    /* Add border radius */
    background-color: #fff;
}

.filters label {
    margin-left: 1%;
}

/* Media queries for smaller screens */
@media screen and (max-width: 1245px) {

    /* Adjust display properties for smaller screens */
    .filters label,
    .filters select {
        display: block;
        /* Display as block elements on smaller screens */
        width: 100%;
        /* Reset width to fill the container */
        margin: 5px 0;
        /* Add margin for spacing */
    }

    .filters label {
        margin-bottom: 5px;
        /* Adjust margin for spacing */
    }
}

#clear-filters-btn {
    padding: 10px 20px;
    background-color: #917472;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    /* Adjust margin to separate from other elements */
}

#clear-filters-btn:hover {
    background-color: #a65152;
}

#clear-filters-btn:active {
    background-color: #571919;
}

#search-bar-container {

    display: inline;
}

#search-bar {
    width: 93%;
    max-width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
      border: none;
      outline: none;
      background-color: #f5f2f2;
      box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
      transition: 300ms ease-in-out;
}
#search-bar:focus{
      background-color: white;
          transform: scale(1.05);
          box-shadow: 0px 0px 20px 0px #969696, 0px 0px 4px #ffffff;
    }


#toggle-filters-btn {
    display: none;
    /* Hidden by default, shown in mobile view */
    background-color: #000;
    /* Example button color */
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

div#ipsLayout_header {
    background: #570b1b;
}
#menu ul {
    margin: 0;
    padding: 0;
}

#menu .main-menu {
    display: none;
}

#tm:checked+.main-menu {
    display: block;
}

#menu input[type="checkbox"],
#menu ul span.drop-icon {
    display: none;
}

#menu li,
#toggle-menu,
#menu .sub-menu {
    border-style: solid;
    border-color: rgba(0, 0, 0, .05);
}

#menu li,
#toggle-menu {
    border-width: 0 0 1px;
}

#menu .sub-menu {
    background-color: #444;
    border-width: 1px 1px 0;
    margin: 0 1em;
}

#menu .sub-menu li:last-child {
    border-width: 0;
}

#menu li,
#toggle-menu,
#menu a {
    position: relative;
    display: block;
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);
    text-decoration: none;
}

#menu,
#toggle-menu {
    background-color: #570b1b;
}

#toggle-menu,
#menu a {
    padding: 1em 1.5em;
}

#menu a {
    transition: all .125s ease-in-out;
    -webkit-transition: all .125s ease-in-out;
}

#menu a:hover {
    background-color: white;
    color: #550c1b;
}

#menu .sub-menu {
    display: none;
}

#menu input[type="checkbox"]:checked+.sub-menu {
    display: block;
}

#menu .sub-menu a:hover {
    color: #444;
}

#toggle-menu .drop-icon,
#menu li label.drop-icon {
    position: absolute;
    right: 1.5em;
    top: 1.25em;
}

#menu label.drop-icon, #toggle-menu span.drop-icon {
    border-radius: 50%;
    width: 1em;
    height: 1em;
    text-align: center;
    background-color: rgba(0, 0, 0, .125);
    text-shadow: 0 0 0 transparent;
    color: rgba(255, 255, 255, .75);
}

#menu .drop-icon {
    line-height: 1;
}
@media only screen and (max-width: 1024px) {


    #menu .sub-menu li {
        width: auto;
    }
}

@media only screen and (min-width: 1025px) {
    #menu .main-menu {
        display: block;
    }

    #toggle-menu,
    #menu label.drop-icon {
        display: none;
    }

    #menu ul span.drop-icon {
        display: inline-block;
    }

    #menu li {
        float: left;
        border-width: 0 1px 0 0;
    }

    #menu .sub-menu li {
        float: none;
    }

    #menu .sub-menu {
        border-width: 0;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 15em;
        z-index: 3000;
    }

    #menu .sub-menu,
    #menu input[type="checkbox"]:checked+.sub-menu {
        display: none;
    }

    #menu .sub-menu li {
        border-width: 0 0 1px;
    }

    #menu .sub-menu .sub-menu {
        top: 0;
        left: 100%;
    }

    #menu li:hover>input[type="checkbox"]+.sub-menu {
        display: block;
    }
    nav#menu {
        height: 50px;
        padding-right: 50px;
        padding-left: 150px;
    }
}
.hidden {
    display: none;
}
/* Hide the original button */
#toggle-filters-btn {
    display: none;
}

/* Style the label for the filters toggler */
#toggle-filters-btn {
    background-color: #000;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

/* Show the filters when the checkbox is checked */
#toggle-filters:checked + .filters {
    display: block;
}
#toggle-filters:checked ~ .filters-container .filters {
    display: block;
}
@media screen and (max-width: 1024px) {
    /* Show the filters toggler label */
    #toggle-filters-btn {
        display: block;
    }

    /* Hide the filters */
    .filters {
        display: none;
        margin: 0 auto;
    }
    .filters-container {
            display: block; /* Show filters one below each other */
            margin-top: 10px;
        }

        .filter-group {
            margin-bottom: 10px; /* Add space between filter groups */
        }
        #search-bar-container {
                width: 100%;
                order: -1;
                /* Place search bar above filters on mobile */
                text-align: center;

                margin-top: 10px;
                margin-left:0;
                /* Space below the menu */
            }

            #search-bar {

                margin-top: 10px;
            }

    }

input[type="checkbox"]{
display:none;
}
.ipsLayout_container img {
    max-width: 100%;
     padding-top: 10px;
}
.ipsLayout_container{
background:#5D0B1B;
}
a.ipsTag {
    text-decoration: none;
    color: #570b1b;
    }

    /* Reset CSS */
    body {
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        background: #e6d5a1;
    }

    /* Main container for title and search */
    .main-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .title-container {
        background-color: #000000;
        color: #e6d5a1;
        width: 100%;
        text-align: center;
    }

    .search-container {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px; /* Space between title and search bar */
           background-color: #5d0b1b;
           padding-top: 10px;
           padding-bottom: 10px;
    }

    #search-bar-container {
        display: inline-block;
    }

    #search-bar {
        width: 250px; /* Fixed width or percentage as per your design */
        padding: 8px;
        border-radius: 4px;
        background-color: #f5f2f2;
        box-shadow: inset 2px 5px 10px rgba(0,0,0,0.3);
        transition: 300ms ease-in-out;
    }

    #search-bar:focus {
        background-color: white;
        transform: scale(1.05);
        box-shadow: 0px 0px 20px 0px #969696, 0px 0px 4px #ffffff;
    }

button#scrollToTopBtn {
    position: fixed;
    bottom: 5px;
    right: 5px;
    cursor: pointer;
}