/* Global Styles */
html {
  scroll-padding-top: 90px; /* Adjust this value to match your header height */
  scroll-behavior: smooth; /* Optional: Adds smooth scrolling */
}

body {
  background-image: url(../Img/Entrance/WebsiteBackground.webp);
  background-attachment: fixed; /* Enables parallax effect */
  background-position: center; /* Centers the image */
}

/* Layout Containers */
.main-content-container {
  padding: 1rem;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr minmax(0, 4fr) 1fr; /* Ads on left/right, content in center */
  gap: 1rem;
}

.side-ad {
  display: block;
  text-align: center;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
  min-width: 120px;
}

/********************** Useful Classes ****************************/
.white {
  color: white;
}
/********************** Video Embed ****************************/
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrapper[data-ratio="4:3"] {
  padding-top: 75%;
}
.video-wrapper[data-ratio="1:1"] {
  padding-top: 100%;
}
.video-wrapper[data-ratio="9:16"] {
  padding-top: 177.78%;
}

/********************** Main Content *****************************/
.main-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Intro Section */
section.intro {
  margin: 4% 0%;
  border-radius: 8px;
  padding: 1.5rem;
}

section.intro h1 {
  color: black;
  margin-top: 0;
  font-size: 2.3rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.69px;
  word-break: keep-all;
}

section.intro p,
section.intro ul {
  color: rgb(0, 0, 0);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.66px;
  margin-top: 1rem;
}

section.intro img {
  margin-top: 1rem;
}

section.intro a:link {
  color: #00ffff;
}

section.intro a:visited {
  color: #4169e1;
}

section.intro ul {
  list-style-type: square;
  margin-left: 1rem;
}

/* Articles Section */
.articles-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article,
.article2,
.article3 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article {
  background-color: var(--body-color);
  border: 1px solid var(--first-color-lighten);
  padding: 0.5rem;
  color: var(--body-text-color);
}

.article2 {
  background-color: var(--article2-background-color);
  border: 5px solid var(--article2-border-color);
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1.5rem;
}

.article3 {
  background-color: #fc9897;
  border: 5px solid var(--article3-border-color);
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Right Container Variations */
.right-container,
.right-container2,
.right-container3,
.right-container4,
.pic50,
.pic25 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  justify-self: center;
  width: auto;
  height: auto;
  object-fit: contain;
  align-self: center;
}

.right-container ul,
.right-container2 ul,
.right-container3 ul {
  margin-top: 0rem;
  padding-top: 0rem;
}

.right-container {
  max-width: 30%;
}

.right-container2 {
  max-width: 40%;
}

.right-container3 {
  max-width: 50%;
}

.right-container4 {
  max-width: 80%;
}

.pic50 {
  max-width: 45%;
}

/* Sections and Layout Adjustments */
.article-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.article-container .left-container {
  flex: 1;
}

