@import 'apex.css';

@custom-media --tablet only screen and (max-width: 1200px);
@custom-media --phone only screen and (max-width: 800px);
@custom-media --smaller-phone only screen and (max-width: 500px);

:root {
  --energy: 0px;
  --page-width: min(100%, 1024px);
  color: white;
}

html {
  color-scheme: dark;
  font-family: system-ui;
}

.title {
  font-size: min(10vw, 36pt);
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  text-align: left;

  justify-content: space-between;


  section {
    padding: 32px;
    text-align: center;

    p {
      text-align: center;
    }
  }

  h1 {
    font-size: 48pt;
  }

  @media (--tablet) {
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
  }
}

.blockquote {
  margin: 16px;
  font-size: min(5vw, 22pt);
  padding: 15px;
}

blockquote {
  p {
    text-align: center;

    &::before {
      content: "\201C";
    }

    &::after {
      content: "\201D";
    }
  }


  &+p {
    text-align: right;

    &::before {
      content: "—";
    }
  }


  @media (--phone) {
    margin: 0px auto;
  }
}

#page-content {
  background-image: linear-gradient(to bottom, #000000, #636363 1024px);

  &,
  &>* {
    position: relative;
    z-index: 1;
  }
}

#page-content-content {
  width: var(--page-width);
  margin: 0 auto;
  text-align: center;
}

#footer {
  background-color: #484848;

  p,
  li {
    font-size: 8pt;
  }
}

.footnotes {
  padding: 0 40;
}

.project-alt {
  flex-direction: row-reverse;
}

.project {
  background-color: #484848;
  display: flex;
  align-items: center;
  margin: 32px;
  padding: 24px;
  border-radius: 5rem;
  justify-content: space-evenly;

  iframe {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 16pt 0;
  }

  &>div,
  &>section {
    padding: 16px;
  }

  &>section {
    width: 100%;

    @media (--phone) {
      width: unset;
    }
  }

  @media (--phone) {
    flex-direction: column;
    padding: 32px;

    &>div,
    &>section {
      padding-top: 0;
      padding-bottom: 0;
    }
  }

  @media (--smaller-phone) {
    margin: 16px;

    p {
      font-size: 14pt;
    }

    iframe {
      margin: 14pt 0;
    }
  }
}


.interest {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  .person {
    width: 128px;
    margin: 25px;
  }

  .project {
    border-radius: 5rem;
    padding: 36px;
  }

  @media (--tablet) {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;

    &.project-alt {
      align-items: flex-end;
    }
  }

  @media (--smaller-phone) {
    .project {
      margin: 0;
    }
  }
}

.project-title {
  min-width: 275px;

  @media (--smaller-phone) {
    min-width: 0;
  }

  h1 {
    font-size: 24pt;
    margin: 0;
  }
}

.links {
  display: flex;
  justify-content: space-evenly;
  margin: 20px 0;
}

.tab-list {
  display: flex;
  justify-content: space-around;

  a {
    background-color: transparent;
    border: solid 3px transparent;
    border-bottom: solid 3px #eee;
    font-size: 16pt;
  }

  a[aria-selected=true] {
    font-weight: bold;
    border-bottom: solid 6px #eee;
  }

  @media only screen and (max-width: 550px) {
    flex-direction: column;

    a {
      background-color: transparent;
      border: solid 3px #999;
      font-size: 16pt;
      padding: 8px;
    }

    a[aria-selected=true] {
      background-color: #eee;
      font-weight: bold;
      color: black;
      border: solid 12px #eee;
    }
  }
}

.figure {

  img,
  p,
  svg {
    width: 80%;
  }

  &>svg {
    height: 80%;
  }
}


.person {
  clip-path: circle(50%);
  margin: 15px 0;
}

.flex-container {
  display: flex;

  justify-content: center;
  align-items: center;
  /* flex-flow: column; */
  flex-direction: column;

  height: 100%;
  gap: 5px;

}

/* From https://codepen.io/Knovour/pen/boJNPN */
.marquee {
  margin: 0;
  padding: 0;
  color: #343434;
  font-size: 72px;
  font-weight: bold;
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 80px;
  line-height: 1.0;
  overflow-x: hidden;
}

.track {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.htmx-indicator {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.thought-bubble {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
  background-color: #484848;
  clip-path: circle(50%);
  margin-bottom: 1rem;
}

#tab-break {
  margin: 0;
}

body {
  margin: 0;
}

h1 {
  font-size: 32pt;
  /* margin: 0; */
}

hr {
  border: 0;
  border-top: 2px solid rgb(128, 128, 128);
}

input[type="checkbox"] {
  transform: scale(1.5);
  margin: 10px;
}

li,
p {
  font-size: 16pt;
  text-align: left;
}

sup {
  font-size: 12pt;
}

ol {
  padding: 0;
}

form {
  text-align: left;
}

textarea {
  width: 100%;
}

a {
  color: inherit;
  /* no underline */
  text-decoration: none;
}