﻿* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Gotham Medium';
    src: url('../font/gotham-medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Black';
    src: url('../font/gotham-black.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Gotham book';
    src: url('../font/gotham-book.woff') format('woff');
    font-display: swap;
}

html {
    background-color: #36454F;
    /* background-color: #000; */
}

main {
    margin: 1cm;
}

@media screen and (max-width: 600px) {
    main {
        margin: 5px;
    }
}

body {
    margin-bottom: 0;
}


html * {
    font-family: 'Gotham Medium';
}

.container {
    display: table;
    margin: 0 auto;
    max-width: 90%;
    width: 100%;
}

.title_wrap {
    display: flex;
    justify-content: space-between;
    margin-right: 15px;
}

    .title_wrap img {
        height: 2.5rem;
    }


h1 {
    font-family: 'Gotham medium' !important;
    color: white;
}
/* Float four columns side by side */
.column {
    float: left;
    padding: 5px 5px;
    position: relative;
    /*  width: calc(228px -70px); */
    margin-right: 10px;
    margin-bottom: 10px;
}

    .column::after {
        content: "";
        display: block;
        padding-bottom: 95%;
    }
.NPS .column::after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

    .column > div:nth-child(1) {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 2px 2px !important;
        display: grid;
        grid-template-rows: auto 1fr auto;
        overflow: hidden;
        box-sizing: border-box;
        text-align: center;
    }

        .column > div:nth-child(1) > div:nth-child(2) {
            width: 100%;
        }
/* Remove extra left and right margins, due to padding in columns */
.row {
    margin: 0 -5px;
    flex-flow: row wrap;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: 1fr;
    grid-auto-flow: row;
    text-align: center;
    margin-top: 20px;
}

    /* Clear floats after the columns */
    .row:after {
        content: "";
        clear: both;
    }

/* Style the counter cards */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
    padding: 8px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    background-size: 100% 100%;
    height: 100%;
    opacity: 1;
    border-radius: 25px;
    background-color: ActiveBorder;
}

/* Style the counter cards */
.cardred {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
    padding: 8px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    background-size: 100% 100%;
    height: 100%;
    opacity: 1;
    border-radius: 1rem;
    background-color: ActiveBorder;
    background-color: white;
    border: 0.3rem solid #F05364 !important;
}

    .cardred > p, .arrow_down {
        color: #F05364;
    }

/* Style the counter cards */
.cardamber {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
    padding: 8px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    background-size: 100% 100%;
    height: 100%;
    opacity: 1;
    border-radius: 1rem;
    background-color: ActiveBorder;
    background-color: white;
    border: 0.3rem solid #DCBD57 !important;
}

    .cardamber > p {
        color: #DCBD57;
    }

/* Style the counter cards */
.cardgreen {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* this adds the "card" effect */
    padding: 8px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    background-size: 100% 100%;
    height: 100%;
    opacity: 1;
    border-radius: 1rem;
    background-color: ActiveBorder;
    background-color: white;
    border: 0.3rem solid #00B275 !important;
}

    .cardgreen > p, .arrow_up {
        color: #00B275;
    }

.groupscore * {
    color: white !important;
}

.cardamber.groupscore {
    background-color: #DCBD57;
}

.cardgreen.groupscore {
    background-color: #00B275;
}

.cardred.groupscore {
    background-color: #F05364;
}

.column h4 {
    font-size: .8rem;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.1;
    width: 100% !important;
    justify-self: stretch !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: block !important;
}
/*
.column > div {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}

        .column > div:nth-child(1) > div > div > div:nth-child(1){
        display: none !important;
    }
        */

.column > div:nth-child(1) p {
    font-family: 'Gotham Black';
    margin-bottom: 0 !important;
}

.equalHeight {
    width: 100%;
    text-align: center !important;
}

.numberscore {
    font-size: clamp(1.41rem, 1.94vw, 2.82rem) !important;
    line-height: 1.1em !important;
    font-family: 'Gotham Black' !important;
    text-align: center !important;
    width: 100% !important;
    justify-self: stretch !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    max-height: none !important;
    margin: 0;
}

    .numberscore br{
        display: none;
    }

    .arrow_down, .arrow_up, #arrow_down, #arrow_down, .position-previous .left_part p, .position-previous .right_part p {
        font-family: 'Gotham book' !important;
        line-height: 1 !important;
    }

