@font-face {
    font-family: "innogyWEB-Light";
    src: url(../fonts/innogyWEB-Light.ttf);
    font-weight: 300;
}

@font-face {
    font-family: "innogyWEB-Regular";
    src: url(../fonts/innogyWEB-Regular.ttf);
}

@font-face {
    font-family: "innogyWEB-Medium";
    src: url(../fonts/innogyWEB-Medium.ttf);
    font-weight: 500;
}

@font-face {
    font-family: "innogyWEB-Bold";
    src: url(../fonts/innogyWEB-Bold.ttf);
    font-weight: bold;
}

:root {
    /*text colors*/
    --color-headline: #000000;
    --color-text: #ffffff;
    --color-green: #5fbb4a;
    --color-darkgreen: #398a27;
    --color-yellow: #fbc027;
    --color-orange: #F99C24;
    --color-lightOrange: #ff9f20;
    --color-darkorange: #d37e0e;
    --color-darkblue: #223366d8;

    /* fonts */
    --ff-regular: "innogyWEB-Regular";
    --ff-inno-medium: "innogyWEB-Medium";
    --ff-size: 1.125rem;
}


/* general types */

*{
    padding: 0px;
    margin: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--ff-regular);
  color: var(--color-text);
  font-size: var(--ff-size);
}

html, body {
  user-select: none;
  -webkit-text-size-adjust: none;
  -webkit-user-select: none;
  background-color: #000000;
}

h2{
  height: 1em;
  width: auto;
  margin-top: 0.7em;
  margin-bottom: 0.4em;
  margin-inline: 1.5em;
  font-size: 5em;
  line-height: normal;
  text-align: center;
  pointer-events: none;
}

button{
  border: 0;
  border-radius: 10em;
  
  text-align: center;
  font-size: 2em;
  pointer-events: auto;
  cursor: pointer;
  transition: background-color 0.2s ease-in;

  /* important! use this to prevent odd touch inputs like doube tap and scroll */
  touch-action: none;
}
  
button:hover
{
  transition: background-color 0.2s ease-out;
}

/* init fonts BEVORE using them in PIXI.js */

.dummy-font
{
  position: absolute;
  line-height: 0px;
  font-size: 0px;
}

#i-dummy-innogyWEB-Light
{
  font-family: "innogyWEB-Light";
}


#i-dummy-InnogyWEB-Regular
{
  font-family: "innogyWEB-Regular";
}

#i-dummy-innogyWEB-Medium
{
  font-family: "innogyWEB-Medium";
}

#i-dummy-InnogyWEB-Bold
{
  font-family: "innogyWEB-Bold";
}


/* targeted ids */

#i-pixi
{
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  /* border: 3px solid red; */
}

#i-pixi canvas{
  position: fixed;
  inset: 0;
  margin: auto;
  pointer-events: all;
}


/* general classes */

/* DEBUG  generic button for tests*/
.gen-button {
  position: absolute;

  left: 0;
  bottom: 0;

  padding: 10px;
  border-width: 0;
  border-radius: 5px;

  color: #fff;
  background-color: #1C77BC;
  font-family: var(--ff-regular);
  font-size: 18px;
  cursor: pointer;
}

/* DEBUG gen text for tests */
.debugtext{
  margin-inline: auto;
  font-size: 10em;
  width: 3ch;
  text-align: center;
  overflow-x: hidden;
}

.overlay{
  position: fixed;
  pointer-events: none;
  line-height: normal;
  inset: 0;
  margin: auto;
  font-size: inherit;
}

.sub-overlay{
  position: relative;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  font-size: inherit;
}

.full-screen-overlay
{
  width: 100%;
  height: 100%;
  font-size: inherit;
  pointer-events: none;
}

.green-button
{
  background-color: var(--color-green);
  font-size: 2.6em;
}


/* title screen */

.tut{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-darkblue);
  pointer-events: all;
  font-size: inherit;

} 

.tut p{
  padding-block: 12% 0;
  padding-inline: 10%;
  text-align: center;
  font-family: var(--ff-inno-medium);
  font-size: 1.36em;

}

.tut img{
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 20%;
}

