*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

body{

    background:#f5f5f5;
    font-family:Pretendard,sans-serif;

}

.container{

    max-width:500px;
    margin:0 auto;
    padding:30px 20px 40px;

}



.status{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;

}

#count{

    font-size:20px;
    font-weight:bold;

}

button{

    border:none;
    background:#222;
    color:white;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;

}

.grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;

}

.card{

    position:relative;
    cursor:pointer;
    transition:.15s;

}

.card img{

    width:100%;
    display:block;
    border-radius:10px;
    transition:.25s;

}

.card.checked img{

    opacity:.35;

}
.card:active{

    transform:scale(.95);

}
.card::after{

    content:"✓";

    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:40px;
    color:white;

    opacity:0;

    transition:.25s;

    text-shadow:0 0 8px rgba(0,0,0,.6);

}

.card.checked::after{

    opacity:1;

}

@media (max-width:480px){

.grid{

gap:8px;

}

}