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

html,body{
    height: 100%;
    width: 100%;
}

:root{

    /* bg-color */
    --bg-primary-color: #0F172A;

    /* text-color */
    --text-primary-color: #38BDF8;

    /* snake-color */
    --fill-color: #fae3e3;

      /* food-color */
    --food-color: red;

    /* spacing-variable */
    --space-xs:0.25rem;
    --space-sm:0.5rem;
    --space-md:1rem;
    --space-lg:1.5rem;
    --space-xl:2rem;
    --space-2xl:2.5rem;
    --space-3xl:3rem;

    /* border-color */

    --border-primary-color: #0EA5E9;
    --border-secondary-color: #0ea4e93b;

    /* border-radius */
    --border-radius-xs:0.25rem;
    --border-radius-sm:0.5rem;
    --border-radius-md:0.75rem;
    --border-radius-lg:1rem;
    --border-radius-xl:1.25rem;
    --border-radius-2xl:1.5rem;
    


}

html{
    background-color: var(--bg-primary-color);
    color: var(--text-primary-color) ;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
main,section{
    height: 100%;
    width: 100%;
}

section{
 padding: var(--space-2xl);
 display: flex;
 flex-direction: column;
 height: 100%;
 gap: var(--space-lg);
}

section .infos{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.info{
    padding: var(--space-sm) var(--space-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(40px, 1fr));
    grid-template-rows: repeat(auto-fill,minmax(40px, 1fr));
    
}

.block{
    /* height:30px ;
    width:30px ; */
    border: 0.5px solid var(--border-secondary-color);
    border-radius: 50%;
    
    
}

.fill{
    background-color: var(--fill-color);
}

.food{
    background-color: var(--food-color);
}

.modal{
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    background-color: #4343434f;
    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(--space-lg);
}

.modal .game-over{
    display: none;
}

.btn{
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--space-sm);
    cursor: pointer;
    transition: all 0.3 ease;
}

.btn:hover{
    transform: scale(1.1);
}