/* HARDWARE TOKENS */

:root {
  --p-padding: 50px 120px;
  --p-margin: 0 100px;
  --bold-font: 1200px;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  padding: 3rem 4rem;
  background-color: #0a0a0a;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  color: white;
}

.hardware-component-title {
  font-size: 4.5rem;
  color: white;
  text-align: left;
  margin-bottom: 50px;
}

.terms ul {
  list-style: none !important;
  list-style-position: inside;
}

.bg-box, .bg-box-1, .bg-box-2 {
  background-image: radial-gradient(157.49% 100.03% at 88.62% 83.56%, rgba(69, 64, 64, 0.40) 0%, rgba(62, 50, 50, 0.35) 55.29%);
  border: 2px solid #c83a07;
  border-left: 5px solid #c83a07;
  border-right: 5px solid #c83a07;
  padding: 30px;
  max-width: inherit;
  margin: 50px 0px !important;
}

.bg-box-1 {
  border-radius: 10px 55px 10px 55px !important;
}

.bg-box-2 {
  border-radius: 55px 10px 55px 10px;
}

.content-accordion {
  background-color: #c83a07 !important;
  border: 2px solid #c83a07;
  border-left: 5px solid #c83a07;
  border-right: 5px solid #c83a07;
  padding: 30px;
  max-width: inherit;
  --bs-accordion-border-color: none;
}

.aos-container,
.How-It-Works {
  padding: var(--p-padding);
  margin: var(--p-margin);
  line-height: 40px;
}

.overview li,
p {
  line-height: 40px;
}

