/* fonts */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

/* dictionary */

:root{

  --logored:#c32033;
  --darkred:#b12222;
  --navbar:#e2e7ed;
  --lightblue: rgb(144, 165, 186);  
  --silverblue: #b1c6d9;
  --darkblue: rgb(110, 117, 129);
  --darkblue2:#304769ed;
  --indigo:#171625;
  --purple: #0f0024;
  --green: #295b39;
  --grey: rgb(200, 210, 210);
  --darkgrey: rgb(143, 156, 172);
  --darkgrey2: rgb(117, 120, 125);
  --white:hsla(192, 10%, 90%, 0.979);

  --main-bg-color: linear-gradient(
   to bottom,
   var(--navbar), 
   var(--silverblue));

  --reverse-bg-color: linear-gradient(
   to top, 
   var(--silverblue), 
   white);

  --gradient: linear-gradient(
    to top,
    rgba(243, 243, 243, 0.76),
    var(--navbar)
  );
  --sidegradient: linear-gradient(
    to left,
    var(--navbar),
    var(--navbar)
  );

  --lightgradient: linear-gradient(
    to top,
    var(--grey),
    var(--darkgrey)
  );

  --darkgradient: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.804),
    rgba(0, 0, 0, 0.409)
  );

  
  --headerfont: 2.2rem;
  --largefont: 2rem;
  --mediumfont: 1.4rem;
  --smallfont: 1.25rem;
  --textfont: 1rem;

  font-family: 'Noto Serif JP', serif;
  font-family: 'Titillium Web', sans-serif;
}

/* General */

* {
  box-sizing: border-box; /*accounts for margin and padding in sizing, easier to size */
  margin: 0;
  padding: 0;
}

html{
  overflow: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: 'Titillium Web', sans-serif;
  line-height: 1.62; /* golden ratio */
}

main{
  border-top: var(--silverblue) solid 2px;
}

ul {
  list-style-type: none; /* takes bullet points out */
}

h2, h3{
  text-align: center;
  font-weight: 500;
}

h4{
  font-size: var(--textfont);
  text-align: center;
  font-weight: 300;
}

h5{
  padding: 2rem;
  text-align: center;
}

img {
  width: 100%; /*keep images inside box container*/
}

a{
  text-decoration: none; /* takes underline out*/
}

a:focus{
  outline: var(--darkblue);
}

a:visited{
  color: inherit; /* return visited a tag to initial color */
}

a:active{  
  /* emulates pressing of button in 3d space */
  top: 1px;
}

a[href^="tel"] {
  color: inherit; /* inherit text color of parent element. */
  text-decoration: none;
}

button{
  background: none;
  border: none;
}

.page-background{
  background-color: var(--navbar);
}

.page-header{
  padding-top: 5rem;
  padding-bottom: 4rem;
  background: var(--navbar);
}

.page-header h2{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  font-size: var(--headerfont);
  font-weight: 600;
  color: var(--darkblue2);
  padding: 2rem;
  text-align: center;
  margin: auto;
  width: fit-content;
  /* border-bottom: var(--silverblue) solid 2px; */
}

.page-header h2::after{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 25%;
  content: '.';
  color: transparent;
  background: var(--silverblue);
  height: 2px;
}

/* Navigation */

#navbar {
  display: flex;
  position: sticky;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: var(--navbar);
  color:hsla(192, 10%, 90%, 0.979);
  height: 4rem;
  margin-right: auto;
  top: 0;
  z-index: 1111;
}

#logo{
  width: 10em;
  position: relative;
  top: 2.5em;
}

.navlinks{
  display: flex;
  position: relative;
  width: 100%;
  right: 0;
  margin-left: auto;
}

.navlinks ul {
  position: relative;
  display: flex; /*align navbar items in horizontal row */
  width: 100%;
  flex: 1;
  align-items: center;
}

.navlinks ul li{
  flex: 1;
  position: relative;
}

.navlinks-menu > li > a{
  display: flex;
  color: var(--darkblue);
  font-weight: 700;
  padding: 1rem;
  height: 80%;
  position: relative;
  justify-content: center;
  font-size: var(--textfont);
}
  
.navlinks-menu > li > a:hover {
  color: var(--logored);
}
.navlinks ul li > a:hover::after{
  width: 20%;
}
.navlinks ul > li:hover .dropdown-nav{
  display: block;
  visibility: visible;
  opacity: 1;
}

