/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* RESET */
body {
  background-color:#222;
  margin: 0;
  font-family: Arial, sans-serif;
}

.navbar {
  position: fixed;
  width: 100%;
  height: 64px;
  box-sizing: border-box;
  background: #222;
  padding: 5px;

  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  gap: 5px;
  padding:5px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  text-decoration: none;
  color: white;
  background: #444;
  border-radius: 6px;
  padding: 8px 12px;
  gap:10px;
}

.nav-links a:hover {
  background: #777;
}

#menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  background: #444;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

@media all and (max-width: 750px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: #22222200;
  }

  .menu-button {
    display: block;
    order: 2;
  }

  .image-container-logo {
    order: 1;
  }

  .image-container-logo img {
    max-width: 40px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);

    width: auto;
    min-width: 100px;

    background: #222;
    flex-direction: column;

    gap: 3px;
    padding: 5px;
    border-radius: 8px;

    z-index: 2000;
  }
  .nav-links a {
    font-size: 12px;
    padding: 2px;
    border-radius: 4px;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex !important;
  }

  .customwidth30,
  .customwidth60,
  .customwidth40 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sectionContent
  {
    flex-direction: column;
  }
}
.Everything
{
  padding-top:30px;
}

.section {
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
  scroll-margin-top: 75px;
  padding-left: 10%;
  padding-right: 10%;
}

.sectionTop {
  padding-top: 20px;
  padding-bottom: 20px;
}

.sectionName {
  color: #ffffff;
  text-align: center;
  align-self: center;
  font-size: 2rem;
  padding: 20px;
}

.subSectionName {
  align-self: center;
  font-size: 2rem;
}

.div{
  display:flex;
  margin:wrap;
}

.sectionContent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.sectionGallery {
  align-content: center;
  background-color: #ff0000;
}

.half {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.customwidth40
{
  flex:0 0 40ch;
}

.customwidth60
{
  flex: 0 0 60ch;
}

.customwidth30
{
  flex: 0 0 30ch;
}

.left {
  background: #f5f5f500;
}

.right {
  background: #dddddd00;
}

.tinyPadding
{
  padding-top: 20px;
  padding-bottom: 20px;
}

.TextBig1
{
  color: #ffffff;
  font-size: 2.5rem;
}

.TextBig2
{
  color: #ffffff;
  display:block;
  font-size: 1.6rem;
}

.sectiondivider {
  width: 100%;
  height: 5px;
  padding:10px auto;
  margin-bottom: 20px;
  background: #ff9900;
}

.subDivider {
  width: 80%;
  align-self: center;
  height: 5px;
  padding:10px auto;
  margin-bottom: 50px;
  background: #ff9900;
}

.textElement {
  width: auto;
  height: auto;

  box-sizing: border-box;
  text-align:left;
  color: #ffffff;
  overflow-wrap: anywhere; /* breaks long words */
  word-break: break-word;

  line-height: 1.5;
}

.SectionWrapper
{
  background: #ffd90000;
}

.image-container {
  text-align: center;
  justify-content: center; /* horizontal center */
  padding:25px;
}

.image-container img {
  width:100%;
  min-width: 250px;
  max-width: 500px;
  height:100%;
  max-height: 500px;
  display:flex;
  margin: 0 auto;
  border-radius: 20px;     /* curved borders */
  align-content:center;
}

.image-container-logo {
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.image-container-logo img {
  display: block;
  height: 100%;
  max-height: 54px;
  width: auto;
  object-fit: contain;
}
.image-margin
{
  max-height:400px;
}
.image-top-padding
{
  padding-top:45px;
}

.image-container-alignedLeft
{
  align-self: center;
}

.image-container .description {
  margin-top: 8px;      /* spacing between image and text */
  font-size: 14px;
  color: #ffffff;
  
}

.subsectionvertical
{
  height:100%;
  align-content:flex-start;
  justify-items:flex-start;
  padding-left:10px;
  padding-right:10px;
}

.gallery-grid {
  max-width: 100%;
  display: grid;
  gap: 16px;
  padding: 16px;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.image-item {
  text-align: center;      /* centers image & description */
}

.image-item img {
  width: 100%;
  border-radius: 10px;     /* curved corners */
  display: block;           /* forces image on its own line */
}

.image-item .description {
  margin-top: 8px;
  font-size: 14px;
  color: #ffffff;
}

/* Lightbox hidden by default */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* Show lightbox when targeted */
.lightbox:target {
  display: flex;
}

/* Full-screen clickable overlay to close */
.lightbox .overlay {
  position: absolute;
  align-self:center;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  cursor: pointer;
}

/* Image on top of overlay */
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  position: relative; /* on top of overlay */
  pointer-events: none; /* lets clicks pass through */
  transition: transform 0.3s;
}

.lightbox img:hover {
  transform: scale(1.05);
  
}

.compare-container {
  position: relative;
  width: 60%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.compare-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.after-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}

.after-wrapper img {
  position: absolute;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100%;

  object-fit: cover;
  object-position: left center;
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
  z-index: 6;

  cursor: ew-resize;
  background: rgba(255,255,255,0.95);

  box-shadow:
    0 0 0 2px rgba(0,0,0,0.4),
    0 0 18px rgba(255,255,255,0.6);
}

/* inner grip */
.divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;

  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  border-radius: 2px;
}

/* remove the floating button feel */
.divider::after {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  opacity: 0%;
  cursor: ew-resize;
  z-index: 10;
}

a {
  text-decoration: none;
}

.sectionCentered
{
  align-content: center;
}