* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: chocolate;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#app {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-template-rows: repeat(4, 1fr); 
    gap: 10px;
    max-width: 600px;
    width: 100%;
}

.box {
    width: 100%;
    height: 100px;
    cursor: pointer;
    border-radius: 10px;
    transition: all .3s ease;
    background-color: black;
}

.box:hover{
    border: 1px solid rgba(0, 0, 0, .5);
    transform: scale(1.2);
}

@media screen and (max-width:410px){
    .box{
        height: 3.5em;
    }
}

@media screen and (max-width:230px){
    .box{
        height: 2.5em;
    }
}