@font-face {
  font-family: 'CustomEN';
  src: url('./fonts/custom-en.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CustomJP';
  src: url('./fonts/custom-jp.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gau';
  src: url('./font/GAU.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Nuvo';
  src: url('./font/nuvo.ttf') format('truetype');
  font-display: swap;
}

:root {
  --lightblue: rgb(210, 219, 221);
  --lightpurple: rgb(223, 38, 186);
  --creme: rgb(255, 254, 233);
  --darkblue: rgb(79, 115, 150);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  width: 100%;
  padding: 10px;
  font-family: 'MS PGothic', 'Osaka', sans-serif;
  background: transparent;
  color: #58697e;
  font-size: 10px;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: -1;
  pointer-events: none;
}

.wrapper {
    position: relative;
    z-index: 10;
    width: min(420px, calc(100vw - 20px));
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    line-height: 1.8;
}

.box {
  background: #ffffff;
  box-shadow:
    inset -1px -1px #c0c0c0,
    inset 1px 1px #c0c0c0,
    inset -2px -2px #c0c0c0,
    inset 2px 2px #c0c0c0,
    0 0 15px rgba(150, 160, 230, 0.8);
  border-radius: 3px;
  border-top: 1px outset black;
  border-left: 1px outset black;
  border-right: 1px outset black;
  width: 80em;
  height: 60em;
  padding: 4px;
  position: relative;
}

.password {
  font-weight: bold;
  background: linear-gradient(
    180deg,
    rgba(107, 133, 212) 20%,
    rgba(175, 162, 212) 72%
  );
  color: rgba(255, 255, 255);
  font-size: 11.5px;
  padding: 3px 7px;
  border-radius: 0;
  border-bottom: 1px inset black;
  font-family: 'Consolas', sans-serif;
}

.test {
  display: flex;
  align-items: center;
  box-shadow:
    -2px -2px 3px inset #362624,
    1px 2px 3px inset rgb(203 203 203 / 50%);
  background: linear-gradient(
    #7a0900 10%,
    #8e4f49,
    #6b1b1b 40%,
    #090505
  );
  height: 25px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-bottom: 1px solid #000000bb;
  border-radius: 4px 4px 0 0;
}

.box-alt {
    background-color: rgba(65, 51, 51, 0.59);
    box-shadow:
        0 0 40px 0 #6c242487 inset,
        0 0 20px black;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    border: 1px solid #000000;
    width: 100%;
    min-width: 0;
    position: relative;
}

.intro-panel {
  height: 100%;
}

.project-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100vh - 20px);
}

.icon {
  position: relative;
  top: 7px;
  left: 5px;
  width: 120px;
  height: 110px;
  object-fit: cover;
  border: 3px inset;
  border-radius: 6px;
  transform: perspective(1500px) rotateY(0deg);
  transition: transform 1s ease;
}

.icon:hover {
  transform: perspective(3000px) rotateY(-60deg);
}

.info {
  position: relative;
  top: 10px;
  left: 5px;
  padding: 5px;
  width: calc(100% - 10px);
  overflow-x: hidden;
  overflow-y: scroll;
  border-radius: 3px;
  border: 2px inset;
  font-size: 13px;
  color: black;
  background: rgba(80, 100, 130, 1);
  height: 39%;
  font-family: 'Consolas', sans-serif;
}

mark {
  font-weight: bold;
  background: linear-gradient(to top, #ffff 50%, #ffff 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

highlight {
  font-family: 'Consolas', sans-serif;
}

.footer {
  background: #f03b3b;
  color: #24272b;
  font-family: 'Consolas', sans-serif;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 0;
  border-top: 0 ridge black;
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: calc(100% - 2px);
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

.name {
  font-family: 'Consolas', sans-serif;
  color: #c9a9a6;
  position: absolute;
  left: 43%;
  top: 12%;
  font-size: 26px;
  font-weight: bold;
}

.below {
  color: #24272b;
  font-family: 'Consolas', sans-serif;
  position: absolute;
  left: 47%;
  top: 21%;
  font-size: 1em;
}

.section-title {
  font-family: icons;
  color: #ffffff;
}

h3 {
  font-family: 'Gau', sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin: auto 10px;
  text-shadow: 0 0 5px rgba(150, 160, 230, 0.8);
  color: #ffffff;
}

.section-header {
  justify-content: center;
  align-items: center;
}

.section-header h3 {
  margin: 0;
}

.blog-box {
  padding: 0.5em 2em;
  background-color: #edecef;
  border-radius: 5px;
  box-shadow: 0 0 6px #9999 inset;
  border: #c7c5c1 solid 2px;
  font-family: 'Nuvo', sans-serif;
  font-size: 10px;
  color: #2F3A3F;
  line-height: 1.8;
  overflow: auto;
  max-height: 267px;
  max-width: 400px;
  margin: 10px;
}

.blog-box::-webkit-scrollbar {
  width: 8px;
}

.blog-box::-webkit-scrollbar-track {
  background: lightgray;
}

.blog-box::-webkit-scrollbar-thumb {
  background-color: #bbbbbb;
  border-radius: 10px;
  border: 2px solid lightgray;
}

.welcome {
  text-align: center;
}

.inline-emoticon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  display: inline-block;
}

.project-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}

.text-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 27px;
  padding: 4px 12px;
  border: 1px solid rgba(187, 187, 187, 0.65);
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.08)
  );
  color: #f9f9ff;
  font-family: 'Gau', sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  opacity: 0.7;
}

.text-button:disabled {
  cursor: not-allowed;
}

.vlist {
  flex: 1;
  min-height: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  gap: 10px;
}

.vcard {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid #999;
  background: rgba(224, 222, 238, 0.8);
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.vcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.vcard-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.vcard-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  display: block;
  transition: opacity 0.2s ease;
}

.vcard:hover .vcard-preview img {
  opacity: 1;
}

.vcard-title {
  font-family: 'Gau', sans-serif;
  color: #4f7396;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 8px 2px;
}

.vcard-desc {
  font-family: 'Nuvo', sans-serif;
  color: #58697e;
  font-size: 10px;
  padding: 0 8px 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(4, 7, 18, 0.93);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: min(960px, 88vw);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(60, 76, 145, 0.55);
  background: #000;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.65);
}

#playerHost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#playerHost iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

nav ul li {
  margin-bottom: 0;
}

nav ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #F9F9FF;
  font-family: 'Gau', sans-serif;
  font-size: 12px;
  font-weight: bold;
  height: 25px;
  border-bottom: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  text-align: center;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(30deg);
  animation: shimmer 3s infinite linear;
}

nav ul li a:hover {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

@keyframes shimmer {
  0% {
    transform: rotate(30deg) translateY(-100%);
  }

  100% {
    transform: rotate(30deg) translateY(100%);
  }
}

.shiny-text {
  font-size: 30px;
  color: #fff;
  background: linear-gradient(
    90deg,
    #8d8d8d,
    #cfcfcf,
    #fff,
    #cfcfcf,
    #8d8d8d
  );
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.8),
    0 2px 2px rgba(200, 200, 200, 0.6),
    0 5px 5px rgba(0, 0, 0, 0.2);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 760px) {
  .wrapper {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .intro-panel {
    min-height: 250px;
  }

  .project-panel {
    min-height: calc(100vh - 20px);
  }

  .vlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .vlist {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-box {
    padding: 0.5em 1em;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-inner {
    width: 100%;
  }
}