@import url("./md-style.css");

@keyframes BEAR5-FLASH {
  0% {
    background-color: red;
  }
  50% {
    background-color: black;
  }
  100% {
    background-color: red;
  }
}

@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);
  }
}

.BEAR5-FLASH {
  animation-name: BEAR5-FLASH;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.shake {
  animation-name: shake;
  animation-duration: 0.1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

#BEAR5-TEXT {
  font-family: "Creepster", system-ui;
  color: red;
  animation-name: shake;
  animation-duration: 0.1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  position: fixed;
  font-size: 8em;
  left: 25%;
  top: 40%;
  margin: 0;
  text-align: center;
  width: max-content;
  -webkit-text-stroke: 2px black; /* Why is this not a standard CSS property 💔 */
  z-index: 9999;
  pointer-events: none;
}

:root {
  --background-color: var(--md-sys-color-surface);
  --text-color: var(--md-sys-color-primary);
  --button-background-color: var(--md-sys-color-surface-container);
  --button-border-color: var(--md-sys-color-surface-container);
  --button2-background-color: var(--md-sys-color-surface-container);
}

body {
  font-family: "Roboto";
  touch-action: manipulation;
  background-color: var(--background-color);
  color: var(--md-sys-color-on-surface-variant);
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  text-align: center;
}

.button {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  float: center;
}

.button img {
  max-width: 100%;
  height: auto;
  position: relative;
  top: 0;
  left: 0;
}

#BEAR5 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  background-color: transparent;
}

.button:active,
#BEAR5:active {
  transform: scale(0.95);
  filter: drop-shadow(0 0 15px black);
}

.button:focus {
  outline: none;
  background-color: transparent !important;
}

#JohngradeContainer,
#AccessoryContainer {
  flex: 1;
  flex-direction: row;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.Johngrade {
  padding: 5px;
  width: 150px;
  text-align: center;
  background-clip: padding-box;
}

.Johngrade button {
  border-radius: 5%;
  border: 3px solid var(--button-border-color);
  color: var(--text-color);
  background-color: var(--button2-background-color);
}

.Johngrade img {
  width: 150px;
  height: auto;
  anchor-name: --accessory-anchor;
}

.Johngrade .owned {
  color: green;
  background-color: lightgreen;
  font-weight: bold;
}

.Johngrade .equipped {
  color: blue !important;
  background-color: lightblue !important;
  font-weight: bold;
  pointer-events: none;
}

#ButtonContainer {
  position: relative;
  display: inline-block;
}

/* CSS was created by the devil who actually likes ts */
#AccessoryImage {
  position: absolute;
  pointer-events: none;
  top: 0;
  right: 5px;
  bottom: 50px;
  width: 50%;
  height: auto;
  z-index: 2;
  display: block;
  margin: auto;
}

details,
.container {
  background-color: var(--md-sys-color-surface);
  border: 3px solid var(--button-border-color);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
  gap: 20px;
  display: flex;
}

details {
  display: inline-block;
}

.container button {
  font-size: 3em;
  border: 5px solid var(--button-border-color);
  background-color: var(--button2-background-color);
}

details summary {
  font-weight: bold;
  cursor: pointer;
  outline: none;
  font-size: 2em;
}

.hide {
  display: none !important;
}

.lowtaperfade {
  width: 16px;
  height: auto;
}

.darken {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #00000035;
  z-index: 10;
  justify-content: center;
  align-items: center;
  display: flex;
}

#settingsContainer div {
  display: flex;
  flex-direction: column;
  margin: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
  gap: 10px;
  overflow-y: auto;
}

#settingsGodfather { 
  height: 80%;
  width: 90%;
  position: relative;
  display: flex;
}

label {
  text-align: center;
  text-justify: center;
  display: inline-block;
  margin-left: 10px;
  font-weight: bold;
}

label p {
  font-weight: normal;
}

#settingsButtonsContainer {
  display: flex;
  margin-left: auto;
  flex-direction: row;
  gap: 10px;
  align-items: right;
  justify-content: flex-end;
  bottom: 0;
  right: 0;
  position: absolute;
  margin: 1em;
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.9);
}