:root {
    background: linear-gradient(-45deg, #ff0000, #dd2020, #1d36c2, #002fff);
    background-size: 400% 400%;
    animation: gradient 8s ease infinite;
    color: #e5e5ec;
    font-family: ubuntu-mono, monospace;
}

@keyframes gradient {
    0% {
        background-position: 0% 85%;
    }

    50% {
        background-position: 85% 0%;
    }

    100% {
        background-position: 0% 85%;
    }
}

body {
    margin: 0;
    min-height: 100vh;
}

.svg-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

h1 {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    left: 5%;
}

a {
    color: #276dbd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.filter {
    width: 100%;
    height: 100%;
    position: fixed;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 1) 55%);
    background-position: 0 0, 50px 50px;
    background-size: 1px 3px;
    box-shadow: inset 0 0 100px black;
}

.content {
    position: absolute;
    left: 10%;
    top: 10%;
    width: 80%;
    height: 80%;
    display: flex;
    overflow: hidden;
    filter: drop-shadow(2px 4px 6px black)
}

.tabs {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: center;
    min-height: 1.75rem;
    overflow: hidden;
    background-color: #000000;
    border: #383838 solid 1px;
    border-top: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: #383838;
}

.tab {
    min-width: 5rem;
    padding: 0.3rem 0.75rem;
    border: 0;
    border-right: 1px solid #252525;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: small;
    cursor: pointer;
}

.tab:first-child {
    border-left: 1px solid #252525;
}

.tab:hover,
.tab.is-active {
    color: #e5e5ec;
    background-color: #111111;
}

.tab.is-active {
    box-shadow: inset 0 -1px #273b61;
}

.tab:focus-visible {
    position: relative;
    outline: 1px solid #e5e5ec;
    outline-offset: -3px;
}

.footer {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    display: flex;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #000000;
    border: #383838 solid 1px;
    color: #383838;
    /* max-width: 100vh; */
}

.footer p {
    text-align: center;
    justify-content: center;
    width: 100%;
    font-size: small;
}

.footer a {
    color: #273b61
}

.card-area {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 100%;
}

.tab-panel[hidden] {
    display: none;
}

.tab-panel {
    position: absolute;
    inset: 0;
}

.tab-panel.fly-in-from-right {
    animation: fly-in-from-right 380ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.tab-panel.fly-in-from-left {
    animation: fly-in-from-left 380ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.tab-panel.fly-out-to-left {
    animation: fly-out-to-left 380ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.tab-panel.fly-out-to-right {
    animation: fly-out-to-right 380ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes fly-in-from-right {
    from { opacity: 0; transform: translateX(35%) scale(0.94); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fly-in-from-left {
    from { opacity: 0; transform: translateX(-35%) scale(0.94); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fly-out-to-left {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(-35%) scale(0.94); }
}

@keyframes fly-out-to-right {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(35%) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
    .tab-panel {
        animation: none !important;
    }

    .js .page-ready .card,
    .card.image-card img,
    .image-card::after {
        transition-duration: 0.01ms;
    }
}

/* A little horizontal card with a logo and link inside it */
.card {
    display: flex;
    width: 100%;
    height: 10vh;
    max-width: 40vh;
    color: #383838;
    background-color: #e5e5ec;
    border-radius: 10px;
    transition: all 0.5s;
    padding: 1vh
}

.js .card {
    opacity: 0;
}

.js .page-ready .card {
    opacity: 1;
    transition: opacity 900ms ease, transform 0.5s;
}

.card:hover {
    transform: scale(1.03);
    text-decoration: none;
}

.card:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.image-card {
    position: relative;
    height: auto;
    min-height: 10rem;
    padding: 0;
    overflow: hidden;
    background: #17131e;
}

.image-card::after {
    content: "loading Discord status…";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: #80778c;
    font-size: small;
    text-align: center;
    transition: opacity 500ms ease;
}

.image-card.load-failed::after {
    content: "Discord status unavailable";
}

.image-card.is-loaded,
.image-card.load-failed {
    min-height: 0;
}

.image-card.is-loaded::after {
    opacity: 0;
}

.card.image-card img {
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    opacity: 0;
    transition: opacity 700ms ease;
}

.card.image-card.is-loaded img {
    opacity: 1;
}

.card-link-label {
    color: #276dbd;
}

.card svg,
.card img {
    /* Make padding fill space */
    height: 100%;
    width: 30%;
    vertical-align: middle;
    min-width: 35px;
}

.identity-card {
    position: relative;
}

.identity-card .identity-badge {
    position: absolute;
    right: 1vh;
    bottom: 1vh;
    width: 1.6rem;
    height: 1.6rem;
    min-width: 0;
    fill: currentColor;
}

.card p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.overlay {
    /* Must obstruct everything else until the animation is done */
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    border-radius: 10px;
    transition: all 5s;
}
