:root {
  --theme-color: #293353;
  --selected-text-color: #f5f5f5;
}
:not(:defined) > * {
  display: none;
}
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
}
html {
  height: -webkit-fill-available;
}
h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 0;
  color: #e6e6e6;
  font-family: "Inter", sans-serif;
  font-weight: 100;
}
.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5),
    0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}
.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

.RightPanel {
  width: 70vw;
  height: 100vh;

  display: flex;
  flex-direction: column;
}
.Packages {
  width: 98%;
  height: 34%;
  margin: 1%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3%;
}
.package {
  width: 20%;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}

.packageImg {
  display: block;
  max-height: 15vh;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.package h1 {
  text-align: center;
  font-size: 1.2vw;
  color: var(--selected-text-color);
  /* margin-top: 0.5rem; */
  font-family: "Inter", sans-serif;
  font-weight: 100;
  margin-block-end: 0.1rem;
  background-color: var(--theme-color);
  /* border-radius: 20px; */
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  padding-top: 1%;
  padding-bottom: 1%;
}

.package h2 {
  font-size: 0.9vw;
  font-weight: bold;
  color: #2f2f2f;
  margin-left: 0.5rem;
  margin-block-end: 0.5rem;
  margin-block-start: 0;
}

.lightFont {
  font-size: 0.9vw;
  font-family: "Inter", sans-serif;
  font-weight: 100;
  color: #2f2f2f;
  margin-top: 0.05rem;
  margin-left: 0.5rem;
}
.logoTop {
  position: fixed;
  right: 2vw;
  margin-top: 2vh;
  height: 10vh;
}
.logoDown {
  position: absolute;
  margin-left: 1vw;
  margin-top: 96vh;
  width: 4%;
}

.model-viewer {
  width: 98%;
  height: 64%;
  margin: 1%;
  visibility: visible;
}
.imageViewer {
  width: 50vh;
  visibility: visible;
  position: absolute;
  top: 37vh;
  left: 67vw;
  transform: translate(-50%, -50%);
}
.imageViewerText {
  margin-top: 2vh;
  margin-left: 2vw;
  display: none;
}
model-viewer {
  width: 100%;
  height: 100%;
}

.noImageText {
  font-size: 1.5vw;
  font-family: "Inter", sans-serif;
  font-weight: 100;
  color: #2f2f2f;
  margin-top: 30vh;
  text-align: center;
  visibility: hidden;
  position: absolute;
  left: 62%; /* Set left to 50% of the containing element */
}
.app {
  display: flex;
  flex-direction: row;
}
.menu {
  width: 20vw;
  height: 92.5vh;
  margin: 0 0.5rem;
  padding: 0.5rem;
  margin-top: 5vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: visible;
}
.menu::-webkit-scrollbar {
  width: 0.5em; /* Adjust the width as needed */
}

.menu::-webkit-scrollbar-thumb {
  background-color: transparent; /* Make the thumb (dragging part) transparent */
}
.LeftPanel {
  width: 35vw;
  height: 100vh;
  flex-shrink: 0;
  border-top-right-radius: 5%;
  border-bottom-right-radius: 5%;
  background: #f5f5f5;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: row;
}

.tabs {
  display: flex;
  flex-direction: column;
  width: 12vw;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding-bottom: 0.5rem;
  padding-top: 5vh;
  padding-left: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  visibility: visible;
}

.tab {
  background-color: rgb(255, 255, 255);
  color: #1f1f1f;
  cursor: pointer;
  font-size: 0.9vw;
  margin-right: 5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 140px;
  width: 9vw;
  height: 4vh;
  border: none;
  transition: background-color 0.3s;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
  font-family: "Inter", sans-serif;

  white-space: nowrap;
  margin-right: 0.5rem;

  /* To center text */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.tab:hover,
.tab.active {
  background-color: var(--theme-color);
  color: var(--selected-text-color);
}
.tab.selected {
  background-color: var(--theme-color);
  color: var(--selected-text-color);
  width: 11vw;
}

.menu-category {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-family: "Inter", sans-serif;
  font-size: 1vw;
}

.menu-item {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
  border: none;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
  transition: box-shadow 0.3s;
  /* height: 8vh; */
  width: 18vw;
  min-height: fit-content;
  margin-left: 1vw;
}

.menu-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.menu-item.selected {
  background-color: var(--theme-color);
  color: var(--selected-text-color);
}
.menu-item.selected .menu-item-name {
  color: var(--selected-text-color);
}
.menu-item.selected .menu-item-description {
  color: var(--selected-text-color);
}
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-item-name {
  font-size: 0.8vw;
  font-family: "Inter", sans-serif;
  font-weight: bold;
  margin-left: 0.2rem;
  color: #272727;
}

.menu-item-description {
  font-size: 0.7vw;
  color: #595959;
  margin-left: 0.2rem;
  text-align: left;
}

.Items {
  margin-top: 1vw;
}

.blockResolution {
  z-index: 10;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.blockResolution h1 {
  font-size: 16px;
  margin-left: 5vw;
  margin-right: 5vw;
  color: #2f2f2f;
  z-index: 11;
  text-align: center;
}

/* @media screen and (min-aspect-ratio: 21/9) {
    
    .RightPanel{
        flex-direction: row-reverse;
    }
    .Packages{
        width: 30%;
        height: 100%;
        margin: 1%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 7%;
    }
    .package{
        width: 60%;
        height: 30%;
        background-color: #ffffff;
        box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);
        border-radius: 20px;
        margin-left: 20%;

    }
    .model-viewer{
        width: 70%;
        height: 90%;
        margin: 1%;
        visibility: visible;
    }
} */

.exportImage {
  margin-top: 1vh;
  font-size: 16px;
  padding: 10px 20px;
  background-color: #ffffff;
  border-radius: 20%;
  outline: #000000;
  color: #000000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.exportImage i {
  margin-right: 5px;
}

.exportImage:hover {
  background-color: var(--theme-color);
  color: var(--selected-text-color);
  transform: scale(1.05);
}

.exportImage:active {
  background-color: var(--theme-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}

.button-container {
  position: relative;
  display: inline-block;
  visibility: visible;
}
.info-box {
  position: absolute;
  top: 110%;
  left: 0%;
  background-color: #ffffff;
  color: #333333;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 220px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s ease-in-out;
}

.button-container:hover .info-box {
  visibility: visible;
  opacity: 1;
}

.languages {
  position: absolute;
  display: flex;
  flex-direction: row;
  gap: 1vw;
  margin-top: 1vw;
  margin-left: 22vw;
}

.lang {
  font-size: 1vw;
  background-color: rgb(255, 255, 255);
  color: 1F1F1F;
  cursor: pointer;

  border-radius: 100px;
  width: 3vw;
  height: 3vh;
  border: none;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.lang:hover,
.lang.active {
  background-color: var(--theme-color);
  color: var(--selected-text-color);
}
.lang.selected {
  background-color: var(--theme-color);
  color: var(--selected-text-color);
}
.button-container-packages {
  visibility: hidden;
}
.button-container-packages-close {
  display: none;
}
@media screen and (max-aspect-ratio: 10/9) {
  .blockResolution {
    visibility: visible;
  }
}
@media only screen and (max-width: 1024px) {
  /* Styles that apply to smartphones */
  .app {
    flex-direction: column-reverse;
  }
  .LeftPanel {
    width: 100vw;
    height: 50dvh;
  }
  .RightPanel {
    width: 100vw;
    height: 50dvh;
  }
  .tabs {
    width: 40vw;
  }
  .tab {
    font-size: 0.9rem;
    margin-right: 0rem;
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 140px;
    width: 35vw;
    height: 4vh;
  }
  .tab.selected {
    width: 36vw;
  }
  .menu {
    width: 55vw;
    height: 43vh;
  }
  .menu-category {
    font-size: 1rem;
  }

  .menu-item {
    width: 50vw;
  }
  .menu-item-name {
    font-size: 0.8rem;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    margin-left: 0.2rem;
    color: #272727;
  }

  .menu-item-description {
    font-size: 0.7rem;
    color: #595959;
    margin-left: 0.2rem;
    text-align: left;
  }
  .logoTop {
    position: fixed;
    right: 2vw;
    margin-top: 2vh;
    height: 5vh;
  }
  .languages {
    margin-left: 5vw;
  }

  .lang {
    font-size: 0.8rem;

    border-radius: 100px;
    width: 10vw;
    height: 3vh;
  }
  .imageViewer {
    width: 60vw;
    visibility: visible;
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .Packages {
    width: 98vw;
    height: 100dvh;
    margin: 1%;
    background-color: white;
    position: absolute;
    visibility: hidden;
    top: 0vh;
    flex-direction: column;
    gap: 1%;
    align-items: center;
    justify-content: start;
    padding-top: 1vh;
  }

  .package {
    width: 80vw;
    height: fit-content;
    background-color: #ffffff;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
  }

  .packageImg {
    max-height: 10vh;
  }

  .package h1 {
    font-size: 1.2rem;
  }
  .package h2 {
    font-size: 1rem;
  }
  .lightFont {
    font-size: 0.9rem;
  }

  .model-viewer {
    width: 98%;
    height: 50dvh;
    margin: 1%;
    visibility: visible;
  }
  .logoDown {
    visibility: hidden;
  }

  .languages {
    right: 5vw;
  }
  .button-container {
    visibility: hidden;
  }
  .button-container-packages {
    visibility: visible;
    position: absolute;
    top: 1vh;
  }
  .button-container-packages-close {
    display: block;
  }
}
