body {
    margin: 0;
    overflow: hidden;
    width: 100vh;
    height: 100vh;
    background-size: 100vw 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #ffffff;
}

.v3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

* { -webkit-tap-highlight-color: rgba(0,0,0,0); }


.controls {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
    font-family: 'Neo Sans Std', Helvetica, sans-serif;
    font-weight: 700;
}


.swatches-container,
.swatches-container2,
.swatches-container3,
.swatches-container4,
.swatches-container5,
.swatches-container6,
.swatches-container7,
.swatches-container8,
.swatches-container9,
.swatches-container10,
.swatches-container11,
.swatches-container12,
.swatches-container13,
.swatches-container14,
.swatches-container15  {
    position: absolute;
    bottom: 0;
    padding: 8px 12px;
    border-radius: 20px;
    background: #134a70;
    display: flex;
    align-items: center;
    gap: 8px;
    visibility: hidden;
    border: 0.2vw solid #134a70;
    color: #FFFFFF;
    min-height: 32px;
}

.swatches-container p,
.swatches-container2 p,
.swatches-container3 p,
.swatches-container4 p,
.swatches-container5 p,
.swatches-container6 p,
.swatches-container7 p,
.swatches-container8 p,
.swatches-container9 p,
.swatches-container10 p,
.swatches-container11 p,
.swatches-container12 p,
.swatches-container13 p,
.swatches-container14 p,
.swatches-container15 p {
    margin: 0;
    line-height: 1;
}


.help-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #134a70;
    border: 0.2vw solid #134a70;
    color: #FFFFFF;
    position: absolute;
    bottom: 0;
    left: 10%;
    line-height: 1;
    visibility: hidden;
    overflow: visible;
}


.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 0.1vw solid #FFFFFF;
    font-size: 23px;
    color: #FFFFFF;
    background: #134a70;
    position: relative;
    font-family: "Font Awesome 6 Free", 'Neo Sans Std', Helvetica, sans-serif;
    font-weight: 900;
}

.btn:hover {
    border-color: #FFFFFF; /* only change border color */
}

.btn i {
    color: #FFFFFF;
    pointer-events: none;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}


.color-item,
.color-item2,
.color-item3,
.color-item4,
.color-item5,
.color-item6,
.color-item7,
.color-item8,
.color-item9,
.color-item10,
.color-item11,
.color-item12,
.color-item13,
.color-item14,
.color-item15 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 0.1vw solid #FFFFFF;
    position: relative;
}

.color-item[title]:hover::after,
.color-item2[title]:hover::after,
.color-item3[title]:hover::after,
.color-item4[title]:hover::after,
.color-item5[title]:hover::after,
.color-item6[title]:hover::after,
.color-item7[title]:hover::after,
.color-item8[title]:hover::after,
.color-item9[title]:hover::after,
.color-item10[title]:hover::after,
.color-item11[title]:hover::after,
.color-item12[title]:hover::after,
.color-item13[title]:hover::after,
.color-item14[title]:hover::after,
.color-item15[title]:hover::after,
.help-share .btn[title]:hover::after {
    content: attr(title);
    font-size: 15px;
    font-family: 'Neo Sans Std', Helvetica, sans-serif;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-90%);
    padding: 4px 8px;
    border: 0.2vw solid #134a70;
    border-radius: 4px;
    background: #fff;
    color: #134a70;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.color-item[title]:hover::after,
.color-item2[title]:hover::after,
.color-item3[title]:hover::after,
.color-item4[title]:hover::after,
.color-item5[title]:hover::after,
.color-item6[title]:hover::after,
.color-item7[title]:hover::after,
.color-item8[title]:hover::after,
.color-item9[title]:hover::after,
.color-item10[title]:hover::after,
.color-item11[title]:hover::after,
.color-item12[title]:hover::after,
.color-item13[title]:hover::after,
.color-item14[title]:hover::after,
.color-item15[title]:hover::after,
.help-share .btn[title]:hover::after {
    opacity: 1;
}


#help_div {
    display: none;
    position: absolute;
    font-family: 'Neo Sans Std', Helvetica, sans-serif;
    border-radius: 25px;
    border: 0.2vw solid #134a70;
    background-color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42vw;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

h1 {
    color:#134a70;
    font-size: 2.5vw;
}

h3 {
    color:#134a70;
    padding:0.3vw;
    font-size: 1.0vw;
}

hr.rounded {
    border-top: 20px solid #134a70;
    border-radius: 5px;
}


#preloader-wrapper {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media screen and (max-width: 767px) {

    /* Swatches containers */
    .swatches-container,
    .swatches-container2,
    .swatches-container3,
    .swatches-container4,
    .swatches-container5,
    .swatches-container6,
    .swatches-container7,
    .swatches-container8,
    .swatches-container9,
    .swatches-container10,
    .swatches-container11,
    .swatches-container12,
    .swatches-container13,
    .swatches-container14,
    .swatches-container15 {
        right: 0%;
        bottom: 0;
        padding: 1px 2px;
        border-radius: 20px;
        gap: 1px;
        font-size: 12px;
        visibility: hidden;
        height: 32px; /* ensure same height for all swatches */
        display: flex;
        align-items: center;
    }

    /* Swatch color buttons */
    .color-item,
    .color-item2,
    .color-item3,
    .color-item4,
    .color-item5,
    .color-item6,
    .color-item7,
    .color-item8,
    .color-item9,
    .color-item10,
    .color-item11,
    .color-item12,
    .color-item13,
    .color-item14,
    .color-item15 {
        width: 16px;  
        height: 16px;
        border-radius: 50%;
    }

    /* Help & Share buttons */
    .help-share {
        left: 0%;
        padding: 2px 4px;  /* small padding so height matches */
        gap: 4px;
        font-size: 13px;
        line-height: 15px;
        visibility: hidden;
        display: flex;
        align-items: center;
        height: 32px; /* same as swatches */
    }

    .help-share .btn {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    #help_div {
        width: 90vw;
        max-width: 90%;
        max-height: 90%;
        left: 50%;
        top: 10%;
        transform: translate(-50%, 0%);
        text-align: center;
    }

    h1 { font-size: 20px; }
    h3 { font-size: 12px; }

    #v3d-container { transform: scale(1.1); }
}

