* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.5;
}
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Keeps the container centered */
    overflow-x: hidden;
}
.bg-image {
    background-image: url('gradient.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container {
    width: 100%;
    height: auto;
    padding: 0 20px;
}
header {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}
.content {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}
p, h2 {
    text-align: center;
    padding: 10px 0;
}
.game {
    width: 100%; /* Becomes 60% in media query */
    height: 60vh; /* Define the height here */
    display: flex;
    justify-content: center;
    align-items: center;
}
#snake-game {
    width: 100%;
    height: 100%;
    /* Prevents default touch actions like scrolling/zooming while playing */
    touch-action: none; 
    /* Ensures the container doesn't overflow accidentally */
    overflow: hidden;
}
canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
@media screen and (min-width: 800px) {
  .container { width: 100%; }
   main { width: 100%; }
   .game { width: 60%; }
}
@media screen and (max-width: 480px) {
  #snake-game { 
      height: 50vh; /* Slightly taller for better playability */
  }
  .logo { font-size: 1.2rem;}
  
  /* Prevent the body from scrolling when interacting with the game */
  body {
      touch-action: pan-x pan-y;
  }
}
.nav-links{
    display: flex;
    gap: 3rem;
    list-style-type: none;
}
.social-media-links a {
    color: #ffffff !important;
}    
.social-media-links i {
    font-size: 1.5rem;
    margin-left: 15px;
    cursor: pointer;
    transition: color 0.3s;
}
.social-media-links i:hover {
    color: #ff6347;
}
nav a {
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;
}
nav a:hover {
    color: #ff6347;
}
