@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;700;800&display=swap'); 

:root {
  --dark-color: rgb(16, 16, 16);
  --light-color: rgb(192, 192, 192);
  --popcorn-color: rgb(255, 184, 4);
  --popcorn-light-color: rgba(249, 191, 44, 0.8);
}

div.logo-container {
  background-color: var(--dark-color);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Heebo', sans-serif;
}

body {
  font-family: 'Heebo', sans-serif;
  background-image: url(./assets/Images/pexels-pixabay-60507.jpg)
}


.logo-container {
  min-height: 100px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

.search-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-color);
}

.logo {
  font-size: 3rem;
  color: var(--popcorn-color);
  font-weight: bold;
}

.logo p span {
  color: white;
}

.search-text {
  text-align: center;
  color: white;
  font-size: 2rem;
  margin: 1rem;
  
}

.search-control {
  width: 50%;
  height: 40px;
  box-shadow: 0.1em 0.1em 0.1em rgba(16, 16, 16, 0.1);
  background-color: var(--dark-color);
  border-radius: 5px;
  border: solid 1px;
}

#search-box {
  color: var(--popcorn-color);
  font-family: 'Heebo', sans-serif;
  font-size: 24px;
  height: fit-content;
  border: solid 1px;
}

.search-input {
  display: flex;
  flex-direction: column;
  align-items: center;
}

::placeholder {
  color: var(--popcorn-color);
}

.search-control input {
  height: 50px;
  font-size: 1rem; 
  text-align: center;
  background-color: var(--light-color);
  color: var(--dark-color);
}

.search-control h3 {
  align-self: center;
  margin-right: 1rem;
  font-size: 2rem;
  color: white;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

button {
  margin: 1.2rem ;
  height: 3rem;
  width: 7rem;
  font-size: 20px;
  color: var(--popcorn-color);
  background-color: var(--dark-color);
  border: solid 1px;
  cursor: pointer;
  transition: background-color 0.3s ease 0s;
  align-items: center;
  border-radius: 5px;
}

button:hover {
  background-color: var(--popcorn-color);
  color: var(--dark-color);
}

#movie-trailer {
  background-color: var(--dark-color);
  color: white;
  padding: 20px;
}

#movie-trailer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

#movie-trailer-container img {
  max-width: 100%;
  height: auto;
  display: block; /* Centers the image if the container is wider */
  margin: 0 auto; /* Additional centering for the image */
}

.movie-trailer-box {
  width: 80%;
  height: auto;
  background-color: var(--dark-color);
  color: white;
  padding: 20px;
  margin: 20px auto;
  text-align: center;
  box-sizing: border-box;
}

.movie-info-section {
  background-color: var(--dark-color);
  color: white;
  margin-top: 20px;
  margin-bottom: 20px;
}

.movie-info-section h2, 
.movie-info-section h5 {
color: var(--popcorn-color);
margin-top: 20px;
}

.movie-info-section p {
  color: white;
}

#movieTitle {
  color: var(--popcorn-color); 
}


/* search history style */

.search-history-card {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  margin: 0 auto;
}

  #searchHistory {
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    border: 1px solid var(--popcorn-color);
    border-radius: 5px;
    margin: 0;
    box-sizing: border-box;
  }

#searchHistory li {
  list-style-type: none;
  padding: 10px;
  border-bottom: 1px solid var(--popcorn-color);
}

#clear-storage-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-color);
  color: white;
  margin-top: 20px;
  margin-left: 0;
  padding: 10px 20px;
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s;
  border: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#clear-storage-btn:hover {
  background-color: var(--popcorn-color);
  color: black;
  cursor: pointer;
  text-decoration: none;
}

/* Footer Section */
.footer-section {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0;
  text-align: center;
}

#footer {
  display: flex;
  justify-content: space-around;
}

#footer section {
  flex: 1;
}

#footer h3 {
  color: var(--popcorn-color);
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: bold;
}

#footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

#footer ul li {
  margin-bottom: 10px;
  margin-right: 20px;
}

#footer ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

#footer ul li a:hover {
  color: var(--popcorn-color);
}

#footer ul li .label {
  margin-left: 10px;
}


.copyright {
  margin-top: 20px;
  display: flex;
  cursor: none;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
}

.copyright:hover {
  color: var(--popcorn-color);
}

/* Responsive Footer */
@media only screen and (max-width: 600px) {
  .footer-section {
    padding: 20px 0;
  }
}


/*Icons and buttons in the Modals*/


.btn-primary, .btn-secondary {
  color: var(--popcorn-color);
  background: white;
  border-color: var(--popcorn-color);
}

.btn-primary:hover, .btn-secondary:hover {
  background-color: var(--dark-color); 
  color: var(--popcorn-color);
  border-color: var(--popcorn-color);
}

#ratingModal .btn-light .bi, #errorModal .btn-light .bi {
  color: var(--popcorn-color);
}


#thumbsUp, #thumbsDown, #errorModalThumbsUp{
  border-color: var(--popcorn-color);

}

#thumbsUp:hover, #thumbsDown:hover, #errorModalThumbsUp:hover {
  background-color: var(--dark-color); 
  color: var(--popcorn-color);
}




/* MEDIA QUERIES */

/* Mobile */
@media only screen and (max-width: 600px) {
  .logo {
    font-size: 2rem;
  }

  .search-container {
    height: auto;
    padding: 1rem;
  }

  .search-text {
    font-size: 1.5rem;
    margin: 0.5rem;
    padding: 20px;
  }

  

  .search-control {
    width: 100%;
    margin-top: 0.5rem;
  }

  .search-control h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  button {
    height: 2.5rem;
    width: 100%;
    font-size: 16px;
    margin: 1rem 0;
  }

  .search-button {
    margin: 10px;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
    
 
  #clear-storage-btn {
    font-size: 14px;
    padding: 8px 16px;
}
}


/* Large screen */
@media only screen and (max-width: 1200px) {
  .logo {
    font-size: 1.5rem;
  }

  .search-container {
    padding: 0.5rem;
  }

  .search-text {
    font-size: 1.5rem;
    margin: 0.3rem;
  }

  .search-control {
    width: 100%;
    margin-top: 0.3rem;
  }

  .search-control h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  button {
    height: 2rem;
    width: 60%;
    font-size: 14px;
    margin: 0.2rem;
  }

  .search-text{ 
    font-size: 1.5rem;
  }
}


/* Tablet */
@media only screen and (min-width: 601px) and (max-width: 768px) {
  #clear-storage-btn {
    font-size: 15px;
    padding: 10px 18px;
  }

  .search-button {
    margin: 5px;
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .search-text{ 
    font-size: 1.5rem;
  }
}

/* Desktop */
@media only screen and (min-width: 769px) {
  #clear-storage-btn {
    width: auto;
    font-size: 18px;
    padding: 12px 24px;
    }

    .search-button {
      width: 20%;
    }
      
/* Laptop */
@media only screen and (min-width: 1025px) {
  /* Add laptop-specific styles here */
}
.search-button {
  margin: 5px;
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-text { 
  font-size: 1.8rem;
}

  
}

/* like/dislike buttons */
.reviewBtn{
  margin: 0.3rem;
  width: 3rem;
  height: 2rem;
}

.reviewBtn{
  cursor: pointer;
  outline: 0;
  color: #AAA;

}
.btn:focus {
  outline: none;
}

.green{
  color: green;
}

.red{
  color: red;
}