/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'TerzaEditor';
  src: url('fonts/TerzaEditor-Regular-Web.woff2') format('woff2');
}

html, body {
  height: 100%;
  font-family: 'TerzaEditor';
  font-size: 17px;
  line-height: 1.5;
  color: white;
  font-weight: 400;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, span, a, li, div {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

h1 {
  margin-left: 6rem;
  margin-bottom: 1.5rem;
}

p {
margin-bottom: 1.5rem;
}

/* Remove indent for first p after a heading */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
  text-indent: 0;
}

/* Remove indent for first p inside a div (e.g., .section) */
div > p:first-of-type {
  text-indent: 0;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.nav-left, .nav-right {
  width: 50%;
  text-align: left;
  position: relative;
}

.dropdown-text {
  display: inline-block;
  padding: 0rem 4rem;
  font-size: 17px;
  height: 70px;
  cursor: pointer;
  user-select: none;
  color: transparent;
  position: relative;
}

#left-text::before,
#right-text::before {
  content: "HERE";
  color: white;
  position: absolute;
  left: 4rem;
  top: 0;
  line-height: 70px;
  text-align: left;
  width: 100%;
}

#left-text:hover::before {
  content: "HERE";
}

#right-text:hover::before {
  content: "THERE";
}

.dropdown-text:hover {
  text-decoration: underline;
}

/* --- Dropdown Menus --- */
.dropdown-menu {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  width: 50vw;
  background: #4b4544;
  color: white;
  padding-top: 70px;
  overflow-y: auto;
  z-index: 1100;
}

.dropdown-menu a{
  color: white;
  text-decoration: underline;
}

.dropdown-menu a:hover {
  color: white;
}

.dropdown-menu ul {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 4rem;
}

.dropdown-menu ul li {
  margin-bottom: 1rem;
}

.dropdown-menu ul li a {
  display: block;
  color: white;
  text-decoration: none;
}

.dropdown-menu ul li a:hover {
  color: white;
}

.dropdown-menu.show {
  display: block;
}

.left-menu {
  left: 0;
}

.right-menu {
  right: 0;
}

/* --- Dropdown Header --- */
.dropdown-header {
  position: fixed;
  top: 0;
  height: 70px;
  width: 50vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 1150;
}

.header-text {
  font-size: 17px;
  color: white;
  line-height: 70px;
}

/* Close Button */
.close-btn {
  font-size: 17px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  user-select: none;
}

.close-btn:hover {
  color: #B7B3AB;
}

/* --- Main Layout --- */
.container {
  display: flex;
  height: 100vh;
  width: 100vw;

}

.left, .right {
  width: 50%;
  height: 100%;
  overflow-y: auto;

}

.left {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.left::-webkit-scrollbar {
  display: none;
}

.right {
}

.text {
  margin-bottom: 6rem;

}

/* --- Responsive (non-stacked) --- */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6, p, span, a, li, div {
    font-size: 25px;
  }

  nav {
    flex-direction: row;
    height: auto;
    padding: 0.5rem 1rem;
  }

  .nav-left, .nav-right {
    width: 50%;
    text-align: center;
  }

  .dropdown-menu {
    width: 50vw;
    height: 100vh;
  }

  .dropdown-text {
    font-size: 25px;
  }
  
  .container {
    flex-direction: row;
    height: calc(100vh - 70px);
    margin-top: 70px;
  }

  .left, .right {
    width: 50%;
    height: 100%;
  }

  .left::-webkit-scrollbar {
    display: auto;
  }
  .left {
    scrollbar-width: auto;
    -ms-overflow-style: auto;
  }

  #left-text::before,
  #right-text::before {
    font-size: 25px;
    line-height: 70px; /* keep alignment in nav */
  }

  .header-text {
    font-size: 25px;
  }


}

/* --- Homepage Content --- */

.content {
  height: 100vh;       /* Lock each content block to viewport height */
  display: flex;       /* Center images if desired */
  align-items: center;
  justify-content: center;
}

/* --- Image Sizes --- */

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fill {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

div img:not(:first-child) {
  margin-top: 0rem; 
}

.full {
  width: 100%;
}

.three-quarters {
  width: 75%;
}

.half {
  width: 50%;
}

.rt {
  float: right;
}

/* === Image Overlay === */

.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.image-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding-bottom: 0px;
}

.image-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Optional: Close overlay on click */
.image-overlay:hover {
  cursor: zoom-out;
}