@import "fonts/beaufort.css";
@import "fonts/roboto.css";
@import "fonts/roboto_condensed.css";

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    background: transparent;
}

body {
    font-size: 1em;
    color: #ebdec2;
    margin: 0;
    line-height: 160%;
    overflow-y: scroll;
    background-color: #211510;
    background-image: url('/images/bg.jpg');
}

body,
input[type="date"],
input[type="datetime-local"],
input[type="submit"],
button,
textarea {
    font-family: "Roboto", Helvetica, Arial, sans-serif;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    border-bottom: 1px solid;
}

p:first-child {
    margin-top: 0
}

p:last-child {
    margin-bottom: 0;
}

.page-header-logo a:hover {
    border: none;
}

h1, h2, h3, h4, .page-header-logo, .help-question-question {
    font-family: "beaufort", serif;
}

h1, h2, h3, h4 {
    /*color: white;*/
}

h1 {
    margin-top: 10px;
    font-size: 175%;
    margin-bottom: 30px;
}

h3 {
    font-size: 132.5%;
}

h4 {
    font-size: 122.5%;
}

h1:first-child,
h2:first-child,
h3:first-child {
    margin-top: 0;
}

.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-header-wrap {
    background: #3c2a29;
    border-bottom: 1px solid black;
}

.page-header,
.page-content,
.page-footer {
    width: 100%;
    max-width: 1280px;
}

.page-header {
    margin: 0 auto;
    display: flex;
    flex: 0;
    border-right: 1px solid black;
}

.page-header-logo,
.page-header-profile {
    padding: 15px 20px;
}

.page-header-logo {
    background: transparent url('/images/logo.png') center left no-repeat;
    background-size: auto 75%;
    padding-left: 60px;
    width: 80%;

    a {
        font-size: 150%;
        font-weight: bold;
        color: white;
    }

    span {
        margin-left: 10px;
    }
}

.page-header-profile {
    width: 20%;
    text-align: right;
    background-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .2));
}

.page-content-wrap {
    display: flex;
    flex: 1;
    height: 100%;
    padding-top: 30px;
}

.page-content {
    border: 1px solid rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, .05);
    background-image: url('/images/bg-light.jpg');
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, .33);
    display: flex;
}

.page-aside-left,
.page-aside-right {
    flex: 1;
}

main {
    padding: 20px 10px 30px 20px;
    width: calc(100% - 270px);
}

main:first-child:last-child {
    width: 100%;
    padding: 20px 20px 30px 20px;
}

main + aside {
    padding: 20px 20px 30px 10px;
    width: 270px;
}

.page-footer-wrap {
    flex: 0;
}

.page-footer {
    margin: 0 auto;
    display: grid;
    padding: 20px;
    grid-template-columns: auto 200px;
}

.page-footer a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-family: "beaufort", serif;
    font-size: 110%;
}

.footer-menu {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
}

.footer-copy {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    font-size: 90%;
    line-height: 1.5;

    p:first-child {
        margin-top: 0;
    }
}

.footer-counters {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
    text-align: right;
}

.footer-menu li {
    display: inline-block;
}

.footer-menu li:not(:last-of-type) {
    margin-right: 15px;
}

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

.centering-container {
    align-content: center;
    height: 100%;
}

form.centered-form {
    input[type="text"],
    input[type="password"] {
        text-align: center;
    }
}

fieldset {
    padding: 0;
    border: none;
}

.form-line {
    margin-bottom: 20px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
select,
textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #EBDEC22F;
    border-left: 1px solid #EBDEC22F;
    border-radius: 0 0 0 5px;
    overflow: hidden;
    padding: 8px 16px;
    outline: 0;
    font-size: 100%;
    color: white;
}

/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #23232329;
}

textarea {
    line-height: 1.6;
}

input[type="text"].error,
input[type="number"].error,
input[type="date"].error,
input[type="datetime-local"].error,
input[type="email"].error,
input[type="password"].error,
select.error,
textarea.error {
    border-color: #982000;
}

select {
    color: white;

    option {
        color: black;
    }
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: orange;
}

input[type="text"]:not(:placeholder-shown),
input[type="number"]:not(:placeholder-shown),
input[type="date"]:not(:placeholder-shown),
input[type="password"]:not(:placeholder-shown),
input[type="email"]:not(:placeholder-shown) {
    font-weight: bold;
    letter-spacing: 2px;
}