.tut button{
  position: absolute;
  left: 10%;
  bottom: 10%;
  padding-inline: 0.6em;
  padding-block: 0.1em;
  font-size: 2.1em;
  font-family: var(--ff-inno-bold);
}

.start-button
{
  position: absolute;
  inset: 0;
  margin: auto;

  width: 18%;
  height: 13%;
}

.tut-open-button
{
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: 1.2em;
  height: 1.2em;
  background-color: #1C77BC;
  color: #ffffff;
  font-size: 1.55em;
  padding-right: 0.04%;
}

.tut-open-button:hover
{

  background-color: #155AA6;

}

/*level overlay*/
.count-down
{
  margin-top: 16%;
  line-height: normal;
  text-align: center;
  font-size: 6em;
  pointer-events: none;
}

/* Game Over Screen */
.send-highscore-form
{
  margin-block: 1em 2.5em;

  display: flex;
  justify-content: start;
  flex-direction: column;
  align-items: center;
  font-size: inherit;
  pointer-events: all;
}

.highscore-input
{
  margin-bottom: 0.6em;
  color: var(--color-orange);
  width: 26ch;
  height: 1.5em;
  border-radius: 0.5em;
  border: 0;
  background: #efefef;
  display: block;
  font-size: 2em;
  line-height: normal;
  text-align: center;
  pointer-events: all;
}

.highscore-input::placeholder
{
  color: var(--color-lightOrange);
}

.submit-button
{
  font-size: 2em;
  width: 18ch;
  height: 1.6em;
  cursor: pointer;
  background-color: var(--color-green);
  border: 0;
  border-radius: 10em;
  pointer-events: all;
  transition: background-color 0.3s ease-in;
}

.submit-button:hover
{
  background-color: var(--color-darkgreen);
  transition: background-color 0.3s ease-out;
}

.add-buttons-div
{
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  align-items: center;
  line-height: normal;
  font-size: inherit;
  pointer-events: all;
}

.play-again-button
{
  width: 15ch;
  height: 1.6em;
  margin-right: 2.5em;
  padding-top: 0.1em;

  border: 0;
  border-radius: 10em;

  display: block;
  font-size: 1.5em;
  line-height: normal;
  cursor: pointer;
  background-color: var(--color-orange);
  transition: background-color 0.2s ease-in;
}

.play-again-button:hover
{
  background-color: var(--color-darkorange);
  transition: background-color 0.2s ease-out;
}

.invite-friends{
  position: relative;
  font-size: inherit;
}

.invite-friends-button
{
  position: relative;

  width: 15ch;
  height: 1.6em;
  margin-left: 2.5em;
  padding-top: 0.1em;

  border: 0;
  border-radius: 10em;

  display: block;
  font-size: 1.5em;
  line-height: normal;
  cursor: pointer;
  background-color: var(--color-orange);
  transition: background-color 0.2s ease-in;
}

.invite-friends-button:hover
{
  background-color: var(--color-darkorange);
  transition: background-color 0.2s ease-out;
}

.tooltiptext {
  z-index: 1;
  display: block;
  opacity: 0;

  top: 110%;
  right: 15%;
  position: absolute;
  border-radius: 10em;
  padding-block: 0.3em;
  padding-inline:  0.4em;
  
  background-color: #555;
  color: #fff;
  text-align: center;
  line-height: normal;
  font-size: 1em;

  transition: opacity 0.3s;
  pointer-events: none;
}

/* Highscore Screen */
.highscore-list
{
  margin-inline: 3em;
  margin-block: 2em 2em;
  padding: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5,1fr);
  grid-auto-flow: column;

  list-style: none;
  font-size: inherit;
}

.highscore-entry
{
  display: flex;
  justify-content: start;
  flex-direction: row;
  align-items: center;
  line-height: normal;
  font-size: inherit;
  font-family: var(--ff-regular);
}

.highscore-entry p
{
  line-height: normal;
  font-size: 1.5em;
}

.highscore-entry-number
{
  width: 8ch;
  overflow: visible;

  font-size: inherit;
  text-align: right;
  direction: rtl;
  color: var(--color-orange);
}

.highscore-entry-name
{
  width: 16ch;
  margin-left: 0.5em;
  overflow: visible;
  color: white;
  font-size: inherit;
}