@font-face {
  font-family: 'frutiger';
  font-style: normal;
  font-weight: normal;
  font-display: block;
  src: url("/assets/fonts/Frutiger.ttf") format('truetype');
}

html,
body {
  margin: 0;
  min-height: 100dvh;
  min-width: 100%;
  padding: 0;
  background: #111333FF;
  color: white;
  font-family: 'frutiger';
  font-size: 14px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1{
  text-align: center;
}

h3 {
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  margin: 16px;
  max-width: 640px;
}

header {
  padding: 16px;
  img {
    max-width: 100%;
    height: unset;
  }
  h1 {
    margin: 8px;
  }
}

main {
  flex-grow: 1;
}

footer {
  margin: 16px;
  text-align: center;
}

.row {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.center {
  align-items: center;
}

.sed {
  line-height: 2;
}

.productHeader {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* apply padding to all children of header */
.productHeader >* {
  padding: 16px;
}

.productButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  width: 288px;
  padding: 16px;
  text-align: center;
  background-image: url(/assets/imgcss/AISINBackground.jpg);
  background-size: 145px;
  border-style: solid;

  h2 {
    margin: 4px;
  }
}

.productContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.productImageContainer {
  flex-grow: 3;
  flex-direction: column;
  display: flex;
  justify-content: center;
}

.productImage {
  max-height: 200px;
  width: auto;
}

.product3d {
  width: 100%;
}

.productContent {
  a {
      text-decoration: underline;
      color: inherit;
    }
}

.modelView {
  width: 100%;
  height: 360px;
}

.scaleInstructions {
  text-align: center;
  font-size: 0.8em;
  visibility: hidden;
}

@media (pointer: fine) {

  .scaleInstructions {
    visibility: visible;
  }
}

#productInstructions {
  max-width: 360px;
  min-width: 280px;
  position:  absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  background-color: #111333FF;
  border-style: solid;
  padding: 16px;
  display: invisible;

  .instructionRow {
    display: flex;
    flex-direction: row;
    align-items: center;

    img {
        height: 32px;
        width: 32px;
      }
  }
}

#productViewAR {
  height: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background-color: #eabe5d;
  color: black;
  font-size: 14px;
  border-radius: 18px;
  padding: 2px 16px 0px 16px;
  border: none;
  stroke-width: 1px;
  
  /* transition */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;

  img {
    height: 20px;
    width: 20px;
  }
}

#productViewAR.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 0s linear 0s;
}

#ar-button {
  height: 36px;
  width: 120px;
  align-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background-color: #eabe5d;
  color: black;
  font-size: 14px;
  border-radius: 18px;
  padding: 2px 16px 0px 16px;
  border: none;
  stroke-width: 1px;

  img {
    height: 20px;
    width: 20px;
  }
}

.homeMenuIcon {
  color: white;
  stroke: #fff;
  fill: white;
  width: 36px;
  height: 36px;
}

.osSpecific {
  #android {
    display: none;
  }
  
  #iOS {
    display: none;
  }
}