/* TEMPLATE STYLESHEET */

/* These are some suggested groupings for your stylesheet... */

/* Quick add / remove box border -> */ /*
*{
  border: 0.5px dashed lightsteelblue;
}

/* Default styling styling for the body. */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', Calibri, sans-serif;  
    font-size: 100%; /* the default browser font size is 16px */
    line-height: 1.25 ; /* update to suit your type choices */
    color: #ffffff;  /* base text colour - update to suit your design */
}
/* Default element re-sets  */
h1,
h2,
h3,
p,
ol,
ul {
    margin: 0;
    padding: 0;
}

/* Improves default font styles for forms  */
input,
textarea {
  font-family: 'Lato', Calibri, sans-serif;
}

/* box sizing */
html{
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit
}

/* flexible content images code */
img {
  max-width: 100%;
  height: auto;
}

/* element styling (e.g. standard p, h1, h2, a, etc) */
h1, h2 {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 400; 
  font-style: normal;

}

h1 {
  font-size: 4rem;
  letter-spacing: 1rem;
  text-transform: uppercase;
  font-weight: 900;
  padding-bottom: 15px;
  margin-bottom:15px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 35px;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 657px;
  margin-left: auto;
  margin-right: auto;
}

/* navigation (using flexbox) */
/* small screen code */
.page-nav{
  position: fixed;
  top: 0%;
  width: 100%;
}
.page-nav ul {
  display: flex;
  flex-wrap: wrap;
  border-top: 0.5px solid #C0C0C0;
  border-right: 0.5px solid #C0C0C0;
  list-style-type: none;
}
.page-nav li {
  flex: 1 1 50%;
  display: flex;
  border-bottom: 1px solid #C0C0C0;
  border-left: 1px solid #C0C0C0;
}
.page-nav a {
  padding: 15px 10px;
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}
a:link {
color: #fff;
background-color: #000000;
}

a:visited {
color: #fff;
}

a:focus {
color:#fff;
}

a:hover {
  color: #000000;
  background-color: #fff;
  transition: all 0.5s ease-in;
}
a:active {
  color:red;
}
/*Navigation media queries*/
@media screen and (min-width: 960px) {
  .page-nav ul {
    flex-wrap: nowrap;
  }
  .page-nav li {
      flex: 1 1 25%;
  }
}

/* page header */
.page-header {
  background: black;
  display: flex;
  min-height: 50vh;
  align-items: center;
  justify-content: center;
  background-image: url(../images/my-hero2.jpg);
  background-repeat: no-repeat;
  background-size: cover; 
  background-position: center;
  background-blend-mode: lighten;
}
.header-content {
  max-width: 750px;
  color: #fff;
  text-align: center;
  padding: 10px;
}
.header-content h1 {
  text-shadow: 2px 2px #000000;
}
.header-content p{
  max-width: 489px;
  color: #fff;
  text-shadow: 2px 2px #000000;
  line-height: 1.3;
  font-size: 1.35rem;
  font-weight: 400;
  overflow: hidden;
  border-right: .15em solid #000;
  white-space: nowrap;
  margin: 10px auto;
  letter-spacing: 0.25em;
/* The typing effect */
  animation: 
    typing 3.5s steps(31, end),
    blink-caret 1s step-end infinite;
}
@keyframes typing{
  from {
    width: 0}
  to   {
    width: 100%}
}
@keyframes blink-caret{
  from,to {
    border-color: transparent}
  50% {
    border-color: #fff}
}

@media screen and (max-width: 500px) {
  .header-content {
    max-width: 375px;
    color: #fff;
    text-align: center;
    padding: 10px;
  }
  .header-content h1{
    font-size: 2.5rem;
  }
  .header-content p {
    font-size: 0.75rem;
    max-width: 300px;
  }
}

/* Code that can be used as a call to action in a button e.g.*/
.header-content a {
  display: flex;
  margin-top: 60px;
  padding: 5px 20px;
  background: #C0C0C0;
  color: black;
  border-radius: 0.2em;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.75rem;
  float: right;
} 
.header-content .fas{
  font-size: 0.75rem;
  display: inline-block;
  margin-right: 8px;
}

/* main layout */
.container-content {
  max-width: 657px;
  margin-left: auto;
  margin-right: auto;
  padding: 75px 75px 75px;
  padding-bottom: 10px;
}

/* styling for the section content */
.about-me,
.work-experience,
.image-gallery,
.contact-me,
.lets-connect {
  background-color: #000000;
}
.about-me h2 {
  margin-bottom: 30px;
}
.work-experience h2 {
  text-align: right;
  margin-bottom: 30px;
  max-width: 657px;
  margin-left: auto;
  margin-right: auto;
}
.work-experience .container-content {
  max-width: 1000px;
}

#above-table {
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}
table{
  display: flex;
  max-width: 1000px;
  justify-content: center;
  border: transparent;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid #C0C0C0;
  border-collapse: collapse;
}
th,
td {
  padding: 15px;
}
th {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.15em;
}
td{
  font-weight: 400;
}
/*Work Experience table media queries*/
@media screen and (max-width: 700px){
  .collapseable{
    display: none;
  }
}
.lets-connect h2 {
  text-align: center;
}
#socials .container-content {
  padding-top: 15px;
}
h3 {
  text-align: center;
  color: #C0C0C0;
  margin-bottom: 30px;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: auto;
}

