* {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display:flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

main {
    position: absolute;
    width:800px;
    height:calc(800px*6/7);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    background: rgb(197, 221, 230);
    grid-auto-flow: column;
    gap: 10px;
    padding:10px;
    border-radius: 20px;
}

.content {
    position: relative;
    border-radius: 50%;
}

#fin-partida {
    position: absolute;
    height:100%;
    width: 100%;
    background: hsla(0, 0%, 50%, 0.5);
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 3;
}

#cuadro {
    width: 500px;
    height: 200px;
    background: white;
    border-radius: 25px;
    border: 2px black solid;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#cuadro a {
    border: 2px solid black;
    border-radius: 15px;
    background: rgb(199, 199, 199);
    padding: 1em;
    font-size: 1.5em;
}

#cuadro a:hover {
    background: rgb(223, 223, 223);
    cursor: pointer;
}

img {
    position: absolute;
    width:820px;
    pointer-events: none;
}

#preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: palevioletred;
    position: absolute;
    z-index: 2;
}

@media only screen and (max-width:600px) {
    
    * {
        box-sizing: border-box;
    }

    main {
        width:270px;
        height:calc(270px*6/7);
        gap: 3px;
        padding: 3px;
    }

    img {
        width: 270px;
    }

    #preview {
        width: 35px;
        height: 35px;
    }

    #cuadro {
        width: 280px;
        height: 130px;
        background: white;
        border-radius: 20px;
        border: 2px black solid;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
    
    #cuadro a {
        border: 1px solid black;
        border-radius: 15px;
        padding: 1em;
        font-size: 0.75em;
        margin-bottom: 1em;
    }

    #cuadro h3 {
        padding: 1em;
        font-size: 1em;
        text-align: center;
        line-height: 1.5em;
    }

}
