@font-face {
  font-family: Anjoman-Medium;
  src: url(../Anjoman-Medium.ttf);
}
* {
  margin: 0;
  padding: 0;
  font-family: Anjoman-Medium;
}

body {
  direction: rtl;
  width: 100vw;
  height: 100vh;
  background-color: #eee;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: 350px auto;
  grid-template-rows: 80px auto;
  grid-template-areas: "navbar navbar" "sidebar charts";
}

nav {
  grid-area: navbar;
  align-self: center;
  justify-self: center;
}
.sidebar {
  grid-area: sidebar;
  justify-self: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  gap: 10px;
}
.charts {
  grid-area: charts;
}

input,
button {
  width: 300px;
  font-size: 1.2rem;
  padding: 2px 3px;
  border-radius: 6px;
  border: none;
  transition: 0.4s all ease;
}
input {
  background-color: #eee;
  border: 1px solid #2563eb;
}
input:hover {
  background-color: #fff;
}
button {
  width: 310px;
  color: #f8fafc;
}

#submit {
  background-color: #3b82f6;
  border: 1px solid #2563eb;
}
#submit:hover {
  background-color: #2563eb;
}
#destroy {
  background-color: #f59e0b;
  border: 1px solid #92400e;
}
#destroy:hover {
  background-color: #d97706;
}

#back {
  background-color: #f43f5e;
  border: 1px solid #be123c;
}
#back {
  width: 310px;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

#back:hover {
  background-color: #e11d48;
}
@media screen and (max-width: 850px) {
  body {
    height: unset;
    display: flex;
    flex-direction: column;
  }
}
