body{
  margin:0;
  padding:0;
  font-family: sans-serif;
  background-color: var(--background-primary);
  color: var(--text-color);
}

button {
  border:none;
  padding: 0.5em;
  border-radius:5px;
  transition: background-color 0.1s,color 0.1s;
  
  background-color:var(--interactive-idle);
  color:var(--text-color);
}

button:hover {
  background-color:var(--interactive-hover);
}

.app {
  width:100vw;
  height:100vh;
}

.elements{
  height:100vh;
  width:80vw;
  max-width: calc(100vw - 300px);
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  overflow:auto;
  float:left;
}

.element{
  margin:10px;
  height:100px;
  width:100px;
  overflow: hidden;
  text-align: center;
  word-break: break-all;
  border-radius: 10px;
  border: 3px solid;

  transition: filter 0.2s;
}

.element:hover{
  filter: brightness(50%);
}

.placeholder_element {
  margin:10px;
  height:100px;
  width:100px;
  overflow: hidden;
  text-align: center;
  word-break: break-all;
  border-radius: 10px;
  border: 3px solid;
}

.select_element{
  transition: 0.2s;
}

.select_element:hover{
  opacity: 0.5;
  transform:scale(1.1);
}

.chat {
  min-width: 300px;
  width:20vw;
  height:50vh;
  background-color:var(--background-secondary);
  float:left;
}

.bottom_menu {
  min-width: 300px;
  width:20vw;
  height:calc(50vh - 40px);
  background-color:var(--background-secondary);
  float:left;
  overflow-x: hidden;
  overflow-y: auto;
}

.settings_menu {
  min-width: 300px;
  width:20vw;
  height:40px;
  background-color:var(--background-secondary);
  float:left;
  display:flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.settings_menu_items {
  flex-grow: 1;
}

.selected {
  animation: shake 1s 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); }
}

.popup_background {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-color: rgba(0,0,0, 0.5);
  display:flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.popup {
  padding:20px;
  border-radius: 20px;
  background-color:var(--background-floating);
  overflow:auto;
  z-index: 2;
}

.popup_close_button {
  margin-top:-20px;
  margin-right:-20px;
  float:right;
  display:inline-block;
  padding:0.6em 1.6em;
  border-radius:0px 20px 0px 5px;
  box-sizing: border-box;
  text-decoration:none;
  font-family:'Roboto',sans-serif;
  font-weight:300;
  color:var(--text-color);
  background-color:var(--interactive-idle);
  text-align:center;
}

.submit_button {
  margin:10px;
}

.elements_suggest_flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.break {
  flex-basis: 100%;
  width: 0;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.color_container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}


.color_selector {
  border-radius:4px;
  border:2px solid;
  margin:4px;
  transition: 0.2s;
}

.color_selector:hover{
  transform: scale(1.5);
  z-index: 1;
}

textarea {
  resize: none;
  width:100%;
  background-color:var(--text-box);
  color:var(--text-color);
  outline:none;
}

.dark_theme {
  --background-primary:#36393f;
  --background-secondary:#2f3136;
  --background-floating:#292b2f;
  --interactive-idle:#292b2f;
  --interactive-hover:#35373d;
  --text-color:#FFFFFF;
  --text-muted:#72767d;
  --text-box:#40444b;
}

.light_theme {
  --background-primary:#ffffff;
  --background-secondary:#f2f3f5;
  --background-floating:#ffffff;
  --interactive-idle:#ebedef;
  --interactive-hover:#4f5660;
  --text-color:#000000;
  --text-muted:#747f8d;
  --text-box:#ebedef;
}

button{
   outline:none;
}

button::-moz-focus-inner {
   border: 0;
}

input {
  background-color: var(--text-box);
  border:0px;
  color:var(--text-color);
}

.chat_elements {
  width:100%;
  max-height:calc(100% - 30px);
  height:90%;
  overflow-x: hidden;
  overflow-y: auto;
  word-break:break-all;
}

.chat_element {
  background-color:var(--background-secondary);
}

.chat_element:hover {
  background-color:var(--interactive-hover);
}

.chat_element_profile {
  display: flex;
  flex-direction: row;
  margin-bottom: -20px;
}

.chat_input {
  width:100%;
  min-height: 30px;
  height:5%;
  z-index: 1000;
}

input[type="text"], input[type="password"], textarea, select {
  outline: none;
}

[contenteditable] {
  outline: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border: 0px none #ffffff;
  border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.5);
}

::-webkit-scrollbar-track {
  border: 0px none #ffffff;
}
