@charset "utf-8";
/* CSS default */
.modelContainer {
  margin-top: 50px;
  margin-bottom: 50px;
}

.titleElement h4 {
  color: var(--main-color-2);
  font-size: 2.5em;
  margin: 2rem 0;
  padding: 0.5rem 1rem 0.5rem;
  font-weight: bold;
  background-color: var(--main-color-10);
}

.modelElement {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
  padding: 1rem 0;
}

.imageModel,
.viewerModel {
  flex: 1;
}

.imageModel {
  max-width: 100%;
  border-radius: 1rem;
  margin-right: 40px;
}

.imageModel img {
  max-width: 100%;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

.viewerModel model-viewer {
  width: auto;
  height: 300px;
  background-color: var(--mono-color-5);
}
.buttonContainer {
  margin: 1rem;
  text-align: center;
}

.modelButton {
  background-color: white; 
  border: 1px solid var(--mono-color-4);
  width: 10rem;
  color: black; 
  padding: 10px 20px; 
  margin-right: 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.modelButton:last-child {
  margin-right: 0; /* Remove margin for the last button */
}

.modelButton:hover {
  background-color: var(--main-color-10);
}

.viewerInstruction {
  margin: 4rem 0;
    display: flex;
    justify-content: space-between;
}

.mobileCategory {
  margin: 0 2rem 0 0;
}

/* Media query for tablets */
@media screen and (min-width: 500px) and (max-width: 959px) {
  .modelElement {
    display: block;
    text-align: center;
  }

  .imageModel {
    margin-bottom: 3rem;
    margin-right: 0;
  }

  .imageModel img {
    width: 80%;
  }

  .viewerModel model-viewer {
    max-width: 44rem;
    height: 400px;
    margin: 0 auto; /* Centering the model-viewer */
  }

.buttonContainer {
  margin: 0;
  margin-bottom: 1rem;
}

.modelButton {
  margin-bottom: 1rem;
  margin-right: 0;
  width: 12rem;
}

.modelButton:last-child {
  margin-bottom: 0;
}
}

/* Media query for phones */
@media screen and (max-width: 500px) {
  .modelElement {
    display: block;
    text-align: center;
  }

  .imageModel {
    margin-bottom: 3rem;
    margin-right: 0;
  }

  .viewerModel model-viewer {
    max-width: 30rem;
    height: 20rem;
    margin: 0 auto; 
  }

.viewerInstruction {
  margin: 2rem 0;
    flex-direction: column;
}
.mobileCategory {
  margin: 0;
}

.buttonContainer {
  margin: 0;
  margin-bottom: 1rem;
}

.modelButton {
  margin-bottom: 1rem;
  margin-right: 0;
  width: 12rem;
}

.modelButton:last-child {
  margin-bottom: 0;
}
}