.navlinks-menu > li > a::after{
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  margin: auto;
  width: 0%;
  content: '.';
  color: transparent;
  background: var(--darkblue);
  height: 2px;
}

nav a,
nav a::after,
nav a::before {
  transition: all .4s;
}

.nav-border{
  border-right: var(--silverblue) solid 2px;
}

#logo-nav-outer{
  display: none;
}

.dropdown-nav{
  position: absolute;
  padding: 1em 0;
  left: 0;
  right: 0;
  margin-top: .3em;
  height: fit-content;
  background: var(--navbar);
  opacity: 0;
  visibility: hidden;
  transition: 420ms all ease-in-out;
  border-radius: 0 0 .7em .7em;
  z-index: 9999;
}

.dropdown-nav ul{
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  min-width: 11em;
  margin: auto;
  color: var(--darkblue2);
  font-weight: 700;
  gap: 3em;
  padding: 1em .5em;
  text-align: center;
}

.navlinks li:first-child .dropdown-nav ul{
  padding-left: 1.5em;
  /* add extra spacing on first dropdown navigation menu */
}

.dropdown-nav ul li{
  position: relative;
  margin: auto;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--darkblue);
  border-radius: 5%;
  width: fit-content;
  transition: border-bottom 200ms ease-in-out;
}

.dropdown-nav ul li:hover{
  border-bottom: var(--darkblue) solid 7px;
}

.dropdown-nav ul li:last-child{
  font-weight: 700;
}

.dropdown-nav ul li a{
  color: var(--darkblue);
}

.navlinks .active-nav{
  color: var(--darkred);
  font-size: 1.03em;
}

/* Index */

#home{
  background-color: var(--navbar);
}

#home-img{
  padding-top: 1rem;
  display: flex;
  width: 70%;
  margin: 4rem auto;
  border-radius: 2px;
}

#main-outer{
  margin: 5rem auto 0;
  height: fit-content;
}

.main-inner{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 7rem;
  gap: 7rem; 
  background: rgba(255, 255, 255, 0.7);
}

.main-inner:nth-child(2n+1) h3,
.main-inner:nth-child(2n+1) p{
  text-align: center;
  margin: auto;
}

.main-inner:nth-child(2n+1) .main-inner-select h3 a::after{
  /* center seperating line for header and button home page */
  text-align: center;
  margin: auto;
}

.main-inner img{
  margin: auto;
  min-height: 10rem;
  max-height: 35rem;
  max-width: 45rem;
  border-radius: 4px;
  transition: all 275ms ease-in-out;
}

.main-inner img:hover{
  transform: scale(1.07);;
}

.main-inner article:not(.link){
  max-height: 100%;
  padding: 2em;
  min-width: 20em;
  max-width: 56ch;
  box-shadow: -2px 2px 1px rgba(0, 0, 11, 0.3);
}

.main-inner:nth-child(2n+1) article:not(.link){
  box-shadow: 2px 2px 1px rgba(0, 0, 11, 0.3);
}

.main-inner-select{
  border-radius: 4px 11px;
}

.main-inner-select a{
  font-size: var(--largefont);
  color: var(--darkblue2);
}

.main-inner-select p{
  padding: 2rem 0;
  font-size: var(--mediumfont);
  color: var(--darkblue2);
  max-width: 30ch;
}

.main-inner-select .main-link{
  display: flex;
}

.main-inner-select .main-link a{
  background: var(--logored);
  padding: 1rem;
  color: var(--navbar);
  font-style: italic;
  font-weight: 500;
  font-size: var(--textfont);
  border-radius: 4px;
  transition: all 150ms ease-in; 
}

.main-inner-select:nth-child(2n) .main-link{
  /* center every other link button on home page */
  justify-content: center;
}

.main-inner-select a:hover{
  transform: scale(1.01) translateX(.2rem);
}

.main-inner-select .main-link a:hover{
  color: var(--navbar);
  background: var(--purple);
}

.main-inner-select h3{
  text-align: start;
  position: relative;
  transition: all 200ms ease-out;
  /* border-bottom: var(--silverblue) solid 2px; */
}

.main-inner-select h3 a{
  position: relative;
}

.main-inner-select h3 a::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5rem;
  bottom: 0;
  height: 2px;
  background: var(--darkblue2);
  width: 25%;
}

.main-inner:first-child{
  background: var(--darkblue);
}

