* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  /* word-wrap: break-word; */
}

body {
  font-family: "halyard-display", sans-serif;
  font-weight: 200;
  font-style: normal;
  background-color: rgb(237, 232, 236);
  padding: 0;
  margin: 0;
  width: 100%;

  /* transition: all 1s ease-in-out; */
}

main {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#navbar {
  background-color: transparent;
  display: flex;
  position: fixed;
  padding: 20px 7% 20px 7%;
  align-items: center;
  width: 100%;
  animation: fadeInAnimation ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  z-index: 1;

  #name-link {
    color: rgb(19, 12, 9);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: "adelle-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.03em;
  }
}

.navbar-menu {
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: 0px;
  padding-right: 30px;
  list-style: none;
  column-gap: 40px;
  font-weight: 200;
  li {
    font-size: 18px;
  }
}

.navbar-item {
  color: #2d5a5a;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 20px;
}

.navbar-item:hover {
  transition: 0.2s;
  color: #1a3d3d;
  cursor: pointer;
}

#home {
  background-size: cover;
  align-items: center;
}

#welcome {
  background-size: cover;
  background-position: center center;
  display: flex;
  /* gap: 10vw; */
  flex-direction: row;
  /* flex-wrap: wrap; */
  padding-top: 100px;
  padding-bottom: 50px;
  justify-content: center;
  align-items: flex-end;
  /* height: 80vh; */
}

#textrow {
  justify-content: center;
  /* margin-left: 15vw; */
  /* margin-right: auto; */
  padding-top: 100px;
}

#reel {
  height: auto;
}

#projects {
  height: auto;
}

#about-container {
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-width: 400px;
  max-width: 900px;
  height: auto;
  gap: 50px;
  /* padding-top: 50px; */
}

#about {
  height: auto;
  padding-top: 150px;
  padding-bottom: 100px;
}

#about-image {
  padding-top: 20px;
}

#reel-container {
  display: flex;
  justify-content: center;
}

h1 {
  margin: 0;
  text-align: left;
  color: #2d5a5a;
  font-size: 50px;
  font-family: "adelle-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.25em;

  animation: fadeInAnimation ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

h2 {
  color: #2d5a5a;
  letter-spacing: 0.05em;
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
  font-weight: 400;
  /* margin-left: 200px; */
}

h3 {
  margin-top: 15px;
  text-align: left;
  color: #2d5a5a;
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.05em;
  animation: fadeInAnimation ease 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

h4 {
  margin-top: 5px;
  margin-bottom: 0;
  text-align: left;
  color: #2d5a5a;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

h5 {
  margin-top: 5px;
  margin-bottom: 0;
  text-align: left;
  color: rgb(240, 48, 99);
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.05em;
}

p {
  color: #2d5a5a;
  text-align: left;
  font-size: 18px;
  line-height: 2rem;
  letter-spacing: 0.04em;
  margin: 10px 0 10px 0;
}

ul {
  margin: auto;
  color: rgb(102, 99, 146);
  font-size: 18px;
  line-height: 2rem;
  letter-spacing: 0.04em;
}

a {
  color: rgb(240, 48, 99);
  text-decoration: none;
}

#about-me-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  border-radius: 5px;
}

section {
  height: auto;
  width: 80%;
}

footer {
  padding-bottom: 20px;
  position: static;
  p {
    text-align: center;
    margin: 0;
    font-size: 16px;
    line-height: normal;
  }
}

#main-img {
  height: auto;
  /* width: 100%; */
  width: clamp(100px, 50%, 400px);
  /* max-width: 100%; */
  object-fit: contain;
}

#art {
  padding-top: 50px;
}
/* 
#main-img-container {
  height: auto;
  object-fit: contain;
  width: clamp(100px, 50%, 400px);
  display: flex;
  justify-content: center;
} */

/* Selected works section */
.works-container {
  display: flex;
  width: 100%;
  padding-top: 10px;
  /* padding: 2vh 10vw 5vh 10vw; */
  gap: 50px;
  flex-wrap: wrap;
  justify-content: left;
}

.works-item {
  /* display: grid; */
  width: clamp(300px, 45%, 650px);
  /* width: 550px; */
  /* height: 450px; */
  object-fit: cover;
  /* background-color: antiquewhite; */
  text-decoration: none;
  border-radius: 20px;
  transition: width 0.3s, height 0.3s, transform 0.3s;
  -webkit-filter: brightness(100%);
}

.works-item:hover {
  transform: rotate(-3deg);
  cursor: pointer;
  #in-progress {
    visibility: visible;
    transition: 0.3s;
  }
}

.works-img {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  /* max-height: 100%; */
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.img-container {
  width: 100%;
  height: 100%;
}

/* .category {
  width: max-content;
  height: 30px;
  border-radius: 15px;
  background-color: aliceblue;
} */

.works-text {
  font-size: 18px;
  color: #2d5a5a;
  letter-spacing: 0.04em;
  margin-top: 5px;

  line-height: normal;
}

/* Case study stuff */
.case-study-section {
  padding-top: 100px;
  height: auto;
  h2 {
    font-size: 54px;
  }
}

.showoff-container {
  /* width: 100%; */
  height: auto;
  img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}
.case-study-hero {
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-study-specifications {
  /* background-color: rgb(38, 33, 40); */
  height: auto;
  display: block;
  flex-wrap: wrap;
  gap: 50px;
  padding-left: 50px;
  p {
    font-size: 22px;
  }
}

.border-div {
  margin: 20px 20vw;
  p {
    font-size: 22px;
  }
  h4 {
    font-weight: 400;
    font-size: 40px;
    margin-top: 40px;
  }
}

.sketches-container {
  display: flex;
  margin-left: -20vw;
  margin-top: 50px;
  margin-bottom: 50px;
}

#sketches1 {
  display: flex;
  flex-direction: row;
}
#sketches2 {
  display: flex;
  flex-direction: column;
}

.sketch-img {
  max-height: 700px;
}

.images-container {
  margin-top: 20px;
  width: 100%;
  /* margin: 0 auto; */
  /* gap: 2%; */
  justify-content: center;
}

.websites-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-top: 50px;
  margin-bottom: 50px;
  justify-content: center;
  gap: 10px;

  img {
    width: 600px;
  }
}

@media screen and (max-width: 814px) {
  h1 {
    font-size: 30px;
  }
  h3 {
    font-size: 18px;
  }
  .works-text {
    font-size: 14px;
  }
  .works-container {
    gap: 20px;
  }
  #about-container {
    flex-direction: column-reverse;
    gap: 20px;
  }
  #about {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  section {
    height: auto;
    margin-left: 10vw;
    margin-right: 10vw;
  }
  #navbar {
    padding: 20px 10px 20px 10px;
    align-items: center;
    width: 100%;
  }
  .navbar-item {
    font-size: 20px;
  }

  #welcome {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
    /* padding: */
  }

  #textrow {
    padding-top: 0;
  }

  .works-item {
    width: 100%;
    height: auto;
  }
  #main-img {
    height: auto;
    width: 150px;
  }
}

#under-construction {
  text-align: center;
  color: rgb(240, 48, 99);
  padding-bottom: 10px;
}

#in-progress {
  text-align: center;
  position: absolute;
  color: rgba(0, 0, 0, 0.9);
  font-size: 20px;
  /* margin-left: 150px;
  margin-top: 120px; */
  visibility: hidden;
}

iframe {
  margin-top: 20px;
  width: 100%;
  height: 60vh;
}