@import url("fontFaces.css");

body {
  width: 100vw;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1f2c38;


}

/* Style the header */
header {
  background-color: #f1f1f1;
  text-align: center;
  font-size: 25pt;
}

h1 {
  font-family: ThankfullyFF, Courier, monospace;
  font-size: 2em;
}

.headerFlex {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer {
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #1c1b1b;;
  color: white;
  text-align: center;
  margin-top: auto
}

footer p {
  font-family: JolieNevilleFF, Courier, monospace;;
}

a {
  font-weight: bold;
  color: white;
}

div.container {
  display: flex;
  width: 98%;
  margin: 1%;
  margin-top: 2em;
  flex-direction: column;
  justify-content: center;

}

table {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

tr, td {
  text-align: left;
}

.scrollContainer {
  height: auto;
  overflow: auto;
  overflow-y: hidden;
  background: #1f2c38;

}

/* Style the bars */
.bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #333;
  font-family: newFF, Courier, monospace;
  font-size: 1em;
  flex-wrap: wrap;
}

/* Style the bar divs */
.bar div {
  align-items: stretch;
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
}

.bar div img {
  border-radius: 8px;
  background: #e0e0e0;
  box-shadow: inset 23px 23px 46px #c3c3c3,
  inset -23px -23px 46px #fdfdfd;
}

/* Change color on hover */
.bar div:hover {
  background-color: #ffdcae;
  color: black;
  border: 3px white solid;
}


p, button {
  font-family: newFF, Courier, monospace;
}


.audioButton {
  color: white;
  border: none;
  background: transparent;
  color: black;
  -webkit-transition: .7s ease-in-out;
  -moz-transition: .7s ease-in-out;
  -o-transition: .7s ease-in-out;
  transition: .7s ease-in-out;
  text-decoration: line-through;
  font-size: 11pt;
}

.audioButton:hover {
  background: #38e9ad;
}

.fa.fa-music {
  color: black;
}

.volumeSlider {
  font-size: 11pt;
  font-family: newFF, Courier, monospace;;

}

/* HexTable */
.hexTable {
  margin-top: -45pt;
}

.title{
  max-width: 35%;
  height: auto;
  align-self: center;
  width: 50%;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

.autoResizeImage {
  max-width: 100%;
  height: auto;
  width: 100%;
}

td {
  border: none;
  border-spacing: 0 !important;
}

.checkBoxContainer {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: white;
  padding-left: 2em;
}

.checkBoxContainer:hover {
  color: black;
}

.tileImage {
  -webkit-animation: hoverLeave .7s forwards;
  -moz-animation: hoverLeave .7s forwards;
  -o-animation: hoverLeave .7s forwards;
  animation: hoverLeave .7s forwards;

}

.tileImage:hover {
  -webkit-animation: hoverEnter .7s forwards;
  -moz-animation: hoverEnter .7s forwards;
  -o-animation: hoverEnter .7s forwards;
  animation: hoverEnter .7s forwards;

}


.secondRow {
  display: flex;
  background: #ffdcae;
  flex-direction: row;
  flex-grow: 1;
  flex-wrap: nowrap;
  justify-content: center;
  flex-shrink: 1;
  border: 3px solid black;
  border-right: 3px solid black;
}

/* InfoBox */
.infoBox {
  display: flex;
  flex-direction: row;
  flex: 1 0 25%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  border: black 3px solid;
  margin: 1rem;
  max-width: 500px;
  max-height: 180px;
}

.infoBoxContainer {
  width: 100%;
  max-height: 180px;
  overflow: scroll;
}

.infoBoxContainer li{
  font-family: newFF, Courier, monospace;
  font-size: 0.9em;
}

.infoBox > p, .infoIcon {
  padding: 2rem;
}

#shopIcon {
  display: flex;
  flex-direction: column;
}

.shopBox{
  border: 3px white solid;
}

#shopIcon:hover {
  background-color: #333;
  color: white;
}

.upgradeButton {
  max-width: 100px;
  max-height: 100px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: white;
}

.upgradeButton:hover {
  color: black !important;
}

.resetButton {
  color: white;
  border: none;
  background: transparent;
  color: white;
  font-family: JolieNevilleFF, Courier, monospace;;
  -webkit-transition: .7s ease-in-out;
  -moz-transition: .7s ease-in-out;
  -o-transition: .7s ease-in-out;
  transition: .7s ease-in-out;
}

.resetButton:hover {
  background: red !important;
}

.helpButton {
  -webkit-animation: magnified 2s 1s;
  -moz-animation: magnified 2s 1s;
  -o-animation: magnified 2s 1s;
  animation: magnified 2s 1s;
  -webkit-animation-iteration-count: 10;
  -moz-animation-iteration-count: 10;
  -o-animation-iteration-count: 10;
  animation-iteration-count: 10;

  border-radius: 0px !important;
  background: none !important;
  box-shadow: none !important;
}

.helpButton:hover {
  filter: hue-rotate(90deg);
}


/* Animations */

@keyframes magnified {
  0% {
    transform: scale(1, 1);
  }
  70% {
    transform: scale(1.2, 1.2);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes newInfo {
  0% {
    transform: rotateX(120deg);
  }
  50% {
    transform: scale(1.2, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}


@keyframes hoverEnter {
  from {
    transform: scale(1);
    filter: saturate(1);
  }
  to {
    transform: scale(1.1);
    filter: saturate(2.5);
  }
}

@keyframes hoverLeave {
  from {
    transform: scale(1.1);
    filter: saturate(2.5);
  }
  to {
    transform: scale(1);
    filter: saturate(1);
  }
}


/* Media Queries only */
@media only screen and (max-width: 1100px) {
  .hexTable {
    margin-top: -44pt;
  }
}

@media only screen and (max-width: 1050px) {
  .hexTable {
    margin-top: -42pt;
  }
}

@media only screen and (max-width: 1024px) {
  h1 {
    font-size: 1em;
  }

  #shopIcon {
    width: 100%;
  }

  .bar {
    justify-content: stretch;
  }

  .bar div {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-self: center;
    flex-grow: 1;
  }

  .bar div input {
    align-self: center;
  }

  .bar div img {
    align-self: center;
  }

  .upgradeButton {
    max-width: 100%;
  }

  .hexTable {
    margin-top: -41pt;
  }
}

@media only screen and (max-width: 1000px) {
  .hexTable {
    margin-top: -40pt;
  }
}

@media only screen and (max-width: 972px) {
  .hexTable {
    margin-top: -38pt;
  }
}

@media only screen and (max-width: 920px) {
  .hexTable {
    margin-top: -37pt;
  }
}

@media only screen and (max-width: 912px) {
  .hexTable {
    margin-top: -36pt
  }
}

@media only screen and (max-width: 860px) {
  .hexTable {
    margin-top: -36pt;
  }
}

@media only screen and (max-width: 820px) {
  .hexTable {
    margin-top: -33pt;
  }
}

@media only screen and (max-width: 768px) {
  .hexTable {
    margin-top: -32pt;
  }
}

@media only screen and (max-width: 730px) {
  .hexTable {
    margin-top: -31pt;
  }
}

@media only screen and (max-width: 720px) {
  .hexTable {
    margin-top: -29pt;
  }
}


@media only screen and (max-width: 670px) {
  .hexTable {
    margin-top: -28pt;
  }
}

@media only screen and (max-width: 650px) {
  .hexTable {
    margin-top: -27pt;
  }
}

@media only screen and (max-width: 620px) {
  .hexTable {
    margin-top: -26pt;
  }
}

@media only screen and (max-width: 600px) {
  .hexTable {
    margin-top: -6vmin;
  }
}