.main-inner:nth-child(5) .main-inner-select p,
.main-inner:nth-child(6) .main-inner-select p{
  /* adjust spacing for text descriptions home page */
  padding: 3em 0 2em;
}

.main-inner-select h3:hover{
  transform: scale(1.02);
}

#main-header-outer{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4em;
  color: black;
  position: relative;
  top: 4rem;
  padding: 2em;
  height: fit-content;
}

#main-header-outer h1{
  position: relative;
  color: var(--darkblue2);
  font-weight: 600;
  text-align: center;
  font-size: var(--headerfont);
  /* offset x ~ offset y ~ blur radius */
  padding: 1rem;
  transition: font-size 2s ease-in-out;
}

h1::after{
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  margin: auto;
  width: 34%;
  content: '.';
  color: transparent;
  background: var(--silverblue);
  height: 2px;
}

.main-header-shape{
  position: relative;
  display: flex;
  width: 20em;
  background-color: var(--darkred);
	height: 0;
  font-size: .7em;
  line-height: 1.6;
  border: 1px solid white;
}

.main-header-shape h2{
  color: var(--navbar);
  width: fit-content;
  height: fit-content;
  text-shadow: -1px 1px 1px rgba(0, 0, 0, .3);
  transition: transform 200ms ease-in-out;
}

#flag img:hover{
  transform: scale(1.04);
}

#flag{
  position: absolute;
  top: 4.4em;
  left: 57%;
  width: 20%;
}

#flag img{
  border-radius: 3px;
  transition: transform 100ms ease-in-out;
  box-shadow: 1px 1px 1px rgba(0, 0, 11, 0.2);
}

.shape1{
  border-radius: .4em 0 0 .2em;
  /* single sided trapezoid using border */
  border-color: var(--darkred) var(--navbar) transparent transparent;
  /* border-color: var(--logored) var(--navbar) transparent transparent; */
  border-width: 8em 5em 0 2em; 
}

.shape1 h2{
  position: absolute;
  bottom: .2rem;
  text-align: start;
  padding-left: 2%;
  font-weight: 600;
}

.shape2{
  border-radius: 0 .7em .2em 0;
  border-color: var(--darkred) transparent transparent var(--navbar);
  border-width: 0 0 8em 5em; /* top ~ right ~ bottom ~ left */
}

.shape2 h2{
  position: absolute;
  top: 1rem;
  max-width: 7em;
  text-align: start;
  padding-left: .8rem;
  font-weight: 600;
}

.main-select:hover{
  transform: scale(1.04);
  cursor: pointer;
  background-color: var(--logored);
}

.main-select h3{
  font-style: italic;
}

#main-product-img{
  width: 100%;
  margin: auto;
  padding: 5rem;
}

.products-main{
  /* align 3 product images */
  display: flex;
  max-width: 38em;
}

/* Finishing Products */

#finishing-products-main{
  display: flex;
}

#products-nav{
  width: 22%;
  z-index: 2;
  background: var(--darkgrey2);
}

#products-nav ul{
  position: sticky;
  top: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2rem;
  gap: 2.5rem;
  margin-top: 2rem;
}

#products-nav a{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: calc(70vh/7);
  max-height: 5em;
  padding: 1em;
  color: black;
  font-weight: 700;
  border-radius: 0 11px 11px 0;
  background: var(--navbar);
}

#products-nav a:hover{
  background: var(--navbar);
  color: var(--logored);
}

#finishing-products{
  width: 100%;
  border-left: var(--navbar) solid 2px;
}

.product-section { /* each product section on nav*/
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: fit-content;
}

.product-section.pdf{
  display: block;
  background: white;
}

.product-section.pdf img{
  display: block;
  position: relative;
  /* width: 80%; */
  margin: auto;
}

.product-section > header{
  display: flex;
  flex-direction: column;
  position: relative;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  border-bottom: rgba(0, 0, 0, 0.285) solid 1.5px;
  width: 100%;
  gap: 5em;
  background: var(--darkred);
}

.product-section > header > h2{
  /* padding-left: 5rem; */
  font-size: var(--headerfont);
  font-weight: 700;
  color: var(--navbar);
  border-bottom: var(--navbar) double 4px;
  padding-bottom: .4em;
  text-shadow:-1px 1px 3px rgba(0, 0, 0, .7);
}

.product-section > header > h3{
  font-size: var(--mediumfont);
  font-weight: 500;
  color: var(--darkgrey);
}

