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

body{
  margin:0;
  background-color:#E0DFDD;
}

  model-viewer {
    background-color:  #E0DFDD ;
    --poster-color:  #E0DFDD ;
    height:80vh;
    width:100vw;
  }

#choice-area{
  position:absolute;
  height:20vh;
  width:100vw;
  top:80vh;
  display: flex;
  align-items: stretch;
  margin: auto;
}

#model-area{
  position:absolute;
  height:10vh;
  width:100vw;
  display: flex;
  align-items: stretch;
  margin: auto;
  bottom: 0;
  margin-bottom: 30px;
}

#muster-area{
  position:absolute;
  width:100vw;
  
  height:20vh;
  align-items: stretch;
  top: 0vh;

}

  #ar-button {
  
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: 12px 50%;
    background-color: #fff;
    position: absolute;
    right: 30px;
    transform: translateX(-50%);
    top: 30px;
    padding: 0px 16px 0px 16px;
    font-family: Roboto Regular, Helvetica Neue, sans-serif;
    font-size: 14px;
    color:#000000;
    height: 36px;
    line-height: 36px;
    border-radius: 18px;
    border: 1px solid #DADCE0;
    z-index:100;
  }

  #ar-button:active {
    background-color: #E8EAED;
  }

  #ar-button:focus {
    outline: none;
  }

  #ar-button:focus-visible {
    outline: 1px solid #4285f4;
  }

  @keyframes circle {
    from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
  }

  @keyframes elongate {
    from { transform: translateX(100px); }
    to   { transform: translateX(-100px); }
  }

  model-viewer > #ar-prompt {
    position: absolute;
    left: 50%;
    bottom: 175px;
    animation: elongate 2s infinite ease-in-out alternate;
    display: none;
  }

  model-viewer[ar-status="session-started"] > #ar-prompt {
    display: block;
  }

  model-viewer > #ar-prompt > img {
    animation: circle 4s linear infinite;
  }

  .slider {
    width: 100%;
    text-align: center;
    overflow: hidden;
    position: absolute;

    
    
  }

  .slides {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content:space-around; 
  }

  .slide {
 
    
    
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
    
    border-radius: 10px;
    border: none;
   
  }

  .slide.selected {
    border: 2px solid #4285f4;
  }

  .slide:focus {
    outline: none;
  }

  .slide:focus-visible {
    outline: 1px solid #4285f4;
  }

#slider-container-outer {
	overflow: hidden;
}

#slider-container {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row;
}

/* CSS transition applied when translation of items happen */
.slider-container-transition {
	transition: transform 0.7s ease-in-out;
}

.slider-item {
	width: 100%;
    height: 20vh;
	flex-shrink: 0;
}

.stoff{
    position: relative;
	width: 100%;
  height: 13vh;
	flex-shrink: 0;
}
.slider-item p{
    text-align: center;
font-size: 1.3em;
margin: 0;
position: relative;
font-family: 'Space Mono', monospace; 
height: 68px;
line-height: 68px;
z-index: 500;

}
.slider-button{
    position:absolute;
    top: 0px;
    width: 50px;
    height: 50px;
    border-radius: 0px;
   border-style: solid;
    background-color: #E0DFDD;
    z-index: 400;
    border-color: #cccccc;
    border-width: 0px;
    z-index: 600;
    margin-top: 10px;
}

#prev-button{
    left:0px;
}

#next-button{
    right:0px;
}

#stoff-1{
    background-image: url("assets/gewebemuster-21512.png");
    background-color: #cccccc;
    background-size: cover;
}

#stoff-2{
    background-image: url("assets/gewebemuster-4283-30328-2.jpg");
    background-color: #cccccc;
    background-size: cover;
}

#stoff-3{
    background-image: url("assets/gewebemuster2763.png");
    background-color: #cccccc;
    background-size: cover;
}

#stoff-4{
    background-image: url("assets/Damastgewebe.png");
    background-color: #cccccc;
    background-size: cover;
}

#home-button{
    position: fixed;
    top:8px;
    left:8px;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    overflow: hidden;
    outline: none;

    display: inline-block;
    border: none;
    padding: 20px;
    width: 80px;
    border-radius: 0;
    height: 80px;

    z-index:700;

}

