@font-face {
    font-family: 'Cousine';
    src: url('cousine/Cousine-Regular.ttf');
}

::-webkit-scrollbar {
    display: none;
}

html,
body {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: "Times New Roman", Times, serif;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body#summary-bd,
body#about-bd {
    overflow: auto !important;
    height: auto !important;
}

a,
a:visited,
a:active {
    color: inherit;
    text-decoration: none;
}

a:hover {
    font-style: italic;
}

@media (min-width: 2000px) {
    html {
        font-size: 200%;
    }
}


/* DURING: WEBSITE VIEW */

.page-container {
    width: 100vw;
    height: 100vh;
    display: grid;
    box-sizing: border-box;
    padding: 4rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}

.section-left {
    grid-column: 1;
    grid-row: 1;
}

.section-right {
    grid-column: 2;
    grid-row: 1;
}

.out-feed,
.out-control {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

#out-descriptions {
    grid-column: 1 / span 2;
    grid-row: 1;
    z-index: 1;
    box-sizing: border-box;
    margin: auto;
    padding: 2rem;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#out-descriptions p {
    margin: 0;
    font-size: 0.8rem;
    text-align: justify;
    max-height: 75vh;
    overflow: auto;
    line-height: 1;
    font-family: "Cousine", "Courier New", Courier, monospace;
    color: white;
    text-transform: uppercase;
}

.validated {
    background-color: red;
}

.flash-title {
    color: white;
    animation: 500ms flash-title infinite alternate;
}

@keyframes flash-title {
    0% {
        color: red;
        text-shadow: 0 0 0px red;
    }

    100% {
        color: white;
    }
}

#about-bd {
    background: black;
}

#before .page-container {
    padding: 0 .25vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    justify-content: space-evenly;
}

#before .inactive-text {
    grid-column: 1 / span 2;
    grid-row: 1;
    z-index: 1;
    box-sizing: border-box;
    margin: auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: white;

    p {
        font-size: 1.2rem;
    }
}

/* DURING: IN-GALLERY FEED VIEW */

#feed .page-container {
    padding: 0;
    animation: flash-bg 500ms infinite alternate;
    display: inline-block;
}

#feed .out-feed video,
#feed .out-feed img,
#feed .out-feed canvas {
    min-width: 99vw;
    max-width: 99.3vw;
    height: 99vh;
    object-fit: cover;
    margin: auto;
}

.feed-top,
.feed-bottom {
    display: flex;
    justify-content: space-between;
    font-family: "Cousine", "Courier New", Courier, monospace;
    color: white;
    text-transform: uppercase;
    position: absolute;
    width: 100vw;
    line-height: 0.75;
}

.feed-top {
    top: 2px;
}

.feed-bottom {
    bottom: 0;
}

.left {
    text-align: left;
    width: 25vw;
}

.center {
    text-align: center;
    width: 50vw;
}

.right {
    text-align: right;
    width: 25vw;
}

.across {
    text-align: center;
    width: 100vw;
}

@keyframes flash-bg {
    0% {
        background-color: black;
    }

    100% {
        background-color: red;
    }
}

#live .across,
#before .across {
    display: none;
}

@media (max-width: 800px) {

    #live .left,
    #live .center,
    #live .right,
    #before .left,
    #before .center,
    #before .right {
        display: none;
    }

    #live .across,
    #before .across {
        display: block;
        font-size: .8rem;
    }

}

/* DURING: IN-GALLERY CONTROL VIEW */

#control .page-container,
#live .page-container {
    padding: 0 .25vw;
    animation: flash-bg 500ms infinite alternate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    justify-content: space-evenly;
}

#live .page-container.paused {
    background: red !important;
    animation: none !important;
}

.out-control video,
#live .out-feed video,
.out-control img,
#live .out-feed img,
.out-control canvas,
#live .out-feed canvas {
    height: 99vh;
    max-width: 49.5vw;
    object-fit: cover;
    margin: auto;
}

#control #out-descriptions {
    padding: 0;
}

#out-descriptions p#descriptions-text1,
#out-descriptions p#descriptions-text2 {
    width: 50vw;
    text-align: center;
    font-size: 1rem;
}

/* AFTER: WEBSITE SUMMARY VIEW */

#summary .page-container {
    align-items: start;
    column-gap: 4rem;
}

.out-title-post {
    grid-row: 1;
    grid-column: 1 / span 2;

    p {
        font-size: 1.2rem;
    }
}

.out-summary {
    text-align: justify;
    padding-bottom: 4rem;
    grid-row: 2;

    p {
        font-size: 1.2rem;
    }
}

.out-summary:nth-of-type(0) {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

.out-summary:nth-of-type(1) {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.version-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    margin: 2rem 0;
    gap: 0;
    grid-column: 1 / span 2;
    grid-row: 3;
    font-size: 1.2rem;
}

@media (max-width: 800px) {
    #summary .page-container {
        display: block;
        padding: 1rem;
        font-size: 75%;
    }

    #summary .out-summary {
        padding-bottom: 0rem;
    }

    #summary .version-nav {
        flex-direction: column;
        gap: 1rem;
    }
}



/* DURING: HEALTH VIEW */

body#health {
    font-family: monospace, monospace;
    background: #f7f7f7;
    margin: 0;
    padding: 1.5em 0.5em;
}

#health .json-container {
    max-width: 80%;
    margin: 0 auto;
    background: #222;
    color: #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.2em 1em;
    font-size: 1.05em;
    overflow-x: auto;
}

#health h2 {
    text-align: center;
    color: #333;
    font-family: sans-serif;
    margin-bottom: 1em;
}

@media (max-width: 600px) {
    #health .json-container {
        font-size: 0.97em;
        padding: 0.7em 0.2em;
    }
}