.left-container img {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.left-container h1,
.left-container h2,
.left-container h3,
.left-container h4,
.left-container h5,
.left-container h6 {
  color: var(--header-color);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.69px;
  word-break: keep-all;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.left-container p,
.right-container3 p,
.right-container2 p,
.right-container p {
  margin-bottom: 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.66px;
}

.left-container ul {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.66px;
  margin-left: 3rem;
  list-style-type: square;
  margin-bottom: 1rem;
}

.left-container ol {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.66px;
  margin-left: 1rem;
  list-style: none;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.25em;
}

.left-container ol li {
  margin-bottom: 1em; /* or whatever value you want */
}

.left-container a {
  text-decoration: underline;
}

.index {
  font-size: larger;
  margin-top: 1rem;
  margin-bottom: 0rem;
  color: inherit;
  text-align: left;
}

p.list-header {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.66px;
  margin-top: 0.5rem;
}

h1.sub-head,
h2.sub-head,
h3.sub-head,
h4.sub-head,
h5.sub-head,
h6.sub-head {
  font-size: larger;
  color: var(--subhead-color);
  margin-bottom: 0rem;
}

.margin-left {
  margin-left: none;
}

.warning {
  color: rgb(160, 2, 2);
  font-weight: bold; /* Optional: Make it bold to stand out */
}

.mythconception .address {
  align-self: baseline;
  margin-top: 0rem;
  margin-bottom: 0rem;
  padding: 0;
  text-align: left;
}
.right-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.article-container img {
  margin-bottom: 1rem;
}

p.image-description {
  font-size: medium;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}

/* MythConception and Just-To-Be-Safe Sections */
.article-container .mythconception {
  flex: 1;
}

.mythconception {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mythconception h2,
.just-to-be-safe h2 {
  width: 100%;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.mythconception h2 {
  background-image: linear-gradient(to right, #00449f, #77a5c7);
}

.mythconception p {
  color: white;
  margin-bottom: 1rem;
}

.mythconception img {
  margin-top: 1rem;
}

.mythconception a {
  color: #cbe7ff;
}

.just-to-be-safe h2 {
  background-image: linear-gradient(to right, #9b0101, #ff1514);
}

/* Miscellaneous Styles */
.sig {
  margin-top: 0.6rem;
}

.mobile-ad {
  display: none;
}

.video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-pic img {
  max-width: 500px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media screen and (min-width: 1118px) {
  h1.sub-head,
  h2.sub-head,
  h3.sub-head,
  h4.sub-head,
  h5.sub-head,
  h6.sub-head {
    font-size: larger;
    align-self: baseline;
  }
  .pic25 {
    max-width: 23%;
  }

  .article {
    padding: 1.5rem;
  }

  .left-container ol {
    margin-left: 0rem;
  }

  .margin-left {
    margin-left: 1rem;
  }
}

@media screen and (max-width: 1118px) {
  /* Grid Adjustments */
  .grid-container {
    grid-template-columns: 1fr;
  }

  .left-container {
    display: flex;
    flex-direction: column;
  }

  .left-container h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-align: center;
  }

  p.p-margin-top {
    margin-top: 1rem;
  }

  p.image-description {
    align-self: center;
  }

  .mythconception {
    display: flex;
    flex-direction: column;
  }

  .mythconception img {
    align-self: center;
  }

  .side-ad {
    display: none;
  }

  .mobile-ad {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
  }

  .article-container {
    flex-direction: column;
  }

  .right-container,
  .right-container2,
  .right-container3,
  .right-container4 {
    flex: 0 0 100%;
    height: auto;
    margin-top: 1rem;
  }

  .right-container {
    max-width: 50%;
  }

  .right-container2 {
    max-width: 70%;
    margin-top: 0;
  }

  .right-container3 {
    max-width: 80%;
    margin-top: 2rem;
  }
  .right-container4 {
    max-width: 100%;
    margin-top: none;
  }
  .pic50 {
    max-width: 100%;
  }
  .pic25 {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  section.intro h1 {
    font-size: 2rem;
    line-height: 2.1875rem;
  }

  section.intro p {
    font-size: medium;
  }

  .index {
    font-size: larger;
  }

  .left-container p {
    font-size: medium;
  }

  .left-container h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: x-large;
    line-height: 1.5rem;
    text-align: center;
  }

  .right-container,
  .right-container2,
  .right-container3,
  .pic50,
  .pic25 {
    max-width: 100%;
  }
}

/* Ensure images are responsive */
table img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Styles */
@media screen and (max-width: 600px) {
  tbody td:last-child {
    text-align: center; /* Center-align the image */
  }

  tbody td:last-child:before {
    content: "Image";
    font-weight: bold;
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
  }
}

.responsive-card-container {
  width: 100%;
  margin: 1rem 0;
}

.chart-heading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  color: white;
  background-image: linear-gradient(to right, #00449f, #77a5c7);
}

/* Card Layout */
.wood-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wood-card h3 {
  background-color: #00449f;
  color: white;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.wood-info {
  flex: 2;
  margin-right: 1rem;
}

.wood-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.wood-image {
  flex: 1;
  text-align: center;
}

.wood-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Responsive Behavior */
@media screen and (max-width: 600px) {
  .wood-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .wood-image {
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 1118px) and (min-width: 600px) {
  .video-wrapper {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}

/*****************************  calculator **************************************/
.wc-page {
  width: 100%;
}

.wc-page p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.wc-unitbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.wc-unitbar__label {
  font-weight: 700;
}

.wc-unitbar__button,
.wc-button {
  appearance: none;
  border: 1px solid #888;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.wc-unitbar__button {
  padding: 8px 12px;
}

.wc-unitbar__button:hover,
.wc-button:hover {
  background: #f3f3f3;
}

.wc-unitbar__button--active {
  outline: 2px solid currentColor;
  outline-offset: 0;
}

.wc-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.wc-card__title {
  color: var(--header-color);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.69px;
  word-break: keep-all;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.wc-card__text {
  margin: 0 0 16px;
  line-height: 1.5;
}

.wc-formgrid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.wc-formgrid--2col {
  grid-template-columns: 1fr;
}

.wc-formgrid--3col {
  grid-template-columns: 1fr;
}

.wc-formgrid--4col {
  grid-template-columns: 1fr;
}

@media screen and (min-width: 600px) {
  .wc-formgrid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wc-formgrid--3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wc-formgrid--4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1118px) {
  .wc-card {
    max-width: 960px;
  }
}

.wc-formfield {
  display: flex;
  flex-direction: column;
}

.wc-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.wc-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.35em;

  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  box-sizing: border-box;
  flex-shrink: 0;
  color: var(--header-color);
}

.wc-help__text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 240px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
}

.wc-help:hover .wc-help__text,
.wc-help:focus .wc-help__text,
.wc-help:focus-within .wc-help__text {
  opacity: 1;
  visibility: visible;
}

.wc-help__text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}

.wc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #888;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: inherit;
  line-height: 1.2;
}

.wc-message {
  min-height: 1.25em;
  margin-top: 10px;
}

.wc-message--error {
  color: darkred;
}

.wc-results {
  margin-top: 12px;
}

.wc-results__row {
  margin: 0 0 8px;
}

.wc-results__label {
  font-weight: 700;
}

.wc-results__value {
  font-weight: 400;
}
