/* import unifont font */
@font-face {
  font-family: "Unifont";
  src: url("unifont-16.0.04.otf") format("opentype");
}

:root {
  --character-size: 24px;
  --min-character-width: 0.5;
  --character-text-align: left;
}

body {
  margin: 0;
  padding: 0;
  
  overflow: none;
  font-size: 16px;
  
  background: linear-gradient(45deg, #202020, #282828);
}


h1, h2, h3 {
  margin: 0;
}

p {
  margin: 0;
  font-size: inherit;
}

td {
  white-space: pre-wrap;
}

hr {
  border: 1px solid #707070;
  
  margin: 0 0 16px 0;
}

button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  
  background-color: #505050;
  border: 1px solid #707070;
  border-radius: 2px;
  box-shadow: 0 0 4px #00000080;
  
  margin-bottom: 16px;
  padding: 8px;
}

select {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  
  background-color: #505050;
  border: 1px solid #707070;
  border-radius: 2px;
  box-shadow: 0 0 4px #00000080;
  
  margin-bottom: 16px;
  padding: 8px;
}

input {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  
  background-color: #505050;
  border: 1px solid #707070;
  border-radius: 2px;
  box-shadow: 0 0 4px #00000080;
  
  width: 100px;
  
  margin-bottom: 16px;
  padding: 8px;
}

button:hover {
  background-color: #606060;
}

.root {
  font-family: "Unifont", sans-serif;
  color: #ffffff;
  
  margin: 0;
  padding: 0;
  
  width: 100vw;
  height: 100vh;
  
  overflow: none;
  
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
}

.sidebar {
  width: 300px;
  
  background: linear-gradient(45deg, #303030, #383838);
  border: 1px solid #404040;
  box-shadow: 0 0 8px #00000080;
  
  padding: 16px;
  
  z-index: 2;
  
  overflow: hidden;
}

.left-sidebar {
  order: 1;
}

.right-sidebar {
  order: 3;
}

.center-content {
  flex: 1;
  order: 2;
  
  padding: 16px;
  
  z-index: 1;
  
  overflow: auto;
}

@media (max-width: 1000px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .root {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    height: auto;
  }
  
  .left-sidebar {
    order: 1;
  }
  
  .right-sidebar {
    order: 2;
  }
  
  .center-content {
    order: 3;
    min-width: 50%;
    
    padding: 0 16px 0 16px;
  }
  
  .text-area-container {
    width: calc(100% - 32px);
    height: auto;
    
    margin: 0 16px 0 16px;
  }
}

@media (max-width: 700px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .root {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    height: auto;
  } 
  
  .sidebar {
    min-width: 50%;
  }
  
  .left-sidebar {
    order: 1;
  }
  
  .right-sidebar {
    order: 2;
  }
  
  .center-content {
    order: 3;
    min-width: 50%;
    
    padding: 0 16px 0 16px;
  }
  
  .text-area-container {
    width: calc(100% - 32px);
    height: auto;
    
    margin: 0 16px 0 16px;
  }
}

.text-area {
  background: linear-gradient(45deg, #282828, #303030);
  border: 1px solid #404040;
  box-shadow: 0 0 8px #00000080;
  color: #ffffff;
  
  padding: 8px;
  display: inline-block;
  white-space: pre-wrap;
  word-break: break-all;
  
  font-family: inherit;
  font-size: var(--character-size);
  
  width: calc(100% - 16px);
  min-height: calc(100vh - 80px);
  height: auto;
  
  resize: none;
  overflow: hidden;
}

.view-area {
  background: linear-gradient(45deg, #282828, #303030);
  border: 1px solid #404040;
  box-shadow: 0 0 8px #00000080;
  color: #ffffff;
  
  padding: 8px;
  display: inline-block;
  white-space: pre-wrap;
  word-break: break-all;
  
  font-size: var(--character-size);
  
  width: calc(100% - 16px);
  min-height: calc(100vh - 50px);
}

.unicode-character {
  display: inline-block;
  white-space: pre;
  
  /* border-radius: 2px; */
  
  min-width: calc(var(--min-character-width) * var(--character-size));
  text-align: var(--character-text-align);
}

.unicode-character-hover {
  background-color: #ffffff !important;
  color: #000000;
}

.unicode-character-selected {
  background-color: #093da7 !important;
  color: #ffffff;
}

.character-data-table {
  background-color: #404040;
  border: 1px solid #606060;
  border-radius: 2px;
  width: 100%;
  border-spacing: 1px;
}

td {
  border: 1px solid #606060;
  height: 24px;
}

tr:nth-child(odd) {
  background-color: #484848;
}

.character-data-property {
  font-size: 12px;
  width: 0;
}

.character-data-name {
  height: 52px;
}

.character-data-block {
  height: 36px;
}

.large-character-view-container {
  background-color: #404040;
  border: 1px solid #606060;
  border-radius: 2px;
  
  margin-bottom: 16px;
  
  width: 300px;
  height: 300px;
}

.large-character-view {
  overflow: hidden;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  width: 300px;
  height: 300px;
}

.clipboard-button {
  position: absolute;
}

.large-character {
  background-color: #505050;
  
  color: white;
  font-size: 192px;
}

.dotted-circle {
  color: #ffffff40;
}

.unicode-character-input {
  margin-left: 8px;
}

.text-info {
  white-space: pre-wrap;
}

.view-area ::selection {
  background: transparent;
}