/* Perfect Code (No comments, Skidder kikai exclusive :P) */
:root {
    color-scheme: light dark;
}

h1,
p {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: light-dark(#f5f5f5, #222);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: light-dark(#333, #dfdfdf);
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rotating-box h1 {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    letter-spacing: .15em;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;

    animation:
        typing 3.5s steps(40, end) 1 forwards,
        blink-caret .75s step-end 3.5s infinite,
        rotateY 3s linear 3.5s infinite;
}

hr {
    width: 60%;
    border: none;
    border-top: 1px solid #ddd;
    margin: 4px 0 6px 0;
}

.info {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: light-dark(#333, #dfdfdf);
}

.info span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.9em;
    background: #ccc;
    margin: 0 8px;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: orange;
    }
}


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

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

#sns-container a {
    color: light-dark(black, white);
    font-size: 2rem;
    margin: 0 8px;
    text-decoration: none;
}

#sns-container a:hover {
    color: orange;
}

#bgm-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: light-dark(#f5f5f5, #222);
    opacity: 50;
}
.fadeout {
  animation : fadeOut 1s;
  animation-fill-mode: both;
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}