html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* in case navigation menu encouters browser issues */
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Mobile First type size using calc and custom properties to adjust via media queires */
/* font sizes (Mobile 12 - 16pt, tablet 15 - 19pt and desktop 16 - 20pt */
:root {
  --base-size: 13px;
  --type-scale: 1.1;
  --newBodyText: calc(var(--base-size) * var(--type-scale));
  --h5: calc(var(--base-size) * var(--type-scale));
  --h4: calc(var(--h5) * var(--type-scale));
  --h3: calc(var(--h5) * var(--type-scale)); /*adjusted */
  --h2: calc(var(--h3) * var(--type-scale));
  --h1: calc(var(--h2) * var(--type-scale));
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Stardos Stencil", cursive;
  font-weight: 700;
  line-height: 2rem;
}
h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

h4 {
  font-size: var(--h4);
}

h5 {
  font-size: var(--h5);
}

p,
li,
input::placeholder,
textarea::placeholder {
  font-size: var(--newBodyText);
  line-height: 1.5rem;
  font-family: "Open Sans", sans-serif;
}
input::placeholder,
textarea::placeholder {
  opacity: 0.8;
}
.list-container li {
  text-shadow: 2px 2px 3px black;
}
small {
  font-size: 12px;
}
@media (min-width: 515px) {
  :root {
    --type-scale: 1.13;
  }
}
@media only screen and (min-width: 800px) {
  :root {
    --type-scale: 1.2;
  }
}
@media only screen and (min-width: 1020px) {
  :root {
    --type-scale: 1.3;
  }
}
/* ------------------  end of font section ---------------------- */

/*  ----------------  Global Navigation Start  ------------------------- */

#navbar {
  background-color: #333; /* Black background color */
  position: fixed; /* Make it stick/fixed */
  top: 0; /* Stay on top */
  width: 100%; /* Full width */
  transition: top 0.3s; /* Transition effect when sliding down (and up) */
}

/* Style the navbar links */
#navbar a {
  float: left;
  margin-top: -2px;
  display: block;
  color: white;
  text-align: center;
  padding: 7px 15px;
  text-decoration: none;
}

#navbar a:hover {
  background-color: #ddd;
  color: black;
}

/*  ----------------  Global Navigation End ------------------------- */

li {
  list-style: none;
}
main {
  min-height: 100%; /* places footer at bottom of screen all screen sizes */
}
.flex {
  display: flex;
  gap: 1rem;
}
.center {
  margin: auto;
  text-align: center;
}
em {
  font-style: normal;
}
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

/* small screens */
.home-intro {
  padding: 30vh 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)),
    url(../images/hero_welder_402.jpg);
  background-blend-mode: multiply;
  color: white;
  text-align: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.home-intro h1,
.home-intro p {
  text-shadow: 2px 2px #0d0c0c;
}
@media only screen and (min-width: 800px) {
  /* large screens */
  .home-intro {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)),
      url(../images/hero_welder_1200.jpg);
  }
}

.tailhook-img {
  margin: auto;
  padding: 0;
  text-align: center;
}
.tailhook-img img {
  width: 300px;
}
figcaption {
  margin: auto;
  text-align: center;
}

@media only screen and (min-width: 900px) {
  /* large screens */
  .home-about {
    display: flex;
    justify-content: space-between;
  }
  .left {
    margin-right: 1em;
  }
}

.skills-description {
  display: none;
}
@media only screen and (min-width: 900px) {
  .skills-description {
    display: block;
  }
}

footer {
  text-align: center;
  background-color: rgb(35, 40, 44);
  color: white;
  padding-bottom: 15px;
}
footer:hover {
  background-color: #000;
}
footer a {
  text-decoration: none;
  color: rgb(5, 3, 3);
  padding: 0 12px;
}
footer p {
  margin: -2px 0;
}
.toTopLink {
  padding: 12px;
  text-decoration: underline;
  background-color: rgb(202, 199, 199);
}
.fa-arrow-up {
  margin: 2em 0;
}
.topLink:hover {
  background-color: rgb(35, 40, 44);
}
.fa-facebook {
  color: white;
}

/* __________ Landing Page with Hero Image __________ */

