@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    padding: 0;
    margin: 0;
}

#body {
    background: url("../assets/bg.jpg");
    min-height: 100vh;
    background-size: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column wrap ;
    gap: 15px ;
    overflow: hidden;
}

#scoreBox {
    position: absolute ;
    top: 20px ;
    right: 20px ;
    color: white;
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, rgb(255, 1, 251), purple);
    padding: 4px;
    border: 2px solid white;
    border-radius: 8px;
}

#timer {
    position: absolute ;
    top: 20px ;
    left: 20px ;
    color: white;
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, rgb(255, 1, 251), purple);
    padding: 4px;
    border: 2px solid white;
    border-radius: 8px;
}

.pause {
    position: absolute ;
    top: 80px ;
    left: 20px ;
    color: white;
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, rgb(255, 1, 251), purple);
    padding: 4px;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

#highScore {
    position: absolute ;
    top: 80px ;
    right: 20px ;
    color: white;
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, rgb(255, 1, 251), purple);
    padding: 4px;
    border: 2px solid white;
    border-radius: 8px;
}

#gridSelection {
    position: absolute ;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row nowrap ;
    gap: 5px ;
    top: 140px ;
    right: 20px ;
    color: white;
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, rgb(255, 1, 251), purple);
    padding: 4px;
    border: 2px solid white;
    border-radius: 8px;
}

#board {
    background: linear-gradient(to right, rgb(170, 18, 114), rgb(121, 23, 232));
    width: 85vmin;
    height: 85vmin;
    border: 2px solid white;
    display: grid;
    grid-template-rows: repeat(20, 1fr);
    grid-template-columns: repeat(20, 1fr);
}

#sequence {
    background: linear-gradient(to right, rgb(170, 18, 114), rgb(121, 23, 232));
    width: 85vmin;
    height: 5vmin;
    padding: 1vmin;
    border: 2px solid white;
    display: flex;
    flex-direction: row;
    gap: 1vmin;
}

.seqText {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 95%;
    align-self: center;
}

.word {
    flex-basis: 10vmin;
    color: yellow;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    font-size: 95%;
    align-self: center;
}

.head {
    background-color: rgb(33, 160, 35) ;
    border: .25vmin solid black ;
    border-radius: 8px;
    transform: scale(1.03);
}

.snake {
    background-color: red ;
    border: .25vmin solid black ;
    border-radius: 16px;

}

.food {
    color: yellow;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.powerUp {
    background-size: cover;
    filter: invert(100%) ;
}

.heart {
    background-image: url("../assets/heart.png");
    background-size: cover;
    flex-basis: 5vmin;
}

#gridSize {
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    background-color: transparent;
    color: white;
    border: 0px;
}

#popUp {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-flow: column wrap;
    gap: 10px;
    top: 100px;
    width: 50vmin;
    height: 60vmin;
    padding: 3vmin;
    border: 2px solid white;
    color: white;
    background: linear-gradient(to right, rgb(44, 127, 2), rgb(4, 166, 120));
    border-radius: 8px;
}