/* Import Duplicate Styles */
@import "../styles/globals.css";
@import "../styles/loading.css";
@import "../styles/unplayable.css";
@import "../styles/go-back.css";

/* About Styling */
p
{
  font-family: "Ubuntu";
  font-weight: 600;
  position: fixed;
  color: var(--light-teal-color);
  background-color: rgba(32, 22, 13, 0.4);
  margin: 8px 0 0 10px; padding: 3px 14px;
  border: 3px solid black;
  border-radius: 10px;
  opacity: 0;
  user-select: none;
  animation: fadeIn 2.2s;
  animation-fill-mode: forwards;
}

@keyframes fadeIn { 100% { opacity: 1; } }

#mute
{
  position: fixed;
  width: 70px; height: 70px;
  padding: 8px; margin: 4px 7px;
  right: 0; top: 0;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
}

#mute:hover
{
  width: 80px; height: 80px;
  filter: brightness(0.6);
}

#tip
{
  font: bold 38px "Ubuntu";
  color: var(--light-teal-color);
  background-color: rgba(32, 22, 13, 0.5);
  border: 3px solid black;
  opacity: 0;
  border-radius: 10px;
  padding: 15px 25px;
  position: absolute;
  left: 50%; bottom: 50px;
  transform: translateX(-50%);
  animation: tipFadeIn 4s;
  animation-fill-mode: forwards;
  user-select: none;
}

@keyframes tipFadeIn { 0% { opacity: 0; } 75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tipFadeOut { 0% { opacity: 1; } 100% { opacity: 0; display: none; } }

#game-completed
{
  position: absolute;
  background:
    linear-gradient(to bottom, rgba(138, 102, 70, 0.65) 100%, transparent 0) top/100% no-repeat,
    linear-gradient(to top, transparent 86%, rgb(37, 27, 15) 0) top/100% no-repeat,
    linear-gradient(to bottom, transparent 86%, rgb(37, 27, 15) 0) top/100% no-repeat;
  width: 100%; height: 100%;
  opacity: 0; z-index: 1;
  animation: fadeIn .8s;
  animation-fill-mode: forwards;
}

span, h2
{
  position: absolute;
  text-align: center;
  align-content: center;
  display: grid;
  justify-items: center;
  width: 100%; height: 100%;
  opacity: 0; z-index: 2;
  animation: fadeIn 1.4s, increase .8s;
  animation-fill-mode: forwards;
  transform: scale(0.1);
}

@keyframes increase { 100% { transform: scale(1); } }

span
{
  font: bold 110px "Ubuntu", sans-serif;
  text-shadow: 5px 5px #129E74;
  color: #19DFA3;
  margin-top: -145px;
}

h2 { font: bold 60px "Ubuntu", sans-serif; }

#go-back
{ user-select: none; z-index: 3; }

#go-back:focus { outline: 0; }


/* Font resizing */
@media(max-width: 909px)
{
  span { font: bold 80px "Ubuntu", sans-serif; margin-top: -110px; }
  h2 { font: bold 45px "Ubuntu", sans-serif; }
}

@media(max-width: 679px)
{
  span { font: bold 60px "Ubuntu", sans-serif; margin-top: -90px; }
  h2 { font: bold 35px "Ubuntu", sans-serif; }
}


/* Unplayable Screen */
@media(max-width: 549px), (max-height: 419px)
{
  #unplayable
  {
    font: bold 40px "Montserrat", sans-serif;
    display: grid; padding: 30px; z-index: 3;
  }
}