.position-grade {
    position: relative;
    width: 100%;
/*     min-height: 45px;*/
}

    .position-grade p {
        margin-bottom: 0;
        font-size: .7rem !important;
        line-height: 1.2rem !important;
        font-family: 'Gotham book' !important;
    }

    .position-grade > div:nth-child(1) {
        display: table !important;
        margin: 0 auto !important;
    }

    .position-grade > div:nth-child(2) {
        width: 1rem !important;
        height: 1.2rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0px;
    }

        .position-grade > div:nth-child(2) img {
            width: 100% !important;
            height: auto !important;
        }
.position-previous{
    margin-top: 2px;
    padding: 0 5px;
    overflow: hidden;
}
.position-previous > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    height: 0.85rem;
    margin-bottom: 0 !important;
    overflow: hidden;
    flex-wrap: nowrap;
}

.position-previous > div:has(.left_part) {
    justify-content: space-between;
    gap: 0;
}

    .position-previous div p {
        font-family: 'Gotham book' !important;
        font-size: .60rem !important;
        line-height: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

.position-previous .left_part {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.position-previous .right_part {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: right;
}

.position-previous .right_part p {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
}

.groupscore #arrow_down .cls-2, .groupscore #arrow_up .cls-1 {
    fill: white !important;
}

svg#arrow_down {
    fill: #F05364 !important;
}

#arrow_up, #arrow_down {
    width: 0.7rem;
    height: 0.7rem;
    vertical-align: middle;
    position: relative;
    top: 0;
    margin-right: 0 !important;
    margin-left: 3px !important;
}

    #arrow_up polygon {
        fill: #00b275;
    }

.legends {
    position: relative;
}

.outcontainer {
    background-color: #383b3c;
    color: white;
    width: 100vw;
    position: absolute;
    left: calc(-50vw + 50%);
    height: 100%;
}

.container.big {
    width: 100%;
    max-width: 100%;
    color: white;
    z-index: 9;
    position: relative;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: 25px;
}

.left {
    display: flex;
    width: 30%;
    padding: 20px 30px 20px 0;
    justify-content: space-between;
    border-right: 3px solid #36454F;
}

    .left p, .right p {
        margin: 0;
    }

.square_leg {
    width: auto;
    height: 25px;
    border-radius: 3px;
    margin-right: 10px;
    text-align: center;
    display: table !important;
    line-height: 25px;
    min-width: 70px;
    padding: 0 10px;
}

.left > div {
    display: flex;
    align-items: center;
}

.right {
    display: flex;
    width: 70%;
    padding: 20px 10px 20px 30px;
    justify-content: space-between;
    flex-direction: row-reverse;
}

    .right.rightgri {
        flex-direction: unset;
    }

    .right > div {
        font-family: 'Gotham book';
        font-size: .8rem;
    }

    .right > span {
        font-family: 'Gotham book';
        font-size: .8rem;
        color: #a4a3a3;
    }

.greenf {
    color: #00B275;
    margin: 0 15px;
}

.redf {
    color: #F05364;
}

.red {
    background-color: #F05364;
}

.amber {
    background-color: #DCBD57;
}

.green {
    background-color: #00B275;
}

.legends.mobile {
    display: none;
}

.reviewPerStay p.noMobile {
    float: unset;
    text-align: left;
}
.reviewPerStay p{
    float: left;
}
.reviewPerStay p:last-of-type{
/*    margin-left: 10px;*/
}


@keyframes buttonLoadingAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-loading:before {
    content: "";
    position: absolute;
    top: 8px;
    left: 13px;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: buttonLoadingAnimation 1s infinite linear;
    background-color: #1976d2;
}
button.button-loading {
    color: #1976d2;
}





body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
}

iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: none;
}

    iframe.active {
        display: block;
    }

button {
    padding: 0.6em 0.8em;
    width: 50px;
    height: 40px;
    border-radius: 8px;
    color: #fff;
    background-color: #1976d2;
    font-size: 0.65em;
    border: 0;
    cursor: pointer;
    margin: 1em;
    vertical-align: middle;
    line-height: 0.8em;
}

