html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: rgb(210, 240, 252);
    text-align: center;
}

html {
    background: linear-gradient(180deg,#0b3d58 0%, #020c14 100%);
    background-attachment: fixed;
    min-height: 100%;
    background-color: #051c2e;
}

/* iOS Safari does not support background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
    html {
        background-attachment: scroll;
    }
}

#bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

body>*:not(#bubbles):not(#lightbox) {
    position: relative;
    z-index: 1;
}

.main-header {
    padding: 2.4rem 2rem 2rem;
    text-align: center;
}

.main-header h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 3rem;
    margin: 0;
    letter-spacing: -0.01em;
    color: #c8eeff;
}

.content-section {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
    text-align: left;
}

.content-section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(100, 200, 240, 0.7);
    margin-bottom: 0.75rem;
}

.content-section p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(200, 235, 252, 0.75);
    margin: 0 0 0.6rem;
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(2, 12, 22, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox.open {
    display: flex;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.gallery-section {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.gallery-section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(100, 200, 240, 0.7);
    margin-bottom: 1rem;
}

.gallery img {
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
    margin: 5px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.025);
    box-shadow: 0 10px 32px rgba(0, 160, 210, 0.3);
}

.edit-section {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(8, 50, 80, 0.45);
    border: 1px solid rgba(80, 180, 220, 0.15);
    border-radius: 16px;
    max-width: 820px;
    margin: 0 auto 2rem;
    padding: 2rem;
}

.edit-section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(100, 200, 240, 0.7);
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.select-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.select-row h2 {
    margin: 0;
}

#live-view-canvas {
    border-radius: 10px;
    max-width: 70%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.inputs-section {
    padding: 1.2rem;
    margin: 1rem auto 0;
    background: rgba(0, 80, 120, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(80, 180, 220, 0.1);
}

.content-section a {
    color: rgba(100, 200, 240, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 200, 240, 0.3);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.content-section a:hover {
    color: #8ddcf5;
    border-color: rgba(140, 220, 245, 0.6);
}

.depth-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.depth-row input[type="range"] {
    flex: 1;
    width: auto;
    margin: 10px 0;
}

#depth-value {
    white-space: nowrap;
    min-width: 5rem;
    text-align: left;
}

input[type="range"] {
    margin: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 60%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2aadce, #1a4a60);
    cursor: pointer;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5dd5f0;
    box-shadow: 0 0 6px rgba(80, 210, 240, 0.6);
    cursor: pointer;
}

input[type="file"],
select,
button {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(80, 190, 230, 0.25);
    background: rgba(10, 80, 120, 0.5);
    color: #c8eeff;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 500px) {
    .edit-section {
        padding: 1.2rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        overflow: hidden;
    }

    .select-row {
        flex-direction: column;
        align-items: flex-start;
    }

    input[type="file"] {
        width: 100%;
    }

    #live-view-canvas {
        max-width: calc(100% + 2.4rem);
        width: calc(100% + 2.4rem);
        margin-left: -1.2rem;
        margin-right: -1.2rem;
        border-radius: 0;
    }

    input[type="range"] {
        height: 8px;
        margin: 16px 10px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #5dd5f0;
        box-shadow: 0 0 6px rgba(80, 210, 240, 0.6);
        cursor: pointer;
        border: none;
    }
}

input[type="file"]:hover,
select:hover,
button:hover {
    background: rgba(15, 110, 160, 0.6);
    border-color: rgba(80, 200, 240, 0.4);
}