a.button {
    display: inline-block;
    text-align: center;
}

a.button,
button,
input[type="submit"] {
    font-size: 87.5%;
    line-height: 2;
    color: white;
    padding: 8px 30px;
    border: 1px solid rgba(0, 0, 0, .5);
    border-bottom-color: rgba(0, 0, 0, .85);
    border-radius: 7px;
    overflow: hidden;
    background-color: transparent;
    background-image:
        url('/images/ui_button_red_texture.png'),
        linear-gradient(0deg, #4e0000 20%, #500 30%, #700000 50%, #8d0000 65%, #860000 80%);
    outline: 1px solid #333;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 2px black;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}
a.button:hover,
button:hover,
input[type="submit"]:hover {
    background-image:
        url('/images/ui_button_red_texture.png'),
        linear-gradient(0deg, #5e0000 20%, #600 30%, #800000 50%, #9d0000 65%, #960000 80%);
}

a.button.green {
    background-image:
        url('/images/ui_button_green_texture.png'),
        linear-gradient(0deg, #004e00 20%, #050 30%, #007000 50%, #008d00 65%, #008600 80%);
}

a.button.yellow {
    background-image:
        url('/images/ui_button_yellow_texture.png'),
        linear-gradient(0deg, #9E8500 20%, #BBA200 40%, #FFD700 55%, #F2D600 70%, #E6C500 90%);
    border: 1px solid rgba(0, 0, 0, .2);
    border-bottom-color: rgba(0, 0, 0, .45);
    outline: 1px solid #444;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    width: 280px;
}

#feedback-form input[type="email"],
#feedback-form input[type="text"],
#feedback-form input[type="password"] {
    width: 350px;
}

#feedback-form-subject,
#feedback-form textarea {
    width: 60% !important;
}

#feedback-form textarea {
    height: 200px;
}

.login-additional-actions {
    white-space: nowrap;
    font-size: 92.5%;
}

.login-additional-actions a:first-child {
    margin-right: 10px;
}

.login-additional-actions a:last-child {
    margin-left: 10px;
}

.aside-ad {
    width: 240px;
    height: 410px;
    border: 1px dashed rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
    font-weight: bold;
    letter-spacing: 1px;
    color: #EBDEC244;

    img {
        width: 100%;
        height: auto;
    }
}

.aside-ad:not(:first-child) {
    margin-top: 30px !important;
}

.server-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.server-list > li {
    position: relative;
    margin-bottom: 40px;
    counter-increment: top-position 1;
}

.server-card {
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 5px;
    overflow: hidden;
    padding: 10px;
    height: 120px;
    width: 100%;
    background: rgba(255, 255, 255, .04);
    display: flex;
    vertical-align: middle;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.top .server-card::before {
    content: counter(top-position);
    position: absolute;
    display: block;
    z-index: 5;
    outline: 1px solid black;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border: 3px solid rgba(255, 255, 255, .05);
    top: -20px;
    left: -10px;
    padding: 7px 15px;
    border-radius: 5px;
    overflow: hidden;
    font-weight: bold;
    color: white;
    background-color: #211510;
    background-position: top left;
    background-repeat: repeat-x;
}

.top .server-card::after {
    content: attr(data-votes-count);
    position: absolute;
    display: block;
    z-index: 5;
    outline: 1px solid black;
    padding: 2px 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border: 3px solid rgba(255, 255, 255, .05);
    border-radius: 5px;
    overflow: hidden;
    top: -20px;
    right: 10px;
    line-height: 1;
    background-color: #504d49;
}

.server-list.top li:nth-child(1) .server-card::before {
    color: black;
    background-color: gold;
    box-shadow: 0 0 10px #FFD70066;
    border: 3px solid rgba(0, 0, 0, .7);
}

.server-list.top li:nth-child(2) .server-card::before {
    color: black;
    background-color: silver;
    box-shadow: 0 0 10px #C0C0C066;
    border: 3px solid rgba(0, 0, 0, .7);
}

.server-list.top li:nth-child(3) .server-card::before {
    color: black;
    background-color: #CE8946;
    background-repeat: repeat-x;
    box-shadow: 0 0 10px #CE894666;
    border: 3px solid rgba(0, 0, 0, .7);
}

.server-card-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, .04);
    border-radius: 5px;
    overflow: hidden;

    img {
        width: 100%;
        object-fit: cover;
        aspect-ratio: 1;
    }
}

.server-card-logo:empty {
    border: 1px dashed rgba(255, 255, 255, .1);
}

.server-card-info {
    width: calc(100% - 120px);
    margin-left: 20px;

    header {
        display: flex;

        h2 {
            margin-bottom: 5px;
            width: 80%;
        }

        > div {
            width: 20%;
            text-align: right;
        }
    }

    p {
        margin: 3px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    > div {
        display: flex;
        vertical-align: middle;
        align-items: center;

        .server-website {
            width: 50%;
        }

        .server-realm-list {
            width: 50%;
            text-align: right;

            ul {
                margin: 0;
                padding: 0;
                list-style: none;

                li {
                    display: inline-block;

                    a {
                        display: block;
                        border-bottom: none;
                    }
                }

                li:not(:first-child) {
                    margin-left: 10px;
                }
            }

            .server-realm-icon {
                display: block;
                width: 32px;
            }
        }
    }
}

.server-card-realms {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;

    li {
        display: inline-block;
        margin-left: 25px;
        text-align: center;
    }

    li:first-of-type {
        margin-left: 0;
    }
}

.server-card-realm {
    position: relative;
    width: 50px;
    height: 70px;
    padding: 5px 8px 0;
    overflow: hidden;
    z-index: 2;

    img {
        width: 100%;
        height: auto;
        display: block;
    }

    .server-card-realm-rates {
        font-size: 85%;
        line-height: 120%;
        display: block;
        white-space: nowrap;
        margin-left: -8px;
        width: calc(100% + 16px);
    }

    .server-realm-add-link {
        font-weight: bold;
        font-size: 200%;
        display: block;
        color: #EBDEC244;
    }
}

.server-card-realm::before, .server-card-realm::after {
    content: '';
    position: absolute;
    top: -3px;
    height: 100%; width: 50%;
    border: 1px dashed rgba(255, 255, 255, .2);
    box-sizing:border-box;
    z-index: -1;
    background: rgba(255, 255, 255, .04);
}

.server-card-realm::before {
    left: 0;
    transform-origin: 0 0;
    transform: skewY(-20deg);
    border-width:0 0 1px 1px;
}

.server-card-realm::after {
    right: 0;
    transform-origin: 100% 0;
    transform: skewY(20deg);
    border-width:0 1px 1px 0;
}

.server-card-realm:hover:before, .server-card-realm:hover:after {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .1);
}

.external-link::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    color: white;
    height: 1em;
    aspect-ratio: 1;
    background-image: url(/images/external_link.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.visitor-info {
    font-family: "Courier New", Courier, monospace;
    margin: 10px 0;
    font-size: 90%;
    white-space: nowrap;
}

.form-additional-info.agreement {
    font-size: 90%;
}

.confirmation-code {
    width: 200px;
    text-align: center;
}

.rating {
    width: 100%;
    position: relative;
}

.rating > .scale {
    display: inline-block;
    font-size: 125%;
    position: relative;
    unicode-bidi: bidi-override;
    direction: rtl;
    white-space: nowrap;
}

.rating:not([data-action="rate"]) > .scale {
    font-size: 110%;
    text-align: left;
}

.rating > .scale > i {
    margin: 0 0 0 2px;
    padding: 0;
    font-style: normal;
    display: inline-block;
    position: relative;
    color: #bdbdbd;
    text-align: center;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    font-size: 110%;
}

.rating[data-action="rate"] > .scale > i {
    cursor: pointer;
}

.rating > .scale > i.user:before,
.rating > .scale > i.user ~ i:before {
    content: "\2605";
    position: absolute;
    color: #E88804;
}

.rating > .scale > i:after {
    content: "\2606";
}

.rating[data-action="rate"] > .scale:hover > i:before,
.rating[data-action="rate"] > .scale:hover > i ~ i:before {
    content: "";
}

.rating > .scale > i.cur:after,
.rating > .scale > i.cur ~ i:after {
    color: #E88804;
}

.rating[data-action="rate"] > .scale > i:hover:before,
.rating[data-action="rate"] > .scale > i:hover ~ i:before {
    color: #E88804;
    content: "\2605" !important;
    position: absolute;
}

.rating > .info {
    font-size: 80%;
    font-weight: 300;
    color: #888;
}

.rating:not([data-action="rate"]) > .scale,
.rating:not([data-action="rate"]) > .info {
    position: relative;
    display: inline-block;
}

.rating:not([data-action="rate"]) > .scale {
    margin-right: 10px;
}

.rating > .info > span:nth-child(1) {
    color: #e88804;
    font-weight: normal;
    line-height: 100%;
}

.rating > .info > span:nth-child(2) {
    margin-left: 8px;
}

.rating:not([data-action="rate"]) .info > span:nth-of-type(2),
.rating .info > span[data-value="0.00"],
.rating .info > span[data-value="0"] {
    display: none;
}

.account,
.two-sided-form {
    display: flex;

    .account-avatar,
    > div:first-child,
    > fieldset:first-child {
        width: 250px;
        margin-right: 20px;
    }

    .account-data,
    > div:last-child,
    > fieldset:last-child {
        width: calc(100% - 270px);
    }
}

.labeled-form {
    fieldset > div {
        display: flex;
        margin-bottom: 15px;

        label {
            width: 30%;
            text-align: right;
            padding: 4px 15px 0 0;
        }

        label + div {
            width: 70%;
        }
    }
}

.account-data {
    input[type="text"] {
        min-width: 300px;
    }
}

input[name="website"],
input[name="url"] {
    font-weight: normal !important;
}

#server-edit-form {
    textarea[name="annotation"] {
        min-height: 50px;
    }

    textarea[name="description"] {
        min-height: 120px;
        max-height: 500px;
    }

    input[name="name"],
    input[name="website"],
    textarea {
        width: 100%;
    }
}

#server-add-form {
    input[name="name"],
    input[name="website"] {
        max-width: 500px;
        width: 100%;
    }
}