header {
  --text-inverse: #333;
  --background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 250ms ease-in;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
.hero-portfolio-text,
.hero-pricing-text,
.hero-contact-text {
  text-align: center;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

/* small screen Prowler image */
.bgimg-2 {
  background-image: url(../images/locke-402px.jpg);
  min-height: 200px;
  min-width: 100vw;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  margin-bottom: 20px;
  z-index: -10;
}
.bgimg-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -9;
}

/* larger screen image --- */
@media only screen and (min-width: 800px) {
  .bgimg-2 {
    background-image: url(../images/locke-797px.jpg);
    min-height: 300px;
  }
}

/* Small Screen - Third image (Contact)  Image by 849356 from Pixabay */
.bgimg-3 {
  background-image: url(../images/metalworking_402px.jpg);
  min-height: 200px;
  min-width: 100vw;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  margin-bottom: 20px;
  z-index: -20;
}
.bgimg-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -19;
}
/* larger screen image --- */
@media only screen and (min-width: 800px) {
  .bgimg-3 {
    background-image: url(../images/metalworking_797px.jpg);
  }
}

/* Create a Parallax Effect */
.hero,
.bgimg-2,
.bgimg-3 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.parallex-heading,
.hero .container {
  text-align: center;
  color: white;
  text-shadow: 1px 1px #070101;
}

/* create progress or percentage bars */
.progress-container p {
  font-size: 20px;
}

.progress-container {
  background-color: rgb(192, 192, 192);
  width: 80%;
  border-radius: 15px;
}

.skill {
  background-color: rgb(53, 53, 53);
  color: white;
  padding: 1%;
  text-align: right;
  font-size: 20px;
  border-radius: 15px;
}

.design {
  width: 10%;
}

.tig {
  width: 5%;
}
.mig {
  width: 85%;
}
.list-container {
  margin-top: 2rem;
  display: flex;
  justify-content: space-around;
  background-color: grey;
  text-decoration: none;
  color: white;
  margin-bottom: 0px;
}
.list-container li {
  padding: 10px;
  list-style: none;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: auto;
  width: 95%;
}
.portfolio-image {
  border: 1px solid grey;
  padding: 10px 10px 3px 10px;
  margin: 10px;
}
.portfolio-image:hover {
  opacity: 0.8;
  cursor: pointer;
}
/* 560 px screen size and above */
@media (min-width: 35em) {
  .portfolio-container {
    width: 70%;
    margin-bottom: 2rem;
  }
  .portfolio-image {
    width: 180px;
    height: 144px;
    border: 0;
    padding: 0;
    margin: 5px;
  }
}
/* 1000 px screen size and above */
@media (min-width: 62.5em) {
  .portfolio-container {
    max-width: 980px;
  }
  .portfolio-image {
    width: 200px;
    height: 144px;
  }
}
/* ---------- Contact Form Layout --------- - Start */
.envelope {
  text-align: center;
}
.required {
  color: red;
}
.center {
  text-align: center;
}
.mini-form-group {
  display: flex;
}

.contact-form {
  background-color: rgb(243, 237, 230);
  border: 2px double #3f3e42;
  max-width: 900px;
  margin: auto;
  margin-top: 2rem;
  margin-bottom: 4rem;
  color: rgb(46, 43, 43);
  padding: 1rem;
}
.text-center {
  margin: auto;
  text-align: center;
}

.actualForm {
  margin: auto;
  width: 90%;
  padding-top: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 80%;
  outline: none;
  padding: 0.7em 1em;
  border: 1px solid #0d041f;
  display: block;
  margin-top: 1em;
  margin-bottom: 1.2em;
}

.contact-form input[type="submit"] {
  outline: none;
  color: #ffffff;
  padding: 0.5em 0;
  font-size: 1em;
  margin: 1em 0 0 0;
  background: #0d041f;
  transition: 0.5s all;
  border: 2px solid #0d041f;
  -webkit-transition: 0.5s all;
  transition: 0.5s all;
  -moz-transition: 0.5s all;
  width: 50%;
  cursor: pointer;
}
.contact-form input[type="submit"]:hover {
  background: #9370db;
}
.fax {
  display: none;
}

.err-msg {
  color: red;
}

.text-success {
  color: #008000;
  text-align: center;
}
@media (min-width: 515px) {
  .contact-form input[type="submit"] {
    width: 27%;
  }
  .actualForm {
    width: 100%;
  }
}
