:root{
  --side-nav-a-color: #f44336;
  --text-area-focus-color: #2196F3;
  --button-move-color: white;
  --page-title-bg-color: #1E88E5;
  --page-title-color: white;
  --header-color:white;
  --header-bg-color: #2196f3;
  --header-2-bg-color: white;
  --header-3-bg-color: white;
  --bottom-nav-bg-color: white;
  --bottom-nav-link-color: #444444;
  --side-nav-main-bg-color: white;
  --side-nav-main-a-color: #818181; 
  --side-nav-main-header-color: white;
  --side-nav-main-header-bg: #0099ff;
  --side-nav-note-bg: white;
  --side-nav-help-bg: white;
}
body {
  font-family: sans-serif;
  margin: 2px;
}
.container-editor {
  width: 100%;
  height: 100%;
  position: absolute;
  padding-top: 120px;
  padding-bottom: 80px;
  cursor: auto;
  overflow: auto;
  user-select: none;
}
svg {
  cursor: crosshair;
  border: 2px solid #f44336;
}
img {
  z-index: -1;
  position: absolute;
}
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
 /* src: url(https://fonts.gstatic.com/s/materialicons/v47/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format('woff2');
  */
  src: local('Material Icons'), local('MaterialIcons-Regular'), url(fonts/Material-Icons.woff2);
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
header {
  position: fixed;
  top: 0px;
  right: 0px;
  left: 0px;
  z-index: 9999;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  background-color: var(--header-bg-color);
  color: var(--header-color);
  display: flex;
  overflow-x: auto;
}
header-2 {
  position: fixed;
  top: 54px;
  right: 0px;
  left: 0px;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--header-2-bg-color);
  z-index: 99;
}
header-3 {
  position: fixed;
  top: 110px;
  right: 0px;
  left: 0px;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--header-3-bg-color);
  z-index: 99;
  text-align: center;
}
.color-palette {
  width: 20%;
  display: inline;
}

.toolbar-button{
  display: inline;
  margin: 10px;
}
.toolbar-button:active{
  opacity: 0.5;
}
textarea:focus {
  outline: #2196F3 auto 2px;
  border-color: var(--text-area-focus-color);
}
/* https://codepen.io/dcode-software/pen/wvagWEP */
.nav {
  position: fixed;
  bottom: 0;
  right: 0px;
  left: 0px;
  width: 100%;
  height: 55px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-color: var(--bottom-nav-bg-color);
  display: flex;
  overflow-x: auto;
  z-index: 999;
}
.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-width: 50px;
  overflow: hidden;
  white-space: nowrap;
  font-family: sans-serif;
  font-size: 13px;
  color: var(--bottom-nav-link-color);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.1s ease-in-out;
}
.nav__link:active {
  background-color: #eeeeee;
}
.nav__link--active {
  color: #009578;
}
.nav__icon {
  font-size: 18px;
}

.more-tools-nav {
  position: fixed;
  bottom: 55px;
  right: 0px;
  left: 0px;
  width: 100%;
  height: 55px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  background-color: var(--bottom-nav-bg-color);
  display: flex;
  overflow-x: auto;
  z-index: 998;
}
.more-tools-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-width: 50px;
  overflow: hidden;
  white-space: nowrap;
  font-family: sans-serif;
  font-size: 13px;
  color: var(--bottom-nav-link-color);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.1s ease-in-out;
}
.more-tools-nav__link:active {
  background-color: #eeeeee;
}
.more-tools-nav__link--active {
  color: #009578;
}
.more-tools-nav__icon {
  font-size: 18px;
}

