#computer td div {
    width:200px;
    height:300px;
    background-size: 100%;
    display: none;
    -webkit-transition: transform 1s ease-in-out;
    transition: transform 1s ease-in-out;
}
@keyframes myAnimation{
    0%{
      opacity: 1;
    }
    100%{
      opacity: 0;
    }
}

@keyframes myAnimation2{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

#computer table, td, tr {
    border:white 10px solid;
    border-collapse: collapse;
}

.curtain {
    width:100%;
    height:100%;
    background-color: white;
    z-index:1;
    position: fixed;
    top: 0;
    left: 0;
}

.hide-card {
    animation-name: myAnimation;
    animation-duration: 1000ms;
    animation-fill-mode: forwards;
}

.show-card {
    animation-name: myAnimation2;
    animation-duration: 1000ms;
    animation-fill-mode: forwards;
}

.front-face {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

#curtain {
    width:100%;
    height:100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index:1000;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.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;
}

.memory-game {
    height: 880px;
    width: 780px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
    justify-content: center;
    align-content: center;
	max-height: min-content;
}

.memory-card {
    width: calc(18% - 25px);
    height: calc(22% - 20px);
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    -webkit-transform: scale(1);
    -webkit-transform-style: preserve-3d;
    -webkit-transition: transform .5s;
    /* box-shadow: 2px 2px rgba(0, 0, 0, .3); */
    border-radius: 10px;
}

/*.memory-card:active {
    transform: scale(0.97);
    transition: transform .2s;
    -webkit-transform: scale(0.97);
    -webkit-transition: transform .2s;
}*/

.memory-card.flip {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.front-face,
.back-face {
    width: 100%;
    height: 100%;
    padding: 0px;
    position: absolute;
    border-radius: 10px;
    border-color: transparent;
    background: #FDE5C9;
    backface-visibility: hidden;
}

.front-face-new {
    width: 100%;
    height: 100%;
    padding: 0px;
    position: absolute;
    border-radius: 10px;
    border-color: transparent;
    background: #FDE5C9;
}

.front-face {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.memory-game-over {
    object-fit: contain;
    transform: rotateY(90deg);
    -webkit-transform: rotateY(90deg);
    margin: 5px -10px;
    /* margin: calc(50% - 166px) -10px; */
    position: absolute;
    z-index: -1;
    background-image: url('/tensor/sabynews/interactivity/memory_cats_10_pictures/Pictures/Victory.svg');
    width: 103%;
    height: 103%;
    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-text {
    width: 41%;
    height: 57px;
    font-size: 32px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    left: 9%;
    position: absolute;
    top: 35%;
}

.result-text-raiting {
    width: 41%;
    height: 57px;
    font-size: 28px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    left: 9%;
    position: absolute;
    top: 51%;
}

.result-seconds {
    /*width: 178px;*/
    height: 7%;
    padding: 10px;
    font-size: 36px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    top: 41%;
    left: 9%;
    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: 57%;
    width: 85%;
    left: 4%;
}

.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;
}

.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: 60px;
    bottom: 22%;
    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: 1;
    height: 100%;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: calc(50% - 166px) -10px; */
}

.cover-block {
    z-index: 2;
    height: 100%;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-text span{
    padding:5px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Montserrat', Arial, sans-serif;
    user-select: none;
}

.input-nickname-card {
    width: 70%;
    height: 60%;
    border-radius: 5px;
    border-color: transparent;
    background-color: transparent;
    background-image: url('/tensor/sabynews/interactivity/memory_cats_10_pictures/Pictures/Nickname.svg');
	background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 1 !important;
    border-radius: 10px;
}

.cover-card {
    width: 70%;
    height: 60%;
    border-radius: 5px;
    border-color: transparent;
    background-color: transparent;
    background-image: url('/tensor/sabynews/interactivity/memory_cats_10_pictures/Pictures/Cover.svg');
	background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 1 !important;
    border-radius: 10px;
}

.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: 20%;
    position: absolute;
    top: 47%;
    left: 40%;
}

.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);
}

@media(max-width: 650px) {
	.result-seconds{
		top: 39%;
	}
    .memory-game {
        width: 460px;
        height: 288px;
    }
    .nickname-text span {
        font-size: 13px;
    }
    .nickname-text {
        top: 41%;
    }
    .result-text {
        height: 57px;
        font-size: 22px;
        top: 27%;
    }
    .result-text-raiting {
        height: 57px;
        font-size: 22px;
    }
    .result-seconds {
        padding: 7px;
        font-size: 18px;
    }
    .rating-block {
        top: 60%;
    }
    .rating-row {
        padding: 7px 0px;
    }
    .play-again-text {
        bottom: 8px;
    }
    .rating-row span {
        font-size: 13px;
        height: 15px;
    }
    .rating-column {
        padding: 10px 0px 10px 10px;
    }

}

@media(max-width: 460px) {
    .memory-game {
        width: 340px;
        height: 315px;
    }
    .memory-card {
        width: calc(18% - 13px);
        height: calc(22% - -3px);
        margin: 4px;
    }
    .nickname-text span {
        font-size: 10px;
        width: 110%;
    }
    .cover-text {
        width:187% !important;
        left:-44% !important;
    }
    .nickname-text {
        top: 41%;
    }
    .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: 16px;
        top:25%;
    }
    .result-text-raiting {
        font-size: 18px;
    }
    .result-seconds {
        padding: 7px;
        font-size: 16px;
        top:36%;
    }
    .rating-block {
        top: 60%;
        font-size: 12px;
    }
    .rating-row {
        padding: 4px 0px;
    }
    .rating-column {
        padding: 8px 0px 8px 7px;
    }
    .play-again-text {
        margin-right: 22px;
        bottom: 5px;
        font-size: 10px;
    }
    .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) {
    .memory-game {
        width: 245px;
        height: 157px;
    }
    .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: 5px;
        font-size: 11px;
        top: 37%;
    }
    .rating-block {
        top: 58%;
        font-size: 8px;
    }
    .rating-row {
        padding: 2px 0px;
    }
    .rating-column {
        padding: 8px 0px 8px 5px;
    }
    .play-again-text {
        margin-right: 13px;
        bottom: 4px;
        font-size: 8px;
    }
    .rating-row span {
        width: auto;
        font-size: 8px;
        height: 10px;
    }
    .rating-result {
        width: 85px;
    }
    span.cover-text {
        left: -130% !important;
        width: 230% !important;
    }

}