body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  margin: 0;
}

html,
body {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

a {
  text-decoration: none;
  color: #000;
}

.site-header {
  height: 4rem;
  border-bottom: 2px solid #ccc;
  padding: 0.5em 1em;
  background-color: white;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.site-header img {
  height: 3rem;
  margin-right: 1rem;
}

#site-content {
  height: 77%;
  display: flex;
  flex-direction: row;
  padding: 1rem;
  gap: 1rem;
}

#site-content > div:not(:first-child) {
  margin-left: 0;
}

#shape-selector {
  border: 0.08rem solid #000;
  border-radius: 0.3rem;
  width: 22%;
  padding: 0.3em;
  margin: 0;
  background-color: #f0f0f0;
  overflow: auto;
}

.shape-card {
  border: 0.08rem solid #000;
  background-color: #fff;
  border-radius: 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shape-card h3 {
  margin: 0.5rem 0rem 0.5rem 0rem;
  text-align: center;
  font-size: 1.5vw;
}

.shape-card img {
  width: 75%;
  margin-bottom: 0.5rem;
}

.shape-card.selected {
  border: 0.3rem solid #b93c31;
}

#shape-selector > div:not(:first-child) {
  margin-top: 0.3rem;
}

#specifications-selector {
  border: 0.08rem solid #000;
  border-radius: 0.3rem;
  width: 30%;
  padding: 0.3em;
  margin: 0;
  background-color: #f0f0f0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

#specifications-selector h6 {
  margin-top: 0.2vw;
  margin-bottom: 0.2vw;
  font-size: 1.3vw;
}

#specifications-selector h3 {
  margin-top: 0.4vw;
  margin-bottom: 0.4vw;
  font-size: 1.6vw;
}

#specifications-selector input,
#specifications-selector select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#three-dimensional-model-container {
  box-sizing: border-box;
  border: 0.08rem solid #000;
  border-radius: 0.3rem;
  width: 100%;
  height: 100%;
  padding: 0.3em;
  background-color: #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#three-dimensional-model-container h3 {
  flex-shrink: 0;
  margin-top: 0.4vw;
  margin-bottom: 0.4vw;
  font-size: 1.6vw;
}

#three-dimensional-model-canvas {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  touch-action: none;
}

.site-footer {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background-color: #0369a1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}
