* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Make scrollbars always visible */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #F2F6FA;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #A3B4CA;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #536988;
}

[contenteditable]:focus {
  outline: 2px solid rgba(12,38,53,.15);
  outline-offset: 5px;
  border-radius: 1px;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  display: inline-block;
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: normal;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  -webkit-appearance: none;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.button {
  display: inline-block;
  height: 36px;
  padding: 0 12px;
  line-height: 36px;
  color: #FFF;
  font-size: 14px;
  text-align: center;
  background-color: #536988;
  border-radius: 5px;
}
.button:hover {
  cursor: pointer;
  background: #405068;
}

.button--add-stack {
  margin-right: 1.5rem;
  font-weight: bold;
  background-color: #1f4860;
}
.button--add-stack:hover {
  background-color: #1A3D51;
}
.button--plus-square {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  width: 25px;
  margin-left: auto;
  line-height: normal;
  padding: 0;
}
.button--add-stack {
  margin-left: 1.25rem;
}

body {
  font-family: "Work Sans", sans-serif;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 1.5rem;
}
.logo__image {
  min-width: 24px;
  display: inline-block;
  vertical-align: middle;
}
.logo__text {
  margin-left: 4px;
  font-weight: 500;
  font-size: 19px;
}
.logo__version {
  color: #596574;
}

.nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  background-color: #0C2635;
  color: #fff;
}
.nav__user {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 1rem;
}
.nav__button {
  margin-left: 1rem;
  width: 90px;
  height: 46px;
  line-height: 46px;
  background-color: #113346;
  border-radius: 5px;
  text-align: center;
}
.nav__button:hover {
  opacity: 0.5;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.board-container {
  flex-grow: 1;
}

.board {
  display: flex;
  overflow-x: auto;
  padding: 1rem 0 .5rem 1.5rem;
  margin-bottom: 0.5rem;
  min-height: calc(100vh - 72px);
}

.stack {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 300px;
  margin-right: 1rem;
}
.stack__top {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  margin-bottom: 0.65rem;
  color: #536988;
}
.stack__text {
  font-size: 18px;
  font-weight: 500;
}
.stack__new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-left: auto;
  background-color: #536988;
  border-radius: 5px;
}
.stack__new:hover {
  cursor: pointer;
  opacity: 0.5;
}
.stack__new-icon {
  position: relative;
  top: -1px;
}
.stack__list {
  min-height: 3rem;
  padding: 0 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #F2F6FA;
  border-radius: 5px 5px 0 0;
}
.stack__add-card-container {
  padding: 0.5rem;
  background-color: #F2F6FA;
  border-radius: 0 0 5px 5px;
}
.stack__add-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 41px;
  margin-left: auto;
  margin-right: auto;
  border: 2px dashed #DCE0E4;
  border-radius: 5px;
  color: #8692a3;
  font-weight: bold;
  text-align: center;
}
.stack__add-card:hover {
  cursor: pointer;
  background-color: #e4ebf3;
  border-color: #c5cfdb;
}
.stack__add-card-icon {
  margin-right: 0.5rem;
}

.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #FFF;
  border-radius: 5px;
  color: #536988;
  margin-top: 10px;
  box-shadow: 0px 4px 10px rgba(62, 114, 167, 0.15);
}
[editmode="true"] .card:hover {
  background-color: #F2F6FA;
}
.card:nth-child(1) {
  margin-top: 15px;
}
.card__text {
  flex: 1 1 auto;
  margin: 1rem 0.25rem 1rem 1rem;
  line-height: 1.4em;
}
.card__drag {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 0.25rem;
  padding: 1rem;
  cursor: grab;
}

@media only screen and (max-width: 658px) {
  body {
    overflow: auto;
  }

  .board {
    position: static;
    display: block;
    overflow: auto;
    padding-right: 1.5rem;
  }

  .stack {
    display: block;
    height: auto;
    width: 100%;
    margin-right: 0;
    margin-bottom: 1.5rem;
    overflow: auto;
  }

  .stack__list {
    overflow-y: auto;
  }
}

[hidden] {
  display: none;
}