@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Open+Sans:wght@700&display=swap');

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    color: white;
    /* Stone texture with vines effect */
    background-color: #4a4a4a;
    background-image: 
        radial-gradient(circle at 100% 150%, #5d8c5d 24%, #4a6a4a 25%, #4a6a4a 28%, #5d8c5d 29%, #5d8c5d 36%, #4a6a4a 36%, #4a6a4a 40%, transparent 40%, transparent),
        radial-gradient(circle at 0    150%, #5d8c5d 24%, #4a6a4a 25%, #4a6a4a 28%, #5d8c5d 29%, #5d8c5d 36%, #4a6a4a 36%, #4a6a4a 40%, transparent 40%, transparent),
        radial-gradient(circle at 50%  100%, #4a6a4a 10%, #5d8c5d 11%, #5d8c5d 23%, #4a6a4a 24%, #4a6a4a 30%, #5d8c5d 31%, #5d8c5d 43%, #4a6a4a 44%, #4a6a4a 50%, #5d8c5d 51%, #5d8c5d 63%, #4a6a4a 64%, #4a6a4a 71%, transparent 71%, transparent),
        radial-gradient(circle at 100% 50%, #4a6a4a 5%, #5d8c5d 6%, #5d8c5d 15%, #4a6a4a 16%, #4a6a4a 20%, #5d8c5d 21%, #5d8c5d 30%, #4a6a4a 31%, #4a6a4a 35%, #5d8c5d 36%, #5d8c5d 45%, #4a6a4a 46%, #4a6a4a 49%, transparent 50%, transparent),
        radial-gradient(circle at 0    50%, #5d8c5d 5%, #4a6a4a 6%, #4a6a4a 15%, #5d8c5d 16%, #5d8c5d 20%, #4a6a4a 21%, #4a6a4a 30%, #5d8c5d 31%, #5d8c5d 35%, #4a6a4a 36%, #4a6a4a 45%, #5d8c5d 46%, #5d8c5d 49%, transparent 50%, transparent);
    background-size: 100px 50px;
}

.game-container {
    position: relative;
    width: 500px;
    height: 600px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.screen.active {
    display: flex;
}

/* Title Screen */
.title {
    font-family: 'Bangers', cursive;
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000;
}
.title-snake {
    color: #8BC34A; /* Green */
    -webkit-text-stroke: 2px #33691E; /* Dark green outline */
}
.title-attack {
    color: #FFEB3B; /* Yellow */
    -webkit-text-stroke: 2px #F57F17; /* Orange outline */
}

#play-button-container {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
#play-button-container:hover {
    transform: scale(1.1);
}

button {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    color: white;
    background: linear-gradient(145deg, #f09819, #edde5d);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
    margin-top: 20px;
    transition: all 0.2s ease;
}
button:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
}

/* Instructions Screen */
#instructions-screen h2 {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #FFEB3B;
    text-shadow: 2px 2px 0 #000;
}
.instruction {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 10px;
}
.instruction p {
    margin: 0 0 0 15px;
}

/* Game Screen */
#game-screen {
    justify-content: flex-start;
}
.game-ui {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}
.score-container {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 2px #000;
}
.icons-container {
    display: flex;
    gap: 10px;
}
.icons-container div {
    cursor: pointer;
    transition: transform 0.2s;
}
.icons-container div:hover {
    transform: scale(1.1);
}

#game-board {
    background-color: rgba(20, 40, 20, 0.8);
    border: 3px solid #2F4F2F;
    border-radius: 10px;
}

/* Game Over Screen */
#game-over-screen h2 {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: #f44336;
    text-shadow: 2px 2px 0 #000;
    margin: 0;
}
#game-over-screen p {
    font-size: 2rem;
    margin: 10px 0 20px 0;
}