body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #e6d5a1; /* Soft background color */
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* This will maintain spacing on all sides */
padding: 0 20px 0 20px;
}
.movie {
flex: 1 0 21%; /* Adjust the flex-basis to manage how many items per row */
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center; /* Center align items vertically within each movie block */
background-color: #e6d5a1; /* Background color for movie blocks */
border-radius: 8px; /* Rounded corners for aesthetic */
padding-top: 10px;
}

.movie img {
    width: auto;
    max-width: 100%;
    height: 357px;
}
.movie .title {
    margin-top: 10px;
    font-weight: bold;
    color: #996666;
    font-size: 16px;
}
.movie .subtitle {
    width: auto;
    height: 16px;
    margin-right: 5px;
}
.genres {
    display:none;
}

.title a {
    text-decoration:underline;
    color: #171514;
}

.see-more {
padding: 10px 20px;
background-color: #570b1b;
color: #cab2af;
text-decoration: none;
border: none;
border-radius: 4px;
cursor: pointer;
align-self: center; /* Align button in the center of its container */
margin-top: auto; /* Pushes the button to the bottom of the flex container */
}
.see-more:hover {
background-color: #a65152;
color: #f6e6b9;
}


.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{
background-color: #000000;
    color: #e6d5a1;
}
h2.subtitle{
    padding-bottom:1%;
}
h1.title{
    padding: 1%;
    margin:0;
}
.subtitleaddon{
    position: absolute;
    bottom: 5px;
    right: 5px;
    height: 50px !important;
}
.poster-wrapper {
width: 250px; /* Fixed width */
height: 357px; /* Fixed height */
overflow: hidden; /* Clip the posters if they overflow */
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
}
.cropped_poster {
width: 100%;
height: 100%;
background-size: cover; /* Cover the entire area without stretching */
background-position: center; /* Center the background image */
}


.other_types a{
color:#E9D5A1;
text-decoration:underline;
}
/* Menu styles */
#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;
  }
}
.ipsLayout_container img {
    max-width: 100%;
    padding-top: 10px;
}
.ipsLayout_container{
background:#5D0B1B;
}
a.ipsTag {
    text-decoration: none;
    }

/* Main type container */
.main-type-container {
    margin-bottom: 20px;

}

/* Main type title */
.main-type-title {
    text-align: center;
    margin-bottom: 10px;
        background: #5d0b1b;
        padding: 1px;
        color: #e6d5a1;
        margin: 0 auto;
}

/* Movies container */
.movies-container {
                  display: flex;
                  align-items: center;
                  justify-content: space-around;
                  }

/* Movie title */
.movie h3 {
          font-size: 19px;
          line-height: 2.2;
          height: 1.6em;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          text-align: center;
          word-wrap: break-word;
          margin: 5px 0;
          }
.movie p {
word-wrap: break-word; /* Ensures text breaks to avoid horizontal scrolling */
margin: 5px 0; /* Adds top and bottom margin for spacing */
}

/* Container for movie items */
.movie .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}


/* General styling */
.movie img {
max-width: 100%;
height: auto;
}

.movie .title, .movie .genres {
text-align: center; /* Center-align text */
width: 100%; /* Full width to align text properly */
margin-top: 10px;
}
.movie .subtitle {
    width: auto;
    height: 16px;
    margin-right: 5px;
}

.genres {
    font-style: italic;
    color: #666;
}
.movie .see-more {
margin-top: auto; /* Pushes button to the bottom */
}

@media (max-width: 768px) {
.container {
justify-content: center; /* Center the items when stacking on smaller screens */
}

.movie {
flex: 1 0 90%; /* Take almost full width on small screens */
}

.poster-wrapper {
width: 100%; /* Full container width */
height: auto; /* Maintain aspect ratio */
}
}

@media (min-width: 769px) and (max-width: 1024px) {
.movies-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* Distributes space evenly */
}

.movie {
flex: 1 0 45%; /* Two items per row on medium screens */

}

.poster-wrapper {
max-height: 100%; /* Slightly larger posters on medium screens */
}
}

@media (min-width: 1025px) {
.movies-container {
display: flex;
flex-wrap: wrap;
justify-content: space-around; /* Even spacing around items */
}

.movie {
width: 31%; /* Each movie takes up about a third of the width of the container */
}

.poster-wrapper {
max-height: 350px; /* Allows for larger posters on large screens */
}
}
/* Global box-sizing to include padding and borders in width calculations */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base movie container styles */
.movie {
    float: left; /* Ensure that the movies line up in a row */
    width: 25%;
    }

/* Ensure the containers are cleared properly after floated elements */
.movies-container {
    display: block;
    overflow: hidden; /* Clearfix alternative */
}

/* Poster styling */
.poster-wrapper {
                width: 250px; /* Fixed width */
                height: 357px; /* Fixed height */
                display: block; /* Ensures proper display of block-level elements */
                margin: auto; /* Centers the poster in its container if container's width is greater */
                overflow: hidden; /* Hides any part of the image that exceeds the dimensions */
                background-size: cover; /* Cover the entire area of the element */
                background-position: center; /* Center the background image within the element */
                }

/* Adjustments for smaller screens */
@media (max-width: 1024px) {
    .movie {
        width:50%;
    }
}

@media (max-width: 768px) {
    .movie {
        width: 100%;
    }
}

@media (min-width: 1025px) and (max-width: 1244px) {
    .movie {
        flex: 1 0 31%; /* Three items per row */
    }
}

@media (min-width: 1245px) {
    .movie {
        flex: 1 0 31%; /* Adjust this value to fit three items per row exactly */
    }
}

button#scrollToTopBtn {
    position: fixed;
    bottom: 5px;
    right: 5px;
    cursor: pointer;
}