@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@600&display=swap");

:root {
  --orange: #ff973a;
  --white: #ffffff;
  --grey: #4e4f4e;
}

body {
  margin: 0;
}

.container {
  text-align: center;
  background: #ff973a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background-image: linear-gradient( #ffffff70 25%, var(--orange) 25%, var(--orange) 75%, #ffffff70 75% ), url(../img/background.png);
  background-size: 50%;
  margin: 0px;
}

/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 992px) {
  body {
    background-color: #ff973a;
  }

  .container {
    position: static !important;
    background-image: none;
    align-items: flex-start; 
  }

  .board {
    width: 100% !important;
    font-size: 0.8rem !important;
    height: 50vh !important;
    padding: 10px !important; 
  }

  .header {
    height: 8vh;
    text-align: center;
    padding: 20px;
    background-color: white;
  }

  .header img {
    position: static !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }

  .container {
    min-height: 0;
    padding: 20px;
  }

  #button_container {
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    text-align: center;
    transform: initial !important;
    padding-bottom: 20px; 
  }

  #button_container > input {
    width: 30vw !important;
    padding: 20px !important;
  }
}

.header img {
  position: fixed;
  height: 10vh;
  left: 5vw;
  top: 5vw;
}

#button_container {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 5vw;
  touch-action: manipulation;
}

#button_container > input {
  width: 16vw;
  cursor: pointer;
  touch-action: manipulation;
}

.board {
  position: relative;
  font-family: "Dosis";
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 1px 1px #666, 3px 3px #000;
  width: 40vw;
  height: 60vh;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  border: 10px solid var(--grey);
  border-radius: 5px;
  background: linear-gradient(#0e0e0e 65%, #030303 66%) top 0.03em center / 100%
    0.3em repeat-y;
  -webkit-box-shadow: 2px 2px 15px 3px rgba(0, 0, 0, 0.28);
  box-shadow: 2px 2px 15px 3px rgba(0, 0, 0, 0.28);
}

.board:focus {
  outline: none;
}

#menu_footer {
  position: absolute;
  bottom: 0; /* position the top  edge of the element at the middle of the parent */
  left: 50%; /* position the left edge of the element at the middle of the parent */

  transform: translate(
    -50%,
    -50%
  ); /* This is a shorthand of
                                         translateX(-50%) and translateY(-50%) */
  width: 100%;
}

.snack_line {
  padding: 5px;
  text-align: left;
}

.snack_value {
  float: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.animate{
  width: 0;
  animation: typing 1s forwards;
}

.snack_price {
  float: right;
}

@keyframes typing {
  from {width: 0}
  to {width: 80%}
}