@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;500&display=swap');

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

body {
    overflow: hidden;
    background: #faf9f7;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: #1a1a1a;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#info {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    pointer-events: none;
}

#info h1 {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

#current-image {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

#rotation-info {
    font-size: 11px;
    font-family: monospace;
    color: #888;
    margin-top: 8px;
    line-height: 1.6;
}

#controls {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    transform: scale(1.05);
}

.nav-btn:active {
    transform: scale(0.95);
}

#dots {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background: #1a1a1a;
}

.dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #faf9f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading-text {
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 24px;
}

#loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

#loading-progress {
    height: 100%;
    width: 0%;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

#hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #999;
    text-align: center;
}

#sliders {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 160px;
    transition: all 0.3s ease;
}

#sliders.collapsed {
    min-width: auto;
}

#slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

#slider-title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
}

#slider-toggle {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    border-radius: 4px;
}

#slider-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

#slider-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#sliders.collapsed #slider-content {
    display: none;
}

#sliders.collapsed #slider-title {
    display: none;
}

.slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.slider-row label {
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #888;
    text-transform: uppercase;
    min-width: 55px;
}

.slider-row.rightalign {
    justify-content: flex-end;
    gap: 8px;
}

.slider-row.rightalign label {
    text-align: right;
    margin-right: 8px;
}

.divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 6px 0;
}

.slider-row input[type="range"] {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.slider-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-row input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 11px;
    color: #1a1a1a;
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    #info {
        top: 16px;
        left: 16px;
    }
    
    #current-image {
        font-size: 22px;
    }
    
    .nav-btn {
        width: 48px;
        height: 48px;
    }
    
    #controls {
        bottom: 24px;
    }
}
