.title {
    text-align: center;
    margin-top: 50px;
}

.movie-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    width: 100%; /* Allow it to take full width */
    margin-left: auto; /* Center the container */
    margin-right: auto; /* Center the container */
    justify-content: center;
    margin-top: 70px;
    margin-bottom: 70px;
    column-gap: 10px;
    row-gap: 10px;
}



.movie {
    position: relative;
    width: 200px;
    height: 300px;
    overflow: hidden;

}

.movie img {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    object-fit: cover;
}
.movie:hover img {
    filter: blur(1px) brightness(50%);
}
.movie-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5em;
    text-align: center;
    opacity: 0;
    font-weight: 700;
    transition: opacity 0.3s ease;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.movie:hover .movie-title {
    opacity: 1;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.delete-movie {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 20px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 1;
    text-decoration: none;
}

.delete-movie:hover {
    background-color: #cc0000;
}


/* Ensure delete button is visible on hover */
.movie:hover .delete-movie {
    z-index: 100;
}

.movie.over {
    border: 2px dashed #000;
}