@import url('dimensions.css');

@font-face {
    font-family: 'Graphik';
    src: url('../fonts/GraphikRegular.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

model-viewer {
    width: 100%;
    height: 100%;
}

/* remove the default vyking progress bar loader from top of viewer */
model-viewer::part(default-progress-bar) {
    display: none;
}

/* Hide default interaction prompt and add custom one */
model-viewer::part(default-ar-button) {
    display: none;
}

.progress-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(245, 245, 245, 0.9);
    border-radius:8px;
    padding: 20px;
    width: 170px;
    min-height: 200px;
    z-index: 1000;
}

#model-preview {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.progress-value {
    position: relative;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    margin: 8px 0;
}

.progress-value::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #333;
    transition: width 0.2s ease;
    width: var(--progress, 0%);
}

.progress-value::after {
    content: attr(data-progress) '%';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
    font-family: 'Graphik', sans-serif;
}

.progress-label {
    font-size: 14px;
    color: #666;
    font-family: 'Graphik', sans-serif;
}

/* Hide the progress container when loading is complete */
.progress-container.hidden {
    display: none;
}

/* All other CSS classes... */

.view-buttons {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 1;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
    pointer-events: none;
}

.carousel-button {
    background-color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: auto;
    font-family: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: bold;
}

.carousel-button:hover {
    background-color: #f0f0f0;
}

.apple-button {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-family: 'Graphik';
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.apple-button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.apple-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.toggle-container {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 5px;
    width: 100px;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1;
}

.toggle-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
}

.toggle-option.selected {
    background: black;
    border: 2px solid white;
    outline: 2px solid black;
    transform: scale(1.2);
}

/* Add specific padding for iOS devices */
@supports (-webkit-touch-callout: none) {
    .toggle-container {
        bottom: 90px;
    }
}

/* Desktop-only button */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

#qr-code {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qr-code canvas {
    max-width: 100%;
    height: auto;
}

.modal h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
} 