* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
    cursor: pointer;
}

.preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.preview.active {
    display: flex;
}

.preview-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

.preview-img:active {
    cursor: grabbing;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.options-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    font-size: 20px;
}

.container {
    position: relative;
}

.options-menu {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: rgba(0,0,0,0.8);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    z-index: 1002;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.options-menu.active {
    display: block;
}

.option-item {
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.option-item:hover {
    background-color: rgba(255,255,255,0.1);
}