*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    /* background-colors */
    --primary-background-color: rgb(53, 52, 52);
    /* text-colors */
    --text-primary-color : rgb(215, 211, 211);
    /* spacing ranges */
    --spacing-xl:4px;
    --spacing-sm : 8px;
    --spacing-okaish: 16px;
    --spacing-decent: 24px;
    --spacing-hi-fi:32px;
    --spacing-mogambo:40px;
    --spacing-2xl: 48px;

    /* border ranges */
    --border-primary-color : rgb(134, 129, 129);

    /* border radius */
    --border-radius-xsm:4px;
    --border-radius-sm:8px;
    --border-radius-l:16px;
    --border-radius-xl: 24px;
}
html, body{
    height: 100%;
    width: 100%;
}

html{
    background-color: var(--primary-background-color);
    color: var(--text-primary-color);
    padding: var(--spacing-sm);
    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(--spacing-okaish);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
section .infos{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.infos .info{
    padding: var(--spacing-sm) var(--spacing-okaish);
    border: 1px solid var(--border-primary-color);
    border-radius: var(--border-radius-sm);
}

.board{
    flex-grow: 1;
    border:2px solid var(--border-primary-color);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(40px, 1fr));
}
.board .block{
    /* border: 1px solid var(--border-primary-color); */
    border-radius: var(--border-radius-l);
    font-size: small;
    
}

.snake_body_color{
  background: #41ff98;
  border-radius: 10px;
}
.snake_head_color{
  background: #00ffcc;
  box-shadow: 0 0 10px rgba(0,255,204,0.7);
}

.food_color{
  background: #ff2d55;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255,45,85,0.8);
  animation: pulse 0.8s infinite alternate;
}

@keyframes pulse{
  from { transform: scale(0.85); }
  to   { transform: scale(1.05); }
}

.start-end{
    height: 100%;
    width:100%;
    background-color: rgba(78, 75, 75, 0.08);
    backdrop-filter: blur(4px);
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn{
    border: none;
    padding: var(--spacing-sm) var(--spacing-okaish);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn:hover{
    transform: scale(1.2);
}
.start-end, .game-start,
.start-end, .game-restart{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-decent);
}
.game-restart{
    display: none;
}

