/**
 * NOTE
 * Just copy the styles.css at the beginning of this file
 * when integrating it in the mobileBundle
 */

.grid {
  width: auto;
  flex-wrap: wrap;
}

#header {
    box-sizing: border-box;
}

.header__nav {
    box-sizing: border-box;
}

.camsfactor__nav {
    position: initial;
    font-size: 14px;
}

.camsfactor__nav .col {
    flex: 1 1 auto;
}

.camsfactor .button {
    max-width: 88%;
    display: inline-block;
}

.col--countdown.step--cams-factor-winter,
.col--countdown.step--cams-factor-winter-before,
.col--countdown.step--cams-factor-winter-results,
.col--countdown.step--cams-factor-winter-after-results {
    flex: 1 1 auto !important;
}

.col--countdown.step--cams-factor-winter {
    display: flex;
    justify-content: center;
}

.camsfactor__presentation details {
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3C394F;
}

.camsfactor__presentation details summary {
    margin: 0 0 12px;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 18px;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camsfactor__presentation details summary::-webkit-details-marker {
    display: none;
}

.camsfactor__presentation details summary span {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.camsfactor__presentation details summary span.icon {
    height: 25px;
}

.camsfactor__presentation details[open] summary span.icon {
    transform: rotate(180deg);
}

.camsfactor__presentation details summary svg {
    fill: #7C74A3;
    height: 16px;
    width: 20px;
}

.cam__nickname {
    width: 45%;
}

.ranking__buttons .button--big {
    line-height: 1.5em;
    font-size: 1.1em;
}

.camsfactor__cover .video {
    right: -32%;
}

.col--logo {
    display: flex;
    align-self: baseline;
    margin-top: 2vw;
}

.col--logo img {
    max-width: 200px;
}

.camsfactor__cover {

    height: 636px;
}

.cover--xcams {
    background: #8F0000;
}

.cover--generic {
    background: #8F0000;
}


.camsfactor .background {
    background-image: url(./assets/cover.png);
    background-position: right;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    position: absolute;
    background-size: contain;
}


@media only screen and (max-width: 1600px) {
    .camsfactor__cover {
        height: 560px;
    }
}

@media only screen and (max-width: 768px) {
    .camsfactor__cover .grid {
        padding-top: 0;
        padding-bottom: 24px;
    }

    .camsfactor__ranking .col {
        flex: 0 0 50%;
    }

    .camsfactor__ranking h3,
    .camsfactor__categories h3 {
        font-size: 24px !important;
        margin: auto auto 16px auto;
        max-width: 100%;
    }

    .camsfactor__ranking--update {
        position: initial;
        width: 100%;
        max-width: 100%;
        padding-bottom: 15px;
    }

    /* Ranking selector mobile styles */
    .camsfactor__ranking-selector {
        margin: 24px auto 32px;
    }

    .ranking-selector__label {
        padding: 10px 20px;
        font-size: 14px;
    }

    .col--logo img {
        position: relative;
        right: -24px;
    }

    .col--title h1 {
        margin-top: 0 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .col--title h1 strong {
        font-size: 24px !important;
    }

    .col--title p {
        font-size: 16px;
        font-weight: 400;
    }

    .winner {
        background-size: 110px auto;
        background-position: center 80px;
    }

    .winner--1 {
        background-position: center 96px;
    }

    .winner__figure {
        width: 110px;
        height: 110px;
    }

    .winner--1 .winner__figure {
        width: 130px;
        height: 130px;
    }

    .winner__name {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin: 0 auto;
    }
}

.video__poster,
.col__desktop {
    display: none;
}

.col__mobile {
    display: block;
    width: 100%;
}

@media (min-width: 640px) {
    .video__poster,
    .col__desktop {
        display: block;
    }

    .col__desktop .camsfactor__presentation {
        flex-wrap: nowrap;
        color: white;
    }

    .col__mobile {
        display: none;
    }
}

.grid-mobile {
    display: none;
}

@media (max-width: 600px) {
    .grid-mobile {
        display: flex;
        flex-direction: column;
        padding: 13px;
    }

    .grid-mobile img {
        max-width: 128px;
    }
    .grid-mobile .upper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 19px;
    }

    .grid-mobile p {
        padding: 18px 10px;
        font-size: 14px;
        line-height: 22px;
    }

    .countdown__title {
        font-size: 22px;
    }

    .col--logo, .col--title {
        display: none !important;
    }

    .camsfactor .background {
        background-image: url(./assets/cover_mobile.jpg);
        background-size: cover;
    }

    .camsfactor__cover h1 {
        font-size: 20px !important;
        font-weight: 600 !important;
        line-height: 26px;
    }

    .camsfactor__cover h1 strong {
        font-size: 20px !important;
        font-weight: 600 !important;
        line-height: 26px;
    }
    .camsfactor__cover h1 span {
        font-weight: 800;
    }
}

@media only screen and (max-width: 640px) {
    .start__title {
        font-size: 22px;
        line-height: 24px;
        padding-bottom: 10px;
    }

    .start__content {
        font-size: 24px;
        line-height: 26px;
    }

    .camsfactor__nav .grid {
        justify-content: space-around;
    }

    .camsfactor__nav .col:first-of-type {
        display: none;
    }

    .camsfactor__presentation {
        padding-top: 8px;
    }

    .camsfactor__presentation h2 {
        margin-top: 32px;
    }

    .camsfactor__footer .grid {
        justify-content: flex-start;
        text-align: left;
    }

    .camsfactor__rules {
        list-style-type: disc;
        padding-left: 21px;
    }

    .camsfactor__rules li {
        margin-bottom: 12px;
    }

    .camsfactor__rules li::before {
        content: initial;
    }
}

@media only screen and (max-width: 320px) {
    .winner--1 {
        padding-bottom: 32px;
        background-position: center 96px;
        margin: 0 -20px;
        z-index: 1;
    }

    .winner--1 .winner__figure::after {
        content: initial;
    }

    .winner--1 .winner__figure {
        width: 120px;
        height: 120px;
    }

    .winner__name {
        max-width: 80px;
    }
}
