.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    background-color: #f8f9fa;
    padding: 20px;
    transition: left 0.3s;
    z-index: 999;
}
.s-toggle{
    position: absolute;
    top: 10px;
    left: 10px;
}

img {
    width: 100%;
    height: 100%;
}

.timer {
    width: 120px;
    font-size: 28px;
    border: 2px solid gray;
    border-radius: 10px;
}

.p {
    margin: 0 25px;
}

.p1 {
    font-size: 28px;
    border: 2px solid blue;
    border-radius: 10px;
}

#p1.active {
    color: white;
    background-color: blue;
}

.p2 {
    font-size: 28px;
    border: 2px solid rgb(52, 199, 30);
    ;
    border-radius: 10px;
}

#p2.active {
    color: white;
    background-color: rgb(52, 199, 30);
}

.selected {
    display: none;
    position: absolute;
    margin: 20px;
    width: 150px;
    height: 150px;
    z-index: 1;
}

.cardCount {
    position: relative;
    top: -106px;
    z-index: 3;
}

.nonselected {
    position: absolute;
    margin: 20px;
    width: 150px;
    height: 150px;
    z-index: 0;
    cursor: pointer;
}

.memorycard {
    float: left;
    text-align: center;
    vertical-align: middle;
    display: table-cell;
    margin: 20px;
    width: 150px;
    height: 150px;
    background-size: 100%;
    font-size: 40px;

}

.memorycard p {
    top: 10px;
    position: relative;
}

.d-none {
    display: none;
}