/*
* Variables
*/

:root {
    --background-color: #F4F4F2;
    --text-color: #1A1A1A;
    --accent-color: #5B9BFF;
}

/* following OS preference (if exists) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #17191C;
        --text-color: #E8E8E6;
        --accent-color: #5B9BFF;
    }
}

[data-theme="light"] {
    --background-color: #F4F4F2;
    --text-color: #1A1A1A;
    --accent-color: #356FE8;
}

[data-theme="dark"] {
    --background-color: #17191C;
    --text-color: #E8E8E6;
    --accent-color: #5B9BFF;
}

/*
* General
*/

html {
    padding-left: 24px;
    padding-right: 24px;
}

html,
body {
    background: var(--background-color);
}

body {
    color: var(--text-color);
    /*font-size: 16px;*/
    display: flex;
    flex-direction: column;
    /*line-height: 1.4;*/
    margin: 0;
    min-height: 100vh;
    /*overflow-wrap: break-word;*/
    font-family: "IBM Plex Sans", sans-serif;
}

main {
    flex: 1;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover,
a:focus,
a.active {
    text-decoration: underline;
    color: var(--accent-color);
}

/*
* Home - Layout Structure
*/

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 40px;
}

/* Mobile responsiveness - Phone will show one column only*/
@media (max-width: 700px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

/*
* Header
*/

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    border-bottom: 1px solid dimgray;
}

.header-items {
    display: flex;
    gap: 8px;
}

.theme-button {
    background-color: transparent;
    border-color: transparent;
    cursor: pointer;
}

/*
* Footer
*/

.footer {
    padding: 1.5rem 0;
    border-top: 1px solid dimgray;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer p {
    margin: 0;
}

.footer span {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 12px;
}

.footer-icon {
    width: 1.2em;
    height: 1.2em;
}

.social-icons {
    display: flex;
    flex-direction: row;
}

.social-icon {
    width: 2.25em;
    height: 2.25em;
}

.social-button {
    color: var(---text-color);
}

/*
* Breadcrumbs
*/

.breadcrumb {
    padding-top: 24px;
}

/*
* 404 - Not Found
*/

.not-found {
    min-height: 90vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.big-h1 {
    font-size: 5rem;
    margin: 0px;
}

/*
* Tags
*/

.tag {
    color: var(--accent-color);
}

/*
* Games
*/

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.games-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.game-preview {
    /*background-color: lightslategrey;*/
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 300px;
    padding: 10px;
}

.game-preview img
{
    max-width: 100%;
}

.game-preview h3
{
    margin-bottom: 0px;
}

.game-preview p {
    color: gray;
    margin-top: 0px;
}

.first-child-fix p:first-child {
    margin-top: 0px;
}

/*
* Media Viewer
*/

.media-viewer {
    position: relative;
    display: inline-block;
}

.md-main {
    display: none;
}

.md-main.active {
    display: block;
    width: 100%;
    height: auto;
}

.md-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(203px, 1fr));
    gap: 6px;
}

.md-thumb-item {
    position: relative;
    cursor: pointer;
}

.video-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;

    padding-left: 3px;
}

.md-thumb {
    display: block;
    width: 100%;
    height: auto;
    /*object-fit: cover;*/
    border: 3px solid transparent;
    box-sizing: border-box;
}

.md-thumb.selected {
    border-color: var(--accent-color);
}

.preview-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.5);

    padding: 0;

    cursor: pointer;
}

.preview-arrow-left {
    left: 10px;
}

.preview-arrow-right {
    right: 10px;
}

/*
* Art
*/

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.image-grid > div {
    margin: 0;
    padding: 0;
}

.image-grid a {
    display: block;
    line-height: 0;
}

.image-grid img {
    display: block;
    height: 100px;
    width: auto;
}

/*
* Content - Common
*/

/* TODO: Improve the name of these variables? */
.content-h1 {
    margin-bottom: 0;
}

.content-timestamp {
    color: grey;
}

.grey {
    color: grey;
}

.content-subheader {
    height: fit-content;
    display: flex;
    align-items: center;
    line-height: 0;
    gap: 8px;
    /*background-color: red;*/
}

/*
* About Me
*/

.profile {
    display: flex;
    flex-direction: row;
    padding: 16px;
    align-items: center;
    justify-content: left;
}

.profile img {
    width: 100px;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-texts {
    display: flex;
    flex-direction: column;
    padding-left: 24px;
}

.profile-texts h1 {
    margin-top: 8px;
    margin-bottom: 0px;
}

.profile-texts p {
    color: grey;
    margin: 0px;
}

.profile-icons {
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    gap: 4px;
}
