body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #dddddd;
}

.preview-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background-color: #388538;
    color: white;
    padding: 20px;
    text-align: center;
}

.header h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.content {
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #999;
}

.image-container {
    display: none;
    text-align: center;
    width: 100%;
}

.error-container {
    display: none;
    text-align: center;
    color: #e74c3c;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-text h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.error-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.error-text ul {
    text-align: left;
    display: inline-block;
    margin: 10px 0;
}

.error-text li {
    margin: 5px 0;
    font-size: 14px;
}

.retry-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.retry-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .content {
        padding: 15px;
    }
}