/* Google Fonts Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');


/* utility */

:root {
    --primary-color: #242526;
    --secondary-color: #3a3b3c;
  }

* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: poppins;
    color:#E4E6EB;
    margin: 0;
    background-color: var(--primary-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    display: inline-block;
    color: #CD5888;
  }
  
  ul {
    list-style: none;
  }
  
  .container {
      max-width: 1300px;
      margin-inline: auto;
      padding: 10px 20px 10px 20px;
    }
  
  
  .hover-link {
      color: #E4E6EB;
      transition: 0.2sec ease-out;
    }
    
    
  .hover-link:hover {
      color: #CD5888;
    }
    
    
  /* Navbar Section */
  
    nav {
    background-color: #18191a;
    }
  
    .nav-flex {
        display: flex;
        align-items: center;
      }
  
    .main-nav {
      /* padding:25px 50px 25px 50px; */
      position: relative;
      background-color: #18191a;
      justify-content: space-between;
    }
  
    
    .company-logo img {
      height: 50px;
      margin-left: 10px;
    }
    
    .nav-links {
      flex-basis: 730px;
    } 
    
    .nav-links ul {
      justify-content: end;
      gap: 40px;
    }
    
    .nav-toggle {
      display: none;
    }

    /* search section */

    header {
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
/*         justify-content: center; */
        align-items: center;
        background-color: var(--primary-color);
      }
      
      .search {
        margin-top: 10px;
        background-color: transparent;
        border: 1px solid #E4E6EB;
        border-radius: 50px;
        font-family: inherit;
        font-size: 1rem;
        padding: 0.5rem 1rem;
        color: #fff;
        width: 80vw;
      }
      
      .search::placeholder {
        color: #b0b3b8;
        text-align: center;
      }
      
      .search:focus {
        outline: none;
        background-color: var(--primary-color);
      }

      /* movie card section */
      
      main {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 15px 0 15px;
        margin-bottom: 50px;
      }
      
      .movie {
        width: 300px;
        margin: 1rem;
        background-color: var(--secondary-color);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
        border-radius: 3px;
      }
      
      .movie img {
        width: 100%;
      }
      
      .movie-info {
        color: #eee;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap:0.2rem;
        padding: 0.5rem 1rem 1rem;
        letter-spacing: 0.5px;
      }
      
      .movie-info h3 {
        margin-top: 0;
      }
      
      .movie-info span {
        background-color: var(--primary-color);
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
        font-weight: bold;
      }
      
      .movie-info span.green {
        color: lightgreen;
      }
      
      .movie-info span.orange {
        color: orange;
      }
      
      .movie-info span.red {
        color: red;
      }
      
      .overview {
        background-color: #fff;
        color:#121212;
        padding: 2rem;
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        max-height: 100%;
        transform: translateY(101%);
        overflow-y: auto;
        transition: transform 0.3s ease-in;
      }
      
      .movie:hover .overview {
        transform: translateY(0);
      }

      /* footer section */
  
    footer {
        margin-top: auto;
       }
      
        .footer {
          background-color: var(--secondary-color);
          padding:5px;
          text-align: center;
        }
      
       .footer-container p {
       font-size: 0.9rem;
       }