.product{
  /* product's individual section */
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: var(--navbar) solid 2px;
  width: 100%;
  padding: 2.5em 0;
}

.product:nth-child(even){
  background: var(--grey);
}

.product:nth-child(odd){
  background: var(--navbar);
}

.product-img{
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  margin: auto;
  gap: 1.5em;
}

.product-img img{
  max-width: 15rem;
  margin: auto;
  transition: all 250ms ease-in-out;
}

.product-img img:hover{
  transform: scale(1.15) translate(5px);
}

.product-img img:nth-child(even) {
  scale: 1.25;
}

.product-img.stc{
  transform: scale(1.2);
}

.product-inner{
  display: flex;
  flex: .7;
  height: 20em;
  margin: 0 auto;
  background: var(--navbar);
  border: var(--navbar) solid 2px;
  border-radius: 2px 11px 2px 7px;
}

.product:nth-child(odd) .product-inner{
  background: var(--grey);
}

.product-description{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  flex-basis: 34%;
  padding: 1rem 2rem;
  color: var(--purple);
  border-right: var(--lightblue) solid 2px;
}

.product-description ul{
  position: relative;
  padding-left: 1rem;
  list-style-type: circle;
  border-radius: 4px;
  margin: .5rem 0;
  font-size: var(--smallfont);
}

.product-description ul li{
  font-weight: 600;
  width: 25ch;
  font-size: var(--textfont);
  font-style: italic;
  margin: 1.2rem 0;
}

.product-description ul li:last-child{
  border: none;
}

.product-description h3{
  padding: .7rem;
  padding-left: 0;
  text-align: start;
  border-bottom: var(--darkblue) solid 2px;
  width: fit-content;
  font-weight: 600;
  font-size: var(--mediumfont);
}

.product-info{
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 1em 2em;
}

.product-table{
  position: relative;
  display: grid;
  justify-content: center;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, 8em);
  width: fit-content;
  background: var(--darkgrey2);
  color: var(--navbar);
  padding: .7em 1em;
  border-radius: 2px;
  margin: auto;
  text-align: center;
  font-size: .9em;
  font-weight: 600;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.548);
}

.product-table:not(.table-twocol) .product-table-item:nth-child(3n-1){
  border-right: var(--navbar) solid 1px;
  border-left: var(--navbar) solid 1px;
  text-align: center;
}

.product-table .product-table-item:last-child,
.product-table .product-table-item:nth-last-child(2),
.product-table-item:nth-last-child(3){
  /* remove border from bottom of table */
  border-bottom: none;
}

.product-table:not(.table-twocol) .product-table-item:nth-child(3n-2){
  text-align: start;
}

.product-table-item{
  padding: .5em 0;
  border-bottom: var(--navbar) solid 1px;
}

.product-buttons{
  display: flex;
  gap: 1em;
  min-width: 18em;
  /* width: 60%; */
  max-width: 30em;
  margin: 2rem auto 0;
}

.product-button{
  /* display: flex; */
  align-items: center;
  width: 100%;
  transition: transform 250ms ease-out;
}

.product-button:last-child{
  justify-content: end;
}

.product-button button{
  display: flex;
  width: 100%;
  height: 3em;
  border-radius: 1em;
  text-align: center;
  color: var(--navbar);
}

.product-button:hover{
  transform: scale(1.05) translateX(-2px);
}

.product-button:first-child button{
  background: var(--darkred);
}

.product-button:last-child button{
  background: var(--darkred);
}

.product-button button a{
  display: flex;
  position: relative;
  left: .5rem;
  justify-content: center;
  align-items: center;
  color: var(--navbar);
  width: 100%;
  height: 100%;
}

.product-button img{
  display: flex;
  position: relative;
  width: 2rem;
  margin-left: auto;
  right: 0.5em;
}

.product-table.table-twocol{
  grid-template-columns: repeat(2, 10em);
}

.product-table.table-twocol .product-table-item:nth-child(2n-1){
  text-align: start;
}

.table-twocol .product-table-item{
  padding-left: .5em;
  border-bottom: var(--navbar) solid 1px;
  text-align: center;
}

.table-twocol .product-table-item:nth-child(2n){
  padding-left: .5em;
  border-left: var(--navbar) solid 1px;
  text-align: center;
}

.table-twocol .product-table-item:nth-last-child(2), 
.table-twocol .product-table-item:last-child{
  border-bottom: none;
}

