/* Global styles for margin, padding, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Hover effect for TV: slightly scales up the image */
.tv:hover {
    transform: scale(1.05);
}

/* Active effect for TV: slightly scales down the image when clicked */
.tv:active {
    transform: scale(0.98);
}

/* Layout for the video wall */
.video-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Adjust spacing between TVs */
}

/* The TV div */
.tv {
    display: inline-block; /* Allow the div to size itself to the image */
    width: auto; /* Automatically match the width of the image */
    height: auto; /* Automatically match the height of the image */
    cursor: pointer; /* Change cursor to indicate it's clickable */
}

/* The image inside each TV */
.tv img {
    display: block; /* Remove any spacing below the image */
    max-width: 100%; /* Ensure the image is not larger than its container */
    height: auto; /* Maintain aspect ratio */
    max-height: 111px; /* Limit the height to 333px */
}

/* Text overlay inside .tv div */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.5); /* Optional background for better contrast */
    padding: 2px;
    border-radius: 5px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* Show the text on hover */
.tv:hover .overlay-text {
    opacity: 1; /* Make the text visible on hover */
}