html, body {
  height: auto;
  min-height: 100vh;
  background-image: url("images/plinkk.gif");
  font-family: "Courier New", courier, monospace;
  font-size: 16px;
  color: #f0f0f0;
  margin: 0;
  padding: 0;
  width: 100%;
}
a, a:visited, a:active, a:focus {
  text-decoration: none;
  outline: none;
  box-shadow: none;
  -webkit-box-shadow: none;
}
.project-button {
  background: #000000;
  border: #ffffff 2px solid;
  color: #ffffff;
  margin: 3.2px 0;
  cursor: pointer;
  border-radius: 4px;
  min-height: 35px;
  font-family: "Courier New", courier, monospace;
  transition: transform 0.28s cubic-bezier(0.23,1.3,0.32,1);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1 1 0;
  font-size: 0.8rem;
  padding: 3.2px 8px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  position: relative;
}
.site-text {
  color: hsl(0, 100%, 100%);
  z-index:  5;
  position: relative;
}
.profilepic-link {
  transform-origin: center center;
  display: block;
  transition: transform 0.28s cubic-bezier(0.23,1.3,0.32,1);
  border-radius: 10%;
  margin: 0 auto;
  margin-top: 6px;
  position: static;
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  min-width: 100px !important;
  min-height: 100px !important;
  object-fit: cover;
  z-index: 5;
}
.profilepic-link:hover {
  transform: scale(1.13) rotate(-5deg);
  box-shadow: 0 4px 26px #113388cc, 0 0 0 5px #a0a0ff22;
  z-index: 2;
}
.project-button:hover,
.project-button:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 4px 26px #113388cc, 0 0 0 5px #a0a0ff22;
  z-index: 5;
}
#projects-toggle-btn {
  appearance: auto;
  text-rendering: auto;
  color: buttontext;
  letter-spacing: normal;
  word-spacing: normal;
  line-height: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: center;
  cursor: default;
  box-sizing: border-box;
  background-color: buttonface;
  margin: 0em 0em 0em 0em;
  padding-block: 1px;
  padding-inline: 6px;
  border-width: 2px;
  border-style: outset;
  border-color: buttonborder;
  border-image: none;
  /* actual button style */
  background: #000;
  border: #fff 2px solid;
  color: #fff;
  height: 1px;
  width: 140px;
  margin: 10px auto 10px auto;
  box-shadow: 0 0 24px #11224433;
  max-width: 230px;
  font-size: 14px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  padding: 5px 6px;
  padding-bottom: 24px;
  font-weight: 600;
  display: block;
  cursor: pointer;
  z-index: 999 !important;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
  transform: scale(1);
}
#projects-toggle-btn:hover {
  transform: scale(1.1);
}
#projects-toggle-btn.cooldown {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
  filter: grayscale(0.4);
}
#project-list-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.26,1.2,0.49,1);
  will-change: opacity;
}
#project-list-section.visible {
  opacity: 1;
  pointer-events: auto;
}
.project-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  justify-items: stretch;
  align-items: stretch;
}
.project-link, .project-list-grid > button {
  display: flex;
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100%;
}
.project-link > .project-button, .project-list-grid > button.project-button {
  width: 100%;
}
@media (max-width: 1200px) {
  .project-list-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  #project-list-section {
    max-width: 100vw;
    padding: 0 3vw;
  }
  .project-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  #project-list-section {
    max-width: 100vw;
    padding: 0 2vw;
  }
  .project-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
@media (max-width: 450px) {
  .project-list-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

#overlay-background {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(7, 9, 32, 0.9);
  z-index: 0;
  pointer-events: none;
}

.video-section-container {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  position: relative;
  transform: translateZ(0);
  flex-direction: column;
  transition: height 0.25s;
}

