body {
    background-image: url('/assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    font-family: sans-serif;
    color: white;
}

#search-input {
    display: block;
    width: 80%;
    max-width: 500px;
    margin: 30px auto 20px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.info-text {
    text-align: center;
    margin: -10px 0 20px;
    font-size: 0.9em;
    color: BLACK;
}

#persons-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
}

.person-item {
    background-color: #EDBBAD;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    width: 150px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.person-name {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 0 5px 0;
}

.table-name {
    font-size: 0.9em;
    margin: 0;
    color: #db775c;
}

/* Responsive */
@media (max-width: 600px) {


    .person-item {
        width: 100%;
        max-width: 300px;
    }
}

#model-viewer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#model-viewer {
    width: 90%;
    height: 90%;
    max-width: 800px;
    max-height: 600px;
}

#close-viewer-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
}

/* Popup styles */
.popup-container {
    display: flex;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 30px 0;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-container.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    min-height: 300px;
    border-radius: 10px;
    position: relative;
    color: #333;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-container.show .popup-content {
    transform: scale(1);
}

.close-btn {
    color: #fff;
    opacity: 0.8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 15px;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    opacity: 1;
    text-decoration: none;
    cursor: pointer;
}

#popup-table-name {
    text-align: center;
    background-color: #EDBBAD;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.5em;
}

#popup-persons-list {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

#popup-persons-list p {
    background-color: #f9f9f9;
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

#popup-persons-list p:last-child {
    border-bottom: none;
}
