*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}
@font-face {
    font-family: 'PressStart2P-Regular';
    src: url('assets/PressStart2P-Regular.ttf');
}

/* body {
    height: 100vh;
} */
body {
    background-color: #fafff0;
    font-family: PressStart2P-Regular;
}

button {
    font-family: PressStart2P-Regular;
}
  
.game-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.game-board {
    background-color: rgb(255, 255, 255);
    display: grid; 
    
}

.top-bar {
    position: absolute;
}
.cell {
    width: 20px;
    height: 20px;
    gap: 2px;
    /* border-radius: 5px; */
    /* color:#f0f7e1; */
}    


.cell-dark {
    background-color: #cdea94;
}

.viper {
    background-color: red;
    width: 100%;
    height: 100%;
}

.restart-game-menu {
    position: absolute;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding:0;
    /* background-color: red; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.restart-game {
    background-color: #708742;
    border: none;
    color: white;
    /* border-radius: 5px; */
    padding: 14px 18px;
    margin: 0;
    animation-name: restartButton;
    animation-duration: 1s;
    animation-iteration-count: infinite
}

@keyframes restartButton {
    0% {
        transform: scale(1);
    } 50% {
        transform: scale(1.05);
    } 100% {
        transform: scale(1);
    }
}

.score {
    position: absolute;
    right: 0;
    padding: 20px 20px;
    font-size: 4rem;
    color: #708742;
    text-shadow: 4px 4px #000;

    font-family: PressStart2P-Regular;
    font-optical-sizing: auto;
    font-weight: 900;
    /* font-style: italic; */
    font-variation-settings:
      "wdth" 100;
  
}

.home {
    left: 0;
    font-size: 2rem;
    color: #708742;
    letter-spacing: 0.3rem;
    text-shadow: 4px 4px #000;
}

.home-tab {
    h1 {
        font-size: 3.5rem;
        text-align: center;
        color: #708742;
        padding-top: 7rem;
        letter-spacing: 0.8rem;
        text-shadow: 7px 7px #000;
    }

    height: 100vh;
}

.settings-tab {
    h1 {
        font-size: 2.5rem;
        text-align: center;
        color: #708742;
        /* padding-top: 7rem; */
        letter-spacing: 0.5rem;
        text-shadow: 5px 5px #000;
    }
}

.settings-back-button, .game-back-button {
    padding: 14px 50px;
    font-weight: 900;
    color:#708742;
    /* border: none; */
    border: 1px solid #708742;
    background-color: white;
    box-shadow: 6px 6px #000;;

}

/* .home button {
    margin-top: -20px;
} */

.settings-back-button:hover, .game-back-button:hover {
    background-color: #708742;
    color: white;
}

.controls {
    width: 100vw;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;  
    margin-top: 3rem;
    /* background-color: red; */
}

.controls-button:hover {
    background-color: #708742;
    color: white;
}

.controls-button {
    width: 250px;
    padding: 14px 50px;
     font-weight: 900;
    color:#708742;
    /* border: none; */
    border: 1px solid #708742;
    background-color: rgba(218, 237, 181, 1);
    box-shadow: 6px 6px #000;;
}

.top-score {
    margin-top: 1rem;
    font-size: 0.7rem;
    text-shadow: 1.2px 1.2px #000;
}

/* @media only screen and (min-device-width: 320px){
    .home-tab h1 {
        font-size: 1rem;
    }
} */

.settings-tab {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
}

.settings-top-bar {
    display: flex;
    justify-content: center;
    margin-top: 7rem;
    gap: 7rem;
    /* width: 50vw; */
    /* background-color: pink;   */
    /* height: 5rem; */
}

.settings-options {
    margin-top: 7rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.option-text {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 1.5rem;
}

.option-choice {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.speed {
    display: flex;
    gap: 7rem;
    align-items: center;
}

.settings-options button {
    padding: 10px 10px;
    font-weight: 900;
    color:#708742;
    /* border: none; */
    border: 1px solid #708742;
    background-color: white;
    /* box-shadow: 6px 6px #000;; */
}

.game-back-button {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
}

.made-by {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.made-by a {
    color: #708742;
    text-decoration: none;
    /* text-shadow: 0.5px 0.5px #000; */
}

.cell-bg:hover {
    background-color: red;
}
/* 
.char-of-vipertown {
    transform: rotate(90deg);  
} */

@media (max-width:430px)  { 
    .cell {
        width: 3vw;
        height: 3vw;
        gap: 2px;
    
    }

    /* .home {
        font-size: 0.2rem;
        text-align: center;
        color: #708742;
        margin-top: 7rem;
        letter-spacing: 0.8rem;
        text-shadow: 7px 7px #000;
    } */
    
    .home-tab h1 {
            font-size: 2rem;
            text-align: center;
            color: #708742;
            margin-top: 7rem;
            letter-spacing: 0.3rem;
            text-shadow: 4px 4px #000;
    }
    
    .background-container {
        display: none;
    }
    
}
