@use '../variables.scss' as vars;

.narrow {
  max-width: 900px;
  margin: 0 auto;
}

.page-padding {
  padding: 1rem;
}

.welcome.page > .narrow > img {
  margin: 0 auto;
  display: block;
  width: 200px;
}

.welcome.page > .narrow > ul {
  width: 80%;
  justify-content: space-between;
  margin: 4rem auto;
  border-bottom: none;
}

.welcome.page > .narrow > ul > li {
  background-color: inherit;
  margin: auto;
}

.welcome.page > .narrow > ul > li > a {
  font-size: 14px;
  min-height: 32px;
  border-bottom-color: rgb(98, 100, 167);
}

.center {
  text-align: center;
}

.sections > * {
  margin: 4rem auto;
}

pre,
div.error {
  background-color: #e5e5e5;
  padding: 1rem;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  margin: 1rem 0;
  max-height: 200px;
  overflow-x: scroll;
  overflow-y: scroll;
}

pre.fixed,
div.error.fixed {
  height: 200px;
}

code {
  background-color: light;
  display: inline-block;
  padding: 0px 6px;
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.error {
  color: red;
}

.control {
  margin: 0.35rem;
}

.main {
  background-color: white;
}

.warning {
  color: red;
  font-weight: bold;
  padding: 0.35rem;
}

.success {
  color: green;
  font-weight: bold;
  padding: 0.35rem;
}

.user-list {
  width: 100%;
  height: 90%;
}

.list-bar {
  display: flex;
  flex-direction: row;
}

.search-bar {
  width: 50%;

  text-align: right;
  margin: 0 0.5rem 0.5rem 1rem;
}

.add-bar {
  width: 50%;
  text-align: left;
  margin: 1rem 0.5rem 0.5rem 0;
}

.search-box {
  width: 50%;

  @media (max-width: map-get(vars.$breakpoints, md)) {
    width: 80%;
  }
}

.MuiDataGrid-columnHeaderTitle {
  font-weight: bold !important;
}

.MuiDataGrid-row:nth-child(even) {
  background-color: aliceblue;
}

.grid-text {
  font-size: 14px !important;
}

.MuiDataGrid-cell {
  display: flex !important;
  align-items: center !important;
  /* vertical center */
}
