@font-face {
  font-family: myfont2;
  src: url("font.ttf");
}

#startGame img{
	width: 10vw;
	height:15vh;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
	font-family: myfont2, sans-serif;
  touch-action: none;
	-ms-touch-action: none;
	-webkit-touch-callout: none;
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#gundrop{
  display: block;
  position: absolute;
  right: 1vw;
  top: 1vh;
  width: 25vw;
  border-radius: 10px;
  overflow: hidden;
}

#pcui2{
  position: absolute;
  text-align: center;
  width: 10vw;
  bottom: 5vh;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

#pcui2 img{
  max-width: 25%;
  height: 5vh;
}

.gditem{
  display: block;
  width: 100%;
  height: 7vh;
  background-color: rgba(205, 204, 208, 0.46);
  cursor: pointer;
  font-size: 3vw;
  color: white;
  }

.gditem:hover{
  background-color: rgba(205, 204, 208, 0.9);
}

.gditem:active{
  background-color: rgba(205, 204, 208, 1);
}

.gditem canvas{
  float:left;
  height: 7vh;
  width: auto;
  max-width: 60%;
}

@keyframes anim228 {
  0% {
    filter: brightness(100%);
  }
  50% {
    filter: brightness(150%);
  }
  100% {
    filter: brightness(100%);
  }
}

canvas {
    display: block;
}

.inventory {
  padding-left: 2vw;
  padding-right:2vw;
  padding-top:2vh;
  padding-bottom:2vh;
  position: absolute;
  left: 0px;
  top:0px;
}

.inventory > *
{
  display: inline-block;
}

.stats {
  padding-left: 2vw;
  padding-right:2vw;
  padding-top:2vh;
  padding-bottom:2vh;
  position: absolute;
  left: 0px;
  bottom: 0px;
}

.joy{
  position: absolute;
  left: 2vw;
  bottom: 6vh;
  width: 5vw;
  height: 5vh;
  display: block;
  background-image: url("textures/ring");
}

.joystick-container {
  position: absolute;
  top: 50vh;
  transform: translateY(-50%);
  left: 2vw;
  width: 150px;
    height: 150px;
    border: 2px solid rgb(62, 62, 62);
    border-radius: 50%;
    box-shadow: 0 0 10px rgb(67, 222, 113);
  }

  .joystick {
    position: absolute;
    width: 75px;
    height: 75px;
    background-color: rgba(108, 177, 129,0.5);
    border-radius: 50%;
    box-shadow:0 0 10px rgb(108, 177, 129);
  }

  .shootbtn{
    position: absolute;
    bottom: 20vh;
    right: 5vw;
    width: 18vw;
    height: 25vh;
    text-align: center;
  }

  .shootbtn:active{
    filter: invert(25%);
  }

  .shootbtn img{
width: 100%;
height: 100%;
pointer-events: none;
  }

h2, h3 {
  color: #333;
}

.weapons, .perks, .stats {
  margin-bottom: 2vh;
}

.item {
  width: 4.5vw;
  height: 5.5vh;
  border: 1px solid #CCC;
  border-radius: 8px;
  margin-right: 10px;
  display: inline-block;
}

.item img, .dice-container img,.item canvas
{
  width: 4.5vw;
  height: 5.5vh;
}

.weapons .item
{
  background-color: rgba(255, 255, 255, 0.4);
}
.perks .item
{
  background-color: rgba(100, 100, 0, 0.7);
}

.stats .range{
	font-size:0.9vw;
}

.range {
  position: relative;
  display: inline-block;
  background-color: #333;
  width: 10vw;
  height: 3vh;
  transform: skew(30deg);
  text-shadow:2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white;
  margin-bottom: 3vh;
}
.range:before {
  --width: calc(var(--p) * 1%);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: 0;
  -webkit-animation: load 0.5s forwards linear, glitch 2s infinite linear;
          animation: load 0.5s forwards linear, glitch 2s infinite linear;
}

#hpbar:before
{
    background-color: rgb(243, 82, 82);
}

#level:before
{
    background-color: rgb(35, 224, 89);
}

#ammo:before
{
    background-color: rgb(50, 156, 243);
}

#vbar:before
{
    background-color: rgb(134, 108, 236);
}

.lvlrange:before
{
    background-color: rgb(35, 224, 89);
}

.lvlprogbar:before
{
    background-color: rgb(35, 224, 89);
}

.lvlrange_rec:before
{
    background-color: rgb(50, 156, 243);
}

.lvlprogbar_rec:before
{
    background-color: rgb(50, 156, 243);
}

.range:after {
  counter-reset: progress var(--p);
  content: counter(progress) "%";
  color: #000;
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%) skewX(-30deg);
  z-index: 1;
}
.range__label {
  transform: skew(-30deg) translateY(-100%);
  line-height: 1.5;
}

@-webkit-keyframes load {
  to {
    width: var(--width);
  }
}

@keyframes load {
  to {
    width: var(--width);
  }
}
@-webkit-keyframes glitch {
  0%, 5% {
    transform: translate(0, 0);
  }
  1% {
    transform: translate(-5%, -10%);
  }
  2% {
    transform: translate(10%, 30%);
  }
  3% {
    transform: translate(-43%, 10%);
  }
  4% {
    transform: translate(2%, -23%);
  }
}
@keyframes glitch {
  0%, 5% {
    transform: translate(0, 0);
  }
  1% {
    transform: translate(-5%, -10%);
  }
  2% {
    transform: translate(10%, 30%);
  }
  3% {
    transform: translate(-43%, 10%);
  }
  4% {
    transform: translate(2%, -23%);
  }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  z-index: 50;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.overlay .content {
    text-align: center;
}

.overlay h1 {
    color: white;
    font-size: 5vh;
	margin: 0;
	padding:0;
}

.overlay p {
    color: white;
    font-size: 4vh;
	margin: 0;
	padding:0;
}

.overlay button {
    background-color: #4fb74c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 2vh;
}

.overlay ul {
    list-style: none;
    color: white;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.overlay li {
    margin-bottom: 10px;
}

.dice-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dice {
    width: 12.5vw;
  height: 20.5vh;
    background-color: rgba(0,0,0,0.6);
    margin: 0 10px;
}

.selectdice {
    background-color: rgba(0,255,0,0.6);
    width: 12.5vw;
  height: 20.5vh;
    margin: 0 10px;
}

.dice img,.selectdice img {
  width: 100% !important;
  height: 100% !important;
}

.dice:hover{
  cursor:pointer;
  background-color: rgba(255,255,255,0.6);
}

.game{
  width: auto;
  height: 16vh;
  display: inline-block !important;
  margin-left: 0.25vw !important;
  margin-right: 0.25vw !important;
  cursor: pointer;
}

.game img{
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transition: filter 0.2s;
}

.game img:hover{
  filter: brightness(125%);
}
