* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.t-width.t-width_100 {
    position: relative;
}

.people_img, 
.house_img,
.group_img {
    height: min-content;
    position: absolute;
}

.pos_1 {
    left: 9%;
    top: 7%;
}

.pos_2 {
    left: 30%;
    top: 5%;
}

.pos_3 {
    left: 55%;
    top: 2%;
}

.pos_4 {
    left: 76%;
    top: 16%;
}

.pos_5 {
    left: 4%;
    top: 45%;
}

.pos_6 {
    left: 29%;
    top: 59%;
}

.pos_7 {
    left: 51%;
    top: 41%;
}

.pos_8 {
    left: 81%;
    top: 46%;
}

.pos_9 {
    left: 66%;
    top: 34%;
}

.pos_10 {
    left: 66%;
    top: 65%;
}

.pos_11 {
    left: 38%;
    top: 31%;
}

.pos_12 {
    left: 20%;
    top: 35%;
}

.pos_13 {
    left: 82%;
    top: 2%;
}

.pos_14 {
    left: 12%;
    top: 68%;
}

.pos_15 {
    left: 48%;
    top: 67%;
}

.pos_16 {
    left: 83%;
    top: 73%;
}
/* .body2 {
    height: 100vh;
    display: flex;
    background: #fff;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
} */

@font-face {
    font-family: 'Montserrat';
    src: url(/tensor/lesson/html/fonts/Montserrat/Montserrat-Medium.ttf);
    font-weight: normal;
    font-style: normal;
}
.bg_image{
    /* opacity: 0; */
    /* display: none; */
    max-height: 100vh;
    max-width: 100vw;
}
.memory-game {
    width: auto;
    height: auto;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
}
/* .memory-game .mite {
    position: absolute;
} */

.memory-game-over {
    object-fit: contain;
    transform: rotateY(90deg);
    -webkit-transform: rotateY(90deg);
    margin: 0px -10px;
    position: absolute;
    z-index: 15;
    background-image: url('/tensor/sabynews/interactivity/houses/img/end_modal.png');
    width: 103%;
    height: 103%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: none;
}
.memory-game-end,
.memory-game-end-bee{
    /* object-fit: contain; */
    margin: 0px -10px;
    position: absolute;
    z-index: 16;
    background-image: url(/tensor/sabynews/interactivity/houses/img/the_end_modal.png);
    width: 70%;
    height: 48%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    max-width: 414px;
    max-height: 293px;
    display: none;
}
.memory-game-end-bee{
    background-image: url(/tensor/sabynews/interactivity/houses/img/the_end_modal_bee.png);
}

#play-button-span {
    cursor: pointer;
}

.memory-game-end p {
    position: absolute;
    font-family: 'Montserrat';
    width: 161px;
    height: 60px;
    top: calc(50% - 27px);
    left: calc(50% - 40px);
    color: #3A3A3A;
}

.memory-game-end .play-button ,
.memory-game-end-bee .play-button {
    font-family: 'Montserrat';
    position: absolute;
    top: calc(50% - -43.5px);
    right: 85px;
}
.game-over-revert {
    z-index: 10;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transition: transform 1.5s;
    -webkit-transition: transform 1.5s;
}

.result-text {
    width: 41%;
    font-size: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    left: 4%;
    position: absolute;
    top: 23%;
}

.result-text-raiting {
    width: 41%;
    height: 57px;
    font-size: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    left: 4%;
    position: absolute;
    top: 45%;
}

.result-seconds {
    /*width: 178px;*/
    top: 32%;
    padding: 10px;
    font-size: 36px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    left: 4%;
    border-radius:5px;
    background-color: white;
    position: absolute;
}

.result-card-block {
    position: absolute;
    font-size: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
}

.rating-block {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 61%;
    width: 100%;
    padding: 0 28px;
}

.rating-column {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 10px 28px;
}

.rating-row {
    display: flex;
    flex-direction: row;
    padding: 15px 0px;
    justify-content: space-between;
    font-size: 25px;
}

.rating-row span {
    font-family: 'Montserrat', Arial, sans-serif;
    /* height: 21px; */
}

.nickname {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
	width: 100%;
}

.rating-result {
    width: 105px;
	min-width: 105px;
	text-align: right;
}

.play-again-text {
    margin-right: 30px;
    bottom: 19px;
    position: absolute;
    right: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}

.half-opacity {
    /* opacity: 0.5; */
}

.full-opacity {
    opacity: 1 !important;
}

.d-none {
    display: none !important;
}

.bold-text {
    font-weight: bold;
}

.input-nickname-block {
    z-index: 15;
    height: 100%;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#cards-block { 
    /* background-image:  url('/tensor/sabynews/interactivity/houses/img/picknick.png');
    background-position: center;
    background-size: contain; */
}

.input-nickname-card {
    width: 70%;
    height: 48%;
    border-radius: 5px;
    border-color: transparent;
    background-color: transparent;
    background-image: url('/tensor/sabynews/interactivity/houses/img/start_modal.png');
	background-repeat: no-repeat;
    background-size: 100% 100%;
    max-width: 414px;
    max-height: 293px;
    opacity: 1 !important;
    border-radius: 10px;
    position: relative;
}

