@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap");

:root {
  --color-bg-dark: #090713;
  --color-bg-light: #f5f0d5;
  --color-accent: #dfff90;
  --color-accent2: #a1b38b;
  --color-accent3: #3c493f;
  --box-margin: 1.2vh;
}

* {
  font-family: Roboto, sans-serif;
  transition: 0.2s;
  hyphens: auto;
}

.noselect,
h1 {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent2);
  border-radius: 2.5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Text Types */
h1 {
  color: var(--color-accent);
  font-family: Playfair Display;
  font-size: 8em;
  line-height: 0.8;
  letter-spacing: -0.04em;
  margin: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 {
  color: var(--color-accent);
  font-size: 2em;
  margin-left: 0;
  margin-bottom: 0;
}

h3 {
  color: var(--color-accent3);
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.2;
  margin-left: 0;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

h4 {
  font-family: "Roboto", sans-serif;
  font-size: 0.85em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--color-accent2);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  padding-left: 0.8em;
  border-left: 2px solid var(--color-accent);
  opacity: 0.9;
}

footer > p {
  margin: 0;
}
a {
  margin: 1em 0;
  color: var(--color-accent2);
}
ul {
  margin: 0 2.5vw;
}
.fa {
  text-decoration: none;
}

/* High Level Divs */
body {
  height: 100vh;
  width: 100%;
  margin: 0;
  background-color: var(--color-bg-dark);
  color: var(--color-accent2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#header {
  display: flex;
  margin-top: 2vh;
  margin-left: 1.5em;
  margin-right: 1.5em;
  position: relative;
  z-index: 200;
  text-align: center;
  flex-shrink: 0;
}

footer {
  margin-bottom: 2vh;
  text-align: center;
  color: var(--color-accent3);
  flex-shrink: 0;
}

#header-hamburger-section {
  flex: 1;
  display: none;
  font-size: xx-large;
  text-align: left;
  cursor: pointer;
  z-index: 201;
}

#header-links-section {
  flex: 3;
}
.social-icon {
  margin: 0;
}

#main {
  display: flex;
  flex-direction: row;
  margin: 0 0.5em;
  flex: 1;
  min-height: 0;
  margin-bottom: 1vh;
}

/* Browser (Left Hand Side) */
#hamburger {
  margin: 0;
  transition: transform 0.3s ease;
}

.hamburger-active {
  transform: rotate(90deg);
  color: var(--color-accent);
}

.browser {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Add transition for the slide effect */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.container {
  border: var(--color-accent3) 1px solid;
  flex: 1;
  margin: var(--box-margin);
  margin-bottom: 0.4em;
  border-radius: 1em;
}

.active-container {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(223, 255, 144, 0.3);
}

.title {
  width: fit-content;
  margin: 0 auto;
  padding: 0.5em 5em;
  margin-top: -1.2em;
  color: var(--color-accent3);
}

.active-container > .title {
  color: var(--color-accent);
}

.title > p {
  margin: 0;
  padding: 0 0.5em;
  background-color: var(--color-bg-dark);
  font-family: Playfair Display;
  font-size: larger;
  font-weight: 600;
}

.list-item {
  width: 100%;
  text-align: center;
  padding: 0;
}

.list-item > p {
  margin: 0;
  padding: 0.5em 0;
}
.active-list-item {
  background-color: var(--color-accent3);
}

#content {
  position: relative;
  flex: 3;
  margin: var(--box-margin);
  margin-left: 0;
  margin-bottom: 0.4em;
  border: var(--color-accent3) 1px solid;
  border-radius: 1em;
  overflow: auto;
}

.content {
  display: none;
  margin: 3em 2em;
}
.active-content {
  display: block;
}
#home {
  flex: none;
}
#experience {
  flex: 0.5;
}
#home-section-paragraph {
  margin: 0;
  padding: 1.2em;
  padding-top: 0;
}
.content-paragraph-split {
  column-count: 2;
  column-gap: 2em;
}

/* Desktop Hover States */
@media only screen and (min-width: 960px) {
  a:hover {
    color: var(--color-accent);
  }
  .container:not(.active-container):hover {
    border-color: var(--color-accent2);
  }
  .container:not(.active-container):hover .title {
    color: var(--color-accent2);
  }
  .list-item:hover {
    background-color: var(--color-accent3);
  }
}

@media only screen and (max-width: 960px) {
  #main {
    margin-top: 0;
  }
  #header-links-section {
    text-align: right;
  }
  #header-hamburger-section {
    display: block;
  }
  .content {
    margin: 2em 1em;
  }
  .content-paragraph-split {
    column-count: 1;
  }

  .browser {
    position: fixed;
    top: 0;
    left: 0;
    height: 91vh;
    background-color: var(--color-bg-dark);
    top: 9vh;
    margin: 0;
    transform: translateX(0);
  }

  .browser.mobile-hidden {
    display: flex;
    transform: translateX(-105%);
  }

  #content {
    margin-left: 0.5em;
  }
  #content.mobile-hidden {
    filter: blur(5px);
  }
}

@media only screen and (max-width: 720px) {
  h1 {
    font-size: 20vw;
  }
}
