* {
    box-sizing: border-box;
}
/* do not display scroll only */
html {
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none;
}
main {
    max-width: 1350px;
}

.div-tabs {
    --tab-side-space: 8px;
    --color-inact: #99a7b3;
    --color-fill: #c4dfe9;
    display: flex;
    align-items: flex-start;
    padding: 16px;
    font-family: font-regular !important;
}
.div-tab-labels {
    flex-direction: column;
    width: fit-content;
    padding: 0 2em 0 0;
}
label.tab-element {
    max-width: 300px;
    width: 30vw;
}
label.tab-element ~ label.tab-element {
    padding-top: 2em;
}
label.tab-element div {
    display: flex;
    align-items: center;
    box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.0375);
    padding: 16px;
    color: var(--color-inact);
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
}
label.tab-element > div::after {
    content: ">";
    flex-grow: 1;
    text-align: right;
}
label.tab-element svg {
    width: 48px;
    height: 48px;
    display: block;
}
label.tab-element :checked ~ div {
    color: var(--color-prime);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.1);
}
label.tab-element :checked ~ div svg path {
    fill: var(--color-prime);
}
.div-tab-section {
    align-self: baseline;
    width: 100%;
    color: var(--color-inact);
}

/* DXOMark logo */
.powered-by {
    display: flex;
    flex-direction: column;
    color: var(--color-inact);
    font-size: 24px;
    padding-left: 1em;
}
.powered-by .logo {
    content: url(../img/dxomark.png);
    width: 176px;
}
.powered-by .label {
    padding-left: 0.5em;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-prime);
}

.tab-content .info {
    color: #002340;
    font-size: 18px;
}
.tab-content.active {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 20px;
}
.tab-content .general {
    display: inline-flex;
    align-items: flex-end;
    padding: 1em 0;
    width: 6em;
}
.general > .score.total {
    padding-right: 2em;
    color: var(--color-prime);
    text-align: center;
}
.general > .score {
    font-weight: 600;
}

