* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    background: #060AB2;
}

.memory-game {

    max-width: 65%;
    width: 750px;
    height: 750px;
    margin: auto;
    margin-right: 15px;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
}

.container {
    display: flex;


}

.option {
    display: flex;
    flex-direction: column;
    height: 750px;
    flex: 35%;
    width: 80%;
    max-width: 400px;
    margin: auto;
    margin-left: 15px;

}

#changeBoard,
#clearRecList {
    padding: 3px 15px;
    border-radius: 10px;
    background-color: white;
}

#clearRecList {
    margin-top: 5px;
}

[data-tooltip] {
    position: relative;
    /* Относительное позиционирование */
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    width: 200px;
    top: -2.5em;
    left: 1em;
    background: #3989c9;
    color: #fff;
    padding: 0.5em;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: 1s;
    text-align: center;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

.selectBS {

    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid green;
    width: 100%;
    height: 10%;
}

.selectBS p {
    color: White;
    font-size: 18px;

}

.selectCatIc {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid green;
    width: 100%;
    height: 7%;
    color: white;
}

.stopwatch {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid green;
    width: 100%;
    height: 10%;
}

.stopwatch p {
    color: White;
    font-size: 22px;
}

.records {
    display: flex;
    flex-direction: column;
    border: 1px solid green;
    width: 100%;
    height: 30%;
    color: white;
    align-items: center;
}

.records h3 {
    margin-top: 5px;
    margin-bottom: 10px;
}



.memory-card1216 {
    width: calc(25% - 10px);
    margin: 5px;
    position: relative;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
}



.memory-card1216:active {
    transform: scale(0.97);
    transition: transform .2s;
}

.memory-card1216.flip {
    transform: rotateY(180deg);
}



.memory-card2030 {
    width: calc(20% - 10px);
    margin: 5px;
    position: relative;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
}

.memory-card2030:active {
    transform: scale(0.97);
    transition: transform .2s;
}

.memory-card2030.flip {
    transform: rotateY(180deg);
}



.memory-card3642 {
    width: calc(16.66% - 10px);
    margin: 5px;
    position: relative;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
}

.memory-card3642:active {
    transform: scale(0.97);
    transition: transform .2s;
}

.memory-card3642.flip {
    transform: rotateY(180deg);
}






.front-face,
.back-face {
    width: 100%;
    height: 100%;
    padding: 20px;
    position: absolute;
    border-radius: 5px;
    background: #1C7CCC;
    backface-visibility: hidden;
}

.front-face {
    transform: rotateY(180deg);
}

.hidden {
    display: none;
}

.resultWindow {
    width: 300px;
    height: 175px;
    text-align: center;
    padding: 15px;
    border: 3px solid #0000cc;
    border-radius: 10px;
    color: #0000cc;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 200px auto auto auto;
    background: #fff;
}

.resultWindow table {
    text-align: left;
}

#btnSendResult {
    margin-top: 5px;
    padding: 5px 15px;
}