#realm-add-form {
    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        /* display: none; <- Crashes Chrome on hover */
        -webkit-appearance: none;
        margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
    }

    input[type="number"] {
        -moz-appearance:textfield; /* Firefox */
        width: 80px;
        border-right: 1px solid rgba(255, 255, 255, .2);
        border-radius: 0 0 5px 5px;
        margin-right: 10px;
    }

    input[type="number"][name="experience_rates_max"] {
        margin-left: 10px;
    }

    input[name="name"],
    input[name="url"],
    textarea {
        width: 100%;
    }

    input[name="login_server"],
    input[name="world_server"] {
        width: 300px;
    }

    textarea {
        min-height: 150px;
        max-height: 500px;
    }

    input[type="checkbox"] {
        margin-right: 15px;
    }
}

.form-upload-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}

label.form-upload-label {
    width: 250px;
    aspect-ratio: 1;
    display: flex;
    vertical-align: middle;
    align-items: center;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    color: #EBDEC244;
    letter-spacing: 1px;
    border: 1px dashed rgba(255, 255, 255, .1);
    background-color: rgba(255, 255, 255, .04);
    padding: 10px;
    margin: 0;
    transition: background-color 0.2s;
}

.form-upload-preview {
    display: none;
}

.form-upload-preview ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-upload-preview ul li {
    position: relative;
    display: inline-block;
    width: 100%;
}

