:root {
    --border-color: #000;
}

* {
    padding: 0;
    margin: 0;
    /* box-sizing: border-box; */
}

body {
    min-height: 100vh;

    background-color: #252525;

    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
}

main {
    display: grid;
    grid-template-rows: auto auto auto 1fr;

    width: 720px;
    min-height: 720px;

    margin: 15px auto;

    border: 1px solid var(--border-color);
    box-shadow: 0 0 3px rgba(0, 0, 0, .5);
}

main > section {
    width: 100%;
}

nav, header, .news-ticker {
    padding: 0 10px;
}

header {
    height: 100px;
    background-color: tan;

    display: flex;
    align-items: center;

    /* background-image: url("img/header/downstream.jpg"); */
    background-image: url("img/header/garbage_day.png");
    background-position: center;
    background-size: cover;

    position: relative;

    border-block: 1px solid var(--border-color);
}

header:after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image: linear-gradient(0deg, black, transparent);
    opacity: .5;
}

header .logo {
    z-index: 10;
    
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 1));
}

nav, .news-ticker {
    height: 20px;
    
    background-color: #404040;

    display: flex;
    align-items: center;

    /* border-bottom: 1px solid var(--border-color);  */
}

nav ul {
    list-style: none;
    
    display: flex;
    flex-direction: row;
}

nav ul a {
    color: #FFF;
    text-decoration: none;

    text-shadow: 0 0 5px black;

    margin-right: 5px;
}

nav ul a:hover {
    /* text-shadow: 0 0 3px rgba(255, 255, 255, .75); */
    text-decoration: underline;
}

.news-ticker {
    border-bottom: 1px solid var(--border-color);
}

.news-ticker .label {
    font-weight: bold;
    margin-right: 5px;
}

.news-ticker .animate {
    animation: "newsChanged" 1s;
}

@keyframes newsChanged {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.content {
    background-color: #141313;

    display: grid;
    grid-template-columns: 1fr auto;
}

.content .blog {
    display: flex;
    flex-direction: column;

    padding: 15px 0;
}

.blog-post {
    padding: 0 15px;
}

.blog-post:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    margin-bottom: 15px;
}

.blog-post h2 {
    margin-bottom: 5px;
}

.blog-post .date {
    margin-bottom: 5px;
}

.blog-post .body {
    margin-top: 10px;

    color: #cacaca;

    max-width: 70ch;
}

.blog-post p:not(:last-child) {
    margin-bottom: 10px;
}

.blog-post *:last-child {
    margin-bottom: 10px;
}

.blog-post .author {
    text-align: right;
}

.blog-post .author:before {
    content: "-";
    margin-right: 10px;
}

.content > .info {
    width: 200px;
    /* background-color: red; */

    border-left: 1px solid var(--border-color);

    font-size: 11px;
}

.socials {
    display: flex;
    flex-direction: column;

    padding: 5px;
}

.social {
    padding: 3px 5px;

    background-color: red;

    color: white;
    text-decoration: none;
    text-align: center;

    border-radius: 4px;
}

.social:not(:last-child) {
    margin-bottom: 5px;
}

.social.discord {
    background-color: #5865F2;
}

.social.steamgroup {
    background-color: #474747;
}

.social:hover {
    filter: brightness(120%);
}

.social img {
    height: 16px;
    width: 16px;

    margin-right: 5px;
}

.ad-container {
    margin: 0 5px;
    margin-top: 5px;
}

.server-list {
    border-top: 1px solid var(--border-color);
}

.server {
    position: relative;

    display: flex;
    flex-direction: row;

    align-items: center;
    /* justify-content: center; */

    padding: 4px 5px;

    border-bottom: 1px solid var(--border-color);

    background: rgba(0, 0, 0, .25) linear-gradient(transparent, rgba(255, 255, 255, .1));
}

.server .join-overlay, .server .offline-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, .75);

    font-size: 16px;
    font-weight: bold;
    text-decoration: none;

    color: #FFF;

    pointer-events: all;

    opacity: 0;
}

.server .offline-overlay {
    pointer-events: none;
    opacity: 1;

    background: rgba(255, 0, 0, .3);

    backdrop-filter: saturate(50%) contrast(50%) brightness(50%);
}

.server .join-overlay:hover {
    opacity: 1;
}

.server .join-overlay:focus-visible {
    opacity: 1;
}

.server * {
    z-index: 5;
    pointer-events: none;
}

.server:after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image: radial-gradient(white 65%, transparent 66%);
    background-size: 115%;
    background-position: center -15px;
    background-repeat: no-repeat;

    opacity: .09;
}

.server .info {
    width: 100%;

}

.server .info .game-name {
    font-weight: bold;
}

.server .info {
    padding: 0 5px;
}

.server .info .details {
    display: flex;
    justify-content: space-between;
}

.server .info .details .map {    
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    max-width: 100px;
}

.server .game-icon {
    width: 32px;
    height: 32px;
    
    border-radius: 5px;
}

.ad-container img {
    outline: 1px solid rgba(255, 255, 255, .5);
    outline-offset: 0px;
}