.product-table-item:last-child,
.product-table-item:nth-last-child(2){
  /* remove border from bottom of table */
  border-bottom: var(--navbar) solid 1px;
}

#products-nav .product-nav.product-nav-active{
  background: var(--darkred);
  color: var(--navbar);
}

#products-nav .product-nav:hover{
  background: var(--darkred);
  color: var(--navbar);
}

#product-catalog-download{
  position: relative;
  margin: 3rem auto 0;
  width: 15rem;
  background-color: var(--darkred);
  border-radius: 7px;
}

#product-catalog-download a{
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: var(--navbar);
}

#product-catalog-download.product-button{
   display: flex;
}

/* Cornerbeads */

.product-pdf{
  padding: 2.5rem;
}

#bullnose .product-pdf{
  padding: 7rem;
}

#flat-strap .product-pdf,
#furring .product-pdf:nth-child(2){
  /* increase spacing for whitespace on flat strap & furring image sections */
  padding-top: 5rem;
}

#furring .product-pdf:nth-child(3){
  /* remove spacing between furring channels */
  padding-top: 0;
}

#products-nav.cornerbeads-nav ul{
  padding: 1em 2em;
}

#products-nav.cornerbeads-nav a{
  height: calc(60vh/7);
}

#cornerbeads-downloads{
  display: flex;
  margin: auto;
  width: fit-content;
  gap: 0 7rem;
}

#paper-faced .product-pdf{
  padding: 10rem;
}

#bare-metal .product-pdf:nth-of-type(1),
#bullnose .product-pdf:nth-of-type(1){
  /* reduce space between bare metal pdf images */
  padding-bottom: 1em;
}

/* Accessories */

.accessories-main{
  height: fit-content;
}

.accessories{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0 7rem;
  background: var(--diaggradient3);
}

.accessories article{
  display: flex;
  margin: auto;
  width: 20rem;
  height: 7rem;
  border-radius: 7px 0 4em 0;
  border: rgba(171, 171, 171, 0.796) solid 2px;
  background: var(--navbar);
  box-shadow: 0 .7rem 2rem rgba(0, 0, 0, 0.199);
  transition: all 250ms ease-in-out;
}

.accessories article:hover{
  transform: scale(1.03);
}

.accessories article a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--darkblue);
  font-size: var(--smallfont);
  font-weight: 700;
}

.accessories article:nth-child(2){
  border-radius: 0 7px 0 4em;
  background: rgba(0, 0, 0, 0.541);
}

.accessories article:nth-child(2) a{
  color: white;
}

#mid{
  /* match dimensions of product photo */
  scale: .95;
}

/* Industry Links */

#industry{
  background: var(--darkblue);
}

#industry section{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; 
  height: 65vh;
  margin: auto;
  border-bottom: rgba(255, 255, 255, 0.77) solid 2px;
}

#industry section article{
  max-height: 100%;
}

/* target header and paragraph box */
#industry section article:not(.link){ 
  max-height: 100%;
  padding: 4rem;
  max-width: 70ch;
}

#industry section .link{
  display: flex;
  justify-content: center;
  flex-basis: 35%; 
}

#industry section article a{
  color: var(--navbar);
}

#industry section article p{
  font-size: var(--smallfont);
  font-weight: 400;
  margin: 2rem auto 0;
  color: var(--navbar);
}

#industry section article img{
  display: flex;
  align-items: center;
  margin: auto;
  height: 20vh;
  max-height: 8em;
  max-width: 35em;
  transition: all 250ms ease-in-out;
  border-radius: 4px;
}

#industry section article img:hover
{
  transform: scale(1.08);
}

#industry article h3:hover
{
  transform: scale(1.02);
}

#industry article h3{ 
  font-size: var(--smallfont);
  position: relative;
  transition: all 250ms ease-in-out;
}

#industry article h3 a::after{ 
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navbar);
  width: 22%;
}

#industry article:nth-child(even) h3 a::after{ 
  margin: auto;
}

#industry section:nth-child(3n+1){
  background-color: var(--logored);
  color: var(--navbar);
}

#industry section:nth-child(3n){
  background-color: rgb(255, 255, 255);
  color: var(--darkblue);
}

#industry section:nth-child(3n) a,
#industry section:nth-child(3n) p{
  color: var(--darkblue);
}

#industry section:nth-child(3n) article h3 a::after{
  background: var(--darkblue);
}

