* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  font-family: monospace;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
header {
  padding: 1rem;
  height: 10vh;
}

model-viewer {
  width: 60%;
  height: 90vh;
  background-color: #ffffff;
}

.slider {
  width: 40%;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slides {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  overflow-y: scroll;
  height: 64vh;
  padding-right: 2rem;
  /* overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth; */
}

.slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  margin-right: 10px;
  border-radius: 10px;
  border: none;
  display: flex;

  border: 2px solid rgb(188, 188, 188);
}

.slide.selected {
  border: 2px solid black;
}

.slide:focus {
  outline: none;
}

.slide:focus-visible {
  outline: 1px solid #4285f4;
}

main {
  display: flex;
  justify-content: space-between;
}
.button-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.heart-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.heart-wrap p {
  margin: 0;
}
.heart {
  width: 20px;
  height: 20px;
  pad: 2px;
  cursor: pointer;
}
