:root {
  --font: Montserrat;
  --heading-font: var(--heading-font);
  --awb-content-font-family: var(--font);
  --fontsize: 16px;
  --col-a-1: #8f1117;
  --col-a-2: #7f0107;
  --col-a-3: #F8DFE0;
  --col-a-4: var(--col-a-1);
  --col-pb-1: var(--col-a-1);
  --col-pb-2: #BB7073;
  --col-b-1: #00BD9D;
  --col-b-2: #8BD7D2;
  --col-t-1: #FFFBFA;
  --col-body: #f3f3f3;
  --col-cont: #f8f8f8;
}

body {
  background: var(--col-body);
  color: #232323;
}

.cookie-banner-content,
.cookie-banner {
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  min-height: 0px;
  bottom: 0px;
  align-items: center;
  margin-bottom: -860px;
}

.show-cookies {
  margin-bottom: 0px;
  max-height: 50vh;
}

.hide-cookies {
  transition: 1s all ease;
}

.cookie-banner-content {
  position: fixed;
}

.cookie-banner .row-item {
  color: #ddd;
  display: flex;
  flex-direction: row;
  flex: 1;
  padding: 40px;
}

.cookie-button {
  padding: 15px;
  margin: 15px;
  background-color: var(--col-a-1);
  color: #ffffff;
  flex: 1;
  border: 2px solid var(--col-a-1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.5s ease;
  font-family: var(--font) !important;
  font-size: var(--fontsize) !important;
}

.cookie-button:hover {
  background-color: #ffffff;
  color: var(--col-a-1);
  border-radius: 8px;
}

.tabrow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  border-bottom: 1px solid gray;
}

.tablabel {
  justify-content: center;
}

.tabrow button {
  background-color: eee;
  float: left;
  border: 1px solid gray;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-family: var(--font) !important;
  font-size: var(--fontsize) !important;
  text-wrap: nowrap;
  margin-bottom: -1px;
}

.tabrow button.open-tab {
  border-bottom: 1px solid var(--col-cont);
  background-color: var(--col-cont);
}

.tabrow button:hover {
  background-color: #ddd;
}

.tab-page {
    background-color: var(--col-cont);
    padding:30px;
    margin-top:-20px;
    flex-direction: column;
    transition:1s;
}

.tab-page-hidden {
    display:none;
}

.calculator {
  width: 90%;
  margin: 20 auto;
}

.address-block {
  font-size: smaller;
}

h4 {
  text-transform: uppercase;
  font-family: var(--heading-font);
}

h1 {
  font-family: var(--heading-font);
  font-size: 40px;
  font-weight: normal;
}

h2 {
  font-family: var(--heading-font);
  font-size: 35px;
  font-weight: normal;
}

h3 {
  font-family: var(--heading-font);
  color: #333333;
  font-size: 30px;
  font-weight: normal;
margin-block-end: 0.2em;
}

.ui-icon {
  width: 30px;
}

.img-logo {
  width: 100%;
  max-width: 30rem;
  max-height: 8rem;
}

.half-panel {
  display: block;
  width: 50%;
}

.header {
  padding: 60px 160px;
  color: #ffffff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 50%;
  min-height: 400px;
  background-color: #1b1b21;
  justify-content: space-between;
}

.header-like {
  padding: 60px;
  color: #ffffff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 50%;
  min-height: 400px;
  background-color: #1b1b21;
  justify-content: space-between;
}

.page-title {
  margin-top: 160px;
}

.header-separator {
  margin: 60px 0px 60px 0px;
  height: 2px;
  width: 100%;
  background-color: #808181;
}

.nav-bar {
  width: 100%;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.header-base {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  min-height: 300px;
}

.page-block {
  text-align: center;
  vertical-align: top;
  display: flex;
  flex-wrap: wrap;
}

.left-align {
  text-align: left;
}

.right-align {
  text-align: right;
}

.header-end-block {
  vertical-align: middle;
  width: 24%;
  display: inline-block;
}

.address-block {
  text-align: center;
  display: flex;
}

body {
  margin: 0px;
  font-family: var(--font) !important;
  font-size: var(--fontsize) !important;
}

.panel-body {
  font-family: var(--font) !important;
  font-size: var(--fontsize) !important;
}

a {
  color: var(--col-a-1);
  text-decoration: underline;
  font-family: var(--heading-font);
  font-size: 18px;
}

.social-links {
  filter: invert(100%);
  flex: 10%;
}

.social-link-button {
  width: 40px;
  heighth: 40px;
}

.footer {
  padding: 40px;
  color: #fff;
  background-color: #222;
}

.footer a {
  color: var(--col-a-1);
  font-family: verdana;
  font-size: 18px;
  text-decoration: underline;
}

.footer a:hover {
  color: var(--col-a-2);
}

.footer-separator {
  margin: 60px 0px 60px 0px;
  height: 3px;
  width: 100%;
  background-color: #808181;
}

.footer-contact {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

.page-block {
  text-align: center;
  vertical-align: top;
  flex: 20%;
}

.page-block:has(.address-block) {
  text-align: center;
  vertical-align: top;
  flex: 60%;
}

.left-align {
  text-align: left;
}

.right-align {
  text-align: right;
}

.title-text {
  display: block;
  margin-top: auto;
}

.page-title-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* pushes children to the bottom */
  min-height: inherit;
  /* or 100% if needed */
}

.address-block {
  text-align: center;
  margin: 0px auto 0px auto;
}

body {
  margin: 0px;
  font-family: var(--font) !important;
  font-size: var(--fontsize) !important;
  font-weight: 300;
}

.shape-size-header{
  font-size: 1.3em;
}

.grade-showcase-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  flex: 1;
}