div.form-upload-preview img {
    display: block;
    max-width: 250px;
    width: 100%;
    aspect-ratio: 1;
    object-position: center center;
    object-fit: cover;
    overflow: hidden;
    border-radius: 3px;
    border: 1px dashed rgba(255, 255, 255, .2);
}

.form-upload-preview-close {
    display: block;
    font-size: 1em;
    line-height: 100%;
    background: linear-gradient(0deg, #4e0000 20%, #500 30%, #700000 50%, #8d0000 65%, #860000 80%);
    color: #FFF;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.form-upload-preview-close:hover {
    border: 2px solid #000;
    background: linear-gradient(0deg, #5e0000 20%, #600 30%, #800000 50%, #9d0000 65%, #960000 80%);
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder,
select:invalid {
    color: #EBDEC244;
}

.form-upload-description,
.form-field-description {
    font-size: 90%;
    color: #EBDEC299;
}

.form-field-error-message {
    font-size: 90%;
    color: #982000;
}

p.form-field-error-message,
p.form-field-description {
    margin-top: 5px;
    line-height: 1.33;
}

.form-upload-description {
    text-align: center;
    margin-top: 7px;
}

.main-header {
    display: flex;
    vertical-align: middle;
    align-items: start;
    margin-bottom: 15px;

    h1 {
        flex: 1;
        width: calc(100% - 250px);
        margin-bottom: 15px;
    }

    > div {
        text-align: right;
    }
}

.form-error {
    background-color: #470f00;
    /*background-image: linear-gradient(0deg, #3e0000 10%, #400 20%, #600000 40%, #7d0000 65%, #760000 80%);*/
    color: white;
    padding: 15px 30px;
    border-radius: 7px;
    border: 2px solid rgba(0, 0, 0, .5);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    margin-bottom: 30px;
    text-align: center;

    p:first-child {
        margin-top: 0;
    }

    p:last-child {
        margin-bottom: 0;
    }
}

main:first-child:last-child .form-error {
    width: 60%;
    margin: 0 auto 30px;
}

.account-menu {
    ul {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            margin-bottom: 10px;
        }
    }
}

.server-management {
    ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: inline-block;

        li {
            display: inline-block;

            a {
                display: inline-block;
            }
        }

        li:not(:first-of-type) {
            margin-left: 10px;
        }
    }
}

.server-topup-icon,
.server-settings-icon,
.server-edit-icon,
.server-stats-icon,
.server-delete-icon,
.realm-delete-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 36px;
    color: transparent;
    font-size: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: .5;
    cursor: pointer;
}