.iframe_container #counter {
    right: 10px;
    bottom: 55px;
    position: absolute !important;
    width: 50px;
    height: 18px;
    line-height: 6px;
    border-radius: 5px;
}

.mtd.iframe_container #counter {
    right: 65px;
}

#next {
    right: 65px;
    bottom: 10px;
    position: fixed;
}

#pause, #play {
    right: 120px;
    bottom: 10px;
    position: fixed;
}

#play {
    display: none;
}

#prev {
    right: 174px;
    bottom: 10px;
    position: fixed;
}

#counter {
    right: 228px;
    bottom: 10px;
    position: fixed;
}

.iframe_container {
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

    .iframe_container iframe {
        background: transparent;
    }

.burger-menu {
    position: relative;
    display: inline-block;
}

#burger-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    border: 0;
}

    #burger-btn span {
        display: block;
        position: absolute;
        height: 3px;
        width: 24px;
        background: #fff;
        border-radius: 5px;
        opacity: 1;
        left: 13px;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

        #burger-btn span:nth-child(1) {
            top: 13px;
        }

        #burger-btn span:nth-child(2),
        #burger-btn span:nth-child(3) {
            top: 19px;
        }

        #burger-btn span:nth-child(3) {
            top: 25px;
        }

.menu-items {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    z-index: 1;
    padding: 0;
    margin: 0;
    list-style: none;
    display: none;
}

#burger-btn.open span:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

#burger-btn.open span:nth-child(2) {
    opacity: 0;
}

#burger-btn.open span:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
}

/* .burger-menu:hover .menu-items {
      display: block;
    } */

.menu-items {
    /* other styles... */
    display: none;
}

.burger-menu.open .menu-items {
    display: block;
}

.wrap_buttons {
    z-index: 2;
    position: relative;
}

#score_menu {
    top: 0;
    position: fixed;
    right: 0;
    height: 100%;
    padding: 20px;
}



/* Copied from the Staycity Score html */
#score_menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 373px;
    background-color: #e3edf7;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease;
    border-left: 3px solid #1976d2;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 20px 80px 20px;
}

    #score_menu::after {
        content: "";
        display: block;
        width: 100%;
        height: 80px;
        flex-shrink: 0;
    }

    #score_menu li {
        list-style: none;
        margin-bottom: 7px;
        cursor: pointer;
    }

        #score_menu li:hover {
            color: #1976d2;
        }

    #score_menu li.active {
            color: #1976d2;
            font-weight: bold;
            text-decoration: underline;
        }

    #score_menu.menu-hidden {
        transform: translateX(100%);
    }

    #score_menu ul {
        padding-left: 25px;
    }

    #score_menu > span {
        flex: 0 0 auto;
        max-height: 100%;
        padding-left: 0;
    }

.iframe_container .mtd #counter {
    right: 65px;
}

