* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

:root{
    /* Bachground colors */
    --bg-primary-color: #0c0c0c; 
    --bg-fill-color: #fdfdfc;
    --bg-food-color: #ff3b3b;

    /* text Colors */
    --text-primary-color: #f0f0f0;

    /* Spacing */
    --space-xs: 4px; 
    --space-sm: 8px; 
    --space-md: 16px; 
    --space-lg: 24px;
    --space-xl: 32px; 
    --space-2xl: 40px; 
    --space-3xl: 48px; 

    /* Border colors */
    --border-primary-color: #333333;

    /* Border radius */
    --border-radius-xs: 4px; 
    --border-radius-sm: 8px; 
    --border-radius-md: 12px; 
    --border-radius-lg: 16px;
    --border-radius-xl: 20px; 
    --border-radius-2xl: 24px; 
    --border-radius-3xl: 48px; 
}

html{
    /* background-color: black;
    color: white; */

    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{
    width: 100%;
    height: 100%;
}

/* button start restart */
.btn{
    padding: var(--space-sm) var(--space-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(--space-2xl); 
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--space-lg);
}
section .infos{
    display: flex;
    /* justify-content: center; */
    justify-content: space-between;

    /* infos flex fix */
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.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(50px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(50px, 1fr)); 
    

}


.block{
    border: 1px solid var(--border-primary-color);

    border-radius: 25%;
    /* border-radius: 50%; */
    margin: 1.5px;

}

.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: #35353587;
    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; 
}

.info{
    display:flex;
    flex-direction: column;
}

@media (max-width: 500px) {
  
  #time {
    margin: 0 auto;
  }
}

.gameOverScore{
    position: fixed;
    left: 20px;
    top: 20px;
}