.input-nickname-card input {
    width: 100%;
    height: 25px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-color: transparent;
    border-radius: 3px;
}

.input-nickname-card input:focus-visible {
    outline: none;
}

.nickname-text {
    display: flex;
    flex-direction:column;
    
    width: calc(50% - 60px);
    position: absolute;
    top: 32%;
    left: 45%;
    
}

.nickname-text span{
    font-size: 16px;
    font-weight: 400;
    font-family: 'Montserrat', Arial, sans-serif;
    user-select: none;
}

.warning-text {
    font-size: 12px !important;
    text-align: center;
    margin-bottom: 5px;
}

.play-button {
    width: 100%;
    text-align: right;
}

.play-button span:hover {
    cursor: pointer;
    color: rgb(69, 68, 68);
}



/*--таймер-*/
/* Устанавливаем высоту и ширину контейнера */
.base-timer {
    position: relative;
    height: 131px;
    width: 131px;
  }
  
  .base-timer__svg {
    transform: scaleX(-1);
  }
  
  .base-timer__circle {
    fill: none;
    stroke: none;
  }
  
  .base-timer__path-elapsed {
    stroke-width: 7px;
    stroke: #CECECE;
  }
  
  .base-timer__path-remaining {
    stroke-width: 7px;
    stroke-linecap: round;
    transform: rotate(90deg);
    transform-origin: center;
    transition: 1s linear all;
    fill-rule: nonzero;
    stroke: currentColor;
  }
  
  .base-timer__path-remaining.green {
    color: #708B00;
  }
  
  .base-timer__path-remaining.orange {
    color: #FFA500;
  }
  
  .base-timer__path-remaining.red {
    color: #FF6A6A;
  }
  
  .base-timer__label {
    position: absolute;
    width: 130px;
    height: 130px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #838383;
  }
  #timerBlock {
    position: absolute;
    right: 0;
    background: #fff;
    border-radius: 65px;
  }
  

@media(max-width: 650px) {
    .memory-game-over{
        height: 100%;
        /* background-image: url('/tensor/sabynews/interactivity/houses/img/final_modal_modile.png'); */
    }
    .rating-block {
        top: 55%;
        width: 100%;
        flex-direction: column;
    }
    .nickname-text span {
        font-size: 13px;
    }
    .result-text {
        font-size: 22px;
    }
    .result-text-raiting {
        height: 57px;
        font-size: 22px;
    }

    .rating-row {
        padding: 10px 0px;
    }
    .rating-row span {
        font-size: 13px;
        height: 15px;
    }
    .rating-column {
        width: 100%;
        padding: 0 10px 0 10px;
    }

}

@media(max-width: 460px) {
    .input-nickname-card {
        height: 70%;
    }
    .memory-game .bee,
    .memory-game .mite {
        height: 30px;
    }
    .memory-game-end, 
    .memory-game-end-bee{
        width: 90%;
        height: 42%;
    }
    .memory-game-end p {
        font-size: 14px;
    }
    .base-timer {
        height: 110px;
        width: 110px;
    }
    .base-timer__label {
        width: 110px;
        height: 110px;
        font-size: 36px;
    }
    .nickname-text span {
        font-size: 10px;
        width: 110%;
    }
    .input-nickname-card input {
        margin-top: 5px;
        margin-bottom: 5px;
        width: 114%;
        font-size: 11px;
        height: 20px;
    }
    .warning-text {
        font-size: 10px !important;
    }
    .result-text {
        font-size: 18px;
    }
    .result-text-raiting {
        font-size: 18px;
    }
    .result-seconds {
        padding: 7px;
        font-size: 20px;
    }
    .rating-block {
        top: 60%;
        font-size: 12px;
    }
    .rating-row {
        padding: 7px 0px;
    }
    .rating-column {
        padding: 0 0 0 10px;
    }
    .play-again-text {
        margin-right: 13px;
        bottom: 9px;
        font-size: 12px;
    }
    .rating-row span {
        font-size: 10px;
        height: 12px;
    }
    .rating-result {
        width: 95px; 
		/*width: -webkit-fill-available;*/
		min-width: unset;
		
    }

}

@media screen and (max-width: 320px) {
    .nickname-text span {
        font-size: 8px;
        width: 120%;
    }
    .nickname-text {
        top: 41%;
        left: 53%;
    }
    .input-nickname-card input {
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 8px;
        height: 12px;
    }
    .warning-text {
        font-size: 8px !important;
        margin-bottom: 0px;
        margin-top: -3px;
    }
    .result-text {
        font-size: 12px;
    }
    .result-text-raiting {
        font-size: 12px;
        top: 52%;
    }
    .result-seconds {
        padding: 7px;
        font-size: 12px;
    }
    .rating-block {
        top: 58%;
        font-size: 8px;
    }
    .rating-row {
        padding: 3px 0px;
    }
    .rating-column {
        padding: 10px 0px 10px 10px;
    }
    .play-again-text {
        margin-right: 7px;
        bottom: 6px;
        font-size: 8px;
    }
    .rating-row span {
        width: auto;
        font-size: 8px;
        height: 10px;
    }
    .rating-result {
        width: 85px;
    }

}

