/*
* Styles about user tips pages
*/

.avatar-pic {
margin: 2.2em auto 5.2em auto;
text-align: center;
}

#tips {
padding: 0.92em 0 0.92em 0;
}

h1 {
text-align: center;
font-weight: normal;
font-size: 1.52em;
line-height: 1.4em;
}

h1 span {
display: block;
font-size: 1rem;
margin-top: -0.32em;
text-transform: lowercase;
color: var(--attention-color);
}

h2 {
text-align: center;
font-weight: normal;
font-size: 1.32em;
line-height: 1.4em;
}

h2.balance-history {
margin-top: -1.8em;
margin-bottom: -0.8em;
}



.game {
display: block;
width: 100%;
position: relative;
line-height: 2.8em;
color: var(--main-color);
border-top: 1px solid var(--game-border-color);
border-bottom: 1px solid var(--game-border-color);
}

.combo {
border-top: unset;
}

.game .time {
display: block;
white-space: nowrap;
text-align: right;
position: absolute;
top: 0;
left: 6px;
width: 36px;
}

.game .date {
display: block;
white-space: nowrap;
text-align: left;
position: absolute;
top: 0;
left: 6px;
width: 132px;
}

.game .score {
display: block;
white-space: nowrap;
text-align: center;
font-weight: bold;
position: absolute;
top: 0;
left: 50%;
margin-left: -22px;
width: 44px;
}

.game .teams, .game .teamsd {
position: relative;
display: block;
margin-left: 96px;
margin-right: 194px;
height: 2.8em;
line-height: 2.8em;
}

.game .teamsd {
margin-left: 194px;
}

.game .home, .game .away {
display: block;
width: 50%;
}

.game .home {
float: left;
text-align: right;
}

.game .away {
float: right;
text-align: left;
}

