/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    background-color: #f0f2f5;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: #28a745;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.logo {
    height: 80px;
    object-fit: contain;
    margin-right: 20px;
}

.header-title {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    flex-grow: 1;
}

/* Image Viewer */
.image-viewer-container {
    width: 100%;
    /* Không giới hạn chiều cao để hình ảnh hiển thị đủ không gian */
    padding: 20px;
    background-color: #fff;
    border-bottom: 2px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-viewer {
    width: 100%;
    /* Chiều cao tự động để phù hợp với ảnh */
    overflow: auto;
    cursor: grab;
}

.image-viewer:active {
    cursor: grabbing;
}

#zoomable-image {
    width: 100%;
    max-width: none;
    transition: transform 0.2s ease-in-out;
    transform-origin: 0 0;
    display: block; /* Đảm bảo không có khoảng trắng dư thừa */
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 10px;
    }

    .logo {
        height: 40px;
        margin-right: 10px;
    }

    .header-title {
        font-size: 1rem;
    }
}