#industry section:nth-child(3n+1) a{
  color: var(--navbar);
}

#industry article:nth-child(odd) h3{
  text-align: start;
}

#industry article:nth-child(even) p{
  text-align: center;
}

#industry-links article::before{
  position: absolute;
  left: 0;
  top: -5rem;
  width: 100%;
  font-weight: 300;
  font-size: var(--smallfont);
}

.italic{
  font-style: italic;
}

/* Technical Data */

#tech-data-outer{
  display: flex;
  background: var(--grey);
  height: fit-content;
  padding: 4rem 10rem;
  justify-content: center;
}

#tech-data-nav{
  position: sticky;
  top: 11rem;
  height: fit-content;
  width: 22%;
  max-width: 25em;
  border-radius: 4px;
  box-shadow: -2px 2px 1px rgba(0, 0, 11, 0.3);
}

#tech-data-nav ul{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: var(--grey);
}

#tech-data-nav li{
  margin: auto;
  text-align: center;
  width: 14vw;
  height: 4em;
  border-radius: 2px 4px 22px 2px;
  background: var(--indigo);
  box-shadow: -4px 2px 7px rgba(0, 0, 0, 0.209);
  color: var(--navbar);
  transition: all 250ms ease-out;
}

#tech-data-nav li a{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--navbar);
  border-radius: 2px 4px 22px 2px;
}

#tech-data-nav li:hover{
  transform: scale(1.02);
  background: var(--navbar);
  color: black;
}

#tech-data-nav li a:hover{
  color: black;
}

#tech-data-nav .data-nav-active a{
  background: var(--navbar);
  color: black;
}

.tech-data{
  position: relative;
}

.tech-data-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  /* grid-auto-rows: 7rem; */
  align-items: center;
  justify-content: center;
  background: var(--diaggradient6);
  padding: 2rem;
  width: 38%;
}

.tech-data-list h3{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75%;
  max-width: 20em;
  height: 100%;
  background: var(--indigo);
  border-radius: 2px 2px 11px 11px;
  transition: all 250ms ease-out;
  font-size: var(--smallfont);
  font-weight: 600;
  margin: 2em auto;
  cursor: pointer;
}

.tech-data-list a{
  position: relative;
  transition: all 250ms ease-out;
  width: 100%;
  height: 100%;
}

.tech-data-list a,
.dataHeader h3{
  padding: 1.5em;
  color: var(--navbar);
}

.tech-data-list h3:hover,
.tech-data-list a:hover{
  background: var(--navbar);
  color: black;
}

.dataHeader.hidden .dataItem{
  display: none;
}

.dataItem{
  background-color: var(--indigo);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  width: 75%;
  margin: auto;
  padding: 2em;
  transition: all 250ms ease-in-out;
  border-radius: 2px 2px 3em 3em;
}

.dataItem a{
  background-color: var(--darkgrey);
  width: fit-content;
  text-align: center;
  padding: 1.5em 3em;
  border-radius: 3em;
  margin: 1.5em 0;
  color: black;
  font-weight: 700;
}

.dataItem.active{
  display: flex;
}

/* Contact page */

#contact{
  width: 100vw;
  height: 100vh;
  background: var(--darkred);
  color: var(--navbar);
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact header{
  font-size: var(--headerfont);
  padding-bottom: 1em;
  border-bottom: var(--navbar) solid 2px;
  margin-bottom: 1.5em;
}

.contact-info{
  font-size: var(--smallfont);
  margin: 2rem auto;
}

.contact-info a{
  color: var(--navbar);
  border-bottom: var(--indigo) solid 1px;
  padding-bottom: .2em;
  transition: all 275ms ease-out;
}

.contact-info a:hover{
  transform: scale(1.2);
  border-bottom: var(--navbar) double 7px;
}

/* Footer */

footer{
  background-color: var(--darkred);
  text-align: center;
  font-weight: 300;
  padding: 1em;
  color: var(--navbar);
}

footer ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2.5em 4em;
  margin: 0 auto;
  padding: 2em;
  width: fit-content;
  /* max-width: 38em; */
  border-top: solid 1px black;
  border-bottom: solid 1px black;
  font-size: .9em;
}

footer ul li a{
  color: var(--navbar);
}

footer ul li:hover{
transform: scale(1.02);
}

.footer-item{
  font-size: 1.1em;
  font-weight: 500;
  padding: 2em;
  margin: auto;
}

