body {
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    height: 100vh;
    align-items: center;
    background-color: black;
}

.main-container {
    position: relative;
    min-width: 550px;
    padding: 10px;
}

.main-container img {
    min-width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    animation: brightnessAnimation 4s;
    filter: brightness(90%);
}

@keyframes brightnessAnimation {
    from {
        filter: brightness(0%);
    }

    60% {
        filter: brightness(60%);
    }

    to {
        filter: brightness(5%);
    }
}



.main-container h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 2em;

}

.main-container {
    color: white;
    margin: 15px 0;
}

.btn {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.btn:hover {
    background-color: crimson;
}

.trailer-contatiner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.7s;
}

.active.trailer-contatiner {
    visibility: hidden;
    opacity: 0;
}

.trailer-contatiner video {
    position: relative;
    max-width: 900px;
    outline: none;
}

@media (max-width: 991px) {
    .trailer-contatiner video {
        max-width: 90%;

    }
}

.close-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
}