/*from local static*/


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

    
}
h1{
    font-size: clamp(0.5vh, 3vh, 3.5vh);

}

h2{
    font-size: clamp(0.5vh, 2vh, 3vh);
}

body p{
    font-size: clamp(0.5vh, 1.2vh, 1.3vh);
}

.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*/

/*start of title css*/

.titleDiv{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;

}

.titleDiv > * {
    margin-top: .2vh;
    margin-bottom: .2vh;;
}



/*endn of title css*/
/*red sash*/
.redSash{

    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background-color: #A45A52;
    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);

}

/*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;
    
}

.rankingTextContainer{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: left;

}

.rankingTextContainer > *{
    margin-bottom: .2vh;   
    margin-top: .5vh;
}



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

.rankingCardContainer > *{

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


.fourCardContainer{

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    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;


    
    width: auto; /* optional to avoid overly narrow cards on small screens */
    /*max-width: calc(45% - 1vw);*/
    max-width: 60%;
    height: fit-content;
    
}

.card-image{

    max-width:100%;
    max-height: 50%;



}

.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 {
  margin: 0;
  font-size: clamp(.5rem, 1.5vh, 2vh);
  font-weight: bold;
}

.summary-heading {
  margin-top: .5vh;
  margin-bottom: .1vh;
  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;
    min-height: fit-content;
  

}

.genre-badges {
  margin-top: 0.4vh;
  margin-bottom: .4vh;
  display: flex;
  

}

.badge {
    background-color: #2e2e4d;
    color: #fff;
    padding: 0.3vw 0.6vw;
    border-radius: 8px;
    font-size: 0.8vh;
    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: 1vh;
  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;
}

@media (max-width: 900px) {
  .card {
    flex: 1 1 calc(50% - 1vw); /* 2 per row on smaller screens */
  }
}

@media (max-width: 600px) {
  .card {
    flex: 1 1 100%; /* 1 per row on phones */
  }
}
