/* This is a "common styles" reference that should remain consistent
   across the vast majority of the cyberwing hub website */


/* -- Theme fonts -- */
@import url("fonts/axiforma.css");
@import url("fonts/jetbrains-mono.css");


/* -- Global color theme -- */
:root {
    --text-primary: #171511;
    --text-primary-accent: #e2e8ea;
    --background-navigation: #e2e8ea;
    --background-content: #e2e8ea;
    --background-content-accent: #212529;
    --background-content-dark: #131518;
    --background-panel: #dbddf7;
    --background-transparent: rgba(0, 0, 0, 0);
    --theme-accent-red: #c9686b;
    --theme-accent-blue: #4fadeb;
    --theme-accent-purple: #6941d8;
    --theme-accent-gray: #212529;
    --theme-accent-bright-blue: #1ba1df;
    --theme-accent-bright-purple: #551bdf;
    --accent-background-dim: rgba(0, 0, 0, 0.25);
    --accent-background-dark: rgba(0, 0, 0, 0.45);
    --accent-background-undim: rgba(255, 255, 255, 0.25);
    --accent-background-light: rgba(255, 255, 255, 0.375);
    --accent-twitch: #793fe4;
    --accent-youtube: #e43f3f;
    --accent-discord: #3f8ce4;
    --accent-mastodon: #3fe4b2;
    --accent-github: #a1a1a1;

    /* --accent-purple: #551bdf; */

    /* Dark mode variants */
    /* --background-navigation-dark: #323232; */
    /* --background-content-dark: #1c1c1c; */
}


/* -- Modifier tags -- */
.hidden {
    display: none;
}

.italic {
    font-style: italic;
}

.monospace {
    font-family: Jetbrains-Mono, monospace;
}

.monospace-accent {
    margin-right: 4px;
    margin-left: 4px;
    padding-right: 4px;
    padding-left: 4px;
    border-radius: 8px;
    background-color: var(--accent-background-dim, transparent);
    font-family: Jetbrains-Mono, monospace;
}


/* -- Page display types (body) -- */
.single-page {
    margin: 0px;
    width: inherit;
    max-width: 100%;
    /* max-height: 100%; */
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    position: absolute;
    transform: translate(0,-27.5%);
    top: 50%;
}

.content-sections {
    margin: 0px;
    /* background-color: blue; */
}