.server-topup-icon:hover,
.server-settings-icon:hover,
.server-edit-icon:hover,
.server-stats-icon:hover,
.server-delete-icon:hover,
.realm-delete-icon:hover {
    opacity: 1;
}

.server-topup-icon {
    background-image: url(/images/icons/top.svg);
}

.server-settings-icon {
    background-image: url(/images/icons/settings.svg);
}

.server-edit-icon {
    background-image: url(/images/icons/edit.svg);
}

.server-stats-icon {
    background-image: url(/images/icons/statistics.svg);
}

.server-delete-icon,
.realm-delete-icon {
    background-image: url(/images/icons/trash.svg);
}

.exp-by-ver {
    display: flex;
    align-items: stretch;
}

#exp-by-ver_icon {
    display: inline-block;
    width: 36px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .04);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    padding: 2px 0 3px 2px;

    img {
        width: auto;
        height: 1.9em;
        display: block;
    }
}

#exp-by-ver_icon + input {
    display: inline-block;
    width: 264px !important;
    padding: 9px;
    border-radius: 0 0 0 0;
}

aside a.button {
    width: 100%;
}

.radio-sex-options {
    display: inline-block;
    width: auto;
    font-size: 250%;
    font-weight: bold;
}

.radio-sex-option {
    display: inline-block;
    padding: 10px 10px !important;
    /*border: 1px solid rgba(0, 0, 0, .1);*/
    cursor: pointer;
    background: rgba(0, 0, 0, .05);
    width: 44px !important;
    overflow-y: hidden;
}

.radio-sex-option-female {
    border-radius: 0 5px 5px 0;
    background: transparent url('/images/icons/options/female.svg') center center no-repeat;
    background-size: 32px 32px;
}

.radio-sex-option-male {
    border-radius: 5px 0 0 5px;
    background: transparent url('/images/icons/options/male.svg') center center no-repeat;
    background-size: 32px 32px;
}

.radio-sex-options input[type="radio"] {
    display: none;
}

.radio-sex-options input[type="radio"]:checked + .radio-sex-option-female {
    /*background-color: pink;*/
    background-image: url('/images/icons/options/female_selected.svg');
    border-color: deeppink;
}

.radio-sex-options input[type="radio"]:checked + .radio-sex-option-male {
    /*background-color: lightskyblue;*/
    background-image: url('/images/icons/options/male_selected.svg');
    border-color: blue;
}

.tto, .mto {
    color: white;
}

