body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-family: Arial, sans-serif;
    color: #e1e1e1;
    box-sizing: border-box;
}

#score {
    font-size: 28px;
    margin-bottom: 20px;
    color: #4ecca3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

#game-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    margin: 0 auto;
}

#game-board {
    width: 100%;
    height: 100%;
    border: 12px solid #8b4513;
    background-color: #232741;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    touch-action: none;
    box-sizing: border-box;
}

footer {
    margin-top: auto; 
    font-size: 14px;
    color: #888;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

#instruction {
    margin-top: 20px;
    font-size: 16px;
    color: #888;
    text-align: center;
    font-style: italic;
}

footer .footer-content {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
    gap: 20px; /* Adjust spacing between elements */
}

footer .social-icons {
    display: flex;
    gap: 10px; /* Adjust spacing between icons */
}

footer .social-icons a {
    color: #888; /* Icon color */
    font-size: 20px; /* Icon size */
    text-decoration: none; /* Remove underlines from links */
    transition: color 0.3s ease; /* Add a smooth transition for hover effect */
}

footer .social-icons a:hover {
    color: #333; /* Icon color on hover */
}

@media (max-width: 768px) {
    #instruction {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
    footer {
        font-size: 12px; /* Adjust font size for smaller screens */
    }
    footer .social-icons a {
        font-size: 16px;
    }
    footer .footer-content {
        text-align: center;
    }
}

@media (max-width: 430px) {
    #score {
        font-size: 24px;
        margin-bottom: 15px;
    }
}