.general > .score .value {
    font-size: 2.4em;
}
.general > .score .label {
    text-transform: capitalize;
    font-size: 1em;
    color: var(--color-prime);
}
.sub-score {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.sub-score .label {
    padding: 16px 0 8px;
    width: 100%;
    color: var(--color-prime);
}
.sub-score > .bar {
    width: 50%;
    padding: 8px 32px 8px 0;
    text-transform: capitalize;
}
/* bars */
.bar {
    --bar-height: 16px;
    --bar-border: 1px;
    width: 85%;
    display: inline-block;
    vertical-align: bottom;
    margin-bottom: var(--bar-height);
    width: calc(100% - 6em);
}
.bar > .label {
    display: flex;
    justify-content: space-between;
}
.bar .progress-move {
    height: var(--bar-height);
    background-color: #ffffff;
    border: var(--bar-border) solid var(--color-prime);
}
.general .bar .progress-move .label {
    top: 14px;
}
.bar .progress-move .label {
    width: 0;
    color: var(--color-prime);
    padding: 16px 0 8px;
    margin-left: -14px;
}
.bar .container-linear-progress-bar {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.bar .progress-move .progress-bar {
    height: calc(var(--bar-height) - 2 * var(--bar-border));
    width: 0%;
    --key-width: 0%;
    animation: none;
    border: 0 solid var(--color-prime);
    border-right-width: var(--bar-border);
    background-color: var(--color-fill);
}
.bar.score .progress-move .progress-bar {
    background-color: var(--color-prime);
}
.bar .progress {
    margin: 4px 0;
    border-radius: 8px;
    display: flex;
    flex-grow: 1;
}
.bar .usage-breakdown-row {
    width: 2em;
    padding-left: 0.2em;
}

/* Use-case */
.use-case {
    color: var(--color-prime);
}
.use-case .label {
    padding: 1em 0;
}
/* Use-case Battery */
.use-case .battery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.use-case .battery > .case {
    width: 25%;
    min-width: 152px;
    display: flex;
}
.use-case .battery > .case > div {
    display: flex;
    flex-direction: column;
}
.use-case .battery .text {
    font-size: 16px;
    font-weight: normal;
}
.use-case .battery .case::before {
    content: " ";
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: right;
    margin-right: 8px;
}
.use-case .battery .life::before {
    background-image: url(../img/battery-life.svg);
}
.use-case .battery .to80time::before {
    background-image: url(../img/battery-to80.svg);
}
.use-case .battery .to100time::before {
    background-image: url(../img/battery-to100.svg);
}
.use-case .battery .boosttime::before {
    background-image: url(../img/battery-5min.svg);
}
/* Gauge */
.gauges-container {
    display: flex;
}
.gauges-container > .gauge {
    display: flex;
    flex-direction: column;
    width: 50%;
    color: var(--color-inact);
}
.gauge-bar {
    display: flex;
    align-items: center;
}
svg.gauge {
    width: 120px;
}
.gauge-info {
    font-size: 14px;
}
.gauge-info > .title {
    color: var(--color-prime);
}
.gauge-bar > .title {
    width: 90px;
}
.tab-content .gauge-container > .gauge .value-text {
    fill: var(--color-prime);
    font-weight: bold;
    font-size: 24px;
}
.tab-content .gauge-container > .gauge .dial {
    stroke: var(--color-fill);
    stroke-width: 8;
}
.tab-content .gauge-container > .gauge .value {
    stroke: var(--color-prime);
    stroke-width: 8;
}
.gauge-bar.hours g.text-container {
    display: none;
}
.tab-content .gauge-bar.hours .gauge-container > .gauge .value-text {
    font-size: 15px;
}
/* tooltip */
[data-type="ico-tooltip"] {
    display: inline-block;
    text-transform: none;
    margin-left: 8px;
}
[data-type="ico-tooltip"] > .ico::before {
    content: url(../../yettel/images/ico_info.svg);
    display: block;
}
[data-type="ico-tooltip"] > .ico {
    display: flex;
    flex-direction: column;
    align-items: center;
}
[data-type="ico-tooltip"]:hover > .ico::after {
    content: " ";
    display: block;
    position: absolute;
    translate: 0 -14px;
    width: 10px;
    height: 10px;
    border: 0 solid var(--color-prime);
    border-width: 0 1px 1px 0;
    rotate: 45deg;
    background: #fff;
    z-index: 11;
}
[data-type="ico-tooltip"] > .body {
    display: none;
    font-weight: normal;
    position: absolute;
    z-index: 10;
    width: max-content;
    max-width: 500px;
    border: 1px solid var(--color-prime);
    border-radius: 8px;
    padding: 8px;
    translate: -50% calc(-100% - 32px);
    background: #ffffff;
}
[data-type="ico-tooltip"]:hover > .body {
    display: block;
}
[data-type="ico-tooltip"].right > .body {
    right: unset;
    transform: translateX(calc(-50% + 1.5em));
}
.sub-score .bar:nth-child(2n + 1) [data-type="ico-tooltip"] > .body {
    translate: -2em calc(-100% - 32px);
    right: unset;
}
[data-type="ico-tooltip"] .text {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #002340;
}
[data-type="ico-tooltip"] .text::before {
    content: url(../../yettel/images/ico_info.svg);
    display: block;
    margin-right: 8px;
}
[data-type="ico-tooltip"].left > .body::after {
    left: 8px;
    right: unset;
}

/* annotation */
.note {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-top: 1px solid var(--color-inact);
    padding-top: 16px;
    margin-top: 2em;
}
.note .label {
    text-align: right;
    font-size: 15px;
    padding-right: 0.8em;
    font-weight: 100;
}
.note .text {
    padding-left: 32px;
    font-weight: 100;
    text-align: right;
    font-size: 14px;
    line-height: 20px;
    display: block;
    word-wrap: break-word;
    /* To ensure long words do not cause overflow */
    word-break: break-word;
}

.bar.score .label > div:nth-child(2) {
    margin-left: auto;
}

.container-linear-progress-bar {
    position: relative;
    padding-bottom: 20px;
}
.progress {
    position: relative;
}
.progress .label {
    white-space: nowrap;
}

.bar.score .label {
    color: #002340;
}

/* Desktop */
@media only screen and (min-width: 761px) {
    .general > .powered-by.dxomark {
        display: none;
    }
}

/* Mobile */
@media only screen and (max-width: 760px) {
    .container {
        display: flex;
        flex-direction: column;
    }
    .tab-content.active {
        font-size: 16px;
    }
    .div-tab-labels.dxo > label > div {
        display: flex;
        flex-direction: column;
    }

    .div-tab-labels.dxo {
        display: flex;
        flex-direction: row;
        border-bottom: 2px solid #99a7b3;
        margin: 0 auto;
    }

    .info {
        padding-top: 1rem;
    }

    .sub-score {
        flex-direction: column;
    }

    .bar,
    .sub-score > .bar {
        width: 100%;
        padding: 0;
    }

    .div-tab-labels {
        padding: unset;
    }

    .div-tabs {
        display: block;
        padding: 0;
    }

    label.tab-element ~ label.tab-element {
        padding-top: 0px;
    }

    .tab-element > div::after {
        content: "" !important;
    }

    label.tab-element {
        width: auto;
    }

    .no-tab-element {
        display: none;
    }

    .general > .powered-by.dxomark {
        display: flex;
        padding-top: 1rem;
        flex-direction: column;
        align-items: flex-end;
        width: fit-content;
        color: var(--color-inact);
        font-size: 24px;
    }

    .general {
        justify-content: flex-end;
    }
    .general > * {
        width: 33%;
    }
    .general::before {
        content: " ";
    }
    .tab-content .general {
        width: 100%;
    }

    [data-type="ico-tooltip"] > .body {
        width: auto;
        max-width: 80vw;
        translate: 0 calc(-100% - 32px) !important;
        left: 1em;
    }
    [data-type="ico-tooltip"].right > .body {
        left: unset;
        right: 0em;
        transform: unset;
    }
}