/*from local static*/


body{
    
    margin-top: 0.2vh;
    margin-left: 3vw;
    margin-right: 3vw;
    
    background-color: #f5f5f5;
    font-family: 'Segoe UI', sans-serif;

    
}

a{
    text-decoration: none;
    color: #A45A52;
}

.navbarDiv{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    position: relative;

    font-family: 'Arial', sans-serif; /* A clean, modern font */

}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Aligns items at their text baseline */
    padding: 1vw;
    max-width: 40%;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1vw; /* Space between navigation items */
}

.nav-item .nav-link {
    text-decoration: none;
    color: #333; /* Darker text color */
    font-size: clamp(.4vh, 1.5vh, 1.5vh);
    padding-bottom: .5vh; /* Space for the underline */
}

.nav-item.active .nav-link {
    border-bottom: 2px solid #333; /* Underline for the active item */
}

.navbar-brand {
    font-size: clamp(.4vh, 2vh, 2vh); /* Larger font size for the brand name */
    font-weight: bold;
   
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
}

/*end of navbar css*/

/*img overlay and container*/
.imageContainer {
    margin-top: .5vh;
    position: relative;
    display: inline-block;
    min-width:  100%; 
    
    /*max-width: 800px;-*/
}

.imageContainer img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 65vh;
    
}

.overlayText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
   
   
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.darkOverlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
   
    z-index: 1;

}

.overlayText h1 {
    font-size: clamp(1vw, 14vw, 18vw);
    margin: 0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.overlayText p {
    font-size: clamp(.4vh, 2vh, 2vh);
    margin-top: .6vh;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: normal;
}
/*end of img overlay and container*/

/*intro paragraph*/
.introParaContainer{
    display: flex;
    align-content: center;
    justify-content: center;
    
    
}

.introPara{
    width: 60%;
}

.introPara > p{
    font-size: clamp(1vh, 1.9vh, 2vh);
}

/*end of intro paragraph*/

/*red sash*/
.redSash{

    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background-color: #A45A52;
    height: 30vh;
    min-height: 30vh;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.redSash p {
    color: white;
    font-size: clamp(.4vh, 1.2vh, 1.3vh);
}

.headerContainer{
    width: 90vw;
    display: flex;
    align-items: left;

}

.sashCardContainer{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 90vw;
    height: 50%;
    bottom: 0;
    gap: 1vw;
}

.sash-card {
  width: 100%;
  min-width: 20vw;
  max-height: 45vh;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 300ms;

  height: 100%;
}

.sash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.sash-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sash-card .content {
  
    width: 100%;
    position: absolute;
    bottom: 0;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-direction: column;
    margin-left: .5vw;


}

.sash-card .date,
.sash-card .title {
  margin: 0;
}

.sash-card .date {
  font-size: clamp(.5vh, 1.4vh, 1.5vh);;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.sash-card .title {
  font-size: clamp(.5vw, 1.7vh, 2vw);
  color: #fff;
}
/*end of red sash but will come back to add the cards inside css*/

/*ranking cards here*/
.rankingCardContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1vh;
    
}

.rankingCardContainer > h6{
    font-size: clamp(.5vh, 2vh, 2vh);
    text-align: center;
}

.rankingCardContainer > p{
    font-size: clamp(.3vh, 1.8vh, 1.8vh);
}

.rankingCardContainer > *{

    margin-bottom: .2vh;   
    margin-top: .5vh; 
}
/*car divs here*/


.fourCardContainer{

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 95%; /*hard sets limit of about 4 columns*/
    gap: 1vw;
    padding: 1vw;
    min-width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #1e1e2f;
    color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin: 2vw auto;
    font-family: 'Segoe UI', sans-serif;

    flex: 1 1 calc(90%); /* 4 per row, minus gap */
  
    min-width: 90%;
    width: fit-content; /* optional to avoid overly narrow cards on small screens */
    
    max-width: 90%;
    height: fit-content;
  
}

.card-image{

    max-width:100%;
    height: auto;
   


}

.card-image img {
    border-radius: 6px;
    width: 100%;
    height: 100%;

    object-fit:cover;
    display: block;
}

.card-content {
    padding: .5vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.0vh;
}

.card-title {
  
  font-size: clamp(.5vh, 1.5vh, 2vh);
  font-weight: bold;
}

.summary-heading {
  margin-top: .5vh;
  margin-bottom: .3vh;
  font-size: clamp(.4vh, 0.95vh, 1.5vh);
  font-weight: bold;
  letter-spacing: 1px;
  color: #ccc;
}

.card-description {
    margin: 0px;
    font-size: clamp(.5vh, 1.1vh, 1.3vh);
    max-height: 6vh;
    flex-grow: 1;
    overflow:auto;

}

.genre-badges {
    margin-top: 0.4vh;
    margin-bottom: .4vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 50%; /*hard sets limit of about 4 columns*/
  

}

.badge {
    background-color: #2e2e4d;
    color: #fff;
    padding: 0.3vw 0.6vw;
    border-radius: 8px;
    font-size: clamp(.5vh, .8vh, 1vh);
    margin-right: 0.5vw;
    margin-top: 0;
    display: inline-block;
    top: 0%;

}

.trailer-button {
  margin-top: 1vh;
  display: inline-block;
  background-color: #e50914;
  color: white;
  padding: 0.6vw 1vw;
  border-radius: 8px;
  font-weight: bold;
  font-size: clamp(.5vh, 1vh, 1.5vh);
  text-decoration: none;
  transition: background 0.3s ease;
  text-align: center;
  width: 50%;
  margin-left: .5vw;
  margin-bottom: 0;
}

.trailer-button:hover {
  background-color: #bf0810;
}

