:root {
    --bg-fill-color: #66d54d;
    --bg-snake-head-color: #dca332;
    --bg-food-color: #f2594b;
    --bg-modal-btn-color: #4CAF50;
    --bg-modal-color: #FAFAFA;
    --font-color-black: #333333;
    --font-color-white: #FAFAFA;
    --font-type-primary: 'Inter', sans-serif;
    --font-size-lg: 24px;
    --font-size-md: 18px;
    --font-size-sm: 14px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}


html, body{
    background-color: #1A1A1A;
    color: #c9d5f0;
    font-family: 'Inter', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#game-container {
    display: flex;
    /* justify-content: center; */
    /* gap: 20px; */
    flex-direction: column;
    /* align-items: center; */
    /* width: 100%; */
    height: 70%;
    /* margin: 250px; */
    margin: auto;
    margin-top: 50px;
    border-radius: var(--border-radius-lg);
    border: 1px solid aliceblue;
    padding: 40px;
    margin-left: 10%;
    margin-right: 10%;
}

.info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-direction: row;
    width: 100%;
}

.box {
    padding: 15px 15px;
    border-radius: 16px;
    font-size: var(--font-size-lg);
    text-align: center;
    width: 200px;
    border: 1px solid aliceblue;
}

#game-canvas {
    border: 1px solid aliceblue;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(20px, 1fr));
} 

.block {
    /* width : 20px;
    height : 20px; */
    border: 1px solid #554e4e;
}

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

.head {
    background-color: var(--bg-snake-head-color);
}

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: var(--font-type-primary);
}

.model-content {
    background-color: var(--bg-modal-content-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: auto;
}

.btn {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-modal-btn-color);
    color: var(--font-color-white);
    cursor: pointer;
}
.btn:hover {
    transform: scale(1.025);
}

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

@keyframes skull_animation {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.skull {
    display: inline-block;
    animation: skull_animation 1s ease-in-out infinite;
}