.game .home span, .game .away span {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.game .home span {
margin-right: 26px;
}

.game .away span {
margin-left: 26px;
}

.game .bet {
display: block;
width: 192px;
text-align: right;
position: absolute;
top: 0;
right: 6px;
height: 2.8em;
line-height: 2.8em;
font-weight: bold;
}

.game .betd {
right: 3em;
}

.game .status {
display: block;
white-space: nowrap;
text-align: center;
position: absolute;
top: 0;
left: 132px;
width: 48px;
padding: 0 6px;
}

.country-flag {
width: 24px;
height: 18px;
background: var(--image-bg-color);
}

.international-flag {
width: 24px;
height: 18px;
background: var(--image-bg-color);
}

.missing-tournament {
width: 24px;
height: 18px;
background: var(--image-bg-color);
}


@media screen and (max-width: 768px) {
.game .time {
left: 4px;
}
.game .date {
left: 4px;
}
.game .teams {
margin-left: 92px;
margin-right: 190px;
}
.game .teamsd {
margin-left: 182px;
margin-right: 182px;
}
.game .status {
left: 124px;
}
}


@media screen and (max-width: 720px) {
.game .time {
left: 2px;
}
.game .date {
left: 2px;
}
.game .teams {
margin-left: 80px;
margin-right: 180px;
}
.game .teamsd {
margin-left: 172px;
margin-right: 172px;
}
.game .status {
left: 118px;
}
}


@media screen and (max-width: 640px) {
.game {
height: 5em;
}
.game .time {
text-align: center;
font-weight: normal;
top: 0;
left: 50%;
margin-left: -22px;
width: 44px;
font-size: 0.82em;
line-height: 2.8rem;
color: var(--game-secondary-color);
}
.game .date {
left: 6px;
top: 2.98rem;
height: 1rem;
line-height: 1rem;
text-align: left;
padding: 0;
font-size: 0.9em;
color: var(--game-secondary-color);
}
.game .teams, .game .teamsd {
margin-left: 0;
margin-right: 0;
}
.game .bet {
right: 6px;
top: 2.9rem;
height: 1rem;
line-height: 1rem;
text-align: right;
width: 100%;
}
.game .betd {
right: 3em;
}
.game .notime {
display: none;
}
.game .status {
left: 6px;
text-align: left;
top: 2.9rem;
line-height: 1em;
padding: 0;
font-size: 0.9em;
}
.game .ended {
display: none;
}
}


@media screen and (max-width: 380px) {
.game .status {
left: 2px;
}
.balance-frame {
min-width: 300px;
max-width: 320px;
padding-left: 0;
padding-right: 0;
}
}

@media screen and (max-width: 320px) {
.balance-frame {
min-width: 280px;
max-width: 300px;
}
}


.play {
color: var(--game-live-color);
}

.event {
background: var(--game-event-color);
}

.goal {
color: var(--game-live-color);
}

.game .started {
color: var(--game-secondary-color);
}

.game .ended {
color: var(--game-secondary-color);
}

.game .end {
color: var(--game-secondary-color);
}

.bl {
animation: blink 1.2s step-end infinite;
}

@keyframes blink {
50% { opacity: 0; }
}



.tip-top {
display: block;
line-height: 1.4em;
margin-top: 1.8em;
padding-bottom: 0.42em;
text-align: center;
white-space: nowrap;
border-bottom: 1px solid var(--game-border-color);
}

.tip-bet {
font-weight: bold;
}

.tip-bookie {
display: inline-block;
font-weight: normal;
font-size: 0.78em;
vertical-align: 0.08em;
color: var(--tertiary-color);
}

.tip-date {
font-weight: normal;
font-size: 0.78em;
margin-bottom: 0.12em;
color: var(--quaternary-color);
}

.tip-bottom {
height: 3.2em;
white-space: nowrap;
color: var(--main-color);
}

.tip-space {
height: 1.8em;
}

.tip-bottom:last-of-type {
border-bottom: none;
}

.game .win {
color: var(--tip-win-color);
}
.game .loss {
color: var(--tip-loss-color);
}
.game .nobet {
color: var(--tip-nobet-color);
}
.game .psp {
color: var(--tip-psp-color);
}

.win {
color: var(--tip-win-color);
}
.loss {
color: var(--tip-loss-color);
}
.nobet {
color: var(--tip-nobet-color);
}
.psp {
color: var(--tip-psp-color);
}


@media screen and (max-width: 640px) {
.tip-top {
margin-top: 2em;
}
}



.tip-links {
margin: 2.4em auto;
text-align: center;
}

.tip-link {
margin: -0.32em auto 2em auto;
text-align: center;
}

.balance-links {
margin: -4.8em auto 4.8em auto;
text-align: center;
}

.bal-link {
margin: -4.8em auto 2.8em auto;
text-align: center;
}

.bal-link-bottom {
margin: -2.8em auto 5.8em auto;
text-align: center;
}

.plink a {
display: inline-block;
margin: 0 0.72em;
text-decoration: none;
color: var(--link-color);
}

.plink a:visited {
color: var(--link-color);
}

.plink a:hover {
text-decoration: underline;
}

.balance-space {
margin-top: 3.2em;
}

.balance-date {
margin: -0.72em auto 1.52em auto;
text-align: center;
font-weight: bold;
}

.tips-hidden {
display: none;
}


@media screen and (max-width: 640px) {
.tip-links a {
display: block;
width: max-content;
white-space: nowrap;
margin: 1.32em auto;
}
}





table.balance {
width: 100%;
max-width: 420px;
margin: 1em auto 6em auto;
border-collapse: collapse;
border-top: 1px solid var(--game-border-color);
}

table.balance td {
line-height: 1.92em;
border-bottom: 1px solid var(--game-border-color);
}

table.balance td.label {
padding-left: 0.52em;
vertical-align: top;
}

table.balance td.data {
width: 98px;
text-align: right;
padding-right: 0.52em;
}

.balance-positive {
color: var(--balance-positive-color);
font-weight: bold;
}

.balance-negative {
color: var(--balance-negative-color);
font-weight: bold;
}


@media screen and (max-width: 380px) {
table.balance td.data {
width: 92px;
}
}

@media screen and (max-width: 320px) {
table.balance td.data {
width: 88px;
}
}



.sort-select {
height: 2.4em;
margin-top: 0.6em;
margin-bottom: 1em;
text-align: center;
}

.sort-label {
color: var(--main-color);
padding-right: 0.52em;
}

.sort-button {
height: 2.4em;
width: 2em;
background-position: right;
background-repeat: no-repeat;
background-size: 1.52em 1.52em;
background-image: url("/svg/select.svg");
filter: var(--settings-select-filter);
}

.sort-select .sort-select-link {
color: var(--link-color);
text-decoration: none;
white-space: nowrap;
font-size: 1em;
line-height: 2.4em;
padding: 0.4em 0.2em 0.52em 0.52em;
}

.sort-select .sort-select-link span {
display: inline-block;
vertical-align: middle;
max-width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.sort-select a:visited {
color: var(--link-color);
}

.sort-select a:hover {
background-color: var(--settings-hover-color);
}

.sort-disabled {
color: var(--sort-disabled-color);
}

.sort-button-disabled {
filter: var(--sort-disabled-filter);
}




.sort-window {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 12000;
background: var(--settings-bg-color);
max-height: 50%;
display: flex;
flex-direction: column;
}

.sort-select-arrow {
position: relative;
display: block;
text-align: center;
width: 100%;
height: 2.4em;
line-height: 2.4em;
flex: none;
cursor: pointer;
background-color: var(--settings-bg-header-color);
}

.sort-select-button {
display: inline-block;
height: 2.4em;
width: 2.4em;
background-position: center;
background-repeat: no-repeat;
background-size: 2.4em 2.4em;
filter: var(--settings-bg-header-filter);

}

.sort-select-up-button {
background-image: url("/svg/move-up.svg");
}

.sort-select-down-button {
background-image: url("/svg/move-down.svg");
}

.sort-select-items {
min-height: 0;
flex-grow: 1;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
height: 100%;
}

.sort-select-item {
display: block;
color: var(--settings-link-color);
text-decoration: none;
height: 2.4em;
line-height: 2.4em;
padding: 0 1.92em 0 1.92em;
white-space: nowrap;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
min-width: 132px;
}

.sort-select-item:visited {
color: var(--settings-link-color);
}

.sort-select-item:hover {
background-color: var(--settings-hover-color);
}

.sort-close-button2 {
display: block;
position: absolute;
top: 0;
right: 0;
cursor: pointer;
width: 2.4em;
height: 2.4em;
background-position: center;
background-repeat: no-repeat;
background-size: auto;
background-image: url("/svg/close.svg");
filter: var(--settings-bg-header-filter);
}

.sort-close-button2:hover {
background-color: var(--settings-bg-header-hover-color);
}

.sort-select-txt {
display: inline-block;
vertical-align: top;
line-height: 2.4em;
color: var(--settings-link-color);
}

.sort-selected-txt {
color: var(--settings-positive-color);
font-weight: bold;
}

.sort-selected-txt-reverse {
color: var(--settings-negative-color);
font-weight: bold;
}


@media screen and (max-height: 768px) {
.sort-window {
max-height: 60%;
}
}


@media screen and (max-height: 640px) {
.sort-window {
max-height: 70%;
}
}


@media screen and (max-height: 480px) {
.sort-window {
max-height: calc(100% - 20px);
}
}



.dc {
position: relative;
max-width: 100%;
display: block;
}

.dce {
position: absolute;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
width: 100%;
top: 0;
left: 0;
}
