html[data-theme="dark"] {
    --background: #0f0f16;
    --midground: #14141d;
    --foreground: #1a1a28;
    --selected: #222234;

    --primary: #f0f0ff;
    --secondary: #aaaac2;
    --link: #89b4fa;
}

html[data-theme="light"] {
    --background: #eeeefa;
    --midground: #e2e2f2;
    --foreground: #d2d2e8;
    --selected: #c2c2d8;

    --primary: #001;
    --secondary: #334;
    --link: #1e66f5;
}

::view-transition-image-pair(root) {
    isolation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
    display: block;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background);
    font-family: "Poppins", sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.controls .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem;
    background-color: var(--foreground);
    border: none;
    border-radius: 0.8rem;
    position: relative;
    color: var(--secondary);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.controls .button .icon {
    height: 1.4rem;
    fill: var(--secondary);
    transition: fill 0.2s;
}

.controls .button:hover,
.controls .button:focus {
    background-color: var(--selected);
    outline: none;
    color: var(--primary);
}

.controls .button:hover .icon,
.controls .button:focus .icon {
    fill: var(--primary);
}

.controls .button .short {
    display: none;
}

.card {
    max-width: 38rem;
    padding: 2rem;
    background-color: var(--midground);
    border-radius: 1.6rem;
}

.footer {
    opacity: 0.6;
    color: var(--secondary);
    line-height: 1;
}

.footer .link {
    color: var(--link);
    text-decoration: none;
}

.footer .link:hover {
    text-decoration: underline;
}

@media (max-width: 40rem) {
    .controls .button .long {
        display: none;
    }

    .controls .button .short {
        display: block;
    }

    .card {
        width: calc(100% - 4rem);
    }

    .footer {
        text-align: center;
    }
}
