@font-face {
  font-family: Arcade;
  src: url(/assets/fonts/Gameboy-adaa01bc69b8c964acbc049b9199892c6286150c0ecc967771f49d6f2d0426c4.ttf); }

body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #e9e8e2;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif; }

.pageContainer {
  display: flex;
  position: relative;
  z-index: 1; }
  .pageContainer .plasticTexture {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    filter: invert(80%);
    opacity: 30%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; }

.extraContainer {
  display: none;
  flex-direction: column; }

.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-content: center;
  margin-top: 10px;
  background-color: #e9e8e2;
  width: 370px;
  height: auto;
  border-radius: 3px;
  gap: 10px;
  outline: none;
  position: relative; }
  .device:focus {
    outline: none; }
  .device .topLight {
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50px;
    margin-left: 5px;
    margin-top: 10px;
    background-color: #a47474;
    animation: blink 0.9s infinite ease-in-out;
    z-index: 2; }
  .device .middleBtns {
    width: 100%;
    height: 50px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 2; }
    .device .middleBtns .resetContainer {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 2px;
      margin-top: 10px;
      margin-left: 5px; }
      .device .middleBtns .resetContainer .functionButtons {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.3rem;
        height: 40px;
        width: 15px;
        background-color: gray;
        border-radius: 4px;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.387);
        transition: box-shadow 0.2s;
        border: solid 1.5px #6d6d6d; }
        .device .middleBtns .resetContainer .functionButtons:active {
          box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.064); }
    .device .middleBtns p {
      margin: 0;
      cursor: default;
      font-weight: 700;
      font-size: 0.7rem;
      color: transparent;
      background: #7f7f7d;
      -webkit-background-clip: text;
      text-shadow: 2px 5px 5px rgba(255, 255, 255, 0.7); }
    .device .middleBtns .leaderboardContainer {
      margin-top: 10px;
      margin-right: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 2px; }
      .device .middleBtns .leaderboardContainer .leaderboardBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 55;
        cursor: pointer;
        width: 30px;
        height: 40px;
        background-color: gray;
        border-radius: 4px;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.387);
        transition: box-shadow 0.2s;
        border: solid 1.5px #6d6d6d; }
        .device .middleBtns .leaderboardContainer .leaderboardBtn .trophyIcon {
          pointer-events: none;
          height: 20px;
          filter: invert(35%); }
        .device .middleBtns .leaderboardContainer .leaderboardBtn:active {
          box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.064); }
      .device .middleBtns .leaderboardContainer p {
        margin: 0; }
  .device .buttonContainer {
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    margin-top: 20px; }
    .device .buttonContainer .top,
    .device .buttonContainer .middle,
    .device .buttonContainer .bottom {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 180px; }
      .device .buttonContainer .top button,
      .device .buttonContainer .middle button,
      .device .buttonContainer .bottom button {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 95%;
        height: 100%;
        border-radius: 10px;
        border: solid 3.3px black;
        box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.387);
        transition: box-shadow 0.2s; }
        .device .buttonContainer .top button:active,
        .device .buttonContainer .middle button:active,
        .device .buttonContainer .bottom button:active {
          box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.042);
          filter: brightness(90%); }
        .device .buttonContainer .top button:hover,
        .device .buttonContainer .middle button:hover,
        .device .buttonContainer .bottom button:hover {
          filter: brightness(99%); }
      .device .buttonContainer .top .upButton,
      .device .buttonContainer .middle .upButton,
      .device .buttonContainer .bottom .upButton {
        background-color: #db6969;
        border-color: #b64040;
        height: 49%; }
      .device .buttonContainer .top .downButton,
      .device .buttonContainer .middle .downButton,
      .device .buttonContainer .bottom .downButton {
        background-color: #5d6eed;
        border-color: #3b49b2;
        height: 49%; }
      .device .buttonContainer .top .leftButton,
      .device .buttonContainer .middle .leftButton,
      .device .buttonContainer .bottom .leftButton {
        background-color: #dadd6b;
        border-color: #babf34; }
      .device .buttonContainer .top .rightButton,
      .device .buttonContainer .middle .rightButton,
      .device .buttonContainer .bottom .rightButton {
        background-color: #7ecd77;
        border-color: #4ea448; }
      .device .buttonContainer .top .arrow,
      .device .buttonContainer .middle .arrow,
      .device .buttonContainer .bottom .arrow {
        width: 30px; }
      .device .buttonContainer .top .upIcon,
      .device .buttonContainer .middle .upIcon,
      .device .buttonContainer .bottom .upIcon {
        margin-bottom: 4px;
        filter: invert(33%) sepia(12%) saturate(2656%) hue-rotate(314deg) brightness(94%) contrast(86%); }
      .device .buttonContainer .top .leftIcon,
      .device .buttonContainer .middle .leftIcon,
      .device .buttonContainer .bottom .leftIcon {
        transform: rotate(-90deg);
        margin-right: 5px;
        filter: invert(51%) sepia(88%) saturate(241%) hue-rotate(23deg) brightness(103%) contrast(88%); }
      .device .buttonContainer .top .downIcon,
      .device .buttonContainer .middle .downIcon,
      .device .buttonContainer .bottom .downIcon {
        transform: rotate(180deg);
        margin-top: 5px;
        filter: invert(28%) sepia(29%) saturate(1308%) hue-rotate(193deg) brightness(91%) contrast(99%); }
      .device .buttonContainer .top .rightIcon,
      .device .buttonContainer .middle .rightIcon,
      .device .buttonContainer .bottom .rightIcon {
        transform: rotate(90deg);
        margin-left: 4px;
        filter: invert(46%) sepia(20%) saturate(879%) hue-rotate(68deg) brightness(96%) contrast(90%); }
    .device .buttonContainer .top {
      display: flex;
      flex-direction: column;
      justify-content: space-between; }

@keyframes blink {
  0% {
    background-color: #a47474; }
  50% {
    background-color: #aa2121; }
  100% {
    background-color: #a47474; } }

.deviceScreen {
  position: relative;
  z-index: 3;
  margin-top: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #5f7e4b; }
  .deviceScreen .screenTexture {
    pointer-events: none;
    position: absolute;
    z-index: 7;
    width: 100%;
    height: 100%;
    opacity: 10%; }
  .deviceScreen .topRow {
    top: 0;
    right: 0;
    margin-top: -30px;
    margin-right: 0px;
    width: 100%;
    height: 25px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between; }
    .deviceScreen .topRow .title {
      cursor: default;
      font-size: 2.5rem;
      margin-left: 10px;
      color: transparent;
      background: #7f7f7d;
      -webkit-background-clip: text;
      text-shadow: 2px 5px 5px rgba(255, 255, 255, 0.7);
      margin-bottom: 35px; }
    .deviceScreen .topRow .scoreCounter {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1px;
      height: 100%;
      width: 50px;
      background-color: #68921e;
      border-radius: 3px; }
      .deviceScreen .topRow .scoreCounter .scoreScreen {
        position: absolute;
        height: 100%;
        width: 50px;
        opacity: 20%; }
      .deviceScreen .topRow .scoreCounter .number {
        font-family: Arcade;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22%;
        height: 73%;
        border: 2px solid #19401a;
        border-radius: 2px; }
        .deviceScreen .topRow .scoreCounter .number p {
          color: #19401a;
          margin-top: 1px;
          margin-bottom: 1px;
          margin-left: 3px;
          font-size: 0.6rem;
          text-shadow: -0.5px 0.5px 1px rgba(15, 39, 16, 0.9); }
  .deviceScreen .popUpScreen {
    display: none;
    font-family: Arcade;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0000005d;
    opacity: 100%;
    z-index: 2;
    position: absolute; }
  .deviceScreen .highScores {
    display: none;
    align-items: start;
    justify-content: center;
    z-index: 1;
    flex-direction: column; }
    .deviceScreen .highScores .boardTitle {
      position: absolute;
      top: 0;
      margin-top: 0px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      background-color: #467529;
      opacity: 60%;
      width: 100%;
      height: 50px; }
    .deviceScreen .highScores .scoresContainer {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-top: 35px;
      width: 100%;
      height: 210px;
      overflow-y: scroll; }
      .deviceScreen .highScores .scoresContainer .score {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 10px; }
        .deviceScreen .highScores .scoresContainer .score .playerName,
        .deviceScreen .highScores .scoresContainer .score .playerScore {
          color: #131313;
          margin: 0;
          font-size: 2rem; }
      .deviceScreen .highScores .scoresContainer .first .playerName,
      .deviceScreen .highScores .scoresContainer .first .playerScore {
        min-width: 30px;
        color: #e1c420;
        text-shadow: 0px 0px 10px gold; }
      .deviceScreen .highScores .scoresContainer .second .playerName,
      .deviceScreen .highScores .scoresContainer .second .playerScore {
        min-width: 30px;
        color: #d0cbcb;
        text-shadow: 0px 0px 10px #b2afaf; }
      .deviceScreen .highScores .scoresContainer .third .playerName,
      .deviceScreen .highScores .scoresContainer .third .playerScore {
        min-width: 30px;
        color: #e28126;
        text-shadow: 0px 0px 10px #c27024; }
    .deviceScreen .highScores .retryBtn {
      opacity: 100%;
      cursor: pointer;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      bottom: 0;
      font-size: 1.4rem;
      margin: 0;
      margin-top: 10px;
      margin-left: 5px;
      color: #a60505;
      animation: glow 2s infinite steps(8);
      transition: color 0.5s; }
  .deviceScreen .saveScoreScreen {
    display: none;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: start; }
    .deviceScreen .saveScoreScreen .newHigh {
      font-size: 1.9rem;
      padding-left: 12px;
      margin: 0;
      margin-top: 40px; }
    .deviceScreen .saveScoreScreen .points {
      font-size: 1.7rem;
      margin: 0;
      margin-top: 7px;
      margin-bottom: 10px;
      margin-left: 20px;
      color: gold;
      text-shadow: 0px 0px 5px gold; }
    .deviceScreen .saveScoreScreen .newSubText {
      margin: 0;
      font-size: 0.6rem;
      margin-bottom: -5px; }
    .deviceScreen .saveScoreScreen .scoreForm {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-top: -40px;
      height: 170px;
      gap: 10px; }
      .deviceScreen .saveScoreScreen .scoreForm .holder {
        display: flex;
        gap: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: center; }
        .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput {
          background-color: rgba(0, 0, 0, 0);
          width: 180px;
          height: 60px;
          text-align: center;
          font-size: 3.8rem;
          padding-left: 15px;
          font-family: Arcade;
          border: dashed 6px black;
          border-radius: 4px;
          color: black;
          transition: border 0.2s;
          padding: 0; }
          .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput::placeholder {
            opacity: 20%;
            color: black;
            transition: text-shadow 0.2s;
            margin: 0; }
          .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput:hover {
            border: dashed 6px #d7bc1d; }
            .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput:hover::placeholder {
              opacity: 20%;
              color: gold;
              text-shadow: 0px 0px 10px gold; }
          .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput:active, .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput:focus {
            outline: none;
            border: dashed 6px #afafaf;
            color: #cac9c9;
            text-shadow: 0px 0px 10px #afafaf; }
            .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput:active::placeholder, .deviceScreen .saveScoreScreen .scoreForm .holder .scoreInput:focus::placeholder {
              opacity: 20%;
              color: #afafaf; }
        .deviceScreen .saveScoreScreen .scoreForm .holder .scoreSubmit {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 50px;
          height: 50px;
          background-color: rgba(0, 0, 0, 0);
          border: dashed 5px black;
          border-radius: 6px;
          margin-right: 5px;
          margin-top: -4px; }
          .deviceScreen .saveScoreScreen .scoreForm .holder .scoreSubmit .saveIcon {
            width: 98%; }
          .deviceScreen .saveScoreScreen .scoreForm .holder .scoreSubmit:hover {
            border: dashed 3.5px #34c934; }
            .deviceScreen .saveScoreScreen .scoreForm .holder .scoreSubmit:hover .saveIcon {
              opacity: 100%;
              filter: invert(100%) blur(1px); }
    .deviceScreen .saveScoreScreen .closeSave {
      cursor: pointer;
      position: absolute;
      top: 0;
      right: 0;
      background-color: rgba(0, 0, 0, 0);
      border: none;
      font-family: Arcade;
      font-size: 1.6rem;
      color: red;
      text-shadow: 0px 0px 10px red; }
  .deviceScreen .endScreen,
  .deviceScreen .startScreen {
    flex-direction: column;
    align-items: center;
    justify-content: center; }
    .deviceScreen .endScreen p,
    .deviceScreen .startScreen p {
      opacity: 100%;
      margin: 0;
      text-align: center; }
    .deviceScreen .endScreen .words,
    .deviceScreen .startScreen .words {
      opacity: 100%;
      display: inline-block;
      color: black;
      text-shadow: 0px 5px 2px rgba(0, 0, 0, 0.155);
      cursor: default; }
  .deviceScreen .endScreen {
    display: none; }
    .deviceScreen .endScreen .words {
      margin-left: 20px;
      font-size: 1.7rem;
      animation: endMove 1.5s infinite steps(5); }
    .deviceScreen .endScreen .score {
      margin-left: 10px;
      margin-top: 20px;
      font-size: 1.2rem; }
    .deviceScreen .endScreen .highscores {
      cursor: pointer;
      margin-top: 10px;
      margin-left: 5px;
      font-size: 1.3rem;
      color: gold;
      animation: highscoreGlow 5s infinite; }

@keyframes highscoreGlow {
  0% {
    text-shadow: 0px 0px 0px gold; }
  50% {
    text-shadow: 0px 0px 10px gold; }
  100% {
    text-shadow: 0px 0px 0px gold; } }
    .deviceScreen .endScreen .retryBtn {
      opacity: 100%;
      cursor: pointer;
      position: absolute;
      bottom: 0;
      font-size: 1.3rem;
      margin-bottom: 10px;
      margin-left: 10px;
      color: #a60505;
      animation: glow 2s infinite steps(8);
      transition: color 0.5s; }
  .deviceScreen .startScreen {
    cursor: pointer;
    display: none; }
    .deviceScreen .startScreen .words {
      cursor: pointer;
      font-size: 1rem;
      animation: endMove 3s infinite steps(9); }
  .deviceScreen .countDown {
    display: none; }
    .deviceScreen .countDown .numbers {
      cursor: default;
      font-size: 4rem;
      animation: endMove 0.95s infinite steps(3);
      margin-left: 10px; }
    .deviceScreen .countDown .numWords {
      margin-left: 40px; }
  .deviceScreen .showEnd,
  .deviceScreen .showStart,
  .deviceScreen .showCountdown,
  .deviceScreen .showLeaderboard,
  .deviceScreen .showSave {
    display: flex; }

@keyframes glow {
  0% {
    color: black;
    text-shadow: 0px 0px 10px rgba(252, 125, 125, 0); }
  50% {
    color: #a60505;
    text-shadow: 0px 0px 10px #fc7d7d; }
  90% {
    color: black;
    text-shadow: 0px 0px 10px rgba(252, 125, 125, 0); }
  100% {
    color: black;
    text-shadow: 0px 0px 10px rgba(252, 125, 125, 0); } }

@keyframes endMove {
  0% {
    transform: scale(100%); }
  50% {
    transform: scale(120%); }
  100% {
    transform: scale(100%); } }

.gridRow {
  display: flex;
  padding: 0;
  line-height: 0; }

.box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #68921e;
  border: solid 0.2px #5b811a;
  color: rgba(51, 51, 51, 0);
  font-size: 0.4rem;
  overflow: hidden; }

.snake {
  background-color: #1a450c;
  color: black; }

.food {
  background-color: white;
  color: black;
  box-shadow: 0px 0px 10px 3px white; }

.snakeHead {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  left: 0;
  width: 8px;
  height: 100%; }
  .snakeHead .eye {
    width: 5px;
    height: 5px;
    background-color: #15291a;
    border-radius: 1px; }

.left {
  rotate: 180deg; }

.up {
  rotate: -90deg; }

.down {
  rotate: 90deg; }

.right {
  rotate: -360deg; }

.middleRow {
  width: 100%;
  height: 40px;
  margin-top: 13px;
  margin-bottom: -10px;
  display: flex;
  align-items: center;
  justify-content: end; }
  .middleRow .leaderBoardBtn {
    background-color: #656565;
    border: 2px solid #464545;
    border-radius: 50px;
    width: 38px;
    height: 38px;
    margin-right: 10px; }
    .middleRow .leaderBoardBtn .leadImage {
      filter: invert(80%); }
    .middleRow .leaderBoardBtn:hover {
      filter: brightness(80%); }
    .middleRow .leaderBoardBtn:active {
      filter: brightness(90%); }
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
