@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ Thin.otf) format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ UltraLight.otf) format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ ExtraLight.otf) format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ Light.otf) format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ Regular.otf) format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ Medium.otf) format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ Bold.otf) format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "steradian";
  src: url(../assets/fonts/Steradian\ Black.otf) format("truetype");
  font-weight: 800;
  font-style: normal;
}

body {
  display: flex;
  justify-content: center;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: #212121;
  background-color: white;

  font-family: "steradian";
  font-size: 16px;
  position: relative;
}

h2 {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4rem);
  margin: 2rem;
  gap: 2rem;
}

.grid-container {
  flex: 1;
  overflow-y: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: max-content;
  gap: 2rem;
  padding: 1rem;
}

.block {
  border-radius: 0.25rem;
  /* box-shadow: 0 0 0 1px #c1c1c1; */
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-color: #f7f7f7;
}

.block:hover {
  box-shadow: 0 0 10px 5px #8c8c8c;
}

.block.selected {
  box-shadow: 0 0 10px 5px #212121;
  color: #212121;
}

.block .image {
  padding-bottom: 100%;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.block .title {
  padding: 0.5rem;
  margin: 0px;
  text-align: center;
  overflow: hidden;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 2rem;
}

.footer {
  /* position: relative; */
  display: flex;
  justify-content: space-between;
}

/* #next-btn {
  position: absolute;
  right: 0;
} */

button {
  background-color: #212121;
  padding: 1rem 2rem;
  font-weight: 500;
  color: white;
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #8c8c8c;
}

button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

*::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #aa252500;
}

*::-webkit-scrollbar {
  width: calc(0.25rem * 2);
  background-color: #00000000;
  position: relative;
}

*::-webkit-scrollbar-thumb {
  border-radius: 0.25rem;
  background-color: #8c8c8c;
}

*.hidden {
  display: none !important;
}

select {
  background-color: #f7f7f7;
  border: none;
  border-radius: 0.25rem;
  padding: 1rem;
  padding-right: calc(1rem + 1rem * 2);
  color: var(--quaternary-color);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: "";
  font-size: 0.9rem;
  background-image: url("../assets/arrow-down-1.svg");
  background-size: 0.9rem;
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) 50%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 1rem;
  gap: 0.5rem;
}

#configurator-container {
  background: white;
  width: 100%;
  display: flex;
}

#configurator-container.fullscreen {
  position: fixed;
  top: 6rem;
  right: 0;
  bottom: 0;
  left: 0;
}

#instapack-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#instapack-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
  flex: 1;
  overflow: hidden;
}

#tech-sheet {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}

.modal {
  background-color: white;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-btn {
  padding: 1rem;
  background-color: #212121;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
}

.icon-btn:hover {
  background-color: #8c8c8c;
}

.icon-btn svg {
  fill: white;
  width: 1.25rem;
}

.tech-sheet-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  /* max-height: 25vh; */
  overflow-y: auto;
}

.part-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-block {
  padding: 2rem 1rem;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.dashboard-block .value {
  font-size: 2rem;
  font-weight: bold;
}

.tech-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  background-color: #f7f7f7;
  padding: 1rem;
}

.tech-block.main {
  background-color: #c1c1c1;
}

/* #info-btn {
  color: #212121;
  background-color: #f7f7f7;
}

#info-btn:hover {
  cursor: pointer;
  background-color: #8c8c8c;
} */

.tech-block.secondary {
  display: none;
}

#editor2d-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: #f7f7f7;
  display: none;
  height: 5rem;
  padding: 0 2rem;
  align-items: center;
  justify-content: space-between;
}

#editor2d-header.fullscreen {
  display: flex;
}

#close-e2d-btn {
  position: absolute;
  right: 0.75rem;
  top: 1.25rem;
  padding: 1rem;
  background-color: #212121;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
}

#close-e2d-btn:hover {
  background-color: #8c8c8c;
}

#close-e2d-btn svg {
  fill: white;
  width: 1.25rem;
}

.color-swatches {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.color-swatches .color {
  /* border: 2px solid #212121; */
  border-radius: 0.25rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  box-shadow: 0 0 5px 1px;
}

.color-swatches .color.selected {
  border: 3px solid #212121;
}