.grade-showcase {
  padding: 16px;
  background-color: #ddd;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  flex:1;
  transition: all 0.2s;
  text-decoration: none;
  border-radius: 3px;
  text-align: center;
}

.grade-showcase > .highlight {
  font-weight: bold;
  font-size: 18px;
  color: #811;
}

.shape-row {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  flex:1;
}

a.grade-showcase:hover {
  color: #fff;
  background-color: #811;
  transition: all 0.2s;
}

.more-link{
  background-color: #ccc;
  flex:0 0 auto;
}

.panel-body {
  font-family: var(--font) !important;
  font-size: var(--fontsize) !important;
}

.social-links {
  filter: invert(100%);
}

.datasheet-download {
  text-align: center;
}

.product-table {
  width: 80%;
  margin: 10px auto 50px auto;
  border-collapse: collapse;
}

.product-table tbody td {
  padding: 16px;
  border: 1px solid #dcdcdc;
}

.product-table thead th {
  border: 1px solid #dcdcdc;
  padding: 16px 8px;
  font-family: var(--heading-font);
  color: #8f1117;
  font-weight: 100;
}

.product-table tbody tr:nth-child(odd) {
  background-color: #f0f0f0;
}

.product-table tbody tr:nth-child(even) {
  background-color: #e4e4e4;
}

.chemical-table {
  width: 100%;
  margin: 10px auto 50px auto;
  border-collapse: collapse;
}

.chemical-table tbody td {
  padding: 8px;
  border: 1px solid #dcdcdc;
}

.chemical-table thead th {
  border: 1px solid #dcdcdc;
  padding: 8px 4px;
  font-family: var(--heading-font);
  color: #8f1117;
  font-weight: 100;
}

.equivalent-table, .hardness-table {
    font-size: 14px;
}

.datasheet-download {
  text-align: center;
}

.chemical-table tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}

.chemical-table tbody tr:nth-child(odd) {
  background-color: #e4e4e4;
}

.percentage-bar {
    height: 5px;
    width: 100%;
    border-radius: 10px;
    background-color: #ccc;
}

.percentage-bar-bg { 
    width: 100%;
}

.percentage-bar-max { 
    background-color: var(--col-pb-2);
}

.percentage-bar-min { 
    background-color: var(--col-pb-1);
}

.chembox-container {
    position: relative;
    display: flex;
    align-items:center;
    justify-content:center;
    border: 1px solid darkgray;
    width: 2.5em;
    height: 2.5em;
    background-color: var(--col-a-3);
}

.chembox-sym {
  position: absolute;
  color: black;
}

.chembox-num {
  font-size: 10px;
  position: absolute;
  top: 0px;
  left:2px;
  font-weight: bold;
  color: var(--col-pb-1);
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  flex: 1;
  gap: 30px;
  margin: 50px 0px;
  max-width: 500px;
  justify-content: flex-start;
}

.column {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  flex: 1;
  gap: 30px;
  margin: 50px 50px;
  justify-content: flex-start;
}

.product-sidebar-box {
    background-color: var(--col-cont);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
  margin: 20px;
  border-radius: 2px;
  border: 1px dotted #333;
  transition: all 0.2s ease;
}

.product-sidebar-box:hover {
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.5);
}

.red-box, .red-box h3 {
    color: #fff;
    background-color: var(--col-a-1);
}

.red-box .btn-style-dark {
    color: var(--col-t-1);
    background-color: var(--col-a-2);
}

.product-sidebar:hover .red-box .btn-style-dark {
    color: var(--col-a-2);
    background-color: var(--col-a-3);
}

.product-sidebar .red-box .btn-style-dark:hover {
    color: var(--col-a-2);
    background-color: var(--col-t-1);
}

.contact-button-text {
}

.btn-style:hover,
.btn-style-dark:hover {
  box-shadow: inset 0px 3px 5px rgba(255, 255, 255, 0.2), 0px 3px 10px rgba(0, 0, 0, 0.5);
}

