*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow: hidden;
}

button:hover {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #000000;
}

li {
    list-style: none;
}

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(-45deg, #3d00c2, #000000, #000000, #4f4fff);
    background-size: 300% 300%;
    animation: gradient-animation 10s ease infinite;
    font-family: sans-serif;
    font-size: 2rem;
    font-family: "Tiny5", sans-serif;
  }
  
  @keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  

header {
    height: 8rem;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 4rem;
}

header> h2 > span{
    background: linear-gradient(to left, #4f4fff, #3d00c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animated-text {
    display: inline-flex;
    overflow: hidden;
}

.animated-text span {
    display: inline-block;
    transform: translateY(-100%);
    animation: drop-in 0.5s ease-out forwards;
    margin-right: 0.1em;
}

.animated-text span.space {
    margin-right: 0.5em;
    transform: translateY(0);
}

.animated-text span:nth-child(1) {
    animation-delay: 0s;
}

.animated-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.animated-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.animated-text span:nth-child(4) {
    animation-delay: 0.3s;
}

.animated-text span:nth-child(5) {
    animation-delay: 0.4s;
}

.animated-text span:nth-child(6) {
    animation-delay: 0.5s;
}

.animated-text span:nth-child(7) {
    animation-delay: 0.6s;
}

.animated-text span:nth-child(8) {
    animation-delay: 0.7s;
}

.animated-text span:nth-child(9) {
    animation-delay: 0.8s;
}

.animated-text span:nth-child(10) {
    animation-delay: 0.9s;
}

.animated-text span:nth-child(11) {
    animation-delay: 1s;
}

@keyframes drop-in {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


header>img {
    animation: rotate-infinite 8s linear infinite;
}

@keyframes rotate-infinite {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


article {
    width: 100vw;
    height: 91.3vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40rem;
}

/* Start game button */

.SGBlock {
    width: 25rem;
    height: 15rem;
    background: linear-gradient(to right, #4f4fff, #3d00c2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.SGBlock>a {
    font-size: 6rem;
}

.SGBlock:hover {
    transform: scale(1.2);
}

.flash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3d00c2;
    opacity: 0;
    pointer-events: none;
    animation: flash 0.3s forwards;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Start game button */

/* Leaderboard & Controls */

.LCBlock {
    width: 40rem;
    height: 60rem;
}

.LCBlock>h2 {
    width: 100%;
    height: 10%;
    background: linear-gradient(to right, #4f4fff, #3d00c2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
}

.LCBlock>section {
    width: 100%;
    height: 100%;
    background: #292929;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    font-size: 3rem;
    padding-top: 2rem;
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
}


.controls-tab {
    transform: perspective(500px) rotateY(-0deg);
    transition: transform 0.5s;
}

.controls-tab:hover {
    transform: perspective(500px) rotateY(-5deg);
}

.leaderboard-tab {
    transform: perspective(500px) rotateY(0deg);
    transition: transform 0.5s;
}

.leaderboard-tab:hover {
    transform: perspective(500px) rotateY(5deg);
}

.leaderboard-text{
    background: linear-gradient(to right, #4f4fff, #3d00c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
  
/* Leaderboard & Controls */

/* -------------------------------------------------------------------------------------------*/