.sidenav-main {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  overflow-x: hidden;
  transition: 0.5s;
  text-align:center;
  background: var(--side-nav-main-bg-color);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.2);
}
.sidenav-main .closebtn {
  top: 0;
  font-size: 36px;
  user-select: none;
  position: absolute;
  right: 0;
  color: #004879;
}
.sidenav-main a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: var(--side-nav-main-a-color);
  display: block;
  transition: 0.3s;
}
.sidenav-header {
  height: 120px;
  background: var(--side-nav-main-header-bg);
  vertical-align: middle;
  text-align: center;
  line-height: 160px;
  color: var(--side-nav-main-header-color);
  font-size: 24px;
  font-weight: bold;
}
.sidenav-version {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  bottom: 0px;
  color: white;
  width: 100%;
  background: #0099ff;
  height: 45px;
  line-height: 7px;
}
.bottom-svg-div {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  bottom: 40px;
}
.card-added-msg-box {
  position: fixed;
  bottom: 60px;
  left: 0px;
  right: 0px;
  background-color: #66bb6a;
  text-align: center;
}
.card-added-msg{
  color: white;
}
#snackbar {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 10px;
  position: fixed;
  z-index: 1000;
  bottom: 60px;
  left: 0;
  right: 0;
  margin: 10px;
}
#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@-webkit-keyframes fadein {
  from {
     bottom: 0;
      opacity: 0;
 }
  to {
     bottom: 60px;
      opacity: 1;
 }
}
@keyframes fadein {
  from {
     bottom: 0;
      opacity: 0;
 }
  to {
     bottom: 60px;
      opacity: 1;
 }
}
@-webkit-keyframes fadeout {
  from {
     bottom: 60px;
      opacity: 1;
 }
  to {
     bottom: 0;
      opacity: 0;
 }
}
@keyframes fadeout {
  from {
     bottom: 60px;
      opacity: 1;
 }
  to {
     bottom: 0;
      opacity: 0;
 }
}
hr.thin {
  height:  1px;
  border: 0;
  color:#c0c0c0;
  background-color:#c0c0c0;
  width: 97%;
}
.sidenav-note {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  transition: 0.5s;
  text-align:center;
  background: var(--side-nav-note-bg);
}
.sidenav-note a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  display: block;
  transition: 0.3s;
}
.sidenav-note a:hover{
}
.sidenav-note .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  user-select: none;
}
.sidenav-view-note {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 999;
  top: 0;
  right: 0;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  text-align:center;
  background: white;
}
.sidenav-view-note .closebtn {
  position: absolute;
  top: 0;
  left: 25px;
  font-size: 36px;
  user-select: none;
}
.sidenav-view-note a {
  text-decoration: none;
  display: block;
  transition: 0.3s;
  color: #2196f3;
}
.sidenav-help {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  overflow-x: hidden;
  transition: 0.5s;
  text-align:center;
  background: var(--side-nav-help-bg);
  z-index: 999;
}
.sidenav-help .closebtn {
  position: absolute;
  top: 0;
  left: 25px;
  font-size: 36px;
  user-select: none;
}
.sidenav-help a {
  text-decoration: none;
  transition: 0.3s;
  color: var(--side-nav-a-color);
}
@media screen and (max-height: 450px) {
  .sidenav-note {
     padding-top: 15px;
 }
 .sidenav-view-note {
     padding-top: 15px;
 }
  .sidenav-note a {
     font-size: 18px;
 }
}
.input-note {
  margin: 8px;
}
.input-add-note {
  padding: 8px;
  width: 90vw;
  height: 20vh;
  border-width: 2px;
}
.anki-buttons {
}
.button {
  display:inline;
  cursor: default;
  user-select: none;
  width: 36px;
  height: 36px;
  font-size: 36px;
}
.button:active{
  opacity: 0.5;
}
.button-move {
  display:inline;
  cursor: default;
  user-select: none;
  width: 36px;
  height: 36px;
  background: #4CAF50;
  border-radius: 10px;
  padding: 6px;
  color: var(--button-move-color);
  font-size: 24px;
}
.button-move:active{
  opacity: 0.5;
}
input[type="file"] {
  display: none;
}
.page-title {
  text-align: center;
  font-size: 20px;
  background: var(--page-title-bg-color);
  color: var(--page-title-color);
  padding: 4px;
  margin: 4px;
  font-weight: bold;
}
.status-message {
  position: fixed;
  z-index: 10000;
  width: 100%;
  background: #F44336;
  color: white;
  text-align: center;
  font-size: 22px;
  bottom: 110px;
}
.help-sidebar {
  padding: 10px;
  padding-top: 30px;
  width:100%;
  margin-top: 20px;
}
td{
  padding: 10px;
  text-align: justify;
}
table {
  border-collapse: collapse;
  width: 100%;
}
tr:nth-child(odd) {
 background-color: #f2f2f2;
}
.settings-input-label {
  font-size: 20px;
  margin: 16px 16px 6px;
  text-align: left;
  color: #444444;
}
.settings-input {
  width: 90%;
  font-size: 20px;
  padding: 3px;
  color: #818181;
}
.label-design1 {
  font-size: 20px;
  color: #818181;
}
.help-side-nav-text {
  text-align: justify;
  padding: 14px;
  line-height: 30px;
}
.note-add-box {
  font-size: 24px;
  padding-top: 30px;
}
.button-2{
  color: white;
  background: red;
  padding: 2px;
  margin: 8px;
  border-radius: 10px;
  font-size: 24px;
}
#loading {
  position: absolute;
  left: 43%;
  top: 40%;
  display: inline-block;
  width: 80px;
  height: 80px;
  border: 3px solid #bbdefb;
  border-radius: 50%;
  border-top-color: #2196F3;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
  z-index: 10000;
}

@keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}

.pop-up {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 75%;
  height: 0;
  margin: auto;
  background-color: #f3f3f3;
  text-align: center;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}
