/* THEMES */

:root,
.theme-brown {
  --color-background: #54251C;
  --color-text: #C5E8FF;
  --color-text-40: #C5E8FF40;
}

.theme-orange {
  --color-background: #541C1D;
  --color-text: #FF7700;
  --color-text-40: #FF770040;
}

.theme-pink {
  --color-background: #FBABD1;
  --color-text: #FF0000;
  --color-text-40: #FF000040;
}

.theme-blue {
  --color-background: #E8E8E8;
  --color-text: #0022FF;
  --color-text-40: #0022FF40;
}

.theme-green {
  --color-background: #544E1C;
  --color-text: #88EFB8;
  --color-text-40: #88EFB840;
}

.theme-yellow {
  --color-background: #EAF24D;
  --color-text: #676767;
  --color-text-40: #67676740;
}

.theme-grey {
  --color-background: #E8E8E8;
  --color-text: #111111;
  --color-text-40: #11111140;
}

/* MENU */

.navBar {
  position: fixed;
  height: auto;
  width: calc(100% - 4rem);
  margin: 2rem;
  display: flex;
  flex-direction: row;
  font-size: 22px;
  z-index: 999;
}

.navLogo,
.navItems {
  width: 50%;
  display: flex;
  flex-direction: row;
}

.navItems {
  justify-content: flex-end;
  gap: 80px;
}

.navBar a {
  text-decoration: none;
  color: var(--color-text)
}

.themeButton {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transform: rotate(45deg);
}

.themeButton .colorSwatch {
  height: 100%;
  width: 50%;
}

.themeButtonOverlay, .themeButtonOverlayMobile{
  /*position: fixed;*/
  display: flex;
  width: auto;
  justify-content: center;
  gap: 12px;
  /*padding: 16px;
  background-color: white;
  border-radius: 9999px;*/
}

.themeButtonOverlay button, .themeButtonOverlayMobile button {
  all: unset;
  cursor: pointer;
}

.themeButtonOverlayMobile {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, -0%);
  z-index: 999;
  display: none;
}


/* GENERAL */

@font-face {
  font-family: 'NeueHaasRoman';
  src: url('./fonts/NH/NHaasGroteskDSPro-55Rg.otf') format('opentype');
}

h3 {
  font-size: 22px;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0px;
}

a {
  color: var(--color-text);
}

/*a:hover {
  text-decoration: ;
}
  */

.main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin-top: 100px;
}

body {
  font-family: 'NeueHaasRoman';
  margin: 0;
  box-sizing: border-box;
  background-color: var(--color-background);
  /*background-color: #c4c4c4;*/
  /*background-color: #FFCC00;;*/
  color: var(--color-text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tag {
  border: 2px solid var(--color-text);
  border-radius: 9999px;
  padding: 12px 16px;
  font-size: 22px;
}

/* HOME */

.svg-wrapper {
  width: 100%;
}

.svg-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
  fill: var(--color-text);
}


.headerName {
  width: 100%;
}

.headerName img {
  width: 100%;
}

/* TABLE HEADER */

.tableHeader {
  width: 100%;
  height: auto;
  display: flex;
  font-size: 22px;
  color: var(--color-text);
  flex-direction: row;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--color-text);
}

.thProject {
  width: 40%;
  display: flex;
  flex-direction: row;
}
.thInfo {
  width: 60%;
  display: flex;
  flex-direction: row;
}

.thInfo {
  justify-content: space-between;
}

/* TABLE */

.projectList a {
  color: var(--color-text);
  text-decoration: none;
}

.projectList a:hover {
  color: var(--color-background);
  /*transition: all .2s ease-in-out;*/
}

.projectItem {
  width: 100%;
  display: flex;
  flex-direction: row;
  font-size: 26px;
  padding: 20px 0;
  border-bottom: 2px solid var(--color-text);
  align-items: center;

  position: relative;
  overflow: visible;
  background-color: transparent;
}

.projectServices {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.projectName {
  width: 40%;
}

.projectInfo {
  width: 60%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: right;
}

/* HOVER ANIMATION */

.projectItem::before {
  content: '';
  position: absolute;
  left: -2rem;
  bottom: -2px;
  width: 100vw;
  height: 0%;
  background-color: var(--color-text);
  /* your hover color */
  z-index: -1;
  /*transition: height .2s ease-out;*/
}

.projectItem:hover::before {
  height: calc(100% + 4px);
}

/* PROJECT IMAGES */

#popupImage {
  position: absolute;
  width: 400px;
  height: 500px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

#popupImage.visible {
  opacity: 1;
  transform: scale(1);
}

.projectItem img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: none;
}

/* EMAIL */

.email a {
  color: #1E1E1E;
  text-decoration: none;
  font-size: 40px;
}

.email a:hover {
  text-decoration: underline;
}

/* PROJECT PAGE */

.content {
  font-size: 20px;
  width: 100%;
  gap: 8px;
  display: flex;
  flex-direction: column;
}

.contentSection {
  margin: 32px 0;
}

.textSection {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projectMeta {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.projectMetaContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projectIntro {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 28px;
}

/*
.projectHeading {
  font-size: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.textLink a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #1E1E1E;
  text-decoration: none;
  opacity: 40%;
}

.textLink a:hover {
  color: #1E1E1E;
  opacity: 100%;
}

.currentPage a {
  opacity: 100% !important;
} */

.image {
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: row;
  gap: 8px;
  background-size: cover;
  /*background-color: red;*/
}

.multipleImages {
  width: 100%;
  background-size: cover;
  background-position: center;
  /*background-color: blue;*/
}


@media (max-width: 767px) {

  .main {
    padding: 2rem 0;
    gap: 32px;
    margin: 20px 0 40px 0;
  }

  .projectItem,
  .projectInfo {
    flex-direction: column;
    width: 100%;
    gap: 20px;
    align-items: flex-start;
  }

  .projectName {
    width: 100%;
  }

  .projectServices {
    gap: 8px;
  }


  .projectItem img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .projectInfo {
    text-align: left;;
  }

  .tableHeader {
    display: none;
  }

  #popupImage {
    display: none;
  }

  body {
    padding: 1rem;
    gap: 24px;
  }

  .email a {
    font-size: 32px;
  }

  .navBar {
    margin: 0;
    width: calc(100% - 2rem);
  }

  .themeButtonOverlay {
    display: none;
  }

  .themeButtonOverlayMobile {
    display: flex;
  }


  /* PROJECT PAGE */
  .content p {
    width: 100%;
  }

  .image {
    height: auto;
    flex-direction: column;
  }

  .multipleImages {
    height: 50vh;
  }

  .projectIntro {
    flex-direction: column;
    gap: 24px;
  }

  .textSection, .projectMeta {
    width: 100%;
  }
}

.bodyCopy {
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-text);
}