/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
   /* background-image: url('Images/Header444.gif');
    background-repeat: repeat;
    background-size: 2000px;
    background-position: center;*/
   background-color:rgba(0,0,0,1);
}

/* Modal content styling */
.modal-content {
    color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    overflow-y: auto;
    padding-top: 2px;
    padding-right: 20px;
    padding-left: 19px;
    padding: 1000px;
    box-shadow: 0 8px 33px rgba(255, 255, 255, 0.3);
    background-color: rgba(63, 31, 81, 0.4);
    background-image: url('Images/always-grey.png');
    background-repeat: repeat;
    background-size: 45px;
    background-position: center;
}

/* Header background styling */
.title-bg {
    width: auto;
    margin: 10px 0;
    margin-bottom: 42px;
    margin-top: 35px;
    background-color: #a0a0a0;
    line-height: 1;
    background-color: rgba(0,0,0,0.3);
    border: 3px solid #ffffff;
    border-radius: 14px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 8px 33px rgba(255, 255, 255, 0.3);
}

/* Project title styling */
.project-title {
    color: #ffffff;
    font-size: 30px;
}

/* Project video styling */
.project-video {
    max-width: 100%;
}

.project-video-BG {
    max-width: 100%;
    max-height: 100%;
    background-color: black;
    padding-top: 50px;
    margin-top: -50px;
}

    /* Make YouTube videos responsive */
.project-video iframe {
        margin-bottom: 13px;
        max-height: 70vh;
        border: 3px solid #ffffff;
        box-shadow: 0 8px 33px rgba(255, 255, 255, 0.3);
    }

/* Description background styling */
.description-bg {
    border: 3px solid #ffffff;
    width: 100%;
    margin: 10px 0;
    margin-bottom: -2px;
    margin-top: -19px;
    padding-top: 25px;
    padding-bottom: 1px;
    background-color: rgba(0,0,0,0.3);
    box-shadow: 0 8px 33px rgba(255, 255, 255, 0.3);
}

/* Project description styling */
.project-description {
    font-size: 18px;
    color: #ffffff;
    margin-top: -22px;
    margin-right: 27px;
    margin-left: 27px;
    text-align: center;
    margin-bottom: 24px;
    padding-top: 20px;
}

/* Project links styling */
.project-links {
    font-size: 13px;
    border: 3px solid #ffffff;
    width: 100%;
    margin: 10px 0;
    margin-top: -0px;
    margin-bottom: 35px;
    background-color: rgba(0,0,0,0.3);
    color: #ffffff;
    padding-top: -25px;
    padding-bottom: 24px;
    box-shadow: 0 8px 33px rgba(255, 255, 255, 0.3);
}

/* Close button styling */
.close {
    border: 3px solid #ffffff;
    border-radius: 22px;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    color: #ffffff;
    font-size: 50px;
    cursor: pointer;
    margin-top: -39px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-bottom: 50px;
    box-shadow: 0 8px 33px rgba(255, 255, 255, 0.3);
}


/* Responsiveness for smaller screens */
@media (max-width: 678px) {

    .modal {
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .title-bg {
        border-radius: 14px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: 3px;
    }

    .close {
        margin-bottom: 6px;
    }

    .modal-content {
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 14px;
        width: 80%;
        max-height: 90%;
        text-align: center;
        padding: 1000px;
    }

    .project-video iframe {
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: -50px;
        width: 100%;
        max-height: 30vh;
    }

    .project-description {
        margin-top: -41px;
    }
}

/* Responsiveness for smaller screens */
@media (min-width: 679px) {

    .modal {
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .title-bg {
        border-radius: 14px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: 3px;
    }

    .close {
        margin-bottom: 6px;
    }

    .modal-content {
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 14px;
        width: 70%;
        max-height: 90%;
        text-align: center;
        padding: 1000px;
    }

    .project-video iframe {
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: -50px;
        width: 100%;
        max-height: 70vh;
    }

    .project-description {
        margin-top: -41px;
    }
}


/* Responsiveness for medium screens */
@media (min-width: 1023px) {

    .modal {
        background-repeat: repeat;
        background-size: 1000px;
        background-position: center;
    }
    .title-bg {
        border-radius: 14px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: 3px;
    }

    .close {
        margin-bottom: 6px;
    }

    .modal-content {
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 14px;
        width: 60%;
        max-height: 90%;
        text-align: center;
        padding: 1000px;
    }

    .project-video iframe {
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: -50px;
        width: 100%;
        max-height: 70vh;
    }

    .project-description {
        margin-top: -41px;
    }
}

/* Responsiveness for medium screens */
@media (min-width: 1424px) {

    .modal {
        background-repeat: repeat;
        background-size: 1000px;
        background-position: center;
    }

    .title-bg {
        border-radius: 14px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: 3px;
    }

    .close {
        margin-bottom: 6px;
    }

    .modal-content {
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 14px;
        width: 38%;
        max-height: 90%;
        text-align: center;
        padding: 1000px;
    }

    .project-video iframe {
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: -50px;
        width: 100%;
        max-height: 70vh;
    }

    .project-description {
        margin-top: -41px;
    }
}


/* Responsiveness for medium screens */
@media (min-width: 2025px) {

    .modal {
        background-repeat: repeat;
        background-size: 1000px;
        background-position: center;
    }

    .title-bg {
        border-radius: 14px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: 3px;
    }

    .close {
        margin-bottom: 6px;
    }

    .modal-content {
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 14px;
        width: 32%;
        max-height: 90%;
        text-align: center;
        padding: 3000px;
    }

    .project-video iframe {
        margin-right: -4.5px; /* Ajuste a quantidade de pixels conforme necessário */
        margin-top: -50px;
        width: 100%;
        max-height: 70vh;
    }

    .project-description {
        margin-top: -41px;
    }
}

/* Modal entrance animation */
.modal.slide-in-up {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Modal exit animation */
.modal.slide-out-up {
    animation: slideOutUp 0.3s ease-out;
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}
