@import url(https://fonts.googleapis.com/css2?family=Vazirmatn:wght@200;400;700&display=swap);
* { padding: 0; margin: 0; }
:root {
  --background: #f9f9f9;
  --text-color: #000000;
  --hoverbg: hsl(0, 0%, 15%);
  --normalhoverbg: rgb(0, 0, 0, 0.1);
  --toggle: #e0e0e0;
  --light: #666666;
  --border: hsl(0,0%,81%);
  --tabg: hsl(0,0%,100%);
  --wlsbg: #ffffff;
  --headerbg: rgba(255, 255, 255, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --text-color: #ffffff;
    --hoverbg: hsl(0, 0%, 85%);
    --normalhoverbg: rgb(255, 255, 255, 0.1);
    --toggle: #202020;
    --light: #cccccc;
    --border: hsl(0,0%,21%);
    --tabg: hsl(0,0%,10%);
    --wlsbg: #0a0a0a;
    --headerbg: rgba(0, 0, 0, 0.8);
  }
}
button { all: unset; }
button:hover { cursor: pointer; }
a { all: unset; color: var(--light); }
a:hover { cursor: pointer; }
body {
  background-color: var(--background);
  color: var(--text-color);
  font-family: "Vazirmatn", -apple-system, "system-ui", "Segoe UI", sans-serif;
  display: flex;
  height: 100vh;
}
aside {
  background-color: var(--background);
  max-height: 100%;
  width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-inline-end: 1px solid var(--toggle);
  padding: 1rem;
}
input {
  all: unset;
  border: 2px solid var(--border);
  padding: 0.6rem;
  border-radius: 0.6rem;
}
input:focus { border: 2px solid; }
svg { display: block; }
.wlbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--text-color);
  color: var(--background);
  padding: 0.6rem;
  border-radius: 0.6rem;
  text-align: center;
}
.wlbtn:hover { background-color: var(--hoverbg); }
.normalbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  padding: 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--text-color);
}
.normalbtn:hover { background-color: var(--normalhoverbg); }
.langs { display: flex; gap: 6px; }
.lang { padding: 0.3rem; }
.lang:hover { cursor: pointer; }
.active { text-decoration: underline; text-decoration-style: dotted; }
.logo { font-size: 20px; }
h1 { all: unset; font-size: 3rem; }
h2 { padding-top: 1rem; font-size: 1rem; }
.toggle { background-color: var(--toggle); padding: 0.3rem; border-radius: 2px; }
.hero {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.container {
  height: 100%;
  background-image: linear-gradient(to top, var(--background), rgb(51, 51, 51, 0));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.textcontainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.containerdash {
  height: 100%;
  background-image: linear-gradient(to top, var(--background), rgb(51, 51, 51, 0));
  padding: 0.3rem;
}
.recordcontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 9px;
  background-color: var(--wlsbg);
}
.btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9px;
  padding: 1rem;
  transition: 0.15s ease-in-out;
}
.btns:hover { background-color: var(--toggle); }
.btnsselected {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9px;
  padding: 1rem;
  background-color: var(--toggle);
}
@media only screen and (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 0.9rem; }
}
header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.hidden { visibility: hidden; }
.animated {
  border: 2px solid red;
  -webkit-animation: border-color-change 3s infinite;
  animation: border-color-change 3s infinite;
}
@keyframes border-color-change {
  0% { border-color: red; }
  50% { border-color: blue; }
  100% { border-color: red; }
}
.recordsec {
  border: 2px solid;
  width: 50px;
  height: 50px;
  margin-top: 1rem;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--background);
  border-top: 1px solid var(--toggle);
}
.textarea-container {
  position: relative;
  width: 100%;
  height: 300px;
}
textarea {
  font-family: "Vazirmatn", -apple-system, "system-ui", "Segoe UI", sans-serif;
  width: 100%;
  height: 100%;
  resize: none;
  font-size: 21px;
  padding: 10px 10px 30px 15px;
  box-sizing: border-box;
  background-color: var(--tabg);
  color: var(--text-color);
  border: 1px solid var(--border);
  border-radius: 9px;
}
textarea:focus { border: 1px solid var(--text-color); }
textarea:focus, input:focus { outline: none; }
.copyicon {
  position: absolute;
  bottom: 10px;
  left: 15px;
  width: 24px;
  height: 24px;
  stroke: var(--border);
  background-color: var(--tabg);
  border-radius: 3px;
}
.copyicon:hover { stroke: var(--light); }
.open {
  font-size: 30px;
  cursor: pointer;
  padding: 1rem;
  display: none;
  top: 0px;
  position: fixed;
  z-index: 9;
}
.close {
  font-size: 30px;
  display: none;
}
@media only screen and (max-width: 900px) {
  aside {
    display: none;
    top: 0px;
    position: fixed;
    height: 100%;
    z-index: 10;
  }
  .open { display: flex; }
  .close { display: flex; }
}
.errors { color: #ff0000; margin-bottom: 1rem; }
.errors p { margin-bottom: 0.3rem; }
