/* General Styling */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}




/* Centered Image inside the box */

/* Header Background */
.header_background {
    width: 100%;
    padding: 0;
    background-color: #E23636;
;}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #E23636;
    height: 100px;
}

.search {
    width: 50%; 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 1rem; 
    margin-top: 1rem;
}

/* Logo Section */
.header_logo {
    background-color: #555;
    color: white;
    padding: 10px;
    font-size: 1.5rem;
    flex: 1;
}

/* Search Bar Section */
.header_search {
    background-color: #555;
    color: white;
    padding: 10px;
    text-align: right;
    font-size: 1.5rem;
    flex: 4;
}

/* Movie Layout Grid */
.movie-layout {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    padding: 20px;
    width: 100%;
}

.movie-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

/* Center Movie Name and Poster */
.movie-name, .movie-poster {
    background-color: #dcdcdc;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    width: 100%;
}

/* Center Movie Details */
.movie-details {
    background-color: #bcbcbc;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    width: 100%;
}


.starring{
    color: white;
}

/* Grid Layouts for Starring, Images, Related Movies */
.starring, .images, .related-movies {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
}

/* Center Actor, Image, and Related Boxes */
.actor-box, .image-box, .related-box {
    background-color: #a8a8a8;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-align: center;
}

/* Movies Section */
.movies-section {
    color: rgb(0, 0, 0);
    padding: 5px;
}

/* Category Titles */
.category h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.category p {
    color: #f78f2e;
    margin-bottom: 20px;
}

/* Movie Grid Layout */
.movie-display-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center; 
    padding-top: 5px;
    width: 60.0rem;
    margin: 3.0rem auto;
}

/* Footer */

/* Footer Logo */


/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .header {
        padding: 15px;
        height: 80px;
    }

    .header_logo, .header_search {
        font-size: 1.2rem;
        padding: 5px;
    }

    .movie-display-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .actor-box, .image-box, .related-box {
        height: 350px;
        width: 200%;
        font-size: 1rem;
    }

    .starring, .images, .related-movies {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .movie-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .movie-name, .movie-poster {
        height: 250px;
        font-size: 1.5rem;
    }

    .movie-details {
        height: 150px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .movie-display-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .actor-box, .image-box, .related-box {
        height: 200px;
        font-size: 0.9rem;
    }

    .starring, .images, .related-movies {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .movie-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .movie-name, .movie-poster {
        height: 200px;
        font-size: 1.2rem;
    }

    .movie-details {
        height: 120px;
        font-size: 1rem;
    }

    .movies-section {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .header_logo, .header_search, .footer-logo, .footer-social-media {
        font-size: 1rem;
        padding: 5px;
    }

    .actor-box, .image-box, .related-box {
        height: 150px;
        font-size: 0.8rem;
    }

    .movie-name, .movie-poster {
        height: 150px;
        font-size: 1rem;
    }

    .movie-details {
        height: 100px;
        font-size: 0.9rem;
    }

    .starring, .images, .related-movies {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .movies-section {
        padding: 5px;
    }
}

.search-results {
    position: absolute;
    width: 17.0rem;
    background-color: rgb(0, 0, 0);
    top: 5.0rem;
    left: 18.0rem;
    border: 1px solid yellow;
    z-index: 2000000;
    display: none;
}

.searchBar {
    padding-top: 2rem;
}

.search-bar {
    position: relative;
}
.searchBar input[type="text"]{
    padding: 0.5rem;    
    border-radius: 2rem;
    }