:root {
    --accent_blue: #00a0dd;
    --accent_green: #c7d88e;
    --accent_orange: #faa961;
    --accomplished_blue: #0d436b;
    --conscientious_green: #6aa342;
    --empathetic_orange: #e08650;
    --extra_light_gray: #f5f6f7;
    --light_gray: #dee0e3;
    --medium_gray: #9fa0a1;
    --gray: #d1d3d4;
    --dark_grey: #767777;
    --near_black: #484949;
    --light_accent_blue: #edf4fc;
    --light_accent_green: #f6f9ed;
    --light_accent_orange: #fcf6ed;
    --light_accent_yellow: #fdf7e4;
    --universal_yellow: #eeb111;
    --appmenu_width: 15rem;
    --nav_height_restrict: 2rem;
    --element_transition_speed: 0.22s;
}


* {
    margin:0;
    padding:0;
    user-select:none;
    -webkit-user-select:none;
}

html {
    box-sizing: border-box;
  }
  *, *:before, *:after {
    box-sizing: inherit;
}

body {
    touch-action: pan-y;
    /* prevent pinch zoom */
}

button.modal_back {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    display: block;
    border: none;
    background: var(--gray);
    padding: 1rem 1rem;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition:all 0.3s ease;
    color:black;
}
button.modal_back:hover {
    cursor:pointer;
    filter:brightness(0.9);
}

section.feature_content {
    display:flex;
    justify-content: center;
    /* align-items: center; */
    width:100%;
    flex-shrink: 1;
    flex-grow: 1;
    overflow-y: scroll;
    
}
div.feature_content aside {
    padding:2rem;
    width:100%;
    max-width:60ch;
    /* max-height:calc(100vh - 13rem);
    overflow-y:auto; */
}

.loader_wrapper.hide {
    pointer-events:none;
    opacity:0;
}
.loader_wrapper {
    transition:opacity 0.5s ease;
    opacity:1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999999;
    margin: 0;
    min-height: 100vh;
    min-height:100dvh;
    width: 100%;
    display: grid;
    place-content: center;
    background: white;
    z-index: 99999999999999999999;
}
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #9d9fa2;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #9d9fa2 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* frame tools */
.frame_selector {
    display:none;
}
#floating_tools {
    display:none;
}

#floating_tools {
    position:absolute;
    max-width:60ch;
    right:2rem;
    bottom:2rem;
    box-shadow:0 0 10px rgba(0,0,0,0.5);
    padding:2rem;
    background:rgba(255,255,255,0.9);
}

body {
    font-family: Helvetica, Arial, sans-serif;
    height:100vh;
    height:100dvh;
    background:#555;
    overflow:hidden;
}

nav {
    /* display:none !important;  *//* debug */
    background-color: var(--light_gray);
    background-color:white;
    padding: 1rem 2rem;
    display: flex;
    --nav_height_restrict: 2rem;
    position: sticky;
    top: 0;
    z-index: 999999999;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    height: 4rem;
    overflow: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.nav_logo {
    height: var(--nav_height_restrict);
}

main {
    position:absolute;
    height:100vh;
    height:100dvh;
    top:4rem;
    height:calc(100vh - 4rem);
    height:calc(100dvh - 4rem);
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
    left:0;
    right:0;
    overflow:hidden;
}
main {
    background:white;
}
.model.imageset_scene.active {
    transition:all 0.5s ease;
    opacity:1;
    transform:scale(1) translateX(0%);
}
.model.imageset_scene.hide {
    transform:scale(1) translateX(-100%);
}
body.feature_modal_active .model.imageset_scene.active {
    transform:scale(1.5);
    opacity:0;
}

.swipe_to_scrub {
    position: absolute;
    left: calc(50% - 4rem);
    width: 8rem;
    bottom: -2rem;
    transition: transform 0.9s;
}
.swipe_to_scrub.show:not(.disabled) {
    bottom: 1rem;
}

footer {
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    text-align:center;
    padding:2rem;
    pointer-events:none;
}
footer img {
    /* margin-bottom:2rem; */
    transform:scale(0.7);
}
footer h3, header h3 {
    font-weight:normal;
    font-size:1.8rem;
    margin-bottom:0rem;
}
header {
    /* margin-top:2rem; */
    text-align: center;
    background-color: rgba(222,224,227,1);
    flex-direction: column;
    display: flex;
    height: 8rem;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
    position:relative;
    z-index:2; /* allow to appear over imageset if imageset moved via custom css */
}

.close_toggleimage {
    position:absolute;
    font-weight:bold;
    font-size:1.5rem;
    top:1em;
    right:1em;
}
.close_toggleimage:hover {
    cursor:pointer;
}

#newmenu {
    transform:translateX(100vw);
    transition:all 0.3s ease;
}
#newmenu.active {
    transform:translateX(0);
}
#newmenu_ul li img {
    /* height: 8em !important; */
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 1.6/1;
    display: block;
    margin-bottom: 1rem;
}

