body {
    background-color: black;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0 5%;
}

.preview {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    display: flex;          
    justify-content: center; 
    align-items: center;    
	margin: 0 45px; 
}

.preview video {
    width: 100%;
    height: 100%;
    position: absolute; 
    top: 0;
    left: 0;
}

.preview span {
    color: white;
    font-size: 24px;
    z-index: 2;
    position: relative; /* Ensure the text is relative within the flex container */
    display: flex; /* Use flexbox to center the text */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    width: 100%; /* Full width of the parent .preview */
    height: 100%; /* Full height of the parent .preview */
}

/* #shift-preview span {
    color: #7a7a7a; 
    font-size: 24px;
    z-index: 1; 
	text-align: center;
} */


/* Media Query for Smaller Mobile Devices */
@media only screen and (max-width: 500px) {
    .preview {
        width: 150px; /* Further reduced width for smaller screens */
        height: 150px; /* Adjusted height to maintain square aspect ratio */
		margin: 0 0px; 
    }

    .preview span {
        font-size: 20px; /* Slightly reduced font size for better fit */
    }

    #shift-preview span {
        top: 50%; /* Position at 50% from the top */
        left: 50%; /* Position at 50% from the left */
        transform: translate(-50%, -50%); /* Use transform to perfectly center */
        position: absolute; /* Absolute positioning relative to its parent */
    }
}