.footer-item p{
  color: var(--navbar);
  line-height: 2;
}

/* General responsiveness */

@media (min-width: 280px) 
and (max-width: 1500px) 
{

  body,html {
    /* hide navigation when off screen */
    overflow-x: hidden;
    scroll-padding-top: 0;
  }

/*  Navigation  */

  .navlinks ul > li:hover .dropdown-nav{
    display: none;
  }

  #navbar {
    height: 11vh;
  }

  .burger {
    position: fixed; /*keeps hamburger menu locked on right side of screen*/
    right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.7rem;
    height: 1.4rem;
    margin: auto;
    cursor: pointer;
    z-index: 9999;
  }
  
  .burger .bar{
    height: .1rem;
    width: 100%;
    background-color: var(--purple);
    border-radius: 1rem; 
  }
  
  #bar2{
    width: 74%;
    align-self: flex-end;
  }
  
  .logo-wrapper{
    display: flex;
    margin: 1em auto 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    order: -1; /* put logo at top of navbar on mobile */
    height: fit-content;
    width: fit-content;
  }
  
  #logo{
    width: 11vh;
    top: 0;
    order: 1;
  }
  
  #logo-nav-outer{
    width: 100%;
    height: 100%;
    display: flex;
    margin: auto;
    justify-content: center;
  }
  
  #logo-nav{
    width: 15vh;
    margin: auto;
    padding: 1em;
    position: relative;
  }
  
  .navlinks{
    display: flex;
    position: relative;
    width: auto;
    right: 0;
    margin-left: auto;
  }
  
  .navlinks-menu.active{
    transform: translateX(0%);
  }
  
  .navlinks ul{
    position: fixed;
    display: flex;
    flex-direction: column;
    right: 0;
    height: 100vh;
    top: 0;
    width: 100vw;
    padding: 0;
    background: var(--main-bg-color);
    transform: translateX(100%);
    transition: transform 500ms ease-in-out;
  }
  
  .navlinks ul li{
    width: 100%;
    margin: 0 auto;
  }
  
  .navlinks ul li a {
    position: relative;
    color: black;
    width: auto;
    height: 100%;
    align-items: center;
    font-size: var(--smallfont);
  }
  
  .navlinks ul li a::after{
    position: absolute;
    content: '';
    width: 100%;
    bottom: 0;
    height: 4px;
    border-radius: 50%;
    background-color: var(--darkblue2);
    opacity: .5;
  }

  .navlinks-menu li:last-child a::after{
    display: none;
  }
  
  .navlinks .active-nav{
    font-size: var(--smallfont);
  }

  .dropdown-nav{
    display: none;
    pointer-events: none;
  }
  
  .page-header{
    padding-top: 1rem;
    padding-bottom: 3rem;
  }
  
  #flag{
    left: 70%;
  }

  /* Index/Home */

  #home-img{
    margin-bottom: 0;
    width: 100%;
  }

  .main-inner{
    flex-direction: column;
    gap: 4rem 0;
    padding: 2em 1em;
  }

  .main-inner img{
    width: 100%;
  }  

  .main-inner:nth-child(odd) .link{
    /* rearrange html elements for mobile */
    order: 1;
  }

  .main-inner:nth-child(4) h3 a::after{
    /* account for spacing of the separating line between header and paragaph when the header is two lines or more. revisit in future */
    top: 8rem; 
  }

  .main-inner-select{
    width: 40ch;
  }

  .main-inner-select .main-link{
    /* center all buttons mobile */
    justify-content:center;
  }

  .main-inner-select h3,
   .main-inner-select p{
    /* center all headers mobile */
    text-align: center;
    margin: auto;
  }

  .main-inner-select h3 a::after{
    /* center all seperating lines mobile */
    margin: auto;
  }
  
  .main-wrap{
    padding-bottom: 0;
  }
  
  #main-header-outer{
    flex-direction: column;
    top: 2rem;
    max-width: 25em;
    margin: auto;
    padding: 0;
  }

  .main-header-shape{
    position: relative;
    width: 58%;
  }

  .shape1{
    top: 2.5em;
    margin-right: auto;
  }

  .shape2{
    margin-left: auto;
  }

  .shape1 h2{
    margin: auto;
  }

  #flag{
    position: absolute;
    top: 4.5em;
    left: 58%;
    right: 0;
    width: 2.5em;
  }

  /* Finishing Products */

  #finishing-products-main{
    flex-wrap: wrap;
  }

  #finishing-products{
    border: none;
  }

  #products-nav{
    position: relative;
    width: 100%;
    top: 0;
  }

  #products-nav ul{
    margin-top: 0;
    height: 100%;
    padding: 5em;
  }

  .product{
    flex-wrap: wrap;
    padding: 0;
  }

  .product-pdf,
  #paper-faced .product-pdf{
    /* remove space on mobile for pdf pics */
    padding: 3em 1em;
  }

  .product-img{
    transform: scale(.75);
  }

  .product-img.stc{
    transform: scale(1.1);
  }

  .product-section{
    flex-wrap: wrap;
  }

  .product-section > header{
    justify-content: center;
    padding: 3rem 0;
  }

  .product-section > header > h2{
    padding: 0;
    padding-bottom: .4em;
    font-size: 1.75em;
  }

  .product-inner{
    flex-direction: column;
    width: 100%;
    max-width: 25em;
    gap: 0;
    margin: 2rem auto;
    height: auto;
    padding: 2rem;
  }

  .product-description{
    padding: 0;
    border: none;
  }

  .product-img img:hover{
    transform: scale(1.1) translate(0px);
  }

  #product-catalog-download{
    display: none;
  }

  .product:nth-child(2n) .product-description{
    border: none;
  }

  #products-nav.cornerbeads-nav ul{
    /* increase whitespace on page product nav for mobile */
    padding: 4em;
  }

  /* Cornerbeads */

  #cornerbeads-downloads{
    /* re-order accessories buttons for mobile */
    flex-direction: column;
  }

  #products-nav.cornerbeads-nav a{
    height: 4em;
  }

  /* Technical data */

  .tech-data-list{
    width: 100%;
  }

  #tech-data-outer{
    flex-direction: column;
    align-items: center;
    padding: 0;
    padding-top: 2em;
  }

  #tech-data-nav{
    position: relative;
    top: 0;
    width: 82%;
  }

  #tech-data-nav li{
    width: 90%;
  }

  .dataItem{
    border-radius: 0;
    width: 100%;
  }
  
}