img.rendered_img.toggle_image_icon {
    position: absolute;
    bottom: 9rem;
    left: 2rem;
    pointer-events: all;
}
.toggle_image_modal {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: scale(0) translateY(0rem);
    transition: all 0.5s ease;
    width: 100vw;
    height: 100vh;
    max-width:100%;
    top: 0;
    background: white;
    z-index: 99999999999999;
}
.toggle_image_modal img {
    max-width:100%;
    height:auto;
}
.toggle_image_modal.active {
    opacity:1;
    transform: scale(1) translateY(0rem);
    pointer-events:all;
}

.imageset_scene {
    position:relative;
    max-width:100%;
    display:none;
    /* transition:all 0.5s ease; */
    background: linear-gradient(180deg, rgba(222,224,227,1) 0%, rgba(101,100,100,1) 70%, rgba(216,216,216,1) 80%, rgba(255,255,255,1) 100%);
}
.imageset_scene.active {
    display:block;
}

.feature_modal {
    pointer-events: none;
    opacity:0;
    transition:all 0.6s ease;
    position:absolute;
    width:100%;
    background:white;
    height:100vh;
    height:100dvh;
    top:0;
    left:0;
    z-index:9999;
    transform-origin: center;
    transform:scale(0);
    display: flex;
    flex-direction: column;
}
.feature_modal.active {
    pointer-events:all;
    opacity:1;
    transform:scale(1);
}



.imageset_scene .img_wrapper img {
    width:100%;
    height:auto;
    /* max-height:80vh; */
    object-fit:contain;
    object-position:center;
    pointer-events:none;
}

.imageset_scene .img_wrapper {
    width:100%;
    position:absolute;
    opacity:0;
    pointer-events:none;
    /* ios flicker fix */
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
}
.imageset_scene .img_wrapper.active {
    opacity:1;
}

.hotspot {
    width:2rem;
    height:2rem;
    transform: translateX(-1.0rem) translateY(-1.0rem); /* center */
    z-index:999;
    opacity:0;
    pointer-events:none;
    position:absolute;
    background-position:center;
    background-size:contain;
    background-repeat:no-repeat;
    transition:all var(--element_transition_speed) ease;
}
.hotspot.active {
    opacity:1;
    pointer-events:all;
}
.hotspot:hover {
    cursor:pointer;
}
.appmenu_feature.visited, .hotspot.active.visited {
    opacity:0.6;
}


body {
    /* overflow:hidden; */
}
.frame_selector {
    position:absolute;
    top:3vw;
    left:3vw;
    width:84%;
    padding:1rem;
    background:rgba(255,255,255,0.5);
    z-index:999;
}



.frame_selector_input {
    width:70%;
}

.svg_dimension {
    position:absolute;
    top:0;
    left:0;
    pointer-events:none;
    width:100%;
}
.svg_dimension:not(.active) {
    display:none;
}
.svg_dimension .dimension_text {
    font-size:3px;
}
.svg_dimension .dimension_text_bg {
    stroke:white; 
    stroke-width:0.6em;
}

.dimension_wrap {
    min-width:3px;
    min-height:3px;
    position:absolute;
    transition:all var(--element_transition_speed) ease;
    opacity:1;
    display:flex;
    justify-content: center;
    align-items: center;
    pointer-events:none;
}
.dimension_wrap .dim_label {
    font-weight: bold;
    opacity: 1;
    color: black;
    font-size: 0.9rem;
    /* text-shadow: 0 0 0.2em black;
    filter: drop-shadow(0px 0px 3px black); */
    text-shadow: 0 0 2px white, 0 0 5px white;
    transform:translateY(1em);
    white-space: nowrap;
    padding: 0.2em;
    border-radius: 0.5em;
}
.dimension_wrap svg {
    overflow:visible;
    position:absolute;
    /* mix-blend-mode: difference; */
}
.dimension_wrap.flip svg {
    transform:scaleX(-1);
}
.dim_path {
    animation: dash 1s linear;
    animation-iteration-count: infinite;
    stroke: #fff;
    stroke:#000;
}
.dimension_wrap:not(.active) {
    opacity:0;
}

