@import url("https://fonts.googleapis.com/css2?family=Carrois+Gothic&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Carrois Gothic", serif;
  font-weight: 400;
  font-size: 100%;
}

body {
  background-image: url("/assets/bg.png"),
    url("https://i.imgur.com/mu2XlFQ.png");
  background-repeat: repeat;
  background-size: 300px;
  line-height: 1.6;
  color: #333;
}

p,
h1,
h2,
h3,
hr {
  margin-bottom: 0.25em;
  margin-top: 0.25em;
}

h4 {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

.subtitle {
  display: block;
  font-size: 0.875em;
  text-align: right;
  margin-top: 0.5em;
  margin-bottom: 1em;
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr.divider {
  border: none;
  height: 2px;
  background-image: linear-gradient(to right, white, black, white);
  transform: scaleY(0.5);
  transform-origin: top;
  width: 100%;
}

.hovercon {
  position: relative;
  display: inline-block;
  cursor: help;
}

.hovermsg {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333333c1;
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 10pt;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  width: 15rem;
  font-weight: bold;
  z-index: 101;
  text-align: center;
}

.hovercon:hover .hovermsg {
  opacity: 1;
  visibility: visible;
}

.pop {
  display: inline-block;
  width: fit-content;
  transition-property: background-color, border-color, color, fill, stroke,
    opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transform-origin: center;
}

.pop:hover {
  transform: scale(1.25) translateX(0.5rem) skewX(-10deg);
}

.pop.type2:hover {
  transform: scale(1.35) translateX(0);
  transform-origin: center;
  transition-duration: 200ms;
}

.no {
  text-decoration: none;
  color: inherit;
}

.no.type2 {
  font-size: 1.125em;
}

.icon {
  width: 1.25em;
  margin-right: 0.3em;
  vertical-align: middle;
  display: inline-block;
}

.main-layout {
  display: flex;
  gap: 25px;
  padding: 1.5rem 1rem 1.5rem calc(14rem + 3rem); /* Add space for fixed left column */
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

.left-column {
  position: fixed;
  width: 14rem;
  top: 6.4rem;
  left: max(1rem, calc(50% - 700px + 1rem));
  flex-shrink: 0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1em;
  z-index: 10;
}

.right-column {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
}

.floating-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25em;
  padding: 0.5em;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  align-self: end;
  width: 30rem;
}

.floating-nav a img {
  max-width: 80px;
}

.main-content {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  min-width: 0;
}

.box2 {
  border-radius: 12px;
  border: 2px solid black;
  padding: 15px;
  position: relative;
  max-width: 12rem;
  width: 100%;
  line-height: normal;
}

#particles-js-socials {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.box2 > *:not(#particles-js-socials) {
  position: relative;
  z-index: 1;
}

.left-column .box2 .pop {
  display: block;
  margin-bottom: 0.5em;
}

.box3 {
  border-radius: 12px;
  border: 2px solid black;
  overflow: hidden;
  max-width: 12rem;
  aspect-ratio: 1 / 1;
}

.flexbox {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.sliderbox {
  overflow: hidden;
  border-left: 4px solid black;
  border-right: 4px solid black;
  border-radius: 12px;
  height: 250px;
  width: 100%;
  margin: 1.5em 0;
}

.slider {
  background: url("/assets/sciadvslider.png") repeat-x;
  background-size: contain;
  height: 100%;
  width: 2500px;
  animation: slide 15s linear infinite;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

.image-container {
  flex: 1 1 200px;
  max-width: 250px;
  min-width: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.image-grid img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px dashed black;
}

.gridsmaller .image-container {
  flex-basis: 150px;
  max-width: 200px;
  min-width: 130px;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: auto;
}

.tag {
  font-size: 0.875em;
  font-weight: bold;
  border: 1px solid black;
  border-radius: 12px;
  padding: 4px 8px;
  white-space: nowrap;
}

.tag.unav {
  background-color: #ccc;
  color: #555;
}

.buy-button {
  padding: 6px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  font-family: inherit;
  text-decoration: none;
  width: 100%;
  margin-top: 0.5em;
  transition: background-color 0.2s ease;
}

.buy-button:hover {
  background-color: #0056b3;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1337;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  position: relative;
  width: 90%;
  max-width: 550px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  line-height: 1;
  padding: 0.2em;
}

.popup-close:hover {
  color: red;
}

.popup-content p {
  font-size: 0.95em;
}

.popup-content a {
  color: #007bff;
  text-decoration: underline;
}

.popup-content img {
  max-width: 150px;
  margin: 1em auto 0;
}

.footer-content {
  text-align: center;
  padding: 20px;
  color: white;
}

.footer-content p,
.footer-content .subtitle {
  text-shadow: 0 0 5px gray, 0 0 8px black;
  margin-bottom: 0.5em;
}

.footer-content a {
  color: white;
  text-decoration: underline;
}

.footer-content .subtitle {
  text-shadow: 0 0 5px gray, 0 0 8px white;
  font-size: 0.8em;
}

.about-list {
  margin-bottom: 1em;
  padding-left: 1em;
}

.about-list li {
  margin-bottom: 0.15em;
}

.imgh {
  position: relative;
  display: block;
  top: -30px;
  width: 100%;
}

.collapsible-container {
  display: flex;
  gap: 20px;
  margin: 1.5em 0;
  width: 100%;
}

.collapsible-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collapsible-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  width: 100%;
}

.collapsible-toggle {
  background-color: #333;
  color: white;
  cursor: pointer;
  padding: 12px 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible-toggle:hover {
  background-color: black;
}

.collapsible-toggle.active {
  background-color: black;
}

.collapsible-toggle::after {
  content: "+";
  font-size: 1.2em;
  color: #777;
  font-weight: bold;
  transition: transform 0.3s ease-out;
}

.collapsible-toggle.active::after {
  content: "\2212"; /* minus sign */
  transform: rotate(180deg);
}

.collapsible-content {
  padding: 0 18px;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out,
    padding-bottom 0.3s ease-out;
  background-color: white;
}

.collapsible-content ul {
  list-style: none;
}

.text-muted {
  color: #6c757d;
  font-size: 0.8em;
}

/* Responsive */
/* Small Tablets / Large Phones */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
    padding: 1rem;
    gap: 20px;
  }

  .left-column {
    position: static;
    width: 100%;
    top: auto;
    left: auto;
    z-index: 1;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    gap: 1em;
  }

  .left-column .flexbox {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    gap: 20px;
  }

  .left-column .box3 {
    max-width: 100px;
    flex-shrink: 0;
  }

  .left-column .box2 {
    max-width: none;
    flex-grow: 1;
  }

  .right-column {
    gap: 20px;
    width: 100%;
  }

  .floating-nav {
    width: 100%;
    max-width: 100%;
    justify-content: space-evenly;
  }

  .floating-nav a img {
    max-width: 65px;
  }

  .main-content {
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }

  .subtitle {
    text-align: center;
  }
}

/* Phones */
@media (max-width: 600px) {
  html {
    font-size: 95%;
  }

  .main-layout {
    padding: 0.5rem;
    gap: 15px;
  }

  .left-column {
    padding: 0.75rem;
  }

  .left-column .flexbox {
    flex-direction: column;
    align-items: center;
  }

  .left-column .box2 {
    padding: 1rem;
  }

  .main-content {
    padding: 1rem;
  }

  .floating-nav {
    padding: 0.75rem;
    gap: 10px;
  }

  .floating-nav a img {
    max-width: 50px;
  }

  .sliderbox {
    height: 200px;
  }

  .about-list li {
    font-size: 0.95em;
  }

  .footer-content {
    padding: 15px;
  }

  .footer-content p,
  .footer-content .subtitle {
    font-size: 0.9em;
  }
}

/* Very Small Phones */
@media (max-width: 400px) {
  html {
    font-size: 90%;
  }

  .floating-nav a img {
    max-width: 40px;
  }

  .icon {
    width: 1.1em;
    height: 1.1em;
  }
}

/* Style for the icon container */
.icon-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px;
}

.icon-container i {
  font-size: 3.5em;
  transition: transform 0.3s ease;
  filter: grayscale(1) brightness(0.1);
}

.icon-container i:hover {
  transform: scale(1.2);
  filter: none;
}
