/* GENERAL CLASSES
 * ==================================================================== */
.f-horiz {
    display: flex;
    flex-direction: row;
}
.f-vert {
    display: flex;
    flex-direction: column;
}
.f-around {
    display: flex;
    justify-content: space-around;
}
.f-center {
    display: flex;
    align-items: center;
}

.text-center {
    text-align: center;
}

.block-center {
    display: block;
    margin: auto;
    text-align: center;
}

.button {
    cursor: pointer;
    background-color: var(--button-bg-color);
    border: 8px outset var(--button-border-color);

    padding: 4px;

    font-size: 24px;
    text-align: center;
    color: var(--button-text-color);
    text-decoration: none;

    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.button:active {
    border-style: inset;
    background-color: var(--button-active-bg-color);
}

.post {
    background: var(--post-bg-color);
    border: 4px groove var(--post-bg-color);
    padding: 40px;
    color: var(--post-text-color);
    margin-bottom: 40px;
}

.post :is(h1, h2, h3, h4) {
    font-family: "Lugrasimo", cursive;
}

.post :first-child:is(h1, h2, h3, h4) {
    text-align: center;
    margin-top: 0;
}

.post p {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
}

.hidden {
    display: none;
    visibility: hidden;
}

.flip {
    transform: scaleX(-1);
}

.width-fit {
    max-width: 100%;
}

.two-col {
    display: grid;
    grid-template-columns: calc(60% - 10px) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 75rem) {
    .two-col {
        display: flex;
        flex-direction: column;
    }
}

/* UNIVERSAL LAYOUT
 * ==================================================================== */

html, body {
    background-color: var(--bg-color);
    background-image: var(--bg-img);
    margin: 0;
    padding: 0;
}

#leftWrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 256px;

    overflow-y: auto;
}

#left {
    box-sizing: border-box;
    padding: 16px;
    position: relative;
    background-image: var(--bg-img);
    min-height: 100%;
}

#left img {
    width: 100%;
}

#left .page-img {
    margin-bottom: 20px;
    width: 90%;
    height: 320px;
}

#left .button-list {
    flex-grow: 1;
    justify-content: space-between;
    max-height: 350px;
    width: 90%;
}

#main {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 80px;
    padding-left: calc(80px + 256px);

    max-width: 1600px;
    margin: auto;
}

.title {
    max-width: 40vw;
}

#footer {
    text-align: center;
    font-family: monospace;
    color: var(--footer-text-color);
    margin-bottom: 0;
}
#footer a {
    color: var(--footer-text-color);
}

a.unstyle-link, .unstyle-link a {
    color: inherit;
    text-decoration: none;
}

a.unstyle-link:hover, a.unstyle-link:focus, .unstyle-link a:hover, , .unstyle-link a:focus {
    color: inherit;
    text-decoration: none;
}

/* DISCORD
 * ==================================================================== */
.discord-link {
    display: flex;
    flex-direction: column;
    background-color: #2b2d31;
    max-width: 400px;

    margin: 20px auto 0;
    padding: 20px;
    border-radius: 5px;
    gap: 10px 0;

    font-family: 'Trebuchet MS', sans-serif;
    text-align: left;
}

.discord-link .discord-invite {
    color: #b6bac0;
    font-size: 0.8rem;
}

.discord-link .discord-middle {
    display: flex;
    align-items: center;
}

.discord-link .discord-icon {
    width: 60px;
    border-radius: 20px;
}

.discord-link .discord-title {
    color: #dcdee1;
    padding: 16px;
}

.discord-link .discord-join {
    background-color: #417e4b;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
}
