@font-face {
  font-family: 'Aptos';
  src: url('../../Aptos-Display.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --FLIblue: rgb(24, 62, 109);
  --FLIgrey: rgb(216, 225, 232);
  --FLIhead: rgb(240, 244, 248);
  --background-select: linear-gradient(to left, #34495e 3rem, #2c3e50 3rem);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Aptos', sans-serif;
}

/* General Layout */
.navBackground {
  background-color: white;
  border-bottom: solid 0.2px grey;
}
.navigation {
  padding: 10px 5%;
  margin: 0 auto;
  max-width: calc(1600px + 10%);
  background-color: white;
  font-family: 'Aptos', sans-serif;
  background: inherit;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  gap: 5px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs ol li:not(:last-child)::after {
  content: "/";
  margin-left: 5px;
  color: #ccc;
}

.breadcrumbs a {
  color: var(--FLIblue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.patent {
    color: var(--FLIblue);
    margin-left: 5vw;
}

.navigation h1 {
  font-size: 2.8rem;
  color: var(--FLIblue);
  margin-bottom: 6px;
  margin-top: 6px;
  font-weight: 700;
  font-family: Aptos;
}

.nav-subtitle {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 10px;
  margin-right: 80px;
}

.nav-subtitle a {
    color: blue;
    text-decoration: underline;
}

@media(max-width:1200px) {
    .nav-subtitle{display: none;
}
}


.nav-search input[type="search"] {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
}

.nav-filters {
  display: flex;
  gap: 10px;
}

.nav-filters button {
  padding: 8px 16px;
  border: 1px solid var(--FLIblue);
  background: white;
  color: var(--FLIblue);
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.nav-filters button.active,
.nav-filters button:hover {
  background: var(--FLIblue);
  color: white;
}


.contentBackground {
  background: linear-gradient(to bottom, var(--FLIblue) 30%, var(--FLIblue) 31%, #add8e6 100%);
}

@media(max-width: 1780px) {
  .viewerCard {
    flex-wrap: wrap;
    gap: 10px;
    max-height: none;
  }
}


#noCards {
  font-family: 'Aptos';
  font-size: 36px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  color: lightgray;
  letter-spacing: 0.05em;
}


.content1 {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 0px;
  background: white;
  border-radius: 0;
  width: 100%;
  overflow-x: hidden;
  
  box-sizing: border-box;
}

@media(max-width:1200px) {
  .content1 {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 20px;
    background: whitesmoke;
  }
}


.intro {
    font-family: 'Aptos';
  margin: 0px auto;
  padding: 0px;
  width: 100%;
  text-align: left;
  justify-content: left;
  color: var(--FLIblue);
  background-color: var(--FLIhead);
  border-bottom: 1px solid grey;
  padding-right: 0vw;
}




.shopBlock {

    margin-bottom: 40px;
    text-align: left; /* center everything nicely */
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 10px; /* spacing between name and price */
}

.pileName {
    font-family: 'Aptos', sans-serif;
    font-size: 48px; /* slightly smaller, more elegant */
    font-weight: 600; /* subtle bold for premium feel */
    color: var(--FLIblue);
    margin: 0; /* remove extra padding */
    line-height: 1.1;
    letter-spacing: 1px; /* modern spacing */
    margin-bottom: 20px;
}

.priceValue {
    font-family: 'Aptos', sans-serif;
    font-size: 64px; /* slightly smaller than before */
    font-weight: 700; /* emphasize price */
    color: var(--FLIblue);
    margin: 0;
    line-height: 1.1;
}


/* stuff copied from qty box*/

.previewBtn {
    margin-bottom: 60px;
}

.qtyBox {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #eee;
  padding: 6px 10px;
  border-radius: 6px;
  width: fit-content;
}

  .qtyBox input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    margin-right: 8px;
    font-weight: bold;
    color: var(--FLIblue);
  }

.previewBtn h2 {
  margin-bottom: 8px;
  color: var(--FLIblue);
}

.qtyRow {
  display: flex;
  align-items: center;
  gap: 16px;
}


.btnGroup {
  display: flex;
  flex-direction: row; /* horizontal layout */
  gap: 4px;
}


.btnGroup button {
  background-color: var(--FLIblue);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  font-size: 18px;
  line-height: 1;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.2s ease;
}


/* Hover effect */
.btnGroup button:hover {
  background-color: transparent;
  transform: scale(1.3);
  font-weight: bolder;
}


  .btnGroup button:active {
    transform: scale(0.95);
  }

  .shopBtn {
  background-color: var(--FLIblue);
  color: white;
  padding: 4.6px 4.6px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}


.closePreview {
  position: absolute;
  top: 15px; right: 15px;
  width: 40px; height: 40px;
  font-size: 68px;
  line-height: 32px;
  text-align: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  background-color: transparent;
  transition: background-color 0.1s, color 0.3s;
  color: var(--FLIblue);
  z-index: 4;
}

.closePreview:hover {
  background-color: white;
  color: red;
}

@media (max-width: 1200px) {
  .previewBtn {
  margin-top: 200px;
}
}









/* Reset a few things */
/* Basic Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

/* Body setup with no direct background */
body {
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh; /* ensure it fills viewport */
}

/* Faded background image using pseudo-element */
body::before {
    content: "";
    position: fixed; /* stays behind everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../back.webp");
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;

    opacity: 0.2; /* fade level */
    z-index: -1; /* ensure it's behind all content */
}


.pileBuilderContainer {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border-radius: 15px;
}



.wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.pileRow {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px; /* space between label and select */
}

.pileRow label {
    width: 150px; /* fixed width for all labels */
    flex-shrink: 0; /* prevents label from shrinking */
    font-family: 'Aptos', sans-serif;
    font-size: 16px;
    color: var(--FLIblue);
}

.pileRow select {
    flex: 1; /* takes remaining space */
    padding: 8px 12px;
    font-family: 'Aptos', sans-serif;
    font-size: 16px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-right: 100px;
}


/* Model Styling */
.modelWrapper {
  flex: 1;
  background-color: lightgray;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  height: 1020px;
  width: 200px;
}

.modelWrapper model-viewer {
  height: 100%;
  display: block;
}


/* Dropdown Styling */
.dropdownWrapper {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
}

.dropdownWrapper label {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #333;
}

.dropdownWrapper select {
  padding: 12px 15px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.dropdownWrapper select:focus {
  border-color: #007BFF;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
  outline: none;
}

/* Action Buttons */
.actionContainer {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.actionContainer button,
.actionContainer a {
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, color 0.3s;
}


.extraBlock {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: black;
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.extraBlock .info {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 12px;
  column-gap: 5px;
}

.extraBlock .info p {
  display: contents;
  margin: 0;
  position: relative;
}

.extraBlock .info strong {
  color: var(--FLIblue);
  font-weight: 600;
  text-align: left;
}

.extraBlock .info p::after {
  content: "";
  grid-column: 1 / span 2;
  height: 2px;
  width: 40px;
  margin-top: 6px;
  border-radius: 2px;
}


.length {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-right: 100px;
    font-family: 'Aptos', sans-serif;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
}

/* Left table: pile build list */
.length-left {
    flex: 1;
    /*background: rgba(0, 120, 255, 0.1);*/
    background: lightgray;
    border: 2px solid var(--FLIHead);   /* light blue border */
    border-radius: 10px;
    padding: 10px 15px;
    margin-right: 40px;
}

/* Header of left table */
.length-left h2 {
    color: var(--FLIHead);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Pile parts list styled like table rows */
.pileParts {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

/* Each row as table row */
.pileParts li {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 4px;
    /*background: rgba(0, 120, 255, 0.2);*/
    color: black;
    border-bottom: 4px solid var(--FLIblue);
}


.pileParts li span.partName {
    font-weight: 600;
}

.pileParts li span.partValue {
    font-weight: 500;
}

/* Right table: total length */
.length-right {
    flex: 0 0 200px; /* fixed width */
    background: lightgrey;
    border: 2px solid var(--FLIHead);
    border-radius: 10px;
    padding: 10px 15px;
    text-align: center;
    color: black;
}

/* Header in right table */
.length-right h1 {
    font-size: 1.3rem;
    color: black;
    margin-bottom: 10px;
    margin-top: 0;
}

/* Total length value */
.totalLength {
    font-size: 2rem;
    font-weight: bold;
    color: var(--FLIblue);

    border-radius: 6px;
}



/* Responsive */
@media (max-width: 900px) {
  .pileRow {
    flex-direction: column;
  }


}


html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


.main-et1a {
    margin-bottom: 0 !important;
    margin-top: auto !important;
}

