/* CSS VARIABLES */
:root {
    --primary: #141414;
    --light: #F3F3F3;
    --dark: 	#686868;
  }
  
  html, body {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--primary);
    color: var(--light);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    line-height: 1.4;
  }
  
  img {
    max-width: 100%;
  }
  
  h1 {
    padding-top: 60px;  
  }
  
  .wrapper {
    margin: 0;
    padding: 0;
  }
  
  /* HEADER */
  header {
    padding: 20px 20px 0 20px;
    position: fixed;
    top: 0;
    display: grid;  
    grid-gap:5px;
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-areas: 
     "nt mn mn sb . . . "; 
    background-color: var(--primary);
    width: 100%;
    margin-bottom: 0px;  
  }
  
  .netflixLogo {
    grid-area: nt;
    object-fit: cover;
    width: 100px;
    max-height: 100%;
    
    padding-left: 30px;
    padding-top: 0px;  
  }
  
  .netflixLogo img {  
    height: 35px;     
  }
  
  #logo {
    color: #E50914;  
    margin: 0; 
    padding: 0; 
  }
  
  
  .main-nav {
    grid-area: mn;
    padding: 0 30px 0 20px;
  }
  
  .main-nav a {
    color: var(--light);
    text-decoration: none;
    margin: 5px;  
  }
  
  .main-nav a:hover {
    color: var(--dark);
  }
  
  .sub-nav {
    grid-area: sb;
    padding: 0 40px 0 40px;
    display:flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  
  .sub-nav a {
    color: var(--light);
    text-decoration: none;
    margin: 5px;
  }

  @media (max-width: 768px) { /* 768px is commonly used as a breakpoint for tablets and below */
    .sub-nav a {
        display: none;
        
    }
    .sub-nav img{
      display: none;
    }
}


  .sub-nav img{
    width:30px;
    border-radius: 3px;
  }
  
  .sub-nav a:hover {
    color: var(--dark);
  }
  
  
  /* MAIN CONTIANER */
  .main-container {
    padding: 50px;
  }
  
  .box {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    
  }
  
  .box a {
    transition: transform .3s;
  }
  
  .box a:hover {
    transition: transform .3s;
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);  
    transform: scale(1.2);
  }
  
  .box img {
    border-radius: 2px;
    width: 200px;
    height: 120px;
    object-fit: cover;
    object-position: center;
         

  }
  
  /* LINKS */
  .link {
    padding: 50px;
  }
  
  .sub-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(4, 1fr);
  }


  
  .sub-links a {
    color: var(--dark);
    text-decoration: none;
  }
  
  .sub-links a:hover {
    color:white;
    text-decoration: underline;
  }
  
  
  .logos a {
    color: #3f3535cc; /* Initial color of the icons */
    padding: 10px;
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.logos a:hover {
    color: #0073e6; /* Change to any color you like on hover */
}

 

  /* Footer CSS */
.footer {
  background-color: #141414; 
  color: #fff;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 17px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* GitHub Link */
.github-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.github-logo {
  width: 27px;
  height: 27px;
  margin-right: 8px;
}
.github-name:hover{
  color: #0e1fd8;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .footer-content {
      flex-direction: row;
      justify-content: center;
  }
  .footer {
      padding: 15px 40px;
  }
  .github-name, .copyright {
      font-size: 16px;
  }
}

  
  /* MEDIA QUERIES */
  
  @media(max-width: 900px) {
  
    header {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(2, 1fr);
      grid-template-areas: 
      "nt nt nt  .  .  . sb . . . "
      "mn mn mn mn mn mn  mn mn mn mn";
    }
  
    .box {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(4, minmax(100px, 1fr));
    }
  
  }
  
  @media(max-width: 700px) {
  
    header {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(2, 1fr);
      grid-template-areas: 
      "nt nt nt  .  .  . sb . . . "
      "mn mn mn mn mn mn  mn mn mn mn";
    }
  
    .box {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(3, minmax(100px, 1fr));
    }
  
    .sub-links ul {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(3, 1fr);
    }
     
  }
  
  @media(max-width: 500px) {
  
    .wrapper {
      font-size: 15px;
    }
  
    header {
      margin: 0;
      padding: 20px 0 0 0;
      position: static;
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(1, 1fr);
      grid-template-areas: 
      "nt"    
      "mn"
      "sb";
      text-align: center;
    }
  
    .netflixLogo {
      max-width: 100%;
      margin: auto;
      padding-right: 20px;
    }
  
    .main-nav {
      display: grid;
      grid-gap: 0px;
      grid-template-columns: repeat(3, 1fr);
      text-align: center;
    }
  
    h1 {
      text-align: center;
      font-size: 18px;
    }
  
   
  
    .box {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(2, 1fr);
      text-align: center;    
    }
  
    .box a:hover {
      transition: transform .3s;
      -ms-transform: scale(1);
      -webkit-transform: scale(1);  
      transform: scale(1.2);
    }
  
    .logos {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(2, 1fr);
      text-align: center;
    }
  
    .sub-links ul {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(2, 1fr);
      text-align: center;
      font-size: 15px;
    }
  
    
  
    
     
  }



  .footer-navigation {
    display: none;
    z-index: 25;
    overflow: hidden;
    padding: 0px 0px;
    background-color: rgb(22, 22, 22);
    position: fixed;
    bottom: 0;
    width: 100%;
    
  }
  
  .footer-navigation a {
    flex-grow: 1;
    display: block;
    color: #f2f2f26b;
    text-align: center;
    padding: 5px 16px;
    text-decoration: none;
    font-size: 13px;
  }
  
  .footer-navigation a:hover {
    background: #f1f1f1;
  }
  
  .footer-navigation a.active {
    color: rgba(255, 255, 255, 0.726);
    background-color: rgb(36, 36, 36);
  }

  /* my list page styling */
  .my-list-page-container{
      flex-wrap: wrap;
  }
  .my-list-page-container a{
      flex: 1/3;
  }

  /* mobile navigation setting */
  @media(max-width: 600px){
      .home{
          display: none;
      }
      .latest{
          display: none;
      }
      .footer-navigation{
        display: flex;
    }
    footer{
    margin-bottom: 3rem;

    }
  }