*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 18px;
    background-color: #121212;
    color: #CCC;
}

h1 {
    display: flex;
    justify-content: center;
    margin: 30px;
}


#movie-gallery {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
}

.movie-card img {
    object-fit: cover;
    height: auto;
    width: 100%;
}

.movie-card {
    display: flex;
    flex-direction: column;
    margin: 10px;
    padding: 10px;
    background-color:#212121;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.movie-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transform: scale(1.03);
    transition: box-shadow ease 0.3s, transform ease 0.3s;
}

.movie-card p{
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    -webkit-box-orient: vertical;
    text-align: left;
}

.movie-card h2 {
    margin-top: 0;
    font-weight: bold;
    text-align: center;
    font-size: 24px;
}
@media (max-width: 1024px){
     #movie-gallery {
        grid-template-columns:repeat(3,1fr);
        margin: 20px auto;
    }
    .movie-card img{
        height: 150px;
    }
}


@media (max-width: 600px) {
    #movie-gallery {
        grid-template-columns: 1fr;
        margin: 0 10px;
    }
    .movie-card img{
        height: 150px;
    }
}

.movie-actions{
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.btn {
    padding: 8px 12px;
    background-color: #E50914;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color ease 0.3s;
}

.btn:hover {
    background-color: #A0060E;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}


#menu {
    padding: 10px 15px;
    margin: 20px 10px; 
    width: 250px;
    height: 40px; 
    background-color: #1a1a1a; 
    color: #f3f3f3; 
    border: 1px solid #444; 
    border-radius: 8px;   
    font-size: 1em;
}