.tto::before {
    content: '@';
    color: white;
}

.mto::before {
    content: 'ad@';
    color: white;
}

.support-server-note {
    position: relative;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;

    p {
        margin-top: 0;
        margin-bottom: 0;
        padding: 10px 10px 0;
    }
}

.exclamation-mark {
    padding: 15px 12px 15px 65px;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 7px;
    overflow: hidden;
    background: #DFB700FF url('/images/icons/exclamation_mark.svg') 10px center no-repeat;
    background-size: 40px 40px;
    color: black;
    margin: 30px 0;

    p {
        line-height: 1.5;
    }

    p:first-child {
        margin-top: 0;
    }

    p:last-child {
        margin-bottom: 0;
    }

    .hl {
        color: black;
    }
}

.flag-box {
    display: inline-block;
}

.flag {
    width: 12px !important;
    height: 39px !important;
    position: absolute !important;
    bottom: 20px;
    right: 20px;
    z-index: 2 !important;
    background: url(/images/flag.png) !important;
    animation-name: keyframe_1oq9srk !important;
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
}

.flag-pos {
    position: absolute !important;
    margin: -10px 0px 0px 8px !important;
    bottom: 20px;
    right: 20px;
    z-index: 1 !important;
    width: 11px !important;
    height: 11px !important;
    border-radius: 11px !important;
    background: rgb(255, 255, 255, .2) !important;
    border: 3px solid rgba(255, 255, 255, .2) !important;
}

@keyframes keyframe_1oq9srk {
    from{
        transform:translateY(0);
        -webkit-transform:translateY(0);
        -ms-transform:translateY(0);
    }
    to{
        transform:translateY(0);
        -webkit-transform:translateY(0);
        -ms-transform:translateY(0);
    }
    50%{
        transform:translateY(-8px);
        -webkit-transform:translateY(-8px);
        -ms-transform:translateY(-8px);
    }
}

.server-vote-reward-description {
    padding: 12px 12px 12px 65px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    margin-bottom: 30px;
    color: black;
    background: rgba(95, 223, 95, 1);
}

.server-vote-form {
    input[type="text"] {
        min-width: 300px;
    }
}

.radio-server_realm-options {

}

.radio-server_realm-option {
    margin-bottom: 10px;

    input[type="radio"] {
        display: none;
    }

    label {
        display: flex;
        vertical-align: middle;
        align-items: center;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, .05);
        cursor: pointer;
        border-radius: 5px;
        min-width: 300px;
        font-weight: bold;
        letter-spacing: 1px;

        span {
            display: inline-block;
            margin-right: 10px;
        }

        img {
            margin-right: 10px;
        }
    }

    label:hover {
        border: 1px solid rgba(255, 255, 255, .2);
    }
}

.radio-amount-option {
    display: inline-block;
    margin-right: 10px;

    input[type="radio"] {
        display: none;
    }

    label {
        text-align: center !important;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, .05);
        display: block;
        width: 100% !important;
        font-size: 150%;
        font-weight: bold;
        border-radius: 5px;
        vertical-align: middle;
        cursor: pointer;

        small {
            display: block;
            font-size: 50% !important;
            font-weight: normal;
        }
    }
}

.radio-server_realm-option input[type="radio"]:checked + label,
.radio-amount-option input[type="radio"]:checked + label {
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .04);
    color: white;
}

.hl {
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.server-votes-count {
    span {
        font-weight: bold;
        font-size: 175%;
        font-family: "beaufort", serif;
    }

    small {
        display: block;
    }
}

.server-info {
    img.realm-logo {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border: 1px dashed rgba(255, 255, 255, .2);
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, .5);
        margin-bottom: 30px;
    }

    .server-logo {
        margin-bottom: 20px;
    }

    .server-info-website {
        text-align: center;
        font-size: 110%;
        letter-spacing: 1px;

        a {
            width: 100%;
            color: black;
            text-shadow: none;
        }
    }

    .server-info-stat {
        text-align: center;
        opacity: .5;
    }
}

