@font-face {
    font-family: 'TikTok Sans';
    src: url('./fonts/TikTokSans-VariableFont_opsz\,slnt\,wdth\,wght.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'TikTok Sans', sans-serif;
    --main-color: #000000;
    --secondary-color: #FE2C55;
    --third-color: #25F4EE;
    --text-color: #fff;
}

body {
    background-color: var(--main-color);
    min-height: 500px;
    height: 100dvh;
    display: grid;
    color: var(--text-color);
    grid-template-rows: 10% 90%;
}

header > nav > img {
    width: 150px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2em;

    & > img.main-image {
        position: absolute;
        height: 70dvh;
        z-index: 1;
        &.image-left {
            left: 0;
        }
        &.image-right {
            right: 0;
        }
        &.image-up {
            width: 100dvw;
            height: auto;
            top: 0;
        }
    }

    & > .over-container {
        padding: 10px;
        z-index: 2;
        text-align: center;
        width: max(50%, 400px);
        max-width: calc(100dvw - 30px);
        display: flex;
        flex-direction: column;
        gap: 1.5em;
    }

    & > .action-bar {
        width: max(50%, 400px);
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap-reverse;

        & > button.action-button {
            background-color: var(--secondary-color);
            width: 160px;
            font-weight: bold;
            padding: 10px;
            border: none;
            border-radius: 5px;
            position: relative;
            cursor: pointer;
            font-size: clamp(0.6875rem, 0.5335rem + 0.493vw, 1.125rem);

            &::before {
                position: absolute;
                top: -1em;
                right: -1em;
                background-color: var(--main-color);
                content: '';
                width: 2em;
                height: 2em;
                border-radius: 1em;
            }

            & > a {
                text-decoration: none;
                color: var(--main-color);
            }
        }
    }
}

footer {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    text-align: center;
}

h1 {
    font-weight: bold;
    font-size: clamp(1.25rem, 0.3697rem + 2.8169vw, 3.75rem);
}

h2 {
    font-size: clamp(0.6875rem, 0.1406rem + 1.75vw, 1.125rem);
}

p {
    font-size: clamp(0.6875rem, 0.1406rem + 1.75vw, 1.125rem);
}

a {
    text-decoration: none;
}

b.blue, a {
    color: var(--third-color);
    font-weight: bold;
}

b.red {
    color: var(--secondary-color);
    font-weight: bold;
}

@media screen and (max-width: 725px) {
    img.image-left, img.image-right {
        display: none;
    }
    div.action-bar {
        flex-direction: column;
        gap: 1em;
        align-items: center;
    }
}

@media screen and (min-width: 725px) {
    img.image-up {
        display: none;
    }
}

img {
    image-rendering: auto;
}