@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500&display=swap');

BODY {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    box-sizing: content-box;
    font-size: 20px;
    cursor: default;
    user-select: none;
}

BODY * {
    box-sizing: border-box;
}

DIV.content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* Header formatting */

HEADER {
    padding: 10px 0;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}

HEADER > DIV {
    display: flex;
    align-items: center;
}

H1 {
    font-size: 32px;
    margin: 0 0 2px 10px;
    font-weight: 500;
    white-space: nowrap;
}

DIV.subtitle {
    width: 100%;
    text-align: right;
    font-size: 24px;
}

#linkBack {
    display: block;
    position: absolute;
    top: 24px;
    left: 16px;
}
#linkClose {
    display: block;
    position: absolute;
    top: 24px;
    right: 16px;
}

/* Body formatting */

SECTION {
    padding: 20px 0;
}

P {
    margin: 10px 0;
}

P.justify {
    text-align: justify;
}

A {
    color: #2980b9;
    text-decoration: none;
}
A:hover {
    text-decoration: underline;
}

STRONG {
    font-weight: 600;
}

SECTION > DIV.div3 {
    display: flex;
    gap: 30px;
}

SECTION > DIV.div3 > DIV {
    width: 33.33%;
}

SECTION > DIV.div2 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 25px;
    margin-top: 10px;
}

SECTION > DIV.div2 > DIV {
    width: 48%;
}

H3 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

SECTION > DIV.div2 > DIV > IMG {
    display: block;
    border: 1px solid #bdc3c7;
}

BODY:not(.loggedin) SECTION.loggedin {
    display: none;
}

BODY.loggedin SECTION.loggedout {
    display: none;
}

HR {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #bdc3c7;
}

#userEmail, #quotaUsed, #quotaLimit, #quotaLimit2, #quotaReset, #quotaInfo4 {
    font-weight: 500;
}

#userEmail {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

DIV.info {
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

P.plan {
    font-size: 16px;
    color: #7f8c8d;
}

SPAN.key {
    display: inline-block;
    padding: 1px 10px;
    border: 1px solid #7f8c8d;
    background: #ecf0f1;
    border-radius: 5px;
    text-align: center;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .25);
}

H4 {
    font-size: 22px;
    font-weight: 500;
    margin: 10px 0;
}

H4 IMG {
    vertical-align: -20%;
    margin-right: 5px;
}

/* Popup styling */

DIV.popup {
    display: none;
}

DIV.popup DIV.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .5);
}

DIV.popup DIV.window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    min-height: 150px;
    background: white;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, .35);
    padding: 15px 20px;
    font-size: 17px;
}

H2 {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 10px 0;
}

/* Button styling */

BUTTON, A.btn {
    outline: none;
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 6px 30px;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 1px 1px #bdc3c7;
    background: #ecf0f1;
    color: black;
    min-width: 145px;
    margin: 6px 0;
    white-space: nowrap;
}

BUTTON:active, A.btn:active {
    margin: 7px -1px 5px 1px;
    box-shadow: none;
}

BUTTON.main, BODY.active BUTTON {
    background: #2980b9;
    color: white;
}

BUTTON[disabled], A.btn.disabled {
    opacity: 0.5;
    cursor: pointer;
    pointer-events: none;
}

BUTTON.login {
    width: 280px;
}

/* Progress controls */

DIV.progress {
    width: 100%;
    height: 16px;
    border-radius: 8px;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
}

DIV.progress DIV.inner {
    margin: -1px;
    height: 16px;
    border-radius: 8px;
    background: #A3CB38;
    min-width: 16px;
}

BODY.overquota DIV.progress DIV.inner {
    background: #bdc3c7;
}

/* Report history */

#historyEmpty {
    color: #7f8c8d;
    font-size: 18px;
    margin-top: 7px;
}

#historyTable {
    margin-top: 5px;
}

#historyTable TR:hover {
    background: #f5f8fb;
}

#historyTable IMG {
    margin-right: 8px;
    display: block;
}

#historyTable A.title {
    display: block;
    width: 735px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#historyTable DIV.time {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Payment plans */

SECTION.subscription DIV.content {
    display: flex;
    justify-content: space-between;
}

SECTION.subscription STRONG {
    font-weight: 500;
}

SECTION.plans {
    padding-top: 0;
    padding-bottom: 0;
}

SECTION.plans DIV.content {
    display: flex;
    gap: 20px;
}

DIV.plan {
    width: 20%;
    border: 1px solid #bdc3c7;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
}

DIV.plan.current {
    background: #f7ffd9;
}

DIV.plan STRONG {
    font-weight: 500;
    font-size: 24px;
    display: block;
}

DIV.plan SMALL {
    color: #7f8c8d;
    display: block;
    margin: -7px 0 7px;
}

DIV.plan BUTTON {
    width: calc(100% - 10px);
    padding: 6px 0px;
    text-align: center;
}

/* Payment form */

DIV.currency {
    display: flex;
    justify-content: center;
    align-items: center;
}

DIV.currencies {
    display: flex;
    margin-left: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 10px;
}

DIV.currencies > * {
    color: black;
    text-decoration: none !important;
    width: 90px;
    display: block;
    text-align: center;
    padding: 5px 0;
    border-right: 1px solid #bdc3c7;
}

DIV.currencies > .current {
    background: #f7ffd9;
}

/*
DIV.currencies > A:hover {
    background: #ecf0f1;
}
*/

DIV.currencies >*:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

DIV.currencies >*:last-child {
    border-right: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

SECTION.payment .grey,
DIV.currencies .grey {
    color: #7f8c8d;
}

SECTION.payment {
    padding-top: 0px;
}

SECTION.payment DIV.content {
    width: 520px;
    display: flex;
    gap: 20px;
}

SECTION.payment DIV.content > DIV:first-child {
    width: 180px;
    text-align: center;
}
SECTION.payment DIV.content > DIV:last-child {
    width: 320px;
}

SECTION.payment DIV.content A.btn,
SECTION.payment DIV.content BUTTON {
    width: 100%;
}

SECTION.payment DIV.content BIG {
    font-size: 32px;
}

DIV.wechat {
    position: relative;
    txt-align: left;
}

DIV.wechat IMG.wechat {
    position: absolute;
    top: 72px;
    left: 72px;
}