/* Responsiveness for tablet */

  @media (min-device-width: 768px) 
  and (max-device-width: 1024px) {

  /* General */
  /* Index */

  /* Finishing Products */

  .product-inner h3{
    /* center product name */
    text-align: center;
    margin: auto;
    padding: .5em 0;
  }


}

 /* Responsiveness for phone */

  @media (min-device-width: 375px) 
      and (max-device-width: 812px) { 
  
  /* General */
  
  header > h2{
    transition: 1s font-size;
    font-size: 2rem;
  }

  header > h3{
    font-size: var(--textfont);
    position: relative;
    padding: 1rem 0 4rem;
  }

  h4{
    font-size: .8rem;
  }

  /* Finishing Products */

  #finishing-products{
    border: none;
  }

  .product{
    flex-wrap: wrap;
    padding: 0;
  }

  .product-inner{
    flex-direction: column;
    width: 100%;
    max-width: 25em;
    gap: 0;
    margin: 2rem auto;
    height: auto;
    padding: 2rem;
  }

  .product-inner h3{
    /* center product name */
    text-align: center;
    margin: auto;
    padding: .5em 0;
  }

  /* Accessories */
  
  #accessories-header{
    padding: 2em;
    padding-top: .5em;
  }

  /* Locations */

  #map-container{
    flex-direction: column-reverse;
  }

  #gmp-map {
    left: 0;
    bottom: 50%;
  }

  #locations-panel {
    width: 100%;
    margin: auto;
  }

  /* Industry Links */

  #industry section{
    flex-direction: column;
    height: fit-content;
    gap: 0;
    padding: 1rem;
  }

  #industry article h3{
    text-align: center;
  }

  #industry section article p{
    width: 100%;
    max-height: fit-content;
  }

  #industry section article img{
    margin: 0 auto 3em;
    padding: 2em;
    max-width: 15em;
  }

  #industry section:nth-child(even) article:first-child{
    order: 2; /* rearrange html so paragaph description is first and logo is second for mobile scrolling */
  }

  /* Footer */

  footer ul{
    font-size: var(--textfont);
    width: 56%;
  }

  .footer-item{
    font-size: 1.1em;
    font-weight: 600;
    padding: 1.5em 0;
    margin: auto;
  }
}