:root {
    --content-width: 1200px;
    --banner-height: 300px;
    --topbar-height: 40px;
    
    --side-menu-width: 190px;
    --side-menu-section-width: 185px;

    --page-content-width: 950px;
    --page-content-small-width: 800px;
}

body {
    margin: 0;
    padding: 0;
}

#banner {
    width: var(--content-width);
    height: var(--banner-height);

    margin: 0 auto;
    padding: 0;
}
#banner img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 100% 20%;
}

#topMenu {
    width: var(--content-width);
    height: var(--topbar-height);

    margin: 0 auto;
    align-items: center;
	
	display: flex;
	flex-direction: row;
}
#topMenu ul {
	margin: 0;
	padding: 0;
}
#topMenu ul.leftMenu li:first-child {
    margin-left: 15px;
}
#topMenu ul.leftMenu li:nth-child(n+2) {
    margin-left: 8px;
}
#topMenu ul.rightMenu {
	margin-left: auto;
}
#topMenu ul.rightMenu > li:not(:last-child) {
	margin-right: 8px;
}
#topMenu ul.rightMenu li:last-child {
    margin-right: 15px;
}
#topMenu li {
	list-style: none;
	
	display: inline-flex;
}
#topMenu a {
	width: 90px;
	padding: 5px 0;
	
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	
	display: inline-block;
	cursor: default;
}

#container {
    width: var(--content-width);
    min-height: 500px;

    margin: 0 auto;

    border: 1px solid;

    display: flex;
    flex-direction: column;
}

#contentContainer {
    margin-left: 3px;
    margin-right: 3px;

    display: flex;
    flex-direction: row;
    flex-grow: 1;
}
#content {
    flex-grow: 1;
}

#systemMessage {
    height: 25px;

    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

#content .pageContent{
    width: var(--page-content-width);
    margin: 0 auto;

    border: 1px solid;
    display: block;
}
#content .pageContent .header {
    height: 24px;

    border-bottom: 1px solid;

    text-align: center;
    font-size: 18px;
    line-height: 24px;
}
#content .pageContent p {
    margin: 5px 0 5px 8px;
    padding: 0;
}

.gameDescription {
    margin: 0 auto;
    width: var(--page-content-small-width);
}
.gameDescription .description {
    padding: 8px;
}
.gameDescription .quote {
    margin: 20px 15px 10px 15px;

    font-style: italic;
    border-left: 4px solid;
}
.gameDescription .quote p {
    margin: 0;
    padding: 2px 0 2px 8px;
}

.newsPost {
    width: var(--page-content-small-width);

    margin: 10px auto;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;

    border: 1px solid;
}
.newsPost .header {
    height: 22px;

    padding: 3px;
    border-bottom: 1px solid;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;

    font-size: 20px;
    line-height: 22px;
    text-align: center;
}
.newsPost .content {
    padding: 8px;
    white-space: wrap;
}
.newsPost .footer {
    padding: 8px;

    font-size: 14px;
    text-align: right;
}

.basicForm label {
    width: 175px;
    margin-left: 8px;

    display: inline-block;
}
.basicForm input[type=text], .basicForm input[type=password] {
    margin-top: 2px;
    margin-bottom: 2px;
}
.basicForm input[type=submit] {
    margin: 3px 0;
    padding: 5px;

    font-weight: bold;
    border: 1px solid;
    border-radius: 5px;
}
.basicForm textarea {
    width: 425px;
    height: 195px;
}

.characterSelectContainer {
    width: var(--page-content-width);
    margin: 0 auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.characterSelectContainer .characterSelect {
    height: 95px;

    margin: 5px;
    border: 1px solid;
    border-radius: 5px;

    text-align: center;
    align-content: center;

    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
}

#sideMenu {
    width: var(--side-menu-width);
}
#sideMenu .menuSection {
    width: var(--side-menu-section-width);
    margin-bottom: 15px;

    border: 2px solid;
    border-left: 0;
}
#sideMenu .menuSection .header {
    text-align: center;

    height: 24px;
    line-height: 24px;
    font-size: 18px;
}
#sideMenu .menuSection ul {
    padding: 0;
    margin: 0;
}
#sideMenu .menuSection li {
    margin: 0;
    padding: 0;

    border-top: 1px solid;

    list-style: none;
    display: block;
}
#sideMenu .menuSection a {
    width: 100%;
    height: 24px;

    line-height: 24px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    cursor: default;
    display: inline-block;
}

#sideMenu .loginMenu {
    width: var(--side-menu-section-width);
    margin-bottom: 15px;

    border: 2px solid;
    border-left: none;

    text-align: center;
}
#sideMenu .loginMenu .header {
    text-align: center;

    height: 24px;
    line-height: 24px;
    font-size: 18px;
}
#sideMenu .loginMenu input[type=submit] {
    margin: 3px 0;
    padding: 5px;

    font-weight: bold;
    border: 1px solid;
    border-radius: 5px;
}
#sideMenu .loginMenu a {
    margin-bottom: 5px;

    text-decoration: none;

    display: block;
    cursor: default;
}

#sideMenu #systemTime {
    width: var(--side-menu-section-width);
    text-align: center;
}

#footer {
    width: var(--content-width);
    margin: 0 auto;

    border: 1px solid;
    border-top: none;
}
#footer p {
    padding: 3px;
    margin: 0 0 0 8px;
}

/** Red Button Link **/
input[type=submit].redButton, button.redButton {
    margin: 3px 0;
    padding: 5px;

    font-weight: bold;
    border: 1px solid;
    border-radius: 5px;
}

/** Generic **/
a {
    text-decoration: none;
}

/* modal */
.modal_backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    filter: blur(5px);
}

.modal {
    min-width: 400px;
    min-height: 150px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 15px;
    border: 1px solid;
    outline: 1px solid;
    outline-offset: 1px;
}

.modal_header {
    width: 100%;
    text-align: left;
    border-bottom: 2px solid;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 11px;
}

.modal_text {
    height: 100%;
    border-top: 1px solid;
    padding-top: 20px;
    padding-bottom: 30px;
    text-align: center;
    white-space: pre-wrap;
}

.modal_cancel_button {
    clip-path: polygon(8px 0, calc(100% - 8px) 0px, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    width: 125px;
    height: 25px;
    line-height: 20px;
    font-variant: small-caps;
    text-align: center;
    cursor: pointer;
    user-select: none;
    position: absolute;
    right: 50px;
    bottom: -15px;
}

.modal_close_button {
    clip-path: polygon(8px 0, calc(100% - 8px) 0px, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    width: 125px;
    height: 25px;
    line-height: 20px;
    font-variant: small-caps;
    text-align: center;
    cursor: pointer;
    user-select: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
}

.modal_confirm_button {
    clip-path: polygon(8px 0, calc(100% - 8px) 0px, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    width: 125px;
    height: 25px;
    line-height: 20px;
    font-variant: small-caps;
    text-align: center;
    cursor: pointer;
    user-select: none;
    position: absolute;
    left: 50px;
    bottom: -15px;
}

/** Table **/
table.table {
    width: 95%;
    margin: 5px auto;

    border: 1px solid;
    border-collapse: collapse;
}
table.table th {
    border: 1px solid;
    text-align: center;
}
table.table td {
    border: 1px solid;
}