.aos-container li b, .accordion-body li b {
  font-weight: bolder;
  background-color: #c83a07;
  padding: 6px;
  border-radius: 15px;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.aos-container ul li p, .aos-container ul li {
  padding: 0px;
  margin-bottom: 20px;
}

.emphasize b, .How-It-Works b {
  color: #dc724b !important;
  
}

.bullets b {
  color: white;
  background-color: transparent !important;
  letter-spacing: normal !important;
}

.list p {
  padding: 0px;
  line-height: 25px;
}

h1 {
  font-size: 4rem !important;
  text-align: center;
  color: #dc724b;
  margin-bottom: 50px;
  white-space: normal !important;
  line-height: 60px;
}

.aos-container h2 {
  margin-top: 40px;
  padding-left: 2.75rem;
  color: white !important;
}

/* Button Styling */
.button-container {
  justify-self: center !important;
  max-width: 100% !important;
  display: flex;
  padding: 20px 80px;
  margin-left: 10vw;
}

.Spinova,
.FE {
  margin: 0px 30px !important;
  width: 400px;
  height: 300px;
  max-width: 400px;
  padding: 0px;
  text-align: center !important;
  border-radius: 25px !important;
  display: flex;
  align-items: center;
  justify-content: center !important;
  border: none;
  filter: drop-shadow(0 0 5px #e96451);
  background-image: url(https://static.igem.wiki/teams/5571/images/icons/hardware-frame.svg);
  transition: background-image 0.7s ease-out, filter 0.5s ease-out !important;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #0a0a0a;
  background-size: 400px 100%;
  font-family: 'Space Grotesk';

  position: relative;
}

.Spinova:hover {
  background-image: url(https://static.igem.wiki/teams/5571/images/spinova-hardware-page-1.webp);
  filter: drop-shadow(0 0 10px #960700);
}

.FE:hover {
  background-image: url(https://static.igem.wiki/teams/5571/images/filinova/dscf9046.webp);
  filter: drop-shadow(0 0 10px #960700);
}

.FE-Dim {
  color: white !important;
}

button a {
  max-width: 100%;
  font-style: none;
  font-weight: 750;
  text-decoration: none;
  font-size: 1.4rem;
  color: white;
  letter-spacing: 2px;
  transition: color 0.2s ease;
}

button a:hover {
  color: #e88b4d;
}

button a img {
  margin-right: 30px;
}

/*Tabs*/
p:not(:last-child) {
  margin-block-end: 1rem;
}

.tab-container {
  width: 65%;
  max-width: 1200px;
  min-width: min-content;
  padding: 1rem;
  margin: 1rem 2rem;
  margin-left: 5vw;
  border-radius: 25px;
  background-color: #a6400d;
  box-shadow: 10px 10px 100px 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  justify-self: center;
}

.tab {
  --tab-count: 3;
  --active: 0;

  position: relative;
  isolation: isolate;
  display: flex;
  height: 3.5rem;
  border-block-end: 0px solid #0a0a0a;
  flex-wrap: nowrap;
}

.tab input {
  display: none;
}

.tab label {
  flex: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: color 0.5s ease-out;
  font-size: 1.2rem;
  text-align: center;
  font-style: bold;
}

.tab input:checked + label {
  color: black; /*tab color- adjust later*/
}

.tab::after {
  pointer-events: none;
  position: absolute;
  content: " ";
  z-index: -1;
  inset: 0 0 -2px;
  width: calc((100% / var(--tab-count)) - 2px);
  border-radius: 30px;
  border: 0px solid #0a0a0a;
  border-block-end: none;
  background-color: #fc5f21;

  translate: calc(var(--active) * 100%);
  transition: translate 0.5s ease-in-out;
  text-align: center;
}

.tab:has(:checked:nth-of-type(1)) {
  --active: 0;
}

.tab:has(:checked:nth-of-type(2)) {
  --active: 1;
}

.tab:has(:checked:nth-of-type(3)) {
  --active: 2;
}

.tab-content {
  padding: 2rem;
}

.tab-content li {
  list-style: none;
}

.tab-content img {
  width: 100%;
  max-width: 500px;
  margin: 25px;
}

[class^="tab-content-"] {
  display: none;
}

.tab-container:has(:checked:nth-of-type(1)) .tab-content-1,
.tab-container:has(:checked:nth-of-type(2)) .tab-content-2,
.tab-container:has(:checked:nth-of-type(3)) .tab-content-3 {
  display: block;
}

@media only screen and (max-width: 715px) {
  .tab-container::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
  }

  .tab::after {
    pointer-events: none;
    position: absolute;
    content: " ";
    z-index: -1;
    inset: 0 0 -2px;
    width: calc((100% / var(--tab-count)) - 6.1px);
    border-radius: 30px;
    border: 0px solid #0a0a0a;
    border-block-end: none;
    background-color: #fc5f21;

    translate: calc(var(--active) * 100%);
    transition: translate 0.5s ease-in-out;
    text-align: center;
  }
}

.aos-container img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  width: 100%;
}

.flex-container {
  display: flex;
  align-self: center;
  justify-content: space-around;
  margin: 10px;
}

.image {
  margin: 50px;
  justify-content: start;
  position: relative;
}

.iframe-wrapper {
  text-align: center;
  width: 100%;
}

.accordion-collapse {
  font-weight: normal;
}

.accordion-collapse a {
  word-wrap: break-word;
}

/*Accordion Styling */
/* === TOKENS === */
:root {
  --dark-bg: #141212;
  --page-bg: #000;
  --light-text: #f7efe7;
  --warm-orange: #dc724b;
  --red-orange: #c83a07;
  --navbar-bg: #0f1423;
  --navbar-border: #0c2d48;
  --section-bg-1: rgba(220, 114, 75, 0.75); /* or 0.5 */
  --section-bg-2: rgba(255, 255, 255, 0.1);
  --section-bg-3: rgba(91, 192, 222, 0.2);
  --section-bg-4: rgba(221, 184, 108, 0.15);
  --body-weight: 300;

  --body-size: 16px;
  --max-content: 1100px;

  --glow: 0 0 40px rgba(220,114,75,0.35);
}

.accordion .accordion-button {
  background: rgba(0,0,0,0.25);
  color: var(--light-text);
  border: 1px solid rgba(255,255,255,0.06);
}
.accordion .accordion-button:not(.collapsed){
  background: rgba(220,114,75,0.15);
  color: var(--light-text);
}

/* References toggle arrow like Description */
.refs-toggle{
  color: var(--light-text);
}
.refs-toggle::after{
  content:"▼";
  font-size:.9rem;
  color: var(--warm-orange);
  margin-left:.5rem;
}
.refs-toggle[aria-expanded="true"]::after{ content:"▲"; }

@media (max-width: 768px){
  .hp-card{
    grid-template-columns: 1fr;
  }
}

.hp-int-acc{
  border:1px solid var(--warm-orange);
  border-radius:.6rem;
  background: rgba(255,255,255,.03);
  margin:.4rem 0 0;
  overflow: clip;
  box-shadow: 0 0 0 2px rgba(220,114,75,.06) inset;
}
.hp-int-acc + .hp-int-acc{
  margin-top:0;                 /* stick them together */
  border-top-left-radius:0;     /* fuse corners */
  border-top-right-radius:0;
}

/* Accordion: stacked “box” look, orange outline even when closed */
details.acc {
  border: 1px solid var(--warm-orange);
  border-radius: .7rem;
  background: rgba(255,255,255,.03);
  margin: .5rem 0;
  overflow: clip; /* keep borders crisp on open */
  box-shadow: 0 0 0 2px rgba(220,114,75,.06) inset;
}

details.acc + details.acc {
  margin-top: 0;                 /* stick together */
  border-top-left-radius: 0;     /* fuse corners */
  border-bottom-right-radius: 0;
}

/* Accordion summary: bigger arrow, better hit area */
details.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--light-text); font-weight: 600;
}
details.acc > summary::-webkit-details-marker { display: none; }

/* Arrow icon (always visible; grows a bit) */
details.acc > summary::after {
  content: "▾";
  font-size: 1.15rem;            /* bigger arrow */
  line-height: 1;
  transform: translateY(1px);
  transition: transform .18s ease;
  color: var(--warm-orange);
}

details.acc[open] > summary::after {
  transform: rotate(180deg) translateX(-1px);
}

/* Inner body spacing */
details.acc .acc-body { padding: .25rem 1rem 1rem; }

summary u {
  font-size: 1.2rem;
}