/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: #333333;
  text-decoration: none;
}

#root,
#__next {
  isolation: isolate;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  width: 100vw;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-display: swap;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
}

.card {
  color: #333333;
  padding: 1rem;
}

.card-other {
  margin-top: 3rem;
}
.apps .card-other a:hover .circle {
  width: 110%;
}
.card-other p {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 2rem;
  font-weight: bold;
}

.subtitle {
  opacity: 0.6;
  font-size: 0.8rem;
  font-weight: normal;
}

.subtitle-link {
  background-image: linear-gradient(90deg, #333333, #cacaca, #333333);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.3s ease-out;
  position: relative;
  font-weight: 600;
  border-radius: 8px;
  padding-bottom: 2px;
}

.description {
  opacity: 0.8;
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.title, .subtitle, .apps {
  --toOpacity: 1;
}
.description {
  --toOpacity: 0.8;
}
.title, .subtitle, .description, .apps a, .card-other {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}
a#link-satu {
  animation-delay: .4s;
}
a#link-mnote {
  animation-delay: .6s;
}
a#link-tufoku {
  animation-delay: .8s;
}
a#link-tufoku:hover + .tufoku-additional {
  transform: translateY(10px);
}
a#link-pokematch {
  animation-delay: 1.2s;
}
.card-other {
  animation-delay: 1.4s;
}

:root {
  --a-size: 3.2rem;
}

.apps {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  align-items: self-start;
  animation-delay: .5s;
}

.apps a {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  border-radius: calc(var(--a-size) / 2);
}
.apps a {
  width: 100%;
  height: auto;
}
.apps a .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: var(--a-size);
  height: var(--a-size);
  background: #333;
  border-radius: calc(var(--a-size) / 2);
}
.apps a .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}
.apps a .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: calc(var(--a-size) / 5);
  width: 1.150rem;
  height: 0.150rem;
  background: none;
}
.apps a .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.150rem solid #fff;
  border-right: 0.150rem solid #fff;
  transform: rotate(45deg);
}
.apps a .a-title {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0.3rem;
  left: 4rem;
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  font-size: 1rem;
  opacity: 0.9;
}
.apps a .a-title > span {
  font-weight: 400;
  font-size: 0.6rem;
  background: #eee;
  border-radius: 8px;
  padding: 0 5px;
  line-height: 0.9rem;
  text-transform: lowercase;
}
.apps a:hover .circle {
  width: 100%;
}
.apps a:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}
.apps a:hover .a-title,
.apps a:hover .a-description {
  color: #fff;
}
.apps a:hover .a-title > span {
  background: #666;
  transition: all 0.3s ease-out;
  transition-delay: 0.3s;
}

.apps a .a-description {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  bottom: 0.4rem;
  left: 4rem;
  margin: 0;
  font-size: 0.7rem;
  text-align: left;
  color: #333;
  opacity: 0.7;
}

.game-container {
  position: relative;
}

.game-description {
  position: absolute;
  bottom: calc(70% + 70px);
  left: calc(100% + 70px);
  width: 120px;
  font-size: 0.8rem;
}
.game-description .text-1 {
  --toOpacity: 0.4;
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
  animation-delay: 2s;
}
.game-description .text-2 {
  --toOpacity: 0.4;
  opacity: 0;
  margin-left: 0.6rem;
  animation: fadeIn 0.5s ease-in forwards;
  animation-delay: 2.5s;
}

svg.arrow {
  position: absolute;
  bottom: 60%;
  left: 100%;
  width: 70px;
  height: 100px; 
  margin: 0 auto;
  transform: scaleX(-1);
  opacity: 0.2;
}
svg.arrow .draw-arrow {  
  stroke-width: 5;
  stroke: black; 
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400; 
  animation: draw 2.0s forwards;
  animation-delay: 2s;
}
svg.arrow .draw-arrow.tail-1 {
  animation-delay: 2.5s;
}
svg.arrow .draw-arrow.tail-2 {
  animation-delay: 2.7s;
}

.tufoku-additional {
  display: flex;
  align-items: center;
  gap: 5px;
  animation-delay: .7s;
  margin-top: -6px;
  margin-left: 65px;
  font-size: 12px;
  transform: translateY(0);
  transition: transform 0.3s ease-out;
}
.tufoku-additional a {
  text-decoration: underline;
}

@keyframes draw {
 to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: var(--toOpacity); }
}


@media screen and (max-width: 600px) {
  .game-description,
  svg.arrow {
    display: none;
  }
}