/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1.5;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

h3, b {
  font-weight: bold;
}

h3 {
  font-size: 1.17em;
  margin-block-start: 1em;
  margin-block-end: 1em;
}

:root {
  --overlay: rgba(26, 29, 36, 0.9); /* Dark overlay matching background */
  --button-color: white;
  -webkit-font-smoothing: antialiased;
}

body.dark {
  --bg: #1a1d24;
  --warn: #bc9300;
  --card-bg: #322f3b;
  --background-highlight: #0000002c;
  --modal-bg: #242830;
  --modal-bg-secondary: #2c3039;
  --text: #ffffff;
  --text-title: #ffffff;
  --text-muted: #a6acb8;
  --border-button: #4a4b55;
  --buton-background: transparent;
  --border-neutral: #4a4b55;
  --shadow-color: rgb(0, 0, 0);
  --shadow-color-secondary: rgb(0, 0, 0);
  --face-shadow-color: #aeaeae4c;
  --share-color: var(--innocent);
  --speech-bg: #262626;
  --speech-border: rgb(172, 172, 172);
  --speech-color: rgb(221, 221, 221);
  --input-border-color: white;
  --input-bg-color: black;
  --input-text-color: white;
  --tag-color: rgb(255, 255, 255, 0.04);
}

body.theme-default {
  --tag-color-2: red;
  --tag-color-3: rgb(0, 255, 0);
  --tag-color-1: #ffff00;
}

body.theme-acc-1 {
  --tag-color-2: #00ffff;
  --tag-color-3: #ff00ff;
  --tag-color-1: #ffff00;
}

body.theme-default.dark {
  --innocent: #58a284;
  --criminal: #c66464;

  --background-innocent: rgb(38, 77, 59);
  --background-highlight-innocent: rgb(29, 64, 48);
  --border-innocent: rgb(46, 102, 76);

  --background-criminal: #5c2235;
  --background-highlight-criminal: #501d2e;
  --border-criminal: #8b2a53;

  --background-innocent-consumed: rgb(38, 77, 59); /*#1a352e;*/
  --background-highlight-innocent-consumed: rgb(29, 64, 48); /*#142d26;*/
  --background-criminal-consumed: #5c2235; /*#411b2b;*/
  --background-highlight-criminal-consumed: #501d2e; /*#371624;*/
  --text-innocent: white;
  --text-criminal: white;

  --button-innocent: #58a284;
  --button-criminal: #c66464;
  --button-innocent-hover: #58a2843b;
  --button-criminal-hover: #c664644f;
}

body.theme-acc-1.dark {
  --innocent: #36a4df;
  --criminal: #d3c76e;

  --background-innocent: #074262;
  --background-highlight-innocent: #0f374d;
  --border-innocent: #0d6da0;

  --background-criminal: #413910;
  --background-highlight-criminal: #362f0d;
  --border-criminal: #766a12;

  --background-innocent-consumed: #074262; /* #063148; */
  --background-highlight-innocent-consumed: #0f374d; /* #062b3e; */
  --background-criminal-consumed: #413910; /* #342d0c; */
  --background-highlight-criminal-consumed: #362f0d; /* #2a240a; */

  --button-innocent: #36a4df;
  --button-criminal: #d3c76e;
  --button-innocent-hover: #36a4df7e;
  --button-criminal-hover: #d3c76e8f;
}

body.light {
  --bg: #fff9ee;
  --warn: rgb(172, 116, 36);
  --card-bg: #e3d2b7;
  --background-highlight: #ebe3cd;
  --modal-bg: #e3d2b7;
  --modal-bg-secondary: #d6c8b2;
  --text: #4f5264;
  --text-title: #393c4d;
  --text-muted: #59556e;
  --border-button: #9e9ca7;
  --button-background: #afafaf47;
  --border-neutral: #f6f6f0;
  --shadow-color: rgb(164, 156, 155);
  --shadow-color-secondary: rgb(147, 121, 110);
  --face-shadow-color: #6c6c6c;
  --input-bg-color: #ffffff;
  --input-border-color: #ada292;
  --input-text-color: #383a4a;
  --share-color: #53a2c2;

  --speech-bg: #fbead1;
  --speech-border: rgb(150, 108, 93);
  --speech-color: rgb(150, 108, 93);

  --tag-color: rgba(0, 0, 0, 0.05);
}

body.theme-default.light {
  --background-innocent: #c1e2a3;
  --background-criminal: #f6c0a9;
  --border-innocent: #83b792;
  --border-criminal: #c88580;
  --background-highlight-innocent: #dcebb7;
  --background-highlight-criminal: #ffd2bf;
  --background-innocent-consumed: #c1e2a3; /*  #d8e4b0; */
  --background-criminal-consumed: #f6c0a9; /*  #f6d2bc; */
  --background-highlight-innocent-consumed: #dcebb7; /* #e5edcc; */
  --background-highlight-criminal-consumed: #ffd2bf; /* #fcdecb; */
  --text-innocent: #3a4b57;
  --text-criminal: #503247;
  --innocent: #a3e2b1;
  --criminal: #ee95a4;
  --button-innocent: #77bb5f;
  --button-innocent-hover: #45ad835e;
  --button-criminal: #ca7868;
  --button-criminal-hover: #c3568353;
}

body.theme-acc-1.light {
  --bg: #f8faff;
  --background-innocent: #97dbe6;
  --background-criminal: #eebddc;
  --border-innocent: #27b2cb;
  --border-criminal: #b094c6;
  --background-highlight-innocent: #aae8f2;
  --background-highlight-criminal: #f7cde8;
  --background-innocent-consumed: #97dbe6; /* #c9e6f2; */
  --background-criminal-consumed: #eebddc; /* #f5d1eb; */
  --background-highlight-innocent-consumed: #aae8f2; /* #d5f0fb; */
  --background-highlight-criminal-consumed: #f7cde8; /* #fbdcf3; */
  --text-innocent: #403a57;
  --text-criminal: #444469;
  --innocent: #97dbe6;
  --criminal: #eebddc;
  --button-innocent: #44b1c1;
  --button-innocent-hover: #83bec7ac;
  --button-criminal: #c861a2;
  --button-criminal-hover: #b584a391;
}

/* Global body styling updated */
html {
  background-color: var(--bg);
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Chalkboard SE", "Comic Sans MS", "Comic Sans", sans-serif;
}

#root {
  width: 100%;
}

:root {
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  line-height: 1.1;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

ul {
  text-align: left;
  padding-left: 30px;
}

li {
  margin: 10px;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

button {
  padding: 10px 16px;
  border: 2px solid var(--border-button); /* Changed from highlight */
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
  background-color: transparent; /* var(--button-background); */
  border-color: var(--border-button);
  margin: 4px;
}

button:focus {
  background-color: var(--border-button);
  border-color: var(--border-button);
  outline: none;
}

button:hover:not(:disabled) {
  @media (hover: hover) {
    &:hover {
      background-color: var(--border-button);
      border-color: var(--border-button);
      outline: none;
    }
  }
}

input[type="text"],
input[type="email"] {
  margin: 5px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid var(--input-border-color);
  background-color: var(--input-bg-color);
  color: var(--input-text-color);
}
