@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@500&family=Nunito:wght@500&family=Open+Sans&family=Rubik&display=swap");

:root {
  --black: #000;
  --lighter-black: #505050;
  --white: #fff;
  --greeny: #005f6b;
  --greeny-light: #00f3b3;
  --tealish: #008c9e;
  --lightest-gray: #f1f1f1;
}
.visible-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.visible-hidden:focus {
  clip: auto;
  height: auto;
  overflow: auto;
  position: absolute;
  width: auto;
}

p {
  text-indent: 1em;
}
.prev-wrk {
  text-align: left;
}
.prev-wrk:after {
  content: "";
  display: inline-block;
  width: 100%;
}
ul {
  margin-left: 0;
  margin-right: 0;
}
.projImages {
  width: 600px;
}
form {
  border: 10px dotted var(--tealish);
  padding: 10px;
}
textarea {
  box-sizing: border-box;
  width: 100%;
}
.img,
ul {
  margin: auto;
}

.background,
.img {
  position: absolute;
}

.footer,
h2,
h3 {
  text-align: center;
}

.padding {
  padding-top: 50px;
  padding-bottom: 80px;
}

a:link,
a:visited {
  color: var(--greeny);
}

#nametag {
  /*define font-family and size here */
  font-size: 15vmin;
  font-family: "Kanit", sans-serif;
  text-transform: uppercase;
}
h2 {
  /*define font-family and size here */
  font-size: 25pt;
  font-family: "Rubik", sans-serif;
  text-transform: uppercase;
}
h3 {
  /*define font-family and size here */
  font-size: 20pt;
  text-transform: uppercase;
  font-family: "Rubik", sans-serif;
}
.container h3,
.about-description h3 {
  font-weight: bold;
  font-size: 20pt;
}
h4 {
  /*define font-family and size here */
  font-size: 15pt;
  text-align: center;
  font-family: "Nunito", sans-serif;
}
.skills h4 {
  font-weight: bold;
}
li,
p {
  /*define font and size here */
  font-size: 14pt;
  font-family: "Open+Sans", sans-serif;
}

.about {
  background-color: var(--white);
  margin: 15px;
}

.centertext {
  text-align: center;
}

.skills {
  /*font family*/
  background-color: var(--lightest-gray);
  display: flex;
  align-items: center;
  padding-left: 15px;
  padding-right: 15px;
}

.previous-work {
  background-color: var(--white);
  margin-left: 15px;
  margin-right: 15px;
}

.projects {
  background-color: var(--lightest-gray);
  padding-left: 15px;
  padding-right: 15px;
}

.contact {
  background-color: var(--white);
}

.footer {
  color: var(--lightest-gray);
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  /*font family*/
}

ul {
  width: 70%;
}

.img {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  overflow: clip;
}

.img-responsives {
  max-width: 70%;
  max-height: 70%;
}

.header {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(img/background.png) center no-repeat;
  background-size: cover;
}
.background {
  z-index: 1;
}
.vertical-center {
  height: 100vh;
  color: #fff;
  text-shadow: 2px 2px 4px #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.overlay {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background-color: var(--tealish);
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 20%;
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

.overlay a {
  /*font*/
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: var(--white);
  display: block;
  transition: 0.3s;
}

.overlay a:focus,
.overlay a:hover {
  color: var(--lightest-gray);
}

#portraitPic {
  padding-top: 30px;
}

.about,
.contact,
.contact-icon,
.hr,
.projects,
.skills,
.previous-work {
  color: var(--black);
}

#hamburger-icon {
  position: fixed;
  right: 60px;
  font-size: 60px;
  z-index: 3;
  cursor: pointer;
  display: block;
  transition: all 1s ease;
}

#hamburger-icon .line {
  position: fixed;
  display: block;
  background: var(--lighter-black);
  width: 30px;
  height: 4px;
  transition: all 0.5s ease-in;
}
#hamburger-icon .line.bar-1 {
  top: 30px;
}
#hamburger-icon .line.bar-2 {
  top: 38px;
}
#hamburger-icon .line.bar-3 {
  top: 46px;
}

#hamburger-icon.active .bar-1 {
  transform: translateY(8px) translateX(0) rotate(45deg); /*translate hamburger icon to x*/
}

#hamburger-icon.active .bar-2 {
  opacity: 0;
}

#hamburger-icon.active .bar-3 {
  transform: translateY(-8px) translateX(0) rotate(-45deg);
}

@media screen and (max-width: 800px) {
  .center {
    margin-left: 20%;
  }
  h2 {
    text-align: left;
  }

  #portraitPic {
    padding-top: 0;
  }
}

@media screen and (min-width: 700px) and (max-width: 1000px) {
  .img-responsives {
    width: 35%;
    height: auto;
  }
}

@media screen and (min-width: 1024px) {
  .about-description {
    padding-right: 20px;
  }
}

@media screen and (max-height: 450px) {
  .overlay {
    overflow-y: auto;
  }

  .overlay a {
    font-size: 20px;
  }
}

/*font-family: 'Kanit', sans-serif; For MATT LOERA*/
/*font-family: 'Nunito', sans-serif;*/
/*font-family: 'Rubik', sans-serif; For h3*/
/*font-family: 'Open+Sans', sans-serif; For li,p */
