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

body {
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.image:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* PWA Install Prompt */
.install-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.install-prompt.show {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.install-prompt p {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.install-prompt button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#installBtn {
    background-color: #007AFF;
    color: white;
}

#installBtn:active {
    background-color: #0051D5;
}

#closeBtn {
    background-color: #e0e0e0;
    color: #333;
}

#closeBtn:active {
    background-color: #d0d0d0;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .image {
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .image {
        max-width: 85vw;
    }

    .install-prompt {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}
