/* Global Styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(20, 20, 20, 1) 25%, 
    rgba(40, 40, 40, 1) 50%, 
    rgba(60, 60, 60, 1) 75%, 
    rgba(0, 0, 0, 1) 100%);
    background-size: 300% 300%;
    animation: gradientAnimation 15s ease infinite;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
  }

header {
    font-family: "Bungee Spice", sans-serif;
    background-color: #0d0d0d;
    color: #fff;
    padding: 1em;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

#search {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
  }
  
  .social a {
    display: inline-block;
    width: 32px;
    margin-left: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .social img {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: block; 
  }
  
  .social a:hover {
    transform: scale(1.2); /* Scales up the icon on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow effect on hover */
  }

#search-input {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #0d0d0d;
    border-radius: 5px;
    transition: border-color 0.3s ease-in-out;
}

#search-input:focus {
    border-color: #0d0d0d;
    outline: none;
}

#search-button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#search-button:hover {
    background-color: #0d0d0d;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.movie {
    background-color: #fff;
    font-family: "Playfair Display", serif;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-width: 200px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.movie h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}

.movie p {
    margin: 5px 0;
    color: #777;
}

.movie:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.movie:hover img {
    transform: scale(1.05);
}

.more-info-button {
    font-family: "Josefin Sans", sans-serif;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.more-info-button:hover {
    background-color: #000000;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.5s;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20%); }
    to { transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 600px) {
    #search-input {
        width: 200px;
    }

    .movie {
        max-width: 100%;
    }

    .modal-content {
        width: 90%;
    }
}
