@import url('./pages/agentPage.css');
@import url('./components/targetCard.css');
@import url('./components/navbar.css');
@import url('./components/targetProfile.css');
@import url('./components/combatDisplay.css');
@import url('./pages/loginPage.css');
@import url('./pages/createPage.css');
@import url('./pages/shopPage.css');
@import url('./background-cover.css');
@import url('./components/notification.css');
@import url('./components/footer.css');
@import url('./pages/rulesPage.css');
@import url('./components//sidebar.css');
@import url('./components/loading.css');
@import url('./components//displayCode.css');

html {
  font-family: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  scrollbar-color: red auto;
}

::-webkit-scrollbar-thumb {
  background-color: red;
}

:root {
  --main: black;
  --main-hover: rgb(70, 70, 70);
  --secondary: white;
  --red: rgb(246, 26, 66);
  --red-hover: rgb(244, 67, 99);
  --border: rgb(77, 77, 77);
}

body {
  background-color: var(--main);
  color: var(--secondary);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100%;
}

#app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  width: 814px;
  max-width: 100%;
  min-height: 100%;
  margin: 0px auto;
  padding: 10px;
}

.title {
  text-align: center;
  font-size: 3rem;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
}

button {
  padding: 8px;
  background-color: var(--red);
  color: var(--secondary);
  border: 2px solid var(--red);
  outline: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
}

button:hover {
  transform: scale(0.97);
  opacity: 0.9;
}

button:disabled {
  background-color: rgb(115, 115, 115);
  color: black;
  border-color: rgb(115, 115, 115);
  opacity: 0.6;
  cursor: not-allowed;
}

button:disabled:hover {
  background-color: rgb(80, 80, 80);
  color: black;
  border-color: rgb(80, 80, 80);
  transform: scale(1);
  opacity: 0.6;
}

button.close {
  background-color: var(--main);
}

a {
  color: var(--red);
}

a:hover {
  color: var(--red-hover);
  scale: 0.97;
}

input,
textarea,
select {
  font-size: 16px !important;
}

input {
  padding: 5px 10px;
}

input::placeholder {
  color: rgb(180, 180, 180);
}

/* prompt message */
.prompt-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  /* blocking all events behind it */
  pointer-events: all;
}

.prompt-message {
  position: fixed;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90%;
  min-height: 150px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgb(50, 50, 50));
  border: 1px solid var(--border);
  color: var(--secondary);
  z-index: 1000;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.8);
}

.prompt-message-string {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  text-transform: none;
  text-align: center;
}

.prompt-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: auto;
}

.prompt-buttons button {
  width: 80px;
}

.prompt-buttons .prompt-close {
  /* display: none; */
  background-color: gray;
  border: 1px solid gray;
}

@keyframes noise {
  0% {
    transform: translateX(15%) translateY(15%);
  }
  100% {
    transform: translateX(-15%) translateY(-15%);
  }
}

@keyframes flicker {
  0% {
    opacity: 100%;
  }
  30% {
    opacity: 92%;
  }
  100% {
    opacity: 100%;
  }
}

@keyframes shift {
  0% {
    transform: translateX(0.05%) translateY(-0.03%);
  }
  30% {
    transform: translateX(-0.03%) translateY(0.03%);
  }
  100% {
    transform: translateX(0.05%) translateY(-0.03%);
  }
}

/* mobile */
@media (max-width: 768px) {
  .page {
    width: 440px;
  }

  .title {
    font-size: 2rem;
  }
}
