:root {
    --style-color: hsl(1, 81%, 45%);
    /* --style-color: hsl(1, 71%, 44%); */
}

@font-face {
    font-family: 'LEMON MILK';
    src: url('media/lemonmilk.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

canvas,
.container {
    position: absolute;

}

canvas {
    width: 100%;
    /* height: 100dvh; */
    z-index: -1;
}

html {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'LEMON MILK', sans-serif;
    font-size: 2rem;
    /* height: 100%; */
}

.container {
    display: grid;
    place-items: center;
    height: 100%;
    width: 100%;
}

.card {
    width: fit-content;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}

.links {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    gap: 1.2rem;
}

img {
    /* filter: hue-rotate(135deg); */
    width: 200px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    /* margin-bottom: 2rem; */
    transition: all 0.3s cubic-bezier(0, 0, 0.12, 1.01);
    animation: mover 1.5s infinite alternate ease-in-out;

    &:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.5));
    }
}

@keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

a {
    flex-grow: 1;

    color: var(--style-color);
    text-transform: uppercase;
    text-decoration: none;

    padding: 0.5rem 1rem;
    border: 2px solid var(--style-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;

    box-shadow: 0 0 0.7rem var(--style-color);
    background-color: rgba(0, 0, 0, 0.178);

    &:hover {
        background-color: var(--style-color);
        color: rgb(0, 0, 0);
    }
}

#player,
#dark-mode {
    position: absolute;
    top: 0;
    right: 0;

    margin: 1rem;
    width: 2.2rem;

    background-color: transparent;
    border: none;

    background-image: url('media/pause.webp');
    background-size: cover;
    aspect-ratio: 1;

    cursor: pointer;
    z-index: 1;
}

#dark-mode {
    top: 0;
    left: 0;
    background-image: url('media/dark.webp');
}

@media screen and (width < 600px) {
    .links {
        flex-direction: column;
    }

    .card {
        box-shadow: none;
    }

    .container {
        height: unset;
    }
}