/* image gallery media queries and size overrides */
.image-gallery .container-content {
  max-width: 1200px;
}
.image-gallery .an-image {
  margin: 0;
}
.image-gallery .image-caption {
  padding: 8px 0 50px 0;
}
.image-gallery h2 {
  text-align: center;
}
@media screen and (min-width: 750px) {
  .image-gallery .image-container {
      display: flex;
  }
  .image-gallery .an-image {
      flex: 100%;
      padding: 20px;
      background: black;
  }
  .image-gallery .an-image+.an-image {
      margin-left: 20px;
  }
}

/* form styling */
form label {
  display: block;
  /* instead of inline */
  padding-bottom: 0.2em;
  padding-top: 1em;
}


form input,
form textarea {
  padding: 0.4em 0.3em;
  font-size: 1.5em;
    /* these elements do not inherit the font-family from the body tag */
  
  font-family: arial, helvetica, sans-serif;

  /* lighter grey, less visually heavy */
  border: 1px solid #bbb; 
  /* make sure our fields aren't too wide or not wide enough */
  min-width: 90%;
  max-width: 90%;
}

form input[type="submit"] {
  /* https://developer.mozilla.org/en/docs/Web/CSS/Attribute_selectors */
  /* if you used display:block; this would go right across the page - if you use inline-block the button will only be as wide as the text and the padding */
min-width:0;
  /* turn off a minimum width for the button and let the browser work it out */
  background-color: #fff;
  border: 0;
  border-radius: 0.2em;
  padding: 13px 30px;
  margin-top: 10px;
  /* top and bottom, left and right */
  font-size: 1em;
  text-transform: uppercase;
  font-weight: 600;
  color: black;
  transition: background-color 0.2s ease;
  /* less jarring transition from initial colour to hover colour */
}

form input[type="submit"]:hover {
  background-color: #C0C0C0
}

form input[type="submit"].js-disable-button {
  color: grey;
  padding-left: 24px;
  background: white
    url(../images/white-background-sprockets.gif)
    left center no-repeat;
}

.js-message {
  color: #ffffff;
}

/* Styling for the icons */
.icons {
  text-align: center;
  padding: 5px;
}
.icons i{
  text-align: center;
  font-size: 2em;
  padding-left: 20px;
  padding-right: 20px;
}
.icons a:hover {
  color: #fff;
  background-color: #000000;
}

/* footer */
.page-footer {
  background: black;
  display: flex;
  position: relative;
  bottom: 0;
  height: 10vh;
  align-items: center;
  justify-content: center;
}
.footer-content {
  position: absolute;
  bottom: 0px;
}