.youtube-iframe-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  transition: height 0.5s cubic-bezier(.53, 1.7, .49, 1), opacity 0.4s;
  height: auto;
  opacity: 1;
  overflow: hidden;
}
.youtube-iframe-wrapper iframe {
  width: 100%;
  max-width: 420px;
  min-width: 180px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  border-radius: 18px;
  background: #101520;
  transition: transform 0.25s, height 0.5s cubic-bezier(.53,1.7,.49,1), opacity 0.35s;
  min-height: 120px;
  height: 236px;
  opacity: 1;
}
.youtube-iframe-wrapper iframe:hover {
  transform: scale(1.05);
}

.project-list-grid .project-link {
  opacity: 0;
  transition:
    opacity 0.58s cubic-bezier(0.47,1.2,0.32,1),
    transform 1s cubic-bezier(0.41,1.6,0.32,1),
    height 0.25s;
}
.project-list-grid .project-link.visible {
  opacity: 1;
}

.section-row {
  display: flex;
  flex-direction: row;
}
@media (max-width: 760px) {
  .section-row {
    flex-direction: column !important;
    align-items: center !important;
  }
  #main-container-row {
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #left-section-column,
  #right-section-column {
    width: 100vw !important;
    min-width: 0;
    border-right: none !important;
  }
}

#about-section, #about-section-alt {
  color: #f0f0f0; 
  font-size: 15px;
  text-align:center;
  position: relative;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
#about-section {
  background: #191b1b;
  padding: 8px 8px 8px 8px;
  border: #9eaeae 2px solid;
  line-height: 0.7;
  text-align: left;
  font-size: 13px;
  width: 80% !important;
  max-width: 300px;
  border-radius: 6px;
  margin-left: auto;
  margin-right: auto;
  /* margin-top: -10px; */
  display: block;
}
#profile-links-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: center;
  padding: 0px 15px 20px 15px;
  width: 100%;
  max-width: 720px;
  min-width: 300px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  row-gap: 15px;
  column-gap: 20px;
}
#profile-links-row > * {
  margin: 0; /* Remove margin, spacing handled by grid gaps */
  width: 100%;
}
@media (min-width: 650px) and (max-width: 9000px) {
  #profile-links-row {
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  }
}
@media (max-width: 500px) {
  #profile-links-row {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 10px;
  }
}
.profilepic-link {
  z-index: 4;
  border-radius: 10px;
}
.profile-link-image-container {
  font-size: 20px;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto; 
  margin-right: auto;
  height: 100px;
}
.profile-link-label {
  font-size: 15px;
}
#fun-project-btn {
  border-width: 4px;
}

@media (max-width: 720px) {
  .youtube-iframe-wrapper, .youtube-iframe-wrapper iframe {
    max-width: 99vw;
  }
  .youtube-iframe-wrapper iframe {
    border-radius: 14px;
    min-height: 120px;
    height: 180px;
  }
}
@media (max-width: 480px) {
  .youtube-iframe-wrapper, .youtube-iframe-wrapper iframe {
    max-width: 100vw;
  }
  .youtube-iframe-wrapper iframe {
    border-radius: 10px;
    min-height: 60px;
    height: 120px;
  }
}
#project-search-input {
  z-index: 100;
  background-color: #ffffee !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  height: 20px;
  border-radius: 20px;
  color: #111;
  outline: none; 
  border: 3px #333 solid; 
  box-shadow: 0px 0px 5px #fff;
  opacity: 0;
  transition: opacity 0.6s, transform 0.7s cubic-bezier(0.41,1.2,0.32,1);
}

#project-search-input.visible {
  opacity: 1;
  transition-delay: 0.25s;
}

#project-search-input:focus {
  outline: none !important;
  border: 3px #333 solid; 
}

#latest-video-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.vertical-flex-column {
  display: flex;
  flex-direction: column;
}
#main-container-row {
  align-self: center;
  width: 100vw;
  position: relative;
  left:0px;
  top:0px;
  z-index: 5;
}
#left-section-column, #right-section-column {
  width: 50vw;
  min-width: 280px;
}
#left-section-column {
  border-right: 2px solid #fff;
}
@media (max-width: 99px) {
  #left-section-column {
    border-right: none;
  }
}