.page-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  justify-content: space-evenly;
}

.main-content {
  padding: 40px;
  gap: 20px;
  max-width: 1400px;
  margin: auto;
}

.text-half {
  flex: 2;
  max-width: 60%;
  margin: 5%;
}

.text-half p {
  color: #545454;
}

.img-half {
  flex: 2;
  max-width: 400px;
  margin: 5%;
  /* Allow image to take up natural size */
}

.img-half img {
  max-width: 100%;
  height: auto;
  min-height: 100px;
  object-fit: contain;
}

.p1 {
  font-size: 18px;
}

.phone-link {
  color: grey;
  text-decoration: none;
  font-family: verdana;
}

.btn-style {
  background-color: var(--col-a-1);
  border: 1.5px solid rgba(255, 255, 255, 1);
  text-decoration: none;
  font-size: 20px;
  color: #e5e5e5;
  padding: 14px 15px;
  border-radius: 3px;
  min-width: 120px;
  text-align: center;
  display: inline-block;
  transition: all 0.2s ease-out;
}

.btn-style:hover {
  background-color: var(--col-a-2);
  border: 1.5px solid rgba(105, 105, 105, 1);
  color: var(--col-t-1);
}

.btn-style-dark {
  background-color: var(--col-a-1);
  border: 1.5px solid rgba(205, 205, 205, 1);
  text-decoration: none;
  font-size: 20px;
  color: var(--col-t-1);
  padding: 14px 15px;
  border-radius: 3px;
  min-width: 120px;
  text-align: center;
  display: inline-block;
  transition: all 0.2s ease-out;
}

.btn-style-dark:hover {
  background-color: var(--col-a-2);
  border: 1.5px solid rgba(255, 255, 255, 1);
  color: var(--col-t-1);
}

form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 50px;
  gap: 10px;
  width: 70%;
  max-width: 1200px;
}

.form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 50px;
  gap: 20px;
}

.form-row, form p {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1;
}

.form-input,
.form-field,
.form-label,
form form-input,
form p label {
  flex: 1;
  width: 100%;
  padding: 10px;
  min-width: 100px;
  border-radius: 4px;
}

.form-field:has(ul.errorlist) .form-input {
    border: 3px solid salmon;
}

.form-field:has(ul.errorlist) .form-input:focus {
    background-color: white;
}

.form-field ul.errorlist {
    background-color: red;
    color: white;
    display: flex;
    position: relative;
    justify-items: center;
    overflow: hidden;
    top: -20px;
    padding: 10px 10px 10px 10px;
}

.form-field ul.errorlist li {
    flex:1;
}

.form-field ul.errorlist li::marker {
    content:"";
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-end-block {
  flex-direction: column;
  gap: 10px;
  flex: 20%;
  text-align: center;
}

.row-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 30px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  flex: 1;
}

.row-content {
  flex: 1;
  max-width: 1400px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: auto;
}

.footer-registrations {
  max-width: 200px;
}

* {
  box-sizing: border-box;
}

.container {
  display: flex;
  flex: 1;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 40px;
  gap: 20px;
}

@media (max-width: 768px) {

  .page-block,
  .footer-contact,
  .row,
  .footer-end-block,
  .row-content,
  .grade-showcase,
  .grade-showcase-row {
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    width:100%;
  }

  .shape-row {
    flex: 1;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    width:100%;
  }

  .text-half {
    max-width: 100%;
  }

  .img-half img {
    padding: 0px;
  }

  .footer-registrations {
    width: 50%;
    max-width: 100px;
    height: auto;
    max-height: 100px;
    width: auto;
  }

  .row {
    flex-direction: column-reverse;
  }

  .form-row {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 992px) {

}

@keyframes wiggle {
    0% {
        transform: rotate(10deg) scale(1) translateX(0)
    }

    15% {
        transform: rotate(-10deg) scale(1.05) translateX(1px)
    }

    30% {
        transform: rotate(20deg) scale(1.1) translateX(0)
    }

    45% {
        transform: rotate(-5deg) scale(1.05) translateX(-1px)
    }

    60% {
        transform: rotate(0deg) scale(1) translateX(0)
    }

    to {
        transform: rotate(0deg) scale(1)
    }
}
@keyframes jiggle {
    0% {
        transform: rotate(1deg) scale(1) translateX(0)
    }

    15% {
        transform: rotate(-1deg) scale(1.05) translateX(1px)
    }

    30% {
        transform: rotate(2deg) scale(1.1) translateX(0)
    }

    45% {
        transform: rotate(-0.5deg) scale(1.05) translateX(-1px)
    }

    60% {
        transform: rotate(0deg) scale(1) translateX(0)
    }

    to {
        transform: rotate(0deg) scale(1)
    }
}