/* =====================================================
   layout.css  -  Base layout: page, header, nav, footer, buttons
   Split from gpnotesv4.css (original lines 89-293)
   ===================================================== */

#boxContainer {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  /* default for mobile */
}


/* Styles for desktop view (min-width: 768px) */
/* Mobile-only: visible on mobile, hidden on desktop */
.mobile-only {
  display: block;
  margin-top: 25px;

}

@media screen and (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }

  #imgDiv {
    max-width: fit-content;
  }

  #boxContainer {
    display: flex;
    /* Make sure it's flex */

    flex-direction: row;
    /* side by side */
  }

  #box1 {
    flex: 1;
  }

  #box2 {
    flex: 0 0 33%;
    position: sticky;
    top: 0;
    align-self: flex-start;
    /* Ensures sticky works inside flexbox */
    height: fit-content;
    /* Prevents stretching */
  }


}

/* Styles for mobile view (max-width: 768px) */

@media screen and (max-width: 768px) {
  #modalImage {
    max-width: 95%;
  }
}

#box1 {
  min-height: 75vh;
  overflow: hidden;
}

#box2 {
  padding: 30px 5px 5px 5px;
  border-left: 1px solid var(--color3);
}


#topNav {
  display: flex;
  height: 35px;
  flex-direction: row;
  justify-content: flex-start;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  gap: 10px
}

.topNavItem {
  border-radius: 20px;
  background: var(--color2);
  color: var(--color3);
  width: fit-content;
  text-align: center;
  align-items: center;
  margin: 0px;
  padding: 7px 15px;
  cursor: pointer;
  font-size: 12px;
  align-self: center;
  border: 1px solid var(--color4);

}

.topNavItem.active {
  background: var(--topNavActive);
  color: var(--color1);
  font-weight: bold;

}





#demoImg {
  width: 90%;
}


button {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  -webkit-user-select: text;
  /* Allows text selection */
  user-select: text;
  /* Allows text selection */
  font-weight: var(--buttonFontWeight);
  background: none;
  border: none;
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  margin-top: 5px;
  width: 100%;
  /* justify-content: left; */

}



.myLink {
  display: block;
  color: var(--color1);
  font-style: italic;
  text-overflow: ellipsis;
  font-size: 14px;
}

footer>a {
  font-style: italic;
  color: grey;
  justify-content: center;
  display: flex;
  text-decoration: none;
  margin-bottom: 20px;

}

footer {
  margin-bottom: 0px;
  bottom: 0;
  width: 100%;

}



header {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  background: var(--headerColor);
  color: white;
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: center;
  display: flex;
  /* Enables flexbox layout */
  align-items: center;
  /* Centers items vertically within the header */
  transition: top 0.3s;
}



#logo {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  padding: 3px;
  border-radius: 20px;
  background-color: white;
}

#headerTitle {
  display: none;
  flex: 1;
  text-align: left;
  margin-left: 10px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
