body {
    margin: 0;
    display: flex;
    align-items: center;
}

div.game {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: fit-content;
}

div.game .img {
    max-height: 100vh;
    max-width: 100vw;
    border-radius: 8px;
}


div.game .container {
    position: absolute;
    border-radius: 8px;
    /* display: flex;
    align-content: center;
    justify-content: center;
    background: url('images/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100vw; */
}

div.game .container .content{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

div.game .container .content div.wrapper{
    position: relative;
    height: 80%;
    width: calc(100% - 15%);
}

div.game .container .content div.reload{
    width: 70px;
    height: 63px;
    display: flex;
    justify-content: center;
    background: url(/tensor/sabynews/interactivity/in_3_row/images/balls/reload.png);
    font-family: sans-serif;
    font-size: 24px;
    color: rgb(255, 255, 255);
    background-repeat: no-repeat;
    line-height: 88px;
    cursor: pointer;
    background-size: contain;
}

div.game .container .content div.score{
    width: 62px;
    height: 80px;
    display: flex;
    justify-content: center;
    background: url(/tensor/sabynews/interactivity/in_3_row/images/balls/score.png);
    font-family: sans-serif;
    font-size: 24px;
    color: rgb(255, 255, 255);
    background-repeat: no-repeat;
    line-height: 88px;
    background-size: contain;
}

#timer {
    display: none;
}

.input-nickname-card {
    position: absolute;
    font-size: 20px;
    bottom: 9%;    
    max-width: 35%;
}

.nickname-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.nickname-input {
    position: absolute;
    top: 39.6%;
    width: 50%;
    height: 10%;
    left: 26%;
    border: none;
    outline: none;
    background: transparent;
}

.play-button {
    width: 24%;
    height: 7%;
    /* content: ' '; */
    position: absolute;
    bottom: 28%;
    left: 43%;
    cursor: pointer;
}

.timer_bar {
    width: 70%;
    background-color: #6E8A86;
    border: 4px solid #6E8A86;
    border-radius: 8px;
}

#myBar {
    width: 100%;
    height: 100%;
    background-color: white;
    transition: height 1s;
}

.RightCol {
    height: 384px;
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: center;
    width: 14%;
    max-width: 80px;
}


.memory-game-over {
    object-fit: contain;
    transform: rotateY(90deg);
    -webkit-transform: rotateY(90deg);
    margin: 0px -10px;
    position: absolute;
    z-index: -1;
    background-image: url('/tensor/sabynews/interactivity/in_3_row/images/result.png');
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: none;
}


.game-over-revert {
    z-index: 10;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transition: transform 1.5s;
    -webkit-transition: transform 1.5s;
}


.result-seconds {
    top: 41%;
    padding: 10px;
    font-size: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    left: 10%;
    border-radius: 5px;
    position: absolute;
    color: white;
}

.rating-block {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 62%;
    width: calc(100% - 104px);
    padding: 0px 52px;
}

.rating-column {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 10px 55px;
}

.rating-row {
    display: flex;
    flex-direction: row;
    padding: 15px 0px;
    justify-content: space-between;
}

.rating-row span {
    font-family: 'Montserrat', Arial, sans-serif;
    height: 21px;
}

.play-again-text {
    margin-right: 30px;
    bottom: 9%;
    position: absolute;
    right: 30%;
    font-family: 'Montserrat', Arial, sans-serif;
}

.result-text-raiting {
    font-size: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    left: 10%;
    position: absolute;
    top: 56%;
}


.bold-text {
    font-weight: bold;
}

@media (min-width: 400px) and (max-width: 560px) {
	.nickname-input {
		font-size: 10px !important;
	}
}
@media (max-width: 400px) {
	.nickname-input {
		font-size: 8px !important;
	}
}

@media screen and (max-width:900px) {
    .nickname-text span {
        font-size: 14px;
    }
    .result-text {
        font-size: 22px;
    }
    .rating-block {
        top: calc(67%);
        padding: 0px 52px;
    }

    .rating-row {
        padding: 10px 0px;
    }
    .rating-row span {
        font-size: 13px;
        height: 15px;
    }
    .rating-column {
        width: 100%;
        padding: 0 10px 0 10px;
    }
    .result-text-raiting{
        font-size: 16px;
    }
    .result-seconds{
        font-size: 24px;
    }
}

@media screen and (max-width:640px) {
    .nickname-text span {
        font-size: 14px;
    }
    .result-text {
        font-size: 22px;
    }
    .rating-block {
        top: calc(60%);
        padding: 0px 35px;
        width: calc(100% - 60px);
    }

    .rating-row {
        padding: 10px 0px;
    }
    .rating-row span {
        font-size: 13px;
        height: 15px;
    }
    .rating-column {
        width: 100%;
        padding: 0 10px 0 10px;
    }
    .result-text-raiting{
        font-size: 16px;
    }
    .result-seconds{
        font-size: 24px;
    }
}

@media screen and (max-width:480px) {
    .nickname-text span {
        font-size: 12px;
    }
    
    .result-text {
        font-size: 12px;
    }
    .result-seconds {
        padding: 7px;
        font-size: 12px;
    }
    .rating-block {
        font-size: 8px;
        padding: 0px 35px;
        width: calc(100% - 60px);
    }
    .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;
    }
    .result-text-raiting{
        font-size: 14px;
    }
}