body {
    margin: 0;
    padding: 0;
}

.top {
    background-color: #eee;
    width: 100%;
    display: table;
    height: 35px;
}

.menu {
    display: table-cell;
    padding-left: 50px;
    width: 100%;
}

.sign-in-button-container {
    display: table-cell;
    text-align: right;
    padding-right: 50px;
    white-space: nowrap;
}

.menu-item {
    padding: 5px;
}

.logo-container {
    margin-left: 150px;
}

.logo {
    background-image: url('/img/logo.png');
    width: 175px;
    height: 128px;
    background-size: contain;
}

a {
    text-decoration: none;
}

.video {
    background: #000;
    color: #fff;
    height: 480px;
    width: 640;
    margin: auto;
    text-align: center;
    position: relative;
}

.video-arrow {
    position: absolute;
    transform: translate(0, -50%) scaleX(0.5);
    font-size: 40px;
    font-weight: bold;
}

.video-arrow-left {
    left: 0;
    top: 50%;
}

.video-arrow-right {
    right: 0;
    top: 50%;
}

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

.cell {
    display: table-cell;
    text-align: center;
}

.main-content {
    width: 800px;
    margin: auto;
    margin-top: 20px;
    display: table;
}

.main-description {
    padding: 20px;
    text-align: justify;
}

p {
    text-indent: 25px;
}

.download-game {
    text-align: center;
    background-color: blue;
    color: white;
    padding: 10px;
    display: inline-block;
}

.download-game a {
    color: white;
    text-transform: uppercase;
}

.screenshot-container {
    position: relative;
    width: 640px;
    margin: auto;
    padding: 10px;
}

.screenshot-table {
    display: table-row;
    overflow: auto;
}

.screenshot {
    width: 150px;
    height: 100;
    cursor: pointer;
    border: 1px dashed;
    margin: 5px 0;
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

.rule-body {
    text-align: justify;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

.instruction-image {
    width: 300px;
    float: left;
    margin: 0 10px;
}

.hidden {
    display: none;
}

.rule-menu {
    text-align: right;
    padding-left: 50px;
}

.rule-menu a {
    display: block;
    margin: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.rule-menu-item.active {
    text-decoration: underline;
}

.rule-main-table {
    display: table;
    margin: auto;
}

.rule-navigation {
    text-align: left;
    padding-right: 50px;
    white-space: nowrap;
}

.navigation-h2 {
    padding-left: 15px;
}

.rule-example {
    text-align: center;
    margin: auto;
}

.rule-example img {
    width: 300px;
}

.hp {
    color: red;
}

.attack {
    color: blue;
    letter-spacing: 2.5px;
}

.instruction-image-center {
    width: 300px;
    display: block;
    margin: auto;
}

.thunderbirds-special {
    margin: auto;
    border-collapse: collapse;
}

.thunderbirds-special td,
.thunderbirds-special th {
    border: 1px solid #000;
    padding: 5px;
    text-align: center;
}

.sign-in-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
    padding: 25px;
}

.sign-in-container button {
    display: block;
}

.user-menu-avatar {
    width: 35px;
    height: 35px;
    background-size: contain;
    cursor: pointer;
}

.user-menu-container {
    display: table-cell;
    text-align: right;
    padding-right: 50px;
    position: relative;
    z-index: 999;
}

.user-menu {
    position: absolute;
    text-align: left;
    border: 1px solid #000;
    top: 35px;
    right: 50px;
    width: 150px;
    background-color: #fff;
}

.user-menu span {
    display: block;
}

.user-menu-option {
    padding: 7px;
    cursor: pointer;
}

.user-menu-name {
    background-color: #eee;
    padding: 7px;
}

.user-menu-option:hover {
    background-color: #ccc;
}

.error {
    color: red;
}

.user-menu-option-avatar {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    background-size: contain;
}

iframe#forunm-signin {
    width: 0;
    height: 0;
    border: none;
}

.sign-in-container td {
    position: relative;
}

.error-bubble {
    position: absolute;
    background-color: #fff;
    border: 1px solid #000;
    padding: 5px;
    right: -215px;
    top: 0;
    width: 200px;
}

.password-meter-container {
    border: 1px solid #000;
    height: 3px;
    margin: 2px 0 0 0;
}

.password-meter {
    height: 100%;
}

.password-score {
    font-size: 10pt;
}

.profile-avatar-container {
    display: table-cell;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border: 1px solid;
    background-size: contain;
    display: block;
}

button.change-avatar {
    display: block;
}

button.clear-avatar {
    margin: auto;
}

.avatar-change-buttons {
    padding: 40px 30px;
    text-align: center;
}

.avatar-change-buttons button {
    display: block;
}

.profile-username {
    font-weight: bold;
}

.profile-parameters {
    display: table-cell;
    vertical-align: top;
    padding: 20px;
}

.profile-parameters input {
    display: block;
    padding: 5px;
}

.profile-container {
    margin: auto;
    display: table;
}

.change-password {
    margin-top: 45px;
}

.frosty {
    background-color: rgb(255 255 255 / 25%);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(3px);
    z-index: 9999;
}

.window {
    background-color: #fff;
    position: fixed;
    z-index: 10000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #000;
    border-radius: 5px;
}


.close-window {
    display: table-cell;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
}

.close-window-container {
    float: right;
}

button {
    margin: 5px;
}

.avatar-editor-container {
    padding: 10px;
}

.avatar-upload-progress-container {
    height: 4px;
    border: 1px solid;
    position: relative;
    background-color: #ccc;
}

.avatar-upload-progress {
    background-color: #048939;
    height: 100%;
    position: absolute;
}