@media screen and (max-width: 2000px) {
    .container {
        max-width: 100%;
    }
    .row {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    .row.NPS {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1300px) {

    .right p, .right .greenf, .right .redf {
        display: none;
    }

    .legends.desktop {
        /*        position: fixed;*/
        margin: 0;
        bottom: 0;
        width: 100%;
        left: 0;
        padding-bottom: 50px;
        margin-top: 25px;
    }

    .title_wrap {
        margin-bottom: 20px;
    }

    .legends.desktop .container.big {
        width: 95%;
        padding: 0 25px;
        margin: 0 auto;
        flex-wrap: nowrap;
    }

    .legends.desktop .right {
        flex-wrap: wrap;
        text-align: right;
        margin-top: 15px;
    }

        .legends.desktop .right span {
            width: 100%;
            margin-top: 0px;
            text-align: right !important;
        }

    .legends.mobile {
        display: none;
    }

    .left {
        display: flex;
        width: 100%;
        padding: 15px 10px 15px 0;
        justify-content: start;
        border-right: 0px solid #36454F;
        align-items: center;
    }

    .right {
        display: flex;
        width: 100%;
        padding: 0px 0px 15px 0px;
        justify-content: end;
    }

    .container.big {
        margin: 20px 0;
    }

    .left p, .right p {
        font-size: .8rem;
    }

    .right > div {
        font-size: .7rem;
        margin-left: 20px;
    }

    .right .reviewPerStay p {
        display: block;
        float: unset;
    }

        .right .reviewPerStay p.noMobile {
            display: none;
        }

    .left > div {
        font-size: .7rem;
        margin-left: 20px;
    }

    .iframe_container button, #burger-btn {
        width: 50px;
        height: 40px;
        position: relative !important;
        margin: 0;
        margin-right: 5px;
    }

    button {
        padding: 0.6em 0.2em;
    }

    .iframe_container #next, .iframe_container #pause, .iframe_container #play, .iframe_container #prev, #burger-btn, #switchButton, #switchAvgButton {
        right: unset !important;
        bottom: unset !important;
    }

    .iframe_container #counter {
        right: 0px;
        bottom: 45px;
    }



        #burger-btn span {
            width: 25px !important;
            left: 13px !important;
        }

            #burger-btn span:nth-child(1) {
                top: 13px !important;
            }

            #burger-btn span:nth-child(2),
            #burger-btn span:nth-child(3) {
                top: 19px !important;
            }

            #burger-btn span:nth-child(3) {
                top: 25px !important;
            }

        #burger-btn.open span:nth-child(1), #burger-btn.open span:nth-child(3) {
            top: 19px !important;
        }

    .wrap_buttons {
        display: flex;
        position: fixed !important;
        bottom: 10px;
        z-index: 2;
        width: unset;
        justify-content: start;
        right: 65px;
    }

    .review_row .column {
        width: 100% !important;
    }

    .container main {
        width: 98%;
        margin-left: auto;
        margin-right: auto;
        /*        padding-bottom: 155px !important;*/
        margin-bottom: 0 !important;
        padding-bottom: 0px !important;
    }

    .currentRank, .reviewPerStay {
        margin: 0 !important;
    }

        .reviewPerStay p:last-of-type {
            margin-left: 10px !important;
            /* margin-right: auto !important; */
            display: table;
            text-align: left !important;
        }
}

    /* Responsive columns - one column layout (vertical) on small screens */
    @media screen and (max-width: 1600px) {
        .container {
            max-width: 100%;
        }

        .row {
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }

        .row.NPS {
            grid-template-columns: repeat(9, minmax(0, 1fr));
        }
        .position-previous div p span {
            font-size: .55rem !important;
        }
        .position-previous div p span {
            font-size: .55rem !important;
            font-family: 'Gotham book' !important;
        }
            .position-previous div p span.nomobile {
                font-size: .7rem !important;

            }
    }


    @media screen and (max-width: 1400px) {
        .row {
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }
            .row.NPS {
                grid-template-columns: repeat(7, minmax(0, 1fr));
            }

        .column::after {
            content: "";
            display: block;
            padding-bottom: 100%;
        }
        .NPS .column::after {
            content: "";
            display: block;
            padding-bottom: 90%;
        }
    }

