body {
    width: 100%;
    height: 100vh;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    justify-content: center;
    background-color: rgba(0, 0, 0, 1);
}

.links {
    width: 10%;
    margin: 0;
}

svg path {
    fill: red;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("src/image/ultrakill.gif") center/100% 100% no-repeat;
    z-index: -1;
    animation: appear 10s ease-out 1;
}

@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.quote {
    font-family: "VCRMono";
    font-size: 1rem;
    margin-top: 20px;
    p {
        margin: 10px 0;
    }
}

.ellipsis::after {
    content: "";
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%,
    20% {
        content: "";
    }
    40% {
        content: ".";
    }
    60% {
        content: "..";
    }
    80%,
    100% {
        content: "...";
    }
}

.ultrakill {
    position: relative;
    top: 4px;
}

iframe {
    border: 8px double white;
    border-radius: 4px;
}

@font-face {
    font-family: "Material Symbols";
    src: url("src/fonts/MaterialSymbols.woff2");
}

@font-face {
    font-family: "VCRMono";
    src: url(src/fonts/VCR_OSD_MONO_1.001.ttf);
}

@font-face {
    font-family: "PixelOperatorHB";
    src: url(src/fonts/PixelOperatorHB8.ttf);
}
.container {
    width: 95%;
    display: grid;
    grid-template-columns: 4fr 3fr;
    align-items: center;
    margin: 0 auto;
    gap: 20px;
    font-family: "PixelOperatorHB";
    animation: move 10s ease-in-out infinite alternate;
}

@keyframes move {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

jbeat-container {
    width: 100%;
    border: 4px solid;
}

.tomorrow img {
    position: absolute;
    bottom: 0;
    right: 0;
}

.demo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fe0000;
    height: fit-content;
    z-index: 2;
    position: relative;
    user-select: none;
    h3 {
        font-size: 0.8rem;
        font-weight: normal;
        margin: 10px 0;
    }

    #countdown {
        font-size: 2.5rem;
        font-weight: normal;
        margin: 2px 0;
        width: fit-content;
        text-shadow: 0 0 18px;
        color: #fe0000;
        font-family: "VCRMono";
    }
}

.demo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

small {
    color: white;
}

a {
    color: rgb(255, 67, 67);
    margin-right: 4px;

    &:hover {
        color: white;
    }
}

.button {
    background: black;
    color: white;
    width: 30%;
    padding: 10px;
    border: 2px solid white;
    border-radius: 10px;
    text-align: center;
    font-family: "VCRMono";
    transition: all 0.2s ease;
    &:hover {
        border-color: darkgrey;
        color: darkgray;
    }
    &:active {
        border-color: rgb(255, 67, 67);
        color: rgb(255, 67, 67);
    }
}

@keyframes animateborder {
    0% {
        border-image: linear-gradient(0deg, #fe0000, #fe0000) 1;
    }
    25% {
        border-image: linear-gradient(90deg, #009479, #ff8800) 1;
    }
    50% {
        border-image: linear-gradient(180deg, #6688ff, #ff33aa) 1;
    }
    75% {
        border-image: linear-gradient(270deg, #ffee33, #00ffaa) 1;
    }
    100% {
        border-image: linear-gradient(360deg, #fe0000, #fe0000) 1;
    }
}

@media screen and (max-width: 1024px) {
    body {
        background-size: 200% 100%;
    }
    .demo {
        margin: 0 10px;
        height: fit-content;
        text-align: center;
        align-items: center;
        h3 {
            font-size: 0.6rem;
        }

        #countdown {
            font-size: 2rem;
            margin: 2px 0;
        }
    }

    .button {
        width: 70%;
    }

    .subtext {
        font-size: 0.6rem;
    }

    .quote {
        text-align: left;
        width: 100%;
    }

    iframe {
        width: 90%;
        height: 130%;
        gap: 0;
        position: relative;
        top: 30px;
        left: 10px;
    }

    .container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
        animation: none;
    }

    jbeat-container {
        margin: 0 10px;
    }
}
