*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  padding: 16px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.navbar {
    position: sticky;
    top:0;
    width:100%;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px 30px;
    background-color: darkolivegreen;
  }
  .navbar a {
    color:white;
    text-decoration: none;
    gap: 20px
  }
  .muted {
    color: #666;
    font-size: 14px;
  }

  .navbar a:hover{
    color:gray;
  }

  #navSearch{
    margin-left:auto;
    padding: 6px 10px;
  }

.section {
  padding: 40px;
  text-align: center;
}

#searchForm {
  margin-bottom: 30px;
}

#searchInput {
  padding: 10px;
  width: 250px;
}

button {
  padding: 10px 15px;
  cursor: pointer;
}
#results {
    display: flex;
    flex-wrap: wrap;      
    gap: 20px;           
    justify-content: center; 
    margin-top: 20px;
}

.movie-card {
    width: 150px;         
    text-align: center;
    font-family: sans-serif;
}

.movie-card img {
    width: 100%;          
    height: auto;        
    border-radius: 8px;
    margin-bottom: 8px;
}

.search-container {
  position: relative; 
  width: 300px; 
}

.suggestions {
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%; 
  border: 1px solid #ccc;
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none; 
}

.suggestion-item {
  padding: 8px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #eee;
}
