/* viewer.css */

body { margin: 0; background-color: #f7f7f7; font-family: "Noto Sans JP", sans-serif; color: #333; }

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 { margin-bottom: 20px; font-size: 24px; font-weight: bold; color: #1e293b; }
p.desc { font-size: 14px; color: #64748b; margin-bottom: 30px; }

/* Model Switcher Buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.model-btn {
    padding: 10px 20px;
    border: 2px solid #3b82f6;
    background-color: white;
    color: #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.model-btn:hover, .model-btn.active {
    background-color: #3b82f6;
    color: white;
}

/* Canvas Areas */
.canvas-wrapper {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

canvas { display: block; width: 100%; height: 100%; }

.controls-info {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #3b82f6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.loading-overlay.active { opacity: 1; }

/* Download Section */
.download-area {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}
.download-link {
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
}
.download-link:hover { text-decoration: underline; }
.free-notice {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Terms of Service Scroll Box */
.tos-wrapper {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
    border: 1px solid #cbd5e1;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.tos-header {
    background-color: #f1f5f9;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
}

.tos-scroll-box {
    height: 250px;
    overflow-y: auto;
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    text-align: left;
}

/* Scrollbar styling for ToS box */
.tos-scroll-box::-webkit-scrollbar {
    width: 8px;
}
.tos-scroll-box::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.tos-scroll-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tos-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

.tos-section {
    margin-bottom: 20px;
}

.tos-h3 {
    font-weight: bold;
    color: #1e293b;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
}

.tos-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 30px 0;
}