input[type="file"][disabled] + label {
    opacity: .5;
    background: linear-gradient(-45deg,
        rgba(255, 255, 255, .1) 0% 5%,
        transparent 10% 15%,
        rgba(255, 255, 255, .1) 20% 25%,
        transparent 30% 35%,
        rgba(255, 255, 255, .1) 40% 45%,
        transparent 50% 55%,
        rgba(255, 255, 255, .1) 60% 65%,
        transparent 70% 75%,
        rgba(255, 255, 255, .1) 80% 85%,
        transparent 90% 95%
    );
}

textarea[readonly] {
    border-color: rgba(255, 255, 255, .2);
    opacity: .5;
    background: linear-gradient(-45deg,
        rgba(255, 255, 255, .1) 0% 3%,
        transparent 6% 9%,
        rgba(255, 255, 255, .1) 12% 15%,
        transparent 18% 21%,
        rgba(255, 255, 255, .1) 24% 27%,
        transparent 30% 33%,
        rgba(255, 255, 255, .1) 36% 39%,
        transparent 42% 45%,
        rgba(255, 255, 255, .1) 48% 51%,
        transparent 54% 57%,
        rgba(255, 255, 255, .1) 60% 63%,
        transparent 66% 69%,
        rgba(255, 255, 255, .1) 72% 75%,
        transparent 78% 81%,
        rgba(255, 255, 255, .1) 84% 87%,
        transparent 90% 93%,
        rgba(255, 255, 255, .1) 96% 99%
    );
}

textarea[readonly] + .form-field-description {
    opacity: .5;
}

.server-ownership-mark {
    display: flex;
    padding: 10px 10px 8px 10px;
    border: 2px solid rgba(0, 0, 0, .5);
    border-top: none;
    background: #DFB700FF;
    color: black;
    border-radius: 0 0 5px 5px;
    vertical-align: middle;
    align-items: center;

    p {
        flex: 1;
        margin: 0;
    }
}

dialog {
    color: #ebdec2;
    background-color: #211510;
    background-image: url('/images/bg-factionless-gray-map-opty.jpg');
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px black;
    max-width: 550px;
    text-align: center;

    h3 {
        color: white;
    }

    a:not(.button) {
        white-space: nowrap;
    }
}

.code {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .04);
    border-radius: 5px;
    padding: 20px;
    font-size: 125%;
}

.server-info {
    .rating {
        font-size: 120%;
        margin: 30px auto;
        text-align: center;
    }
}

.server-logo {
    width: 250px;
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    vertical-align: middle;
    align-items: center;
    text-align: center;
    justify-content: center;
    border-radius: 3px;
    color: #EBDEC244;
    letter-spacing: 1px;
    border: 1px dashed rgba(255, 255, 255, .1);
    background-color: rgba(255, 255, 255, .04);
    margin: 0;
    transition: background-color 0.2s;
}

.pack-price {
    display: none;
    font-size: 150%;
    line-height: 1;
    vertical-align: top;
    padding-top: 20px;
}

.realm-version {
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    display: flex;

    img {
        width: 32px;
        margin-right: 10px;
    }
}

.realm-experience-rates {
    margin-top: 15px;
    font-size: 200%;
    font-family: "beaufort", serif;
    font-weight: bold;
    text-align: center;
}

ul#system-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 300px;
}

ul#system-notifications li {
    margin-bottom: 20px;
}

.system-notification {
    background-color: slategray;
    border: 2px solid slategray;
    border-radius: 5px;

    p {
        margin: 0;
        padding: 20px;
    }
}

.system-notification.success {
    background-color: #0080007F;
    border: 2px solid darkgreen;
}

.system-notification.error {
    background-color: #8000007F;
    border: 2px solid #982000;
}

.mono {
    font-family: "Courier New", Courier, monospace;
}

.realm-stat-list {
    padding: 0;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);

    li:nth-of-type(odd) {
        background-color: rgba(255, 255, 255, .04);
    }

    li:nth-of-type(even) {
        background-color: rgba(0, 0, 0, .04);
    }

    li:not(:last-of-type) {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .mono {
        font-size: 90%;
    }

    p {
        margin: 0;
        white-space: nowrap;

        a {
            margin: 0 10px;
        }
    }
}

.realm-stat {
    display: flex;
    vertical-align: middle;
    align-items: center;
    padding: 10px;

    img {
        width: 32px;
        margin-right: 10px;
    }

    > div {
        width: 20%;
        flex: 1;
    }

    .realm-stat-name {
        margin: 0;
        display: inline-block;
    }

    .realm-stat-exp-rates {
        margin: 0 10px 0 0;
    }
}

