body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    margin: 0;
}

.main {
    max-width: 400px;
}

.image {
    background-position: center;
    background-size: cover;
}

.back-btn {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    background-image: url(../../images/back.382b99b.webp);
    background-size: cover;
}

.header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    margin-bottom: 15px;
}

h1 {
   margin-left: 30px;
   font-size: 24px;
}
.main {
    color: white;
    width: 90%;
}

.info {
    margin-bottom: 15px;
    color: #aaa;
}

.card {
    width: 220px;
    height: 120px;
    margin: 0 auto 20px;
    background: #111;
    border-radius: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    border: 2px solid #333;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    font-size: 22px;
}

.card.opened {
    border: 2px solid greenyellow;
    background: #1a1a1a;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-item {
    height: 105px;
    background: -webkit-gradient(linear, left top, left bottom, from(#54e6e8), to(#3ccfc4));
    background: -webkit-linear-gradient(top, #54e6e8, #3ccfc4);
    background: linear-gradient(180deg, #54e6e8, #3ccfc4);
    border-radius: 12px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    font-size: 26px;
    cursor: pointer;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

.grid-item:hover {
    background: #2a2a2a;
}

.grid-item.win {
    background: greenyellow;
    color: #000;
    font-weight: bold;
}

.grid-item.lose {
    background: #333;
}

.grid-container.disabled .grid-item {
    pointer-events: none;
}

.grid-container.disabled .grid-item:not(.revealed) {
    opacity: 0.5;
}

.grid-container.disabled .grid-item:hover {
    background: inherit;
}
