*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body{
    height: 100%;
    width: 100%;
}

/* Root Variables */
:root{
    /* Background Colors */
    --bg-primary-color: #000000;
    --bg-fill-color: #d0c9c9;
    --bg-food-color: #ce1d1d;
    --bg-modal-color: #00000018;

    /* Text Colors */
    --text-primary-color: #ffffff;

    /* Spacing variables*/
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 40px;
    --sp-3xl: 48px;

    /* Border Colors */
    --border-primary-color: #333333;

    /* Border Radius */
    --border-radius-xs: 4px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-2xl: 40px;
    --border-radius-3xl: 48px;
}

html{
    background-color: var(--bg-primary-color);
    color: var(--text-primary-color);
    font-family: monospace;
}

main,
section{
    width: 100%;
    height: 100%;
}

.btn{
    padding: var(--sp-sm) var(--border-radius-md);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover{
    transform: scale(1.1);
}

section{
    padding: var(--sp-2xl);
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--sp-lg);
}

section .infos{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.info{
    padding: var(--sp-md);
    border: 1px solid var(--border-primary-color);
    border-radius: var(--border-radius-sm);
}

.board{
    border: 1px solid var(--border-primary-color);
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(50px, 1fr));
}

.block{
    /* width: 30px;
    height: 30px; */
    border: 1px solid var(--border-primary-color);
}

.fill{
    background-color: var(--bg-fill-color);
}

.food{
    background-color: var(--bg-food-color);
}

.modal{
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    background-color: var(--bg-modal-color);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items:center ;
}

.modal .start-game, 
.modal .game-over{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--border-radius-md);
}

.modal .game-over{
    display: none;
}
