* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  font-size: 16px;
  color: #E6F4F1;
  min-height: 100vh;
  background: rgb(65, 61, 47);
  background: -webkit-linear-gradient(bottom, rgba(248, 212, 83, 1.0), rgba(1, 161, 255, 1.0));
  background: -moz-linear-gradient(bottom, rgba(248, 212, 83, 1.0), rgba(1, 161, 255, 1.0));
  background: linear-gradient(to top, rgba(248, 212, 83, 1.0), rgba(1, 161, 255, 1.0));
  display: grid;
}

.bg {
  background-image: url("../media/bg.svg");
  background-size: cover;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

.modal-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99999;
}

.modal-container > div {
  width: 40%;
  position: relative;
  background-color: orange;
  color: black;
  border-radius: 20px;
  padding: 2%;
  margin: 15% auto;
}

.lets-go-button {
  text-decoration: none;
  background-color: white;
  color: black;
  padding: 2%;
  border-radius: 7px;
}

main {
  margin: auto;
  padding: 1rem;
  width: 80%;
  min-height: 40%;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr;
}

.sun {
  width: 30rem;
  height: 30rem;
  position: fixed;
  top: -15rem;
  right: -15rem;
  filter: blur(5px);
  -webkit-animation: spin 120s infinite linear;
  animation: spin 120s infinite linear;
  z-index: -2;
}

.message-box{
  grid-row: 1;
  width: 100%;
  font-family: 'Allerta Stencil', sans-serif;
  line-height: 13pt;
  font-size: 100%;
  margin: 0 auto;
  color: #f4f4f0;
  padding: 1rem;
  border-radius: 15px;
  background-image: url("../media/blackboard_texture.jpg");
  background-size: cover;
}

.finance-status-box {
  background-color: orange;
  display: flex;
}

.finance-info-string {
  font-family: sans-serif;
  color: black;
}

.finance-number {
  font-weight: bolder;
}

.day-number {
  font-weight: bolder;
}

.transaction-options-box {
  display: flex;
  grid-row: 2;
  justify-content: center;
  align-items: center;
  font-size: 20pt;
}

.transaction-fruit-selection {
  display: flex;
  flex-flow: row;
}

.quantity-input-container {
  margin-left: 3%;
  display: flex;
  border-left: 1px dashed white;
  font-size: 16pt;
  padding-left: 3%;
  align-items: baseline;
}

.quantity-input {
  padding: 10%;
  font-size: 18pt;
}

.play-options-box {
  grid-row: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-option-button {
  text-decoration: none;
  font-family: 'Pacifico', cursive;
  padding: 1% 2%;
  border-radius: 10px;
  margin-left: 5%;
  margin-right: 5%;
}

.buy-button {
  background: red;
  color: white;
}

.sell-button {
  background: green;
  color: white;
}

.do-nothing-button {
  background: gray;
  color: white;
}

.inventory-string {
  margin: 0;
}

.market-price-string {
  margin: 0;
}

footer {
  min-width: 100vw;
  background-color: #3D4756;
  position: absolute;
  bottom: 0;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(8, 1fr);
}

.footer-item {
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  text-align: center;
}

.footer-box-1 {
  border-right: 1px solid #FFFFFF;
}

.footer-box-2 {
  border-right: 1px solid #FFFFFF;
}

.footer-box-3 {
  border-right: 1px solid #FFFFFF;
}

.footer-box-4 {
  border-right: 1px solid #FFFFFF;
}

.footer-box-5 {
  border-right: 1px solid #FFFFFF;
}

.footer-box-6 {
  border-right: 1px solid #FFFFFF;
}

.footer-box-7 {
  border-right: 1px solid #FFFFFF;
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/*  */
/* MEDIA QUERIES SECTION */
/*  */

@media only screen and (max-width: 800px) {
  body{
    width: 100vw;
    font-size: 9pt;
  }
  .bg {
    display: none;
  }
  .sun {
    width: 20rem;
    height: 20rem;
    position: fixed;
    top: -10rem;
    right: -10rem;
    filter: blur(3px);
    -webkit-animation: spin 120s infinite linear;
    animation: spin 120s infinite linear;
    z-index: -2;
  }
  .transaction-options-box {
    font-size: 20pt;
  }
  .quantity-input-container{
    font-size: 10pt;
  }
  .quantity-input {
    font-size: 12pt;
  }
  main {
    width: 90%;
  }
  .modal-container > div {
    width: 90%;
    padding: 3%;
  }
}