@font-face {
  font-family: freemono;
  src: url('/FreeMono.ttf');
}

body {
  background-color: #3c443b;
  color: white;
  font-family: freemono, Verdana;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.mainContentBox {
  width: 100%;
  max-width: 900px;
  background-color: #4e6b47;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "aboutme"
    "interestcontainer"
    "bottomlinks";
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.contentbox {
  background-color: #82a07b;
  overflow-y: auto;
  scrollbar-width: thick;
  scrollbar-color: #ffffff transparent;
  direction: rtl;
  padding-left: 10px;
  box-sizing: border-box;
}
.contentbox * {
  direction: ltr;
}
.contentbox hr {
  border: 2px solid white;
  margin: 5px;
}
.contentbox h1 {
  text-align: center;
  margin: 10px;
}

/* ── ABOUT ME ── */
#aboutme {
  grid-area: aboutme;
  background-color: #3d4d39;
  max-height: 60vh;
}
#aboutme p {
  margin-left: 20px;
  margin-right: 20px;
}
#aboutme hr {
  border: 2px solid white;
  margin: 5px;
}
#aboutme h1 {
  text-align: center;
  margin: 10px;
}

/* ── COPY BUTTON ── */
#buttonexample {
  display: flex;
  justify-content: center;
  align-items: center;
}
#buttonexample button {
  background-color: #4e6b47;
  color: white;
  font-family: freemono, Verdana;
  border: none;
  margin-left: 10px;
  padding: 3px;
  border-radius: 3px;
  cursor: copy;
}

/* ── INTEREST CONTAINER ── */
#interestcontainer {
  grid-area: interestcontainer;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
#musicinterestcontainer,
#mediainterestcontainer {
  background-color: #3d4d39;
  max-height: 50vh;
}

/* ── BOTTOM LINKS ── */
#bottomlinks {
  grid-area: bottomlinks;
  display: flex;
  align-items: center;
  min-height: 60px;
}
#homebutton {
  background-color: #3d4d39;
  height: 60px;
  width: auto;
  flex-shrink: 0;
}
#homebutton img {
  width: auto;
  height: calc(100% - 20px);
  margin: 10px;
  object-fit: contain;
  display: block;
}
#buttons {
  flex: 1;
  margin-left: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  height: 100%;
}
#buttons a {
  margin-left: 5px;
}

#border-right {
  position: absolute;
  width: 20%;
  bottom: -8%;
  right: -8%;
  pointer-events: none;
  z-index: 10;
}
#border-left {
  position: absolute;
  width: 28%;
  rotate: 270deg;
  bottom: 0;
  left: -6%;
  pointer-events: none;
  z-index: 10;
}

/* ── NAME HEADER ── */
.nameHeader {
  display: flex;
  align-items: flex-end;
}
.nameHeader img {
  border-radius: 100%;
  width: 80px;
}
.nameHeader h1 {
  margin: 0;
  margin-left: 10px;
  font-size: 2rem;
}

@media (min-width: 600px) {
  #interestcontainer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  body {
    padding: 0;
  }

  .mainContentBox {
    width: 70vw;
    height: 80vh;
    padding: 0;
    gap: 0;
    display: block;
    position: relative;
  }

  #aboutme {
    width: calc(50% - 40px);
    height: 75%;
    position: absolute;
    top: 20px;
    left: 20px;
    max-height: none;
  }

  #interestcontainer {
    display: contents;
  }

  #musicinterestcontainer {
    width: calc(50% - 40px);
    height: calc(50% - 40px);
    position: absolute;
    top: 20px;
    right: 20px;
    max-height: none;
  }

  #mediainterestcontainer {
    width: calc(50% - 40px);
    height: calc(50% - 40px);
    position: absolute;
    bottom: 20px;
    right: 20px;
    max-height: none;
  }

  #bottomlinks {
    width: calc(50% - 40px);
    height: calc(25% - 80px);
    position: absolute;
    bottom: 40px;
    left: 20px;
    min-height: unset;
  }

  #homebutton {
    height: 100%;
    margin-left: 40px;
  }

  .nameHeader img {
    width: 10vw;
  }

  .nameHeader h1 {
    font-size: 55px;
  }

  .nameHeader {
    position: relative;
    top: calc((10vw / -2) + 30px);
    left: calc((10vw / -2) + 30px);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}