body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.logo {
    width: 80px;
}

.small-text {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.controller-container {
    margin: 20px auto;
}

#phone-controller {
    padding: 10px;
    font-size: 16px;
}

.status, .table-container {
    display: none; /* Initially hide the status and table */
}

.status {
    margin-bottom: 10px;
    font-weight: bold;
}

.table-container {
    margin: 0 auto;
    width: 80%; /* Adjusted width to make the table fit better */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: white;
    color: black;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

td a {
    color: blue;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 20px;
    vertical-align: middle;
}

td img {
    max-width: 100px; /* Limit the width */
    max-height: 100px; /* Limit the height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    margin: 5px;
    cursor: pointer; /* Change cursor to pointer for better UX */
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: white;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.popup-content {
    width: 100%;
    height: 100%;
    display: block;
}

.close-popup {
    display: none;
    position: fixed;
    top: calc(50% - 250px);
    left: calc(50% + 130px);
    width: 40px;
    height: 40px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1002;
}

@media (max-width: 600px) {
    .logo {
        width: 80px;
    }
}
