/**
 * Text Domain: automated-model-viewer
 * Domain Path: /languages
 * Requires at least: 5.0
 * Language: de
 */


/******************************************************************************************************/
/******************************************** MOBIL ***************************************************/
/******************************************************************************************************/

.modelviewer {
    width: 100%;
    display: block;
    position: relative;
    /* Height will be controlled by classes */
}

.initial-height {
    height: 30vh;
    margin: auto;
    width: 100%;
}

.modelviewer .hotspot-dot {
    display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: center;
    width: 31px;
    height: 31px;
    border-radius: 15px;
	border: 2px solid var(--e-global-color-accent); 
	color: #000;
	font-size: 1.5rem;
  	font-weight: 500;
  	line-height: 1;
    border-color: var(--e-global-color-accent);
    background-color: var(--e-global-color-accent);
    box-sizing: border-box;
    pointer-events: auto;
    padding: 0;
    cursor: pointer;
    position: absolute;
    transform: translate(-50%, -50%);
}

.modelviewer .hotspot-dot:before {
	content:"";
	position:absolute;
	width:13px;
	height:3px;
	background-color: #000;
	opacity: 1;
	
	transition: 0.3s ease opacity;
}

.modelviewer .hotspot-dot:after {
	content:"";
	position:absolute;
	width:3px;
	height: 13px;
	background-color: #000;
	opacity: 1;
	
	transition: 0.3s ease opacity;
}

.modelviewer .hotspot-dot:not([data-visible]):before,
.modelviewer .hotspot-dot:not([data-visible]):after{
	opacity: 0;
}

.modelviewer .hotspot-dot:hover {
	border: 2px solid var(--e-global-color-accent);
	padding: 0;
}

.modelviewer .hotspot-dot:not([data-visible]) {
  background: transparent;
  border: 4px solid var(--e-global-color-accent);
  border-radius: 16px;
  box-shadow: none;
  height: 32px;
  pointer-events: none;
  width: 32px;
  color: #ffffff00;
}

.selectMV {
    background-color: #FFF;
	color: #000;
}

.labelMV {
    font-family: "Made Tommy Local", Sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2em;
    letter-spacing: 1.1px;
    padding: 10px 0;
}

.modelviewer .hotspot-dot[slot="hotspot-hand"] {
    --min-hotspot-opacity: 0;
    background-color: rgb(255, 255, 255);
}

.modelviewer .hotspot-dot[slot="hotspot-foot"]:not([data-visible]) {
    background-color: transparent;
    border: 3px solid rgb(255, 255, 255);
}

.annotation {
    display: none;
    /* background-color: #000c;
    border: solid;
    border-color: var(--e-global-color-accent); */
	background-color: #fffc;
	color: #000;
    position: absolute;
    z-index: 100;
    overflow-wrap: break-word;
    padding: 1rem;
	max-width: 200px;
	font-size: 0.8rem;
  	font-weight: 500;
  	line-height: 1.2em;
  	letter-spacing: 1px;
	backdrop-filter: blur(5px);
}

/* This keeps child nodes hidden while the element loads */
:not(:defined)>* {
    display: none;
}

