@charset "utf-8";

/*
    CSS Page of "Exploring Hollow Knight"
    Author: Joel Joaquin Nunez
    Date: 03/24/2026
    Filename: hollowknight.css
*/

/* ===== html ===== */
    html {
        background: rgb(0, 0, 0);
    }
/* ===== body ===== */
    body {
        margin: auto;
        max-width: 1280px;
        min-width: 530px;
    }
/* ===== header ===== */
    header {
        background: url(hollow_knight_title_large_white.png) center / auto 60% no-repeat,
                    linear-gradient(to right, rgba(0, 0, 0, 100%), rgb(16, 16, 16), 
                                              rgb(16, 16, 16), rgba(0, 0, 0, 100%));
        width: 100%;
        height: 20em;
        margin: auto;
    }
/* ===== nav ===== */
    nav {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .horizontalnav ul {
        background: linear-gradient(to right, rgba(0, 0, 0, 100%), rgb(16, 16, 16), 
                                              rgb(16, 16, 16), rgba(0, 0, 0, 100%));
        display: flex;
        justify-content: space-between;
    }
    .horizontalnav li {
        flex: 1;
    }
    .horizontalnav a {
        display: block;
        text-align: center;
        padding: 10px;
    }
    a:hover {
        background-color: rgba(255,255,255, 0.1);
    }
/* ===== container ===== */
    .charactercontainer {
        box-shadow: 0 0 20px rgba(255,255,255, .10);
        display: flex;
        max-width: 80%;
        margin: 20px auto 20px auto;
        gap: 20px;
        padding: 20px;
        background: linear-gradient(to right, rgba(0, 0, 0, 100%), rgb(16, 16, 16), 
                                                rgb(16, 16, 16), rgba(0, 0, 0, 100%));
    }
/* ===== image and text container ===== */
    .character-img {
        width: 50%;
        aspect-ratio: 4/3;
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto 100%;
    }
    .character-text {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        text-align: center;
        padding: 10px 0px;
    }
    .character-text h2 {
        margin-bottom: 10px;
        background: rgb(16,16,16);
    }
    .character-text p {
        line-height: 1.5em;
        font-style: italic;
        background: rgb(16,16,16);
        padding: 10px;
    }
/* ===== images ===== */
    .hollowknight {
        background-image: url(knight_godmaster.png);
    }
    .mantislords {
        background-image: url(/boss_mantis_lords.png);
    }
    .radiance {
        background-image: url(bestiary__0001_radiant_moth.png);
    }
/* ===== footer ===== */
    .teamcherry {
        width: 120px;
        height: 100px;
        margin: auto;
    }
    .teamcherry a {
        display: block;
        height: 100%;
        width: 100%;
        color: white;
    }
    .tc-link {
        background: url(team_cherry_logo_big_red.png) center / contain no-repeat;
    }
        /* ===== media queries ===== */
            @media screen and (max-width: 768px) {
                .charactercontainer {
                    flex-direction: column;
                }
                .character-img, .character-text {
                    width: 100%;
                }
            }