
/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    border: 16px solid #000; /* Simulate the border of a mobile device */
    border-radius: 40px; /* Rounded corners to mimic a mobile device */
    width: 375px; /* Width of the mobile device */
    height: 667px; /* Height of the mobile device */
    max-width: 100%; /* Responsive width */
    max-height: 100%; /* Responsive height */
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Shadow for 3D effect */
    flex-direction: column;
    justify-content: space-between; /* Space out content */
}

.modal-content::before {
    content: '';
    display: block;
    width: 60px; /* Width of the speaker area */
    height: 5px; /* Height of the speaker area */
    background: #000;
    border-radius: 10px;
    margin: 10px auto; /* Center the speaker */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#previewVideo {
    width: 100%; /* Adjust width to fill the modal content */
    height: auto; /* Maintain aspect ratio */
    max-height: 500px; /* Optional: Set a maximum height to prevent the video from becoming too large */
    margin-bottom: 20px;
}

#downloadButton {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fe2e55;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

#downloadButton:hover {
    background-color: #fe2e55;
    box-shadow: 0 4px 10px rgba(230, 0, 70, 0.4);
}