ul.help-section-questions {
    margin: 0;
    padding: 0;
    list-style: none;

    > li {
        margin-bottom: 15px;
    }
}

.help-question-question {
    font-size: 125%;
}

.help-question-answer {
    margin-top: 5px;
}

.ajax {
    border-bottom: 1px dashed;
    cursor: pointer;
}

table {
    width: 100%;
    border: 1px dashed rgba(255, 255, 255, .1);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .33);
    border-spacing: 0;

    td {
        padding: 7px 8px;
    }

    tr:not(:last-of-type) td {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    tr:nth-of-type(odd) td {
        background: rgba(255, 255, 255, .04);
    }
}

table.realm-list {
    h3 {
        margin: 0;
    }

    td:nth-of-type(1) {
        width: 50px;
    }

    td:nth-of-type(2) {
        width: 60px;
        letter-spacing: 1px;
        text-align: right;
        white-space: nowrap;
    }

    td:nth-of-type(3) {
        width: 75px;
        letter-spacing: 1px;
    }

    td:nth-of-type(5) {
        width: 100px;
        text-align: right;
        padding-right: 15px;
    }
}

.draft-mark {
    color: #EBDEC25F;
    margin-left: 10px;
    font-weight: normal;
    text-transform: lowercase;
}

.terms {
    section {
        margin-bottom: 40px;

        div {
            display: flex;
            vertical-align: top;
            align-items: start;
            margin-bottom: 20px;

            span.clause {
                width: 45px;
                font-weight: bold;
                color: white;
                letter-spacing: 2px;
            }

            p {
                display: inline-block;
                margin-top: 0;
                flex: 1;
            }

            div {
                span.clause {
                    width: 60px;
                }

                div span.clause {
                    width: 75px;
                }
            }
        }
    }

    section:last-child {
        margin-bottom: 0;
    }

    p:first-child {
        margin-top: 0;
    }

    p:last-child {
        margin-bottom: 0;
    }

    ul {
        margin: 0;
        padding: 0 15px;
        list-style: none;
    }

    li:not(:last-of-type) {
        margin-bottom: 20px;
    }
}

.login-buttons {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    margin-left: 56px;
}

.login-by-vk {
    display: inline-block;
    width: 36px;
    aspect-ratio: 1;
    background: transparent url('/images/vk_logo.svg') center center no-repeat;
    background-size: cover;
    overflow: hidden;
    color: transparent;
    margin: 0 0 0 20px;
    padding: 0;
    border: 0 !important;
}

.main-story {
    border-top: 1px dashed rgba(255, 255, 255, .2);
    padding: 20px 0 0;
}

.server-filter {
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 640px) {
    h1 {
        font-size: 150%;
    }

    .page-header-logo {
        padding-left: 70px;
        background-size: auto 50%;
        background-position-x: 10px;

        span {
            display: block;
            margin-left: 0;
            line-height: 1.25;
        }
    }

    .page-header-profile {
        width: 30%;
    }

    main, aside {
        width: 100% !important;
    }

    main {
        padding: 20px 10px 15px 10px !important;
    }

    aside {
        text-align: center;
        padding: 15px 10px 20px 10px !important;

        .aside-ad {
            width: 100%;
            height: 150px;
        }
    }

    .page-content-wrap {
        padding-top: 0;
    }

    .page-content {
        display: block;
    }

    .page-aside-left,
    .page-aside-right {
        flex: none;
        display: none;
    }

    .main-header {
        display: block;
        margin-bottom: 30px;

        h1 {
            flex: none;
            width: 100%;
            line-height: 1.5
        }

        > div {
            text-align: left;
        }
    }

    .page-footer {
        grid-template-columns: 55% 45%;
    }

    .footer-menu {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;

        li {
            display: block;
        }
    }

    .footer-copy {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    .footer-counters {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    .two-sided-form {
        display: block;

        > div {
            width: 100% !important;
            display: block;
        }

        > div:first-child {
            margin: 0 0 30px 0 !important;
        }
    }

    .visitor-info {
        font-size: 80%;
    }
}