/* ------------------------ */
.error-display {
    max-width: 560px;
    color: var(--text-primary-accent, #e2e8ea);
}

.error-code {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    font-weight: 950;
    font-size: 120px;
    line-height: 1;
}

.error-message {
    margin-top: -4px;
    margin-left: 12px;
    margin-right: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 1;
    position: relative;
    border-radius: 16px;
    background-color: rgb(11, 12, 13);
    font-weight: 600;
    font-size: 24px;
}

.error-extra {
    margin-top: -24px;
    margin-bottom: 8px;
    margin-left: 12px;
    margin-right: 12px;
    padding-top: 36px;
    padding-bottom: 16px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 16px;
    position: relative;
    background-color: rgb(17, 19, 20);
}


/* ------------------------ */

.navigation {
    padding-top: 4px;
    padding-bottom: 4px;
    /* padding-left: 48px; */
    position: relative;
    background-color: var(--background-navigation, #e2e8ea);
    text-align: center;
    font-size: 28px;        /* Consdier 40px for large size */
    color: var(--text-primary, #171511);
}

.login-icon {
    height: 43px;
    width: 43px;
    position: absolute;
    display: none;
    top: 3px;
    right: 20px;
    object-fit: contain;      /* alternatively cover */
    object-position: center;
    border: 3px solid;
    border-color: #171511;
    border-radius: 50%;
}

.socials {
    height: 560px;
    padding: 0px;
    background-size: cover;
    background-position: center;
    /* background-image: url("../img/background/showcase.png"); */
}

.socials-display {
    height: inherit;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--accent-background-dim, transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* .socials-bounds {
    height: inherit;
    max-width: inherit;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
} */

.socials-profile {
    padding: 0px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.socials-image {
    margin: 8px;
    height: 180px;
    width: 180px;
    display: none;
    border-radius: 50%;
    border: 4px solid;
    border-color: var(--background-content, #e2e8ea);
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.socials-text {
    padding: 8px;
}

.socials-title {
    margin-left: 8px;       /* previously -4px */
    margin-right: 8px;
    /* margin-top: 8px; */
    /* margin-bottom: 8px; */
}

.socials-subtitle {
    margin-top: -16px;
    margin-bottom: 8px;
    margin-left: 12px;
    margin-right: 12px;
    /* margin-left: -4px; */
    /* margin-right: -4px; */
    /* font-style: italic; */
}

.socials-button-display {
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.socials-button {
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 32px;
    min-width: 120px;
    /* max-width: 400px; */
    border: 2px solid;
    border-radius: 12px;
    background-color: var(--accent-background-dark, transparent);
    /* display: flex; */
    font-weight: 800;
    text-decoration: none;
    color: inherit;
    -webkit-transition: 300ms ease;
    -o-transition: 300ms ease;
    transition: 300ms ease;
}

.content {
    background-color: var(--background-content, #e2e8ea);
    color: var(--text-primary, #171511);
}

.content-accent {
    background-color: var(--background-content-accent, #212529);
    color: var(--text-primary-accent, #e2e8ea);
}

.content-bounds {
    margin-top: 8px;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-title {
    padding-left: 16px;
    margin-left: 0px;
    margin-right: 0px;
}

.content-subtitle {
    padding-left: 6px;
    margin-left: 4px;
}

.panel-display {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    flex-direction: column;     /* Swap to row on large size */
    gap: 24px;
}

.panel {
    padding: 0px;
    min-height: 200px;
    min-width: 152px;
    border: 4px solid;
    border-radius: 12px;
    border-color: var(--theme-accent-purple, #6941d8);
    flex-shrink: 0;            /* base size needs experimentation - Max per row maybe 2? */
    object-fit: cover;
    overflow: hidden;
    background-color: var(--background-panel, #e2e8ea);
    text-decoration: none;
    color: var(--text-primary, #171511);
    -webkit-transition: 300ms ease;
    -o-transition: 300ms ease;
    transition: 300ms ease;
}

.panel:hover {
    border-color: var(--theme-accent-blue, #4fadeb);
    -webkit-transform: scale(1.05) translateZ(0);
    transform: scale(1.05) translateZ(0);
}

.panel-image {
    /* max-height: 60%; */
    height: 180px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.panel-title {
    margin: 8px 0px 4px 0px;
    padding-left: 16px;
    padding-right: 16px;
    font-weight: 900;
    font-size: 38px;
    line-height: 1;
}

.panel-text {
    margin-top: 0px;
    margin-bottom: 16px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 16px;
    padding-right: 16px;
    display: block;
    font-weight: 300;
    font-size: 20px;
}

.module-display {
    padding-top: 16px;
    padding-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(108px, 132px));        /* repeat(auto-fit, 108px) for large size */
    justify-content: center;
    column-gap: 8px;
    row-gap: 24px;
}

@media (min-width: 360px) {
    .module-display { grid-template-columns: repeat(3, minmax(112px, 124px)); }
}

@media (min-width: 732px) {
    .module-display { grid-template-columns: repeat(6, minmax(112px, 120px)); }
}

/* .module { Auto margins will shrink the object to content size } */

.module {
    border-radius: 12px;
    background-color: var(--background-content-dark, #131518);
    text-decoration: none;
    color: var(--text-primary-accent, #e2e8ea);
    -webkit-transition: 300ms ease;
    -o-transition: 300ms ease; 
    transition: 300ms ease;
}

.module:hover {
    /* -webkit-transform: scale(1.025) translateZ(0); */
    /* transform: scale(1.025) translateZ(0); */
    background-color: var(--accent-background-undim, #9e9e9e);
}

/* .module:hover .module-button {
    background-color: var(--accent-background-undim);
} */

.module-button {
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
    height: 80px;
    width: 80px;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* -- ALTERNATIVE MODULE BUTTON -- * /
.module-button {
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
    height: 80px;
    width: 80px;
    display: block;
    object-fit: contain;
    object-position: center;
    border: 3px solid;
    border-radius: 12px;
    border-color: var(--background-content);
}
*/

.module-text {
    padding-top: 16px;
    padding-bottom: 16px;
    /* max-width: 120px; */
    text-align: center;
    font-weight: 950;
    font-size: 18px;
    line-height: 1.1;
}

/* .profile-display {} */

.profile {
    padding: 0px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}

.profile-text {
    padding-left: 16px;
    padding-right: 16px;
    flex-grow: 1;
}

.profile-image {
    padding: 8px;
    margin-top: 20px;
    margin-bottom: 12px;
    position: relative;     /* necessary for positioning of fancy border effect */
    margin-left: auto;
    margin-right: auto;
    width: 288px;
    height: 288px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    /* background-color: var(--background-content-accent); */
}

.sitemap-display {
    display: flex;
    flex-direction: row;
}

.sitemap {
    font-size: 14px;
    line-height: 1.1;
}

/* .sitemap-link {} */

.divider {
    margin-right: 12px;
    margin-left: 12px;
    padding-bottom: 16px;
    min-width: 240px;
    border-top: 1px solid;
    border-color: var(--text-primary-accent, #e2e8ea);
}

/* .divider-dark {
    margin-right: 12px;
    margin-left: 12px;
    border-top: 1px solid;
    border-color: var(--background-content-accent, #212529);
} */

/* -- Base HTML elements -- */ 
html {
    overflow-x: hidden;
    font-family: Axiforma, Helvetica, sans-serif;
    background-color: var(--background-content-accent, #212529);
}

/* body {
    background-color: green;
} */

div {
    padding: 8px;
}

/* form {
    margin: 0px;
    padding: 0px;
    display: contents;
} */

h1 {
    margin: 8px;
    /* padding: 8px; */
    font-size: 52px;
    font-weight: 800;
}

h2 {
    margin: 6px;
    /* padding: 6px; */
    font-size: 44px;
    font-weight: 700;
}

h3 {
    margin: 4px;
    /* padding: 4px; */
    font-size: 32pt;
    font-weight: 600;
}

h4 {
    margin: 4px;
    /* padding: 4px; */
    font-size: 32pt;
    font-weight: 400;
}

h5 {
    margin: 4px;
    font-size: 24px;
    font-weight: 400;
}

h6 {
    margin: 4px;
    font-size: 16px;
    font-weight: 400px;
}


/* -- LARGE SIZE DISPLAY -- */
@media (min-width: 800px) {
    .content-bounds {
        max-width: 892px;
    }
    
    .error-display {
        padding-left: 20px;
        padding-right: 20px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
    }

    .error-display::before {
        content: "//";
        margin-left: 24px;
        margin-right: 16px;
        margin-bottom: 32px;
        font-size: 160px;
        font-weight: 900;
        line-height: 1;
    }

    .socials {
        height: 300px;
    }

    .socials-display {
        max-width: inherit;
        flex-direction: row;
        align-items: center;
    }

    /* .socials-bounds {
        margin-left: auto;
        margin-right: auto;
        max-width: 1500px;
        flex-direction: row;
        align-items: center;
        /* justify-content: center; /
    } */

    .socials-profile {
        padding-left: 40px;
        padding-right: 0px;
        margin-top: -32px;
        max-width: 820px;
        align-items: flex-end;
        flex-grow: 1;
    }

    .socials-image {
        display: block;
    }

    .socials-text {
        margin-bottom: 12px;
        margin-left: -100px;
        padding-top: 0px;
        padding-left: 100px;
        border-radius: 20px;
        background-color: var(--accent-background-dark, transparent);
    }

    .socials-button-display {
        margin-top: -20px;
        margin-left: 4px;
        margin-right: 16px;
        min-width: 120px;
        flex-basis: 300px;
        /* flex-grow: 1; */
        flex-shrink: 0.8;         /* alternatively 0.8 */
    }
    /* .socials-button-display {
        max-width: 1000px;
        flex-direction: row;
        margin-top: -10px;
    } */

    .socials-button {
        min-width: 120px;
        padding-left: 20px;
        /* flex-basis: 110px; /* Enable this for horizontal flex-direction: row mode */
    }

    .panel-display {
        flex-direction: row;
        justify-content: center;
    }

    .panel {
        flex-basis: 0;
        flex-grow: 1;
    }

    .panel-image {
        height: 240px;
    }

    .profile {
        padding-left: 16px;
        padding-right: 16px;
        flex-direction: row;
        gap: 20px;
    }

    .profile-text {
        padding-left: 0px;
        padding-right: 8px;
    }

    .profile-image {
        margin-top: -32px;
        flex-shrink: 0;
    }

    .module-display {
        padding-top: 32px;
        padding-bottom: 24px;
        grid-template-columns: repeat(6, minmax(112px, 150px));
        column-gap: 16px;
    }

    .divider {
        display: none;
    }
    /*.divider {
        max-width: 1000px;       /* TODO: I need to move this rule somewhere else... /
        margin-top: 6px;
        padding-bottom: 6px;
        border-top: 1px solid;
        border-color: var(--text-primary-accent, #e2e8ea);
    }*/
}
