:root {
    /* Sozaijiten - Vol. 119 - Images of Water */
    --main-bg-src: url("./assets/Sozaijiten/AC096.JPG");
    /* Sozaijiten - Vol. 178 - Greenery, Water & Air - Eco Images */
    --header-bg-src: url("./assets/Sozaijiten/HJ110_350A.jpg");
}

@font-face {
    font-family: 'Sissy That Font';
    src: url('./assets/fonts/Sissy_That_Font.otf');
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

#app {
    margin: -1rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    
    /* Cancel out padding */
}
#pixi-container {
    width: min(80vw, 80vh);
    height: min(80vw, 80vh);
}

body, html {
    height: 100%;
}


/* holy grail 3-column layout */
/* https://matthewjamestaylor.com/holy-grail-layout */
/* grid container */
.body-content {
    display:grid;
    grid-template-rows:auto 1fr auto auto auto;
    grid-template-areas:
        'header'
        'main-content'
        'footer';

    /* fallback height */
    min-height:100vh;

    /* new small viewport height for modern browsers */
    min-height:100svh;

    background-color: #4076d358;
    background: var(--main-bg-src);
    background-position-x: center;
}

/* general column padding */
.body-content > * {
    padding:1rem;
}

/* assign columns to grid areas */
.body-content > .header {
    grid-area:header;
    padding: 0;
    background-image: var(--header-bg-src);
    background-position: center;
    background-size: cover;
    text-align: center;
}
.body-content > .header > h1 {
    font-family: 'Sissy That Font';
    font-size: 6em;
    font-weight: normal;
    color: midnightblue;
    margin: 0.2em auto 0
}
.body-content > .header > h2 {
    font-family: serif;
    color: midnightblue;
    margin: 0 auto 0.2em;
    position: relative;
    top: -1em;
}

.body-content > .main-content {
    grid-area:main-content;
    background:#fff;
}
.body-content > .main-content:has(#games.active) {
    background:none !important;
}
.page {
    display: none;
}
.page.active {
    display: block;
}

.body-content > .footer {
    grid-area:footer;
    background:#72c2f1;

    display: flex;
    justify-content: space-around;
}

.footer > div > p {
    margin: 0.2em 0;
}


/* tablet breakpoint */
@media (min-width:768px) {
    .body-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows:auto 1fr auto auto;
        grid-template-areas:
            'header header'
            'main-content main-content'
            'left-sidebar right-sidebar'
            'footer footer';
    }
}

/* desktop breakpoint */
@media (min-width:1024px) {
    .body-content {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows:auto 1fr auto;
        grid-template-areas:
            'header header header header'
            'left-sidebar main-content main-content right-sidebar'
            'footer footer footer footer';
    }
    #pixi-container {
        width: 40vw;
        height: 40vw;
    }
}




/* Add a black background color to the top navigation */
.topnav {
    background-color: #fff;
    overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav button {
    float: left;
    /* color: #f2f2f2; */
    
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    
    background-color: inherit;
    border: none;
    outline: none;
}
/* Change the color of links on hover */
.topnav button:hover {
    background-color: #ddd;
    color: black;
}

/* Add a color to the active/current link */
.topnav button.active {
    background-color: midnightblue;
    color: white;
}

.about_people_collection {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/*About page*/
.about_person {
    display: flex;
    text-align: justify;
}
.about_person > div {
    font-size: 3em;
}
.about_person > p {
    align-content: center;
    font-size: 2em;
    margin: 0;
}

/* Image Gallery */
.image-gallery > .row {
    display: flex;
    justify-content: space-evenly;
}
.image-gallery > .row > img {
    /* max-width: 10em; */
    min-width: 25%;
    cursor: pointer;
}

.preview {
  position: relative;
}
.image-gallery > .preview >  .preview-text {
    padding: 0.2em;
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: midnightblue;
    background-color: #b4b7ffcc;
    font-size: 2em;
}