.dimension {
    width:5rem;
    height:2rem;
    background-color:blue;
    z-index:999;
    display:none;
    position:absolute;
    transition:all var(--element_transition_speed) ease;
    color:white;
    justify-content: center;    
    align-items:center;
    font-weight:bold;
}
.dimension.active {
    display:flex;
}

.model.imageset_scene .hotspot.feature {
    display:none; /* hide feature hotspots in model 360 */
}

.missing_image {
    display:none;
}

.feature_hero {
    position:relative;
    flex-grow: 0;
    flex-shrink: 1;
}
.feature_hero_img {
    width:100%;
    max-width:100%;
    height:auto;
    max-height: 38vh;
    object-fit: contain;
}

::-webkit-scrollbar {
    background-color: inherit;
    width: 1rem;
}
::-webkit-scrollbar-thumb {
    background-color: var(--gray);
    border-radius: 0.5rem;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}
::-webkit-scrollbar-track {
    background-color: inherit;
}
::-webkit-scrollbar-track-piece {
    background-color: inherit;
}

/* appmenu */
#interactive_appmenu_nav_toggle {
    position: absolute;
    top: 4rem;
    left: var(--appmenu_width);
    z-index: 99999;
    width: 2.4rem;
    /* height: 2rem; */
    background-color: var(--gray);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    transform: translate(calc(-1 * var(--appmenu_width)), 0);
    display: flex;
    flex-wrap: wrap;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
#interactive_appmenu_nav_toggle:hover {
    cursor:pointer;
    /* filter:brightness(0.9); */
}
#interactive_appmenu_nav_toggle * {
    pointer-events:none;
}
body.modal #interactive_appmenu_nav_toggle {
    opacity:0;
    pointer-events:none;
}

body,html {
    font-family: 'Open Sans', sans-serif;
}
h1,h2,h3,h4,h5 {
    font-family: 'Nunito Sans', sans-serif;
    margin-bottom:1em;
}

ul.semantic {
    list-style:none;
    display:flex;
    gap:2rem;
    margin-top:2rem;
    margin-bottom:2rem;
    overflow-Y: auto;
    max-height: calc(100vh - 16rem);
}
#library_list {
    justify-content: center;
    flex-direction: column;
}

#interactive_appmenu_nav[open] {
    transform: translate(0, 0);
}

#interactive_appmenu_nav_toggle[open] {
    background: none;
}

#interactive_appmenu_nav_toggle[open] h5 {
    transform: rotate(-90deg);
}
h5.appmenu_title:hover {
    cursor:pointer;
}

#interactive_appmenu_nav_toggle[open] img {
    transform: translate(1rem, 0.25rem);
}

#interactive_appmenu_nav_toggle img {
    transition: all 0.5s;
}

.doggo {
    display:none;
}

aside p {
    margin-bottom:1em;
}
aside p:last-of-type {
    margin-bottom:0em;
}

a.step {
    position:absolute;
    bottom:2.3rem;
    opacity:0.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:#555;
    text-decoration:none;
}
a.step:hover {
    opacity:0.8;
}
a.stepup {
    right:1.1rem;
}
a.stepdown {
    left:1.1rem;
}
a.step img {
    width:1.5rem;
    display:flex;
    justify-content: center;
}
a.stepup img {
    transform:rotate(180deg);
}
a.step::after {
    padding-top:0.5em;
    font-size:0.6rem;
    /* text-transform: uppercase; */
    display:block;
}
a.stepup::after {
    content:'KitchenAid';
}
a.stepdown::after {
    content:'Whirlpool';
}


#interactive_appmenu_nav_toggle h5 {
    /* transform: rotate(180deg); */
    transition: all 0.5s;
    transform-origin: 1.5rem -1.5rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    background-color: var(--gray);
    padding: 0.5rem;
    padding-bottom: 0.75rem;
    letter-spacing: .05rem;
}

#interactive_appmenu_nav {
    overflow-y: scroll;
}

#interactive_appmenu_nav {
    --top_offset: 4rem;

    position: absolute;
    top: var(--top_offset);
    left: 0;
    height: calc(100vh - var(--top_offset));
    height:calc(100dvh - var(--top_offset)); /* better height calc */
    width: var(--appmenu_width);
    background-color: var(--gray);
    z-index: 99999;
    transition: transform 0.5s;
    transform: translate(calc(-1 * var(--appmenu_width)), 0);
    overscroll-behavior: contain; /* fix sticky arrow */
}

.is-1 { font-size:2rem; margin-bottom:1em; }
.is-2 { font-size:1.6rem; margin-bottom:1em; }
.is-3 { font-size:1.3rem; margin-bottom:1em; }
.is-4 { font-size:1rem; margin-bottom:1em; }
.is-1,.is-2,.is-3,.is-4 { 
    font-weight: normal;
    line-height: 1.1; 
}

