/* cursors from wikimedia commons, courtesy of lordalpha1 - https://en.m.wikipedia.org/wiki/File:Mouse-cursor-hand-pointer.svg */

* {
  box-sizing: border-box;
  background-color: green;
  cursor: url('/mouse.png'), auto;
}

div {
  padding: 1rem;
  width: 100%;
}

img {
  border: 2px solid black;
  box-shadow: 0 0 10px yellow;
  width: 50%;
  height: auto;
  margin: auto;
  display: block;
  transition: 10s;
}


img:hover {
  cursor: url('/image.png'), auto;
  filter: hue-rotate(360deg) contrast(100) saturate(100);
  width: 100%;
  box-shadow: 0 0 20px white;
  /* shake animation from w3schools. i love u w3schools: https://www.w3schools.com/howto/howto_css_shake_image.asp */
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }

  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }

  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }

  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }

  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }

  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }

  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }

  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

/* for stupid phones */

@media only screen and (max-width: 900px) {
  img {
    width: 100%;
  }
}