.mv_lazyload {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mv-container .mv_button_play,
.mv-container .mv_button_play:focus {
  padding: 12px 24px;
  width: 100%;
  background: var(--e-global-color-accent);
  color: #000;
  transition: background 0.3s ease, color 0.3s ease;
  font-family: var(--e-global-typography-36b25c8-font-family), Sans-serif;
  font-size: var(--e-global-typography-36b25c8-font-size);
  font-weight: var(--e-global-typography-36b25c8-font-weight);
  line-height: var(--e-global-typography-36b25c8-line-height);
  letter-spacing: var(--e-global-typography-36b25c8-letter-spacing);
  word-spacing: var(--e-global-typography-36b25c8-word-spacing);
  border: var(--e-global-color-accent) 2px solid;
}

.mv-container .mv_button_play:hover{
    background: #000;
    color: var( --e-global-color-accent );
	border: var(--e-global-color-accent) 2px solid;;
}

.mv_button_load {
	cursor: pointer;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: 6% 50%;
	padding: 12px 24px;
    width: fit-content;
    background: var( --e-global-color-accent );
    color: #000;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: var( --e-global-typography-36b25c8-font-family ), Sans-serif;
    font-size: var( --e-global-typography-36b25c8-font-size );
    font-weight: var( --e-global-typography-36b25c8-font-weight );
    line-height: var( --e-global-typography-36b25c8-line-height );
    letter-spacing: var( --e-global-typography-36b25c8-letter-spacing );
    word-spacing: var( --e-global-typography-36b25c8-word-spacing );	
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 100;
}

.mv_button_load:hover{
    background: #000;
    color: var( --e-global-color-accent );
}

.modelviewer:not(.initial-height) {
    margin: auto;
    width: 100%;
    height: 50vh; /* Base mobile height */
    display: block; /* Ensure model-viewer is a block-level element */
}

.mv-container .mv-controls {
    display: none;
    position: relative; /* Mobile-first: relative positioning */
    bottom: auto; /* Reset bottom */
    left: auto; /* Reset left */
    margin-top: 16px; /* Space below model on mobile */
    max-width: unset;
    transform: unset;
    pointer-events: auto;
    z-index: 100;
    background: #000;
    padding: 20px;
	border: var(--e-global-color-accent) solid 2px;
    color: var(--e-global-color-accent);
    width: 100%; /* Full width on mobile */
}
 .checkboxMV .mv-show-dimensions {
    accent-color: var(--e-global-color-accent);
}

.dot {
    display: none;
}

.glass {
    background: rgba(255, 255, 255, 0.37);
    backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    -webkit-backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.dim {
    border-radius: 0px;
    border: none;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.8);
    display: block;
    font-size: 3vw; /* Adjust for mobile */
    font-weight: 700;
    max-width: 128px;
    overflow-wrap: break-word;
    padding: 0.5em 1em;
    position: absolute;
    width: max-content;
    height: max-content;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
    --min-hotspot-opacity: 0;
}

.dimensionLineContainer {
    pointer-events: none;
}

.dimensionLine {
    stroke: var( --e-global-color-accent );
    stroke-width: 2;
    stroke-dasharray: 2;
}

.hide {
    display: none;
}

.checkboxMV {
    display: flex;
	flex-flow: row;
	align-items: center;
    gap: 1rem;
}


/******************************************************************************************************/
/******************************************** TABLET **************************************************/
/******************************************************************************************************/

@media only screen and (min-width: 768px) {

    .initial-height {
        height: 60vh;
    }

    .modelviewer:not(.initial-height) {
        height: 60vh; /* Adjust for tablet */
    }
    
    .dim {
        font-size: 1em; /* Reset to default or adjust for tablet */
    }
    	
	.mv-container .mv_button_play,
    .mv-container .mv_button_play:focus {
	  	padding: 12px 24px;
	}
	
	.annotation {
		max-width: 350px;
		margin-left: 2rem;
		font-size: 1rem;
	}
}
  

/******************************************************************************************************/
/******************************************** LAPTOP **************************************************/
/******************************************************************************************************/

@media only screen and (min-width: 1200px) {

    .initial-height {
        height: 80vh;
    }

    .modelviewer:not(.initial-height) {
        height: 80vh; /* Adjust for laptop */
    }

    .mv-container .mv-controls {
        position: absolute; /* Go back to absolute for larger screens */
        bottom: 16px;
        left: 16px;
        margin-top: 0; /* Reset margin */
        width: unset;
		min-width: 235px;
    }	
}
  
/******************************************************************************************************/
/******************************************** DESKTOP *************************************************/
/******************************************************************************************************/

@media only screen and (min-width: 1400px) {

    .initial-height {
        height: 80vh;
    }
    
    .modelviewer:not(.initial-height) {
        height: 80vh; /* Keep the same or adjust for desktop */
    }
}