//@import '/node_modules/element-plus/dist/index.css';
@import "/node_modules/hover.css";
@import "variable.scss";
@import "anim";

:root {
  --color-main-bg: rgb(226, 226, 226);
  --color-second-bg: rgb(238, 240, 244);
  --color-header-bg: white;
  --color-tooltip-bg: white;
  --color-font-1: black;
  --color-font-2: gray;
  --color-font-active-1: white;
  --color-font-active-2: whitesmoke;
  --color-item-bg: white;
  --color-item-hover: white;
  --color-item-active: rgb(75, 110, 175);
  --color-main-active: rgb(12, 140, 233);
  --toolbar-width: 700rem;
  //--toolbar-width: 50vw;
}

html[data-theme='dark'] {
  //--color-main-bg: rgba(0, 5, 24, 1);
  --color-main-bg: rgba(14, 18, 23, 1);
  //--color-main-bg: rgba(17,24,39, 1);
  --color-second-bg: rgb(60, 63, 65);
  --color-header-bg: rgb(60, 63, 65);
  //--color-tooltip-bg: rgb(60, 63, 65);
  --color-tooltip-bg: #252525;
  --color-font-1: white;
}

$anim-time: 0.3s;
.anim {
  transition: background $anim-time, color $anim-time;
}


$font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  color: $font-color;
  font-family: $font-family;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  width: 100%;
  height: 100%;
}

a {
  color: $main;
  text-decoration: none;
}

.base-textarea {
  flex: 1;
  font-family: $font-family;
  font-size: 18rem;
  outline: none;
  border: 1px solid transparent;
  border-radius: 6rem;
  padding: 8rem 10rem;
  transition: all .3s;
  min-height: 20rem;
  width: 100%;
  box-sizing: border-box;

  &:focus {
    border: 1px solid var(--color-main-active);
  }

  &[readonly] {
    cursor: not-allowed;
    opacity: .7;
  }
}


::-webkit-scrollbar {
  width: 8rem;
  height: 10rem;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 2rem;
}

::-webkit-scrollbar-thumb {
  background: $second;
  border-radius: 10rem;
}


/* 火狐美化滚动条 */
* {
  scrollbar-color: $second #f3f4f9;
  /* 滑块颜色  滚动条背景颜色 */
  scrollbar-width: thin;
  /* 滚动条宽度有三种：thin、auto、none */
}

footer {
  box-sizing: content-box;
  height: $footer-height;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: $space;
}

.pointer {
  cursor: pointer;
}

.flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}


.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}