@media screen and (max-width: 1080px) {
  .row.NPS {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

    @media screen and (max-width: 960px) {
        .row, .row.NPS {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
  
          
    }

    @media screen and (max-width: 800px) {
        .row, .row.NPS {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }


/*.right_part .nodesktop, .left_part .nodesktop {
    display: none;
}*/
.left_part .nodesktop {
    display: none;
}

.right_part .nomobile{
    display: none;
}

@media screen and (max-width: 600px) {
/*    .right_part .nodesktop, .left_part .nodesktop {
        display: inline;
    }
    .right_part .nomobile, .left_part .nomobile {
        display: none;
    }*/
    .left_part .nomobile {
        display: none;
    }
    .left_part .nodesktop {
        display: inline;
    }

    .arrow_down, .arrow_up, #arrow_down, #arrow_down, .position-previous .left_part p, .position-previous .right_part p {
        line-height: 1 !important;
    }

    .legends.desktop .container.big {
            width: calc(100% - 25px);
            padding: 0 25px;
            margin: 0 auto;
            flex-wrap: nowrap;
            display: table;
        }

        #arrow_up, #arrow_down {
            width: 0.8rem !important;
        }

        .wrap_buttons {
            right: 7px;
        }

        .wrap_buttons.mtd {
            right: 14px;
        }

        .legends.desktop .right {
            margin-top: 0px;
        }

        .title_wrap {
            margin-bottom: 10px;
        }

        .left {
            display: flex;
            width: 50%;
            padding: 10px 0px 10px 0;
            justify-content: start;
            border-right: 0px solid #36454F;
            align-items: center;
        }

    .legends.desktop .right {
        flex-wrap: nowrap;
        width: 100%;
        padding: 10px 0 10px 5px;
        justify-content: left;
        display: table;
    }
        .currentRank, .reviewPerStay {
            margin: 0;
        }

        .left p, .right p {
            display: none;
        }

        .square_leg {
            height: 25px;
            min-width: 55px;
            margin-left: 0 !important;
            font-size: 11px !important;
            padding: 0 5px;
        }
        .square_leg {
            margin-right: 7px;
            min-width: 50px;
        }
        .reviewPerStay p:last-of-type {
            margin-left: 0px !important;
            text-align: left;
        }

    .legends.desktop .right span {
        text-align: left !important;
        width: 100%;
        display: table;
    }

        .numberscore {
            font-size: clamp(1.69rem, 4.22vw, 3.70rem) !important;
            line-height: 1.1em !important;
        }

        .title_wrap {
            margin-right: 0;
        }

            .title_wrap h1 {
                font-size: 1.5rem;
            }

            .title_wrap img {
                height: 1.5rem;
            }

        .container {
            padding: 0 !important;
        }

            .container main {
                width: 98%;
                margin-left: auto;
                margin-right: auto;
                margin-top: 20px;
            }

        .column {
            width: 100%;
            display: block;
            margin-bottom: 10px;
        }

    .row, .row.NPS {
        grid-column-gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
    }
        .column::after {
            content: "";
            display: block;
            padding-bottom: 108%;
        }
    .NPS .column::after {
        content: "";
        display: block;
        padding-bottom: 85%;
    }

    .column h4 {
        margin-bottom: -15px !important;
    }

        #arrow_up, #arrow_down {
            width: 1rem;
            margin-left: 3px;
        }

        /* .position-previous div p {
        font-size: 1rem !important;
    }

        .position-previous div p span {
            font-size: .7rem !important;
        }
            .numberscore {
        font-size: 3.5rem !important;
        line-height: 3.7rem !important;
    }
      */
        .position-previous div {
            height: unset;
        }

            .position-previous div p {
                font-size: .6rem !important;
            }

            .tv_wifi .position-previous div p {
                font-size: .55rem !important;
            }

                .position-previous div p span {
                    font-size: .5rem !important;
                }
        .iframe_container #counter {
            position: absolute !important;
            bottom: 45px !important;
            right: 0 !important;
        }
    }

    @media screen and (max-width: 400px) {
        .numberscore {
            font-size: clamp(1.23rem, 3.08vw, 2.2rem) !important;
        }

        .position-previous div p span span {
            display: none;
        }

        .position-previous div p span span.nodesktop {
            display: inline;
        }
        .column > div:nth-child(1) {
            padding: 0.3rem 0.3rem !important;
        }

    @media only screen and (max-width:599px) {
        html {
            font-size: 18px !important;
        }
    }

    @media only screen and (min-width:600px) and (max-width: 991px) {
        html {
            font-size: 16px !important;
        }
    }

    @media only screen and (min-width:992px) and (max-width: 1420px) {
        html {
            font-size: 14px !important;
        }
    }

    @media only screen and (min-width:1421px) and (max-width: 1700px) {
        html {
            font-size: 14px !important;
        }
    }

    @media only screen and (min-width:1701px) and (max-width: 1920px) {
        html {
            font-size: 16px !important;
        }
    }

    @media (min-width: 1921px) and (max-width: 2200px) {
        html {
            font-size: 18px !important;
        }
    }

    @media (min-width: 2201px) and (max-width: 3000px) {
        html {
            font-size: 20px !important;
        }
    }

    @media (min-width: 3001px) {
        html {
            font-size: 26px !important;
        }
    }

/*#switchAvgButton, #switchButton {
    display: none;
}*/


