
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

[class ^= "box-"] {
  display:grid;
  place-items: center;
  border: solid 5px #4716f9;
  padding: 10px;
  border-radius: 20px ;
  box-shadow: 0 0 5px rgba(0,0,0.1);
  color: #dad0d2;
}

body {
  background: linear-gradient(#03080c,#190d44, #130928);
  height: 193vh
  
}

.Professional { 
  height: 90vh;
  width: 90%;
  margin: 150px auto;
  position: relative;

  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas: 
      "c c c c  c c c c  c c c c"
      "t t t t  t t t t  t t t t"
      "t t t t  t t t t  t t t t"
      "t t t t  t t t t  t t t t"
      "f f f f  f f f f  f f f f";
}
.Professional::before  {
  content: "TRENDING MOVIES";
  position: absolute;
  top: -50px;  /* Adjust this as needed to place the text at the desired location */
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #dad0d2;
  font-size: 34px;
}

.Professional .box-1 {
  grid-area: n;
}

.Professional .box-2 {
  grid-area: c;
}

.Professional .box-3 {
    grid-area: t;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* This will create space between rows and columns */
    
    
    
}


.Professional .box-footer {
  grid-area: f;
}

/*FOOTER */
.box-footer h4 {
  font-weight: bold;
}

.box-footer ul {
  list-style-type: none;
  padding-left: 0;
}

.box-footer ul li a {
  color: #dad0d2;
  text-decoration: none;
}

.box-footer ul li a:hover {
  text-decoration: underline;
}
.footer-section {
  display: inline-block;
  vertical-align: top;
  margin: 0 200px; 
}

.box-footer {
  display: flex;
  justify-content: center;  
  align-items: center;      
}

/*content home page*/

div.gallery {
  
  width: calc(100% - 2px);  /* Adjusting for the border width */
  box-sizing: border-box;   /* This ensures padding and border are included in the width */
  overflow: hidden;    /* This will hide any overflowing content */
}



div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;               /* This ensures the image takes the full width of its container */
  height: 500px;             /* Set a fixed height */
  object-fit: contain;         /* This makes sure images cover the space without distortion */
  display: block;          /* Removes any space below the image */
}



div.desc {
  padding: 15px;
  text-align: center;
  font-family: 'Poppins', sans-serif;  
  font-weight: 800;
  text-decoration: underline;
 
}



/*CSS FOR THE NAVIGATION BAR AT THE TOP OF WEBSITE*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
}

nav{
  position: fixed;
  z-index: 99;
  width: 100%;
  background: #242526;
  top: 0;
  left: 0;

}

.wrapper{
  max-width: 1300px;
  padding: 0px 30px;
  height: 70px;
  line-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a{
  color: #dad0d2;
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links{
  display: inline-flex;
}

.nav-links li{
  list-style: none;
}

.nav-links li a{
  color: #dad0d2;
  text-decoration: none;
  font-size: 23px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links li a:hover{
  background: #3A3B3C;
}

.drop-menu{
  position: absolute;
  background: #242526;
  width: 180px;
  line-height: 45px;
  top: 85px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.nav-links li:hover .drop-menu{
  transition: all 0.3s ease;
  top: 70px;
  opacity: 1;
  visibility: visible;
}

.drop-menu li a{
  width: 100%;
  display: block;
  padding: 0 0 0 15px;
  font-weight: 400;
  border-radius: 0px;
}

.btn{
  color: #dad0d2;
  font-size: 20px;
  cursor: pointer;
  display: none;
}

@media screen and (max-width: 970px) {
  .btn{
    display: block;
  }
  
  .nav-links{
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 350px;
    top: 0;
    left: -100%;
    background: #242526;
    display: block;
    padding: 50px 10px;
    line-height: 50px;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
  }

  #menu-btn:checked ~ .nav-links{
    left: 0%;
  }

  .nav-links li{
    margin: 15px 10px;
  }

  .drop-menu{
    position: static;
    opacity: 1;
    top: 65px;
    visibility: visible;
    padding-left: 20px;
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
  }

  .nav-links .desktop-item{
    display: none;
  }

  .nav-links .mobile-item{
    display: block;
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
    padding-left: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .nav-links .mobile-item:hover{
    background: #3A3B3C;
  }
  
  .drop-menu li{
    margin: 0;
  }
}

nav input[type="radio"] {
  display: none;
}


.nav-search {
  background-color: #242526;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 5px;
  margin-left: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-left: 10px;
}

.search-form input {
  border: none;
  padding: 9px 15px;
  font-size: 23px;
  background-color: #333436; 
  color: #dad0d2;
  border-radius: 5px 0 0 5px;
  transition: all 0.3s ease;
  
}

.search-form button {
  padding: 9px 15px;
  background-color: #242526;
  border: none;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  color: #dad0d2;
  font-size: 23px;
  transition: all 0.3s ease;
}

.search-form button:hover {
  background-color: #3A3B3C;
}

.search-form input::placeholder {
  color: #dad0d2;
}

.search-form input:focus {
  outline: none;
}

.search-form button:focus {
  outline: none;
}


/*CSS FOR THE INFINITE SLIDE ON HOME PAGE
https://www.youtube.com/watch?app=desktop&v=3Z780EOzIQs*/

.sliderimg {
   height: 350px;
   margin-bottom: 0;
   margin-left: 0;
   margin-right: 0;
   margin-top: 0;
   position: relative;
   width: 100%;
   display: grid;
   place-items: center;
   overflow: hidden;
   object-fit: cover;
}

.slide-track {
  display: flex;
  width: calc(250px * 18);
  animation: scroll 55S linear infinite;
}

.slide-track:hover{
  animation-play-state:paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px *9));
  }
}


.slide {
  height: 200px;
  width: 250px;
  display: flex;
  align-items: center;
  padding: 15px;
  perspective: 100px;
  position: relative;
}

.sliderimages {
  width: 100%;
  transition: transform 1S;
}
.slide-desc {
  position: absolute;  /* Position the movie name at the bottom of the slide */
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%); /* Center the movie name horizontally */
  background: rgba(0, 0, 0, 0.5); /* Optional: add a dark background for better visibility */
  padding: 5px 10px;   /* Some padding for aesthetics */
  color: #dad0d2;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-decoration: underline;
  border-radius: 5px;
}

.sliderimages:hover {
  transform: translateZ(20px);
}





