/* Basic CSS Reset for a Minimalistic Website */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* Set box-sizing to border-box for all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove list styles */
ol,
ul {
  list-style: none;
}

/* Remove quotes from blockquotes and q elements */
blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* Set a clean, readable font and line-height */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  color: white;
  background-color: rgb(14, 14, 14);
  overscroll-behavior: none !important;
}

/* Ensure images scale properly */
img {
  max-width: 100%;
  height: auto;
  max-height: 100vh;
}

.other-imgs {
  display: block;
  max-width: 100%;
}

.other-imgs img {
  margin-bottom: 50px;
}

/* Anchor tag styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Navigation - hidden on mobile, shown on desktop */
nav {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 30vw;
  display: none;
  justify-content: space-between;
  align-items: center;
}

/* Desktop Layout */
main {
  display: grid;
  grid-template-columns: var(--left-width, 1fr) 1px var(--right-width, 2fr);
  height: 100vh;
  position: relative;
}

.resize-handle {
  background-color: #000000;
  color: white;
  cursor: col-resize;
  position: relative;
  z-index: 100;
  transition: background-color 0.2s ease;
}

.resize-handle:hover {
  background-color: #333;
}

.resize-handle.dragging {
  background-color: #666;
}

section {
  border-left: 1px solid white;
  padding: 10px;
}

#small-display-left {
  max-width: 700px;
  padding-top: 10px;
}

#small-display-left p {
  margin-top: 10px;
}

#list-container {
  height: fit-content;
}

#projects-list .project-item {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid white;
  display: flex;
  justify-content: space-between;
}

#projects-list .project-item .medium {
  color: darkgray;
}

a:hover {
  background-color: white;
  color: black;
  cursor: pointer;
}

#display {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
}

#project-details {
  padding-top: 20px;
  padding-bottom: 20px;
}

#project-details .title,
#project-details a {
  background-color: white;
  color: black;
}

/* Mobile-specific styles */
#mobile-project-container {
  display: none;
}

.mobile-project-details {
  display: none;
  padding: 20px 0;
  margin-top: 15px;
}

.mobile-project-details.active {
  display: block;
}

.mobile-project-details .first-img {
  margin-bottom: 20px;
}

.mobile-project-details .project-details-mobile {
  margin-bottom: 20px;
}

.mobile-project-details .other-imgs img {
  margin-bottom: 20px;
}

/* Mobile Layout */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  main {
    display: block;
    height: auto;
    padding: 10px;
    padding-top: 20px;
  }

  .resize-handle {
    display: none;
  }

  #display {
    display: none;
  }

  #mobile-project-container {
    display: block;
  }
  #mobile-project-details .active {
    border-top: none !important;
  }

  section {
    border: none;
    padding: 0;
  }

  #list-container {
    border-left: none !important;
  }

  #projects-list .project-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
    padding-top: 5px;
    border-bottom: 1px solid rgb(70, 70, 70);
  }

  /* Prevent hover effects on mobile */
  a:hover {
    background-color: transparent;
    color: white;
  }

  #projects-list .project-item:hover a {
    background-color: transparent;
    color: white;
  }
}

/* Utilities */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