.appmenu_title {
    font-weight: bold;
}

.appmenu_content {
    padding: 1rem
}
.appmenu_content img {
    pointer-events: none;
}

.appmenu_content hr {
    background-color: white;
    border: none;
    height: 0.02rem;
    margin: 0.75rem 0;
}

.appmenu_feature:hover {
    cursor:pointer;
}

.kaitlyn_link {
    color:var(--accomplished_blue);
    text-decoration:underline;
}
/* end appmenu */

.fake_nav.active {
    /* height: 100vh; *//* 
    height:auto; */
    max-height:100vh;
}
.fake_nav {
    /* height: 4rem; */
    max-height:0vh;
    transition: max-height 0.5s ease;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    background-color: var(--light_gray);
    background-color:rgba(220,220,220,0.95);
    /* transition: height 0.5s ease-in; */
    z-index: 99999999;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width:22rem;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

.nav_menu_icon {
    margin-left: auto;
    height: var(--nav_height_restrict);
    flex-shrink: 0;
}
.nav_menu_icon:hover {
    cursor:pointer;
}
.nav_menu_icon * {
    transition: 0.5s all;
}
.nav_menu_icon.active #Path_2 {
    transform: translate(300.563px, 68.626px) rotate(45deg);
}
.nav_menu_icon.active #Path_4 {
    opacity: 0;
}
.nav_menu_icon.active #Path_8 {
    transform: translate(300.563px, 84.345px) rotate(-45deg);
}

.landscape_block {
    display:none;
}

section#color_picker {
    pointer-events:none;
    opacity:0;
    transition:all 0.3s ease;
    position: absolute;
    bottom: 7rem;
    display: flex;
    padding: 2rem;
    gap: 1rem;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    max-width: 300px;
    padding: 2rem;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index:2;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    > h3 {
        border-bottom: 2px solid #aaa;
        text-align: center;
        padding-bottom: 1rem;
        margin-top: 0;
    }
    > .color_list {
        display:flex;
        flex-direction:column;
        gap:1rem;
        
        > button {
            border:none;
            background:none;
            display: flex;
            /* justify-content: space-between; */
            gap: 2rem;
            align-items: center;
        }
        > button:hover {
            cursor:pointer;
        }
        
    }
}
img.color_list_swatch {
    display:block;
    width:2rem;
    height:2rem;
    border-radius:100%;
    object-fit:cover;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.2));
}
section#color_picker.show {
    opacity:1;
    pointer-events:all;
}

.color_selector_toggle {
    display:block;
    width:4rem;
    height:4rem;
    object-fit:contain;
    position:absolute;
    bottom:2.5rem;
    right:2rem;
    pointer-events:all; /* important - rest of footer doesn't like clicks */
}
body.stepup .color_selector_toggle {
    bottom:6.5rem; 
}
body.stepup .color_selector_label {
    bottom:6rem;
}
body.nocolors .color_selector_toggle, body.nocolors .color_selector_label {
    display:none;
}
.color_selector_label {
    color: #888;
    display: block;
    position: absolute;
    bottom: 2rem;
    right: 1.5rem;
    font-size: 0.6rem;
    width: 5rem;
    text-align: center;
}

.scrollable_arrow {
    display:none; /* default to hidden unless scrollable */
}
.scrollable .scrollable_arrow {
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -o-sticky;
    position: -ms-sticky;
    position: sticky;
    /* bottom: 1rem; */
    top: 70dvh;
    left: 13rem;
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    display: block;
}

/* show orientation warning on mobile */
@media screen and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    .landscape_block {
        background-color: var(--medium_gray);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 9999999999999;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.videowrap video {
    max-width:100%;
}
.dynamic_video, .videowrap {
    aspect-ratio:1.8;
}

#model_colors {
    position:absolute;
    height:100vh;
    width:100%;
    z-index:1;
    transform:translateX(100%);
    transition:all 0.5s ease;
}
#model_colors.show {
    transform:translateX(0%);
}
.model_color_wrap {
    position:absolute;
    max-width:100%;
    width:100%; /* fix gap bug */
    background: linear-gradient(180deg, rgba(222,224,227,1) 0%, rgba(101,100,100,1) 70%, rgba(216,216,216,1) 80%, rgba(255,255,255,1) 100%);
}
.model_color_image {
    max-width:100%;
    height:auto;
}
aside.model_color_wrap:after {
    content: "⟵ back";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    color:#888;
}