@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

a, span, h1, p {
    color: var(--accent);
    pointer-events: initial;
    transition: color 0.5s ease-in-out;
    text-transform: lowercase;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;

    --accent: #ceaaff;
    --bg: #4a396d;
    --toggle-accent: #392f47;
    --toggle-bg: #ae93e6;
}

.bga, .filter, .main {
    position: fixed;
    width: 100vw;
    height: 100dvh;
    pointer-events: none;
}

.bga {
    border: none;
    pointer-events: all;
    transition: opacity 0.5s ease-in-out;
}

.filter {
    background: var(--bg);
    opacity: 0.3;
    transition: background-color 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.main {
    display: flex;
    justify-content: center;
    place-items: center;
    flex-direction: column;
}

.theme-toggle {
    position: fixed;
    background: var(--toggle-bg);
    color: var(--toggle-accent);
    padding: 0.5rem;
    border-radius: 50%;
    border: 2px solid var(--toggle-accent);
    bottom: 0;
    right: 0;
    margin-bottom: 1rem;
    margin-right: 1rem;
    width: 1rem;
    height: 1rem;
    display: flex;
    place-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.dark .starry-light, .light .starry-dark {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.back {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem;
    cursor: pointer;
}

.back a i {
    font-size: 0;
}

@media (pointer:none), (pointer:coarse) {
    .back {
        font-size: 0;
    }

    .back a i {
        font-size: initial;
    }
}
