main {
    width: 	min(calc(100% - 4rem), 720px);
    min-height: calc(100vh - 10.3rem);
    margin: 0 auto 2rem auto;
    padding-top: 4rem;
}

main h1 {
    line-height: 3rem;
    color: var(--primary);
}

main h2 {
    color: var(--secondary);
}

main h3 {
    color: var(--tertiary);
}

div#me_irl {
    width: fit-content;
    height: fit-content;
    border: 2px solid white;
}

div#me_irl img {
    display: block;
}

div#me_irl::before {
    content: "";
    position: absolute;
    width: 104px;
    height: 104px;
    transform: translate(2px, 2px);
    background-image: linear-gradient(to top right,
    var(--primary),
    var(--secondary));
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
small,
blockquote {
    transition: background-color 0.1s;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: inherit;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
    text-decoration: none;
}

main h1:hover,
main h2:hover,
main h3:hover,
main h4:hover,
main h5:hover,
main h6:hover,
main p:hover,
main small:hover,
main blockquote:hover {
    background-color: #fff1;
}

blockquote {
    margin: 1rem 0;
    padding: 0 2.5rem;
}

hr {
    text-align: center;
    line-height: 0px;
    border-width: 1px 0 0 0;
    border-color: #888;
    margin: 1.5em 0;
    overflow: visible;
}

ul.platform-links {
    padding-left: 1em;
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
}

ul.platform-links li {
    list-style: none;
}

ul.platform-links li a {
    padding: .4em .5em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .5em;
    border: 1px solid var(--links);
    color: var(--links);
    border-radius: 2px;
    background-color: transparent;
    transition-property: color, border-color, background-color, box-shadow;
    transition-duration: .2s;
    animation-delay: 0s;
    animation: list-item-fadein .2s forwards;
    opacity: 0;
}

ul.platform-links li a:hover {
    color: #eee;
    border-color: #eee;
    background-color: var(--links) !important;
    text-decoration: none;
    box-shadow: 0 0 1em var(--links);
}

ul.platform-links li a img {
    height: 1em;
    width: 1em;
}

ul#projects {
    padding: 0;
    list-style: none;
}

li.project-item {
    padding: .5em;
    border: 1px solid var(--links);
    margin: 1em 0;
    display: flex;
    flex-direction: row;
    gap: .5em;
    border-radius: 2px;
    transition-property: color, border-color, background-color, box-shadow;
    transition-duration: .2s;
    cursor: pointer;
}
li.project-item a {
    transition: color .2s linear;
}

li.project-item:hover {
    color: #eee;
    border-color: #eee;
    background-color: var(--links) !important;
    text-decoration: none;
    box-shadow: 0 0 1em var(--links);
}
li.project-item:hover a {
    color: #eee;
}

li.project-item .project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

li.project-item img.project-icon {
    width: 2.5em;
    height: 2.5em;
    object-fit: cover;
    border-radius: 2px;
}

li.project-item span.project-icon {
    font-size: 2em;
    display: block;
    width: 45px;
    height: 45px;
    text-align: center;
    /* background: #0004; */
    /* border: 1px solid var(--on-background); */
    border-radius: 2px;
}

li.project-item a {
    text-decoration: none;
}

li.project-item p {
    margin: 0;
}

div#web-buttons {
    margin: 2rem 0;
}

#web-buttons a {
    text-decoration: none;
}

#web-buttons img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

#web-buttons img:hover {
    margin: -1px;
    border: 1px solid #eee;
    transform: translate(-2px, -2px);
    box-shadow: 1px 1px 0 #eee, 2px 2px 0 #eee;
}

#live-banner {
    margin: 1em 0 2em 0;
    padding: 1em;
    border-radius: 4px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

#live-banner p {
    margin: 0;
}

.live-highlight {
    color: var(--primary);
}

.live-preview {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 1em;
}

.live-preview div:first-of-type {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: .3em;
}

.live-thumbnail {
    border-radius: 4px;
}

.live-button {
    margin: .2em;
    padding: .4em .5em;
    display: inline-block;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    transition: color .1s linear, background-color .1s linear, box-shadow .1s linear;
}

.live-button:hover {
    color: var(--background);
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    text-decoration: none;
}

.live-info {
    display: flex;
    flex-direction: column;
    gap: .3em;
    overflow-x: hidden;
}

#live-banner h2 {
    margin: 0;
    color: var(--on-background);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-style: italic;
}

.live-pinger {
    width: .5em;
    height: .5em;
    margin: .1em .2em;
    display: inline-block;
    border-radius: 100%;
    background-color: var(--primary);
    box-shadow: 0 0 4px var(--primary);
    animation: live-pinger-pulse 1s infinite alternate ease-in-out;
}

@keyframes live-pinger-pulse {
    from {
        opacity: .8;
        transform: scale(1.0);
    }
    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

.live-game {
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
}

.live-game .live-game-prefix {
    opacity: .8;
}

.live-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-viewers {
    opacity: .5;
}

.webring {
    display: flex;
    flex-direction: row;
}
.webring a {
    border: 1px solid var(--links);
    height: 1.5em;
    padding: 0 0.5em;
    text-align: center;
    line-height: 1.7em;
    transition: color .1s linear, background-color .1s linear, box-shadow .1s linear;
}
.webring a:nth-child(1) {
    border-radius: 2px 0 0 2px;
    border-right: none;
}
.webring a:nth-child(3) {
    border-radius: 0 2px 2px 0;
    border-left: none;
}
.webring a:hover {
    color: #eee;
    border-color: #eee;
    background-color: var(--links) !important;
    text-decoration: none;
    box-shadow: 0 0 1em var(--links);
}
