/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }

body {
    margin: 0px;
    overflow: hidden;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}


#bottom-cover{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: #131313;
    z-index: 10000;
  }

  .mobile-controller-box{
    position: absolute;
    bottom: 0;
    right: 0;
  } 
  
  .mobile-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #000;
    border-top: 1px solid #fff;
    gap: 0;
}

.mobile-tabs .tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 40px;
    color: #fff;
    background: #666;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    margin: 0;
    border: none;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Create arrow shape */
    clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%);
    margin-right: -15px;
    z-index: 1;
}

.mobile-tabs .tab-button:first-child {
    clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%);
    margin-left: 0;
}

.mobile-tabs .tab-button:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15px 50%);
    margin-right: 0;
}

.mobile-tabs .tab-button.active {
    background: #de1624;
    color: #fff;
    z-index: 3;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(222, 22, 36, 0.4);
}

.mobile-tabs .tab-button:not(.active):hover {
    background: #888;
    z-index: 2;
}

.mobile-tabs .tab-button .step-number {
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1px;
    color: inherit;
    opacity: 0.9;
}

.mobile-tabs .tab-button .step-text {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    color: inherit;
    word-break: break-word;
    max-width: 100%;
}

/* Remove progress indicator as arrows show progression */
.mobile-tabs::before {
    display: none;
}

@media (max-width: 640px) or (max-height: 640px) {
    .v3d-container{
      z-index: 1;
    }
    .mobile-controller-box{
      background: #000;
      z-index: 2;
    }
    
    /* Mobile tabs responsive improvements */
    .mobile-tabs {
      height: 40px;
    }
    
    .mobile-tabs .tab-button {
      padding: 0;
      font-size: 13px;
      min-width: 90px;
    }
    
    .mobile-tabs .tab-button .step-number {
      font-size: 11px;
    }
    
    .mobile-tabs .tab-button .step-text {
      font-size: 12px;
    }
  }
  
  /* Extra small screens */
  @media (max-width: 480px) {
    .mobile-tabs .tab-button {
      padding: 0;
      font-size: 12px;
      min-width: 80px;
    }
    
    .mobile-tabs .tab-button .step-number {
      font-size: 10px;
      line-height: 12px;
    }
    
    .mobile-tabs .tab-button .step-text {
      font-size: 11px;
    }
  }

@media (max-width: 640px) and (orientation: portrait) {
    .v3d-container, .mobile-controller-box{
        width: 100dvw;
    }
    .v3d-container{
      height: 45dvh;
    }
    .mobile-controller-box{
      height: 60dvh;
    }
    .pods-includes.select-pod, .all-options{
      max-height: 70%;
    }
    .optionspalettebutton.name{
      width: 75%;
      font-size: 11px;
    }
    .optionspalettebutton.price{
      align-items: flex-start;
      width: 25%;
    }
    .optionspalettebutton.price .optionspalettetextstyling{
      font-size: 11px;
    }
    .special-link {
      position: absolute;
      right: 10px;
      top: 36%;
      z-index: 3;
      margin-bottom: 0;
  }
  .special-link a{
    font-size: 13px;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
    .v3d-container, .mobile-controller-box{
        width: 50dvw;
        height: 100dvh;
    }
    .special-link {
      position: absolute;
      bottom: 10px;
      left: 10px;
      z-index: 3;
      margin-bottom: 0;
  }
  .special-link a{
    font-size: 13px;
  }
}
