:root {
  --border-color: #ccc;
  --overlay-margin: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
}

#container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4px 16px;
}

#container > header {
  border-bottom: 1px solid var(--border-color);
}

#container > header h1 {
  margin-bottom: 5px;
  margin-top: 10px;
}

#cart {
  float: right;
  margin-top: 16px;
}

#cart.full {
  font-weight: 600;
}

#container > main {
  margin-top: 8px;
  min-height: 300px;
}

#product-list {
  margin-bottom: 10px;
  padding-left: 12px;
}

#product-list span {
  margin-right: 12px;
}

#product-list span:hover {
  cursor: pointer;
}

#model {
  border: 1px solid var(--border-color);
  background-color: #eee;
  width: 100%;
  min-height: 300px;
  margin-bottom: 12px;
}

#model model-viewer {
  width: 100%;
  height: 300px;
}

.heading {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.heading h3, .heading h4 {
  margin: 0px 0px;
}

.heading h3 {
  font-size: 26px;
  font-weight: 500;
}

.heading h4 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: -5px;
}

#price {
  font-size: 26px;
  padding: 8px 0px;
}

#price span.note {
  font-size: 16px;
}

.sizes {
  padding-bottom: 7px;
}

.sizes > span, .sizes2 > span {
  background-color: #fff;
  margin-top: 0px;
  border: 1px solid #000;
  border-radius: 3px;
  padding: 6px 12px;
  display: inline-block;
  margin-right: 10px;
  font-size: 22px;
}

.sizes > span:hover, .sizes2 > span {
  cursor: pointer;
}

.sizes > span.selected, .sizes2 > span.selected {
  border-width: 2px;
  border-color: #1428a0;
}

.sizes2 > span {
  font-size: 20px;
}

.sizes2 > span:last-child {
  margin-right: 0px;
}

.btn {
  width: 100%;
  text-align: center;
  background-color: #333;
  color: #eee;
  padding: 12px;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
}

.btn:hover {
  cursor: pointer;
  background-color: #555;
}

.description {
  font-size: 16px;
}

.specs {
  text-align: center;
  margin-bottom: 80px;
  margin-top: 30px;
}

.specs td {
  border-top: 1px solid var(--border-color);
}

.specs td.last {
  border-bottom: 1px solid var(--border-color);
}

#container > footer {
  margin-top: 10px;
  padding-top: 6px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}


.hide {
  display: none !important;
}

#hmd-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;

  width: 50px;
  height: 50px;
  border: 1px solid black;
  border-radius: 25px;
  text-align: center;
  background-color: #eee;

  font-size: 14px;
  padding-top: 14px;

  box-shadow: 0px 0px 5px rgba(0,0,0,1);
}

#hmd-btn:hover {
  cursor: pointer;
}

#hmd-btn.connected {
  border-color: #000099;
  color: #000099;
  font-weight: bold;
  background-color: #b0d0f5;
}

/* AR view: overlays */

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

/*
ar-status: ['not-presenting', 'session-started', 'object-placed']
*/

model-viewer #ar-button-custom {
  position: absolute;
  top: 10px;
  left: 10px;
  visibility: hidden;
}

model-viewer #enter-ar-btn {
  background-color: white;
  border-radius: 4px;
  border: 1px solid #ccc;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px;
  font-size: 14px;
}

model-viewer[ar-status="not-presenting"] > #infobox {
  display: none;
}

model-viewer[ar-status="not-presenting"] > .onlypresenting {
  display: none;
}

model-viewer > #infobox {
  background-color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: var(--overlay-margin);
  border-radius: 10px;
  padding: 10px;
  width: calc(100% - 2*var(--overlay-margin));
  max-height: 100px;
}

model-viewer > #infobox .label {
  font-size: 16px;
  width: 75%;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-top: 3px;
}

model-viewer > #infobox .btn {
  padding: 4px 8px;
  margin-left: 10px;
  margin-right: 2px;
  float: right;
  width: auto;
}

#overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px;
  width: 100%;
  opacity: 1.0;
}

model-viewer[ar-status="not-presenting"] #overlay {
  opacity: 0.001;
}

.hotspot {
  opacity: 1.0;
}

model-viewer[ar-status="not-presenting"] .hotspot,  model-viewer[ar-status="not-presenting"] .hotspot2 {
  opacity: 0.001;
}

#overlay2 {
  position: absolute;
  top: calc(50% - 30px);
  left: calc(50% - 150px);
  padding: 10px;
  width: 300px;
  background-color: white;
  border: 1px solid black;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
}

#overlay #buy-btn {
  border: 1px solid black;
  background-color: white;
  padding: 6px 10px;
  display: inline-block;
  text-align: center;
  background-color: #333;
  color: white;
  cursor: pointer;
  float: right;
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 22px;
}


#overlay #buy-btn:hover {
  cursor: pointer;
  background-color: #555;
}

#overlay #ar-product-name {
  background: white;
  padding: 9px 13px;
  max-width: 75%;
  float: left;
  margin-right: 10px;
  border-radius: 5px;
  font-size: 20px;
}

#overlay #sizes-sel {
  position: absolute;
  font-size: 20px;
  padding: 8px;
  border: none;
  border-radius: 5px;
  bottom: 60px;
  background-color: white;
  left: 15%;
}



#overlay #sizes-sel div {

}

#overlay #selected-size {
  background-color: white;
  min-width: 40px;
  border-radius: 5px;
  border: none;
  text-align: center;
  font-size: 20px;
  padding: 9px 13px;
  display: inline-block;
}

#overlay #selected-size:hover {
  cursor: pointer;
}

#annotation3 {
  font-size: 22px !important;
}

.hotspot {
  background-color: white !important;
  border-radius: 4px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  padding: 0.5em 1em;
  color: rgba(0, 0, 0, 0.8);
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.hotspot2 {
  background-color: white !important;
  border-radius: 4px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  padding: 0.35em 0.7em;
  color: rgba(0, 0, 0, 0.8);
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

#exit-webxr-button-custom {
  opacity: 0.1;
  position: absolute;
  top: 10px;
  left: 10px;
}
