
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
}

body{
    color: var(--text-light);
    background-color: var(--bg-2xDark);
}

:root{
    /* --- SPACING --- */
    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
    --space-3xl: 3.5rem;

    /* --- FONT - SIZES --- */
    --text-para: 1.8rem;
    --text-h6: 2rem;
    --text-h5: 2.5rem;
    --text-h4: 3rem;
    --text-h3: 3.5rem;
    --text-h2: 4rem;
    --text-h1: 4.5rem;

    /* --- LINE - HEIGHT --- */
    --lh-1: .7;

    /* --- BG - COLORS --- */
    --bg-2xDark: hsl(0, 0%, 10%);
    --bg-xDark: hsl(0, 0%, 20%);
    --bg-Dark: hsl(0, 0%, 30%);
    --bg-snake: purple;
    --bg-food: rgb(254, 233, 255);

    /* --- TEXT - COLOR --- */
    --text-light: hsl(0, 0%, 85%);

    /* --- BORDER - COLORS --- */
    --bor-light: hsl(0, 0%, 85%);
    --bor-dark: hsl(0, 0%, 50%);

    /* --- BORDER --- */
    --border-sm: .5px solid var(--bor-dark);
    --border-md: 1px solid var(--bor-light);

    /* --- BORDER - RADIUS --- */
    --bor-radius-sm: 1.5rem;
    --bor-radius-md: 2rem;
    --bor-radius-lg: 2.5rem;

    /* --- NAV - HEIGHT --- */
    /* -- OR - GAME - DETAILS - HEIGHT --- */
    --game-dt-height: 100px;

}

.container{
    max-width: 1500px;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-xDark);
    margin: 0 var(--space-3xl);
    position: relative;
}

.flex{
    display: flex;
    align-items: center;
    justify-content: center;
}

h3{
    font-size: var(--text-h3);
    line-height: var(--lh-1);
}

.btn{
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--bor-radius-md);
    font-size: var(--text-h6);
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.btn:hover{
    scale: 1.1;
}



.snake__game{
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}


.game__details{
    width: 100%;
    justify-content: space-between;
    padding: var(--space-xl);
    height: var(--game-dt-height);
}


.info{
    border: var(--border-md);
    padding: var(--space-md);
}


.board{
    flex-grow: 1;
    width: 100%;
    border: var(--border-md);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(50px, 1fr));
}

.block{
    /* height: 30px;
    width: 30px; */
    border-radius: var(--space-3xl);
    border: var(--border-sm);
    text-align: center;
}


.fill{
    /* width: 10%;
    height: 100%; */
    background-color: var(--bg-snake);
    box-shadow: 0px 0px 10px rgb(255, 154, 243);
}



.food{
    background-color: var(--bg-food);
    box-shadow: 0px 0px 10px white;
}


.modal{
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    /* background: #000; */
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
}

.start__game,
.game__over{
    height: 100%;
    width: 100%;
    gap: var(--space-lg);
    flex-direction: column;
}

.start__game{
    /* display: none; */
}

.game__over{
    display: none;
}


