*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Source Code Pro', 'Courier New', Courier, monospace, serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000000;
    background-image: linear-gradient(to right, rgba(0,0,0,0.93),rgba(0,0,0,0.93)), url("../assets/bkg.png");
    background-repeat: repeat;
    color: #00ffff;
}

header {
    width: 100%;
    flex-shrink: 0;
}

.banner-container {
    position: relative;
    height: 325px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 35%;
    display: block;
    filter: brightness(0.7) saturate(1.5) hue-rotate(25deg);
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    padding: 0 1rem;
    user-select: none;
    text-shadow:
    0 0 6px #00ffff;
    font-family: 'Kode Mono', 'Source Code Pro', 'Courier New', Courier, monospace, serif;
}

nav {
    width: 100%;
    background: #001111;
    border-top: 2px solid #00ffff;
    border-bottom: 2px solid #00ffff;
    box-shadow: 0px 0px 10px 5px rgba(0, 255, 255, 0.7);
    z-index: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
}

nav ul li {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    display: block;
    color: #a0ffff;
    font-family: 'Kode Mono', 'Source Code Pro', 'Courier New', Courier, monospace, serif;
    border: solid;
    border-width: 1px 2px 1px 2px;
    border-color: #00ffffff;
    background: #001212;
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
}

nav.webring ul li:nth-child(2) {
    width: 150px;
    text-align: center;
}

nav ul li:hover,
nav ul li:focus {
    text-decoration: underline;
}

nav ul li.active {
    background: #00ffff;
    text-decoration-color: #000000;
}

nav ul li a,
nav ul li a:visited{
    color: #00ffff;
    text-decoration-color: #00ffff;
    text-decoration: none;
}

nav ul li.active a,
nav ul li.active a:visited{
    color: #000000;
    text-decoration-color: #000000;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    z-index: 10;
    padding-bottom: 0.6rem;
}

main a:visited{
    color: #ffffff;
}

.text-section {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #66ffff;
    font-family: 'Source Code Pro', 'Courier New', Courier, monospace, serif;
}

.text-section h2, h3, .webring-header {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #00ffff;
    font-family: 'Kode Mono', 'Source Code Pro', 'Courier New', Courier, monospace, serif;
}

.text-section h2 {
    font-size: 2rem;
}

.text-section h3{
    font-size: 1.5rem;
}

.text-section p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #33cccc;
    text-align: justify;
    text-align-last: center;
}

.text-section ul {
    display: block;
    max-width: 33%;
    margin: auto;
}

.text-section ul li {
    list-style: none;
    padding: 5px;
    background-image: url("../assets/bullet.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px;
}

.text-section a {
    color: #00ffff;
    text-decoration: underline;
}

.link-block {
    width: 400px;
    margin: 0 auto;
    text-align: center; /* for heading text */
}

.link-block h2 {
    font-family: 'Kode Mono', 'Source Code Pro', 'Courier New', Courier, monospace, serif;
}

.link-buttons {
    list-style: none;
    text-align: center;
    width: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    justify-content: center;
    font-family: 'Source Code Pro', 'Courier New', Courier, monospace, serif;
    margin-top: 1rem;
}

.link-buttons li {
    margin-top: 0;
}

/* center last link if odd number */
.link-buttons li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

.link-buttons a {
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    display: block;
    box-shadow: 5px 5px #00a0a0;
    color: #a0ffff;
    text-align: center;
    font-family: 'Source Code Pro', 'Courier New', Courier, monospace, serif;
    border: 3px solid;
    border-color: #00ffffff #00ffff40 #00ffff40 #00ffffff;
    background: #001212;
    user-select: text;
    cursor: pointer;
}

.link-buttons li:last-child:nth-child(odd) a {
    width: 184px;
}

.link-buttons a.nsfw {
    background: #00ffff;
    color: #000000;
    font-weight: bold;
    border-color: #00ffffff #00000070 #00000070 #00ffffff;
}

.link-buttons a:hover,
.link-buttons a:focus {
    transform: translate(0, -2px);
    outline: none;
}

/* press down animation on mouse left button down */
.link-buttons a:active {
    transform: translate(5px, 5px);
    box-shadow: 0px 0px rgba(255, 255, 255);
    filter: brightness(0.7);
    transition-duration: instant;
}

footer {
    width: 100%;
    flex-shrink: 0;
    padding: 1.5rem 0;
    background: #001111;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 12px rgba(0, 255, 255, 0.7);
    color: #00ffff;
}

footer img {
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    box-shadow:
    0 0 7px #00ffff,
    0 0 11px #40e0d0;
}

footer div{
    display: grid;
    place-items: center;
}

footer div p, footer div a {
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #66ffff;
    max-width: 600px;
    font-family: 'Source Code Pro', 'Courier New', Courier, monospace, serif;
    width: 400px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline dotted white;
}
.tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: black;
    color: #ffffff;
    text-align: center;
    padding: 5px 5px;
    border-radius: 2px;
    border-color: #00cccc;
    border-style: solid;
    position: absolute;
    z-index: 1;
    font-size: 1rem;
}
.tooltip:hover .tooltiptext, .tooltip:focus .tooltiptext {
    visibility: visible;
}

@media (max-width: 480px) {
    .banner-container {
        height: 180px;
    }
    .banner-title {
        font-size: 1.75rem;
    }
    nav.navbar ul {
        flex-direction: column;
    }
    nav.navbar ul li {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    .text-section {
        max-width: 90vw;
        margin-bottom: 1.5rem;
    }
    .text-section h2 {
        font-size: 1.5rem;
    }
    .text-section p {
        font-size: 1rem;
    }
    .link-buttons, .link-buttons li:last-child:nth-child(odd), .link-buttons li:last-child:nth-child(odd) a {
        width: 90vw;
        grid-template-columns: 1fr;
        gap: 1rem 0;
    }
    .link-block {
        width: 90vw;
    }
    footer img {
        max-width: 80px;
    }
    footer div p {
        max-width: 90vw;
    }
    .tooltiptext {
        max-width: 60vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
