.container > .mid {
  /* flex-grow: 1; */
  width: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  display: grid;
  margin: 0px 10px;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.container > div.header > div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.container > div.header > div > h2 {
  color: white;
  font-size: 20px;
  font-weight: 700;
}
.container > div.header > div > p {
  color: var(--txt-description-light);
  font-size: 15px;
  font-weight: 400;
}
.container > div.header > img {
  height: 50px;
  margin-left: 10px;
}

.container > div.header > button {
  margin-right: 10px;
  height: 40px;
  color: var(--txt-description-light);
  border-radius: 5px;
  width: 150px;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid var(--borders);
}

.container > div.header > button:hover {
  border-color: white;
  color: white;
}

.project-main-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px;
  overflow: hidden;
  gap: 10px;
  border: 1px solid var(--borders);
  height: 200px;
  border-radius: 5px;
  margin: 5px;
  background: transparent;

  /* Black background just for demo */
  background-color: #111;

  /* Mask fade on bottom and right */
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent),
    linear-gradient(to bottom, black 80%, transparent);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to right, black 80%, transparent),
    linear-gradient(to bottom, black 80%, transparent);
  mask-composite: intersect;

  /* For fallback in some browsers */
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.project-main-container:hover {
  border-color: white;
  cursor: pointer;
}
.project-main-container > div {
  display: flex;
  flex-direction: column;
}

.project-main-container > div:nth-of-type(2) {
  flex-grow: 1;
  overflow: hidden;
  gap: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-main-container > div:nth-of-type(1) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-main-container > div:nth-of-type(1) > img {
  min-height: 60px;
  min-width: 20px;
  max-width: 20px;
  max-height: 60px;
  object-fit: contain;
  cursor: grab;
}

.project-main-container > div:nth-of-type(2) > h2 {
  color: var(--txt-heading-highlighted);
}

.project-main-container > div:nth-of-type(2) > pre {
  /* white-space: normal; allow wrapping */
  /* word-wrap: break-word; break long words if needed */
  /* overflow-wrap: break-word; */
  max-height: 250px;
  font-size: 12px;
  color: var(--default-clr);
}
.error-txt {
  color: #ff4141;
  font-size: 14px;
  display: none;
}

@media (max-width: 1742px) {
  .container > .mid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
@media (max-width: 1440px) {
  .container > .mid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 946px) {
  .container > .mid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 688px) {
  .container > .mid {
    grid-template-columns: 1fr;
  }
  .container > div.header > img {
    height: 40px;
  }

  .container > div.header > div > h2 {
    font-size: 16px;
  }

  .container > div.header > div > p {
    font-size: 12px;
  }
  .container > div.header > button {
    width: 125px;
    height: 35px;
    font-size: 12px;
  }
}

@media (max-width: 365px) {
  .container > div.header > img {
    height: 30px;
  }

  .container > div.header > div > h2 {
    font-size: 14px;
  }

  .container > div.header > div > p {
    font-size: 10px;
  }
  .container > div.header > button {
    width: 100px;
    height: 30px;
    font-size: 10px;
  }
}

.dialog-add-project {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  margin: 0px;
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 10;
  display: none;
}

.dialog-add-project.show {
  display: flex;
}

.dialog-add-project > div {
  height: 80%;
  width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 2px solid var(--borders);
  box-shadow: 0px 0px 5px 1px rgb(31, 30, 30);
  background-color: var(--dialog-bg);
}
.dialog-add-project > div > div:nth-of-type(1) {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.dialog-add-project > div > div:nth-of-type(1) > svg {
  height: 30px;
  width: 30px;
  color: var(--icon-clr);
}
.dialog-add-project > div > div:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  width: 100%;
  flex-grow: 1;
}
.dialog-add-project > div > div:nth-of-type(3) {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

.dialog-add-project > div > div:nth-of-type(2) > input {
  height: 50px;
  outline: 0px;
  border: 1px solid var(--borders);
  font-size: 14px;
  color: var(--txt-full-light);
  width: 93%;
  background-color: transparent;
  padding: 5px;
}

.dialog-add-project > div > div:nth-of-type(2) > div.files {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  width: 100%;
  grid-area: 10px;
  gap: 10px;
  margin-top: 5px;
}

.dialog-add-project > div > div:nth-of-type(2) > div.files > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 8px;
  gap: 8px;
  border: 1px solid var(--borders);
}

.dialog-add-project > div > div:nth-of-type(2) > div.files > div > img {
  height: 30px;
  width: 30px;
}

.dialog-add-project > div > div:nth-of-type(2) > div.files > div > p {
  color: var(--txt-full-light);
  font-size: 14px;
}

.dialog-add-project > div > div:nth-of-type(2) > div.save-to-memory {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  gap: 10px;
}
.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > p:nth-of-type(1) {
  font-weight: bold;
  color: var(--txt-heading-highlighted);
}
.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > p:nth-of-type(2) {
  color: var(--txt-description-light);
  font-size: 14px;
}
.dialog-add-project > div > div:nth-of-type(2) > div.save-to-memory > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 10px;
}
.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > div
  > div {
  flex-grow: 1;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}
.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > div
  > div:nth-of-type(1) {
  border: 1px solid var(--yes-theme);
}
.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > div
  > div:nth-of-type(2) {
  border: 1px solid var(--no-theme);
}

.save-no.active {
  background-color: var(--no-theme);
}
.save-yes.active {
  background-color: var(--yes-theme);
}

.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > div
  > div
  > p {
  color: var(--txt-full-light);
  font-weight: 500;
  pointer-events: none;
}
.dialog-add-project > div > div:nth-of-type(3) {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: end;
  width: 100%;
}
.dialog-add-project > div > div:nth-of-type(3) > button.create-project-btn {
  width: 200px;
  height: 30px;
  color: var(--txt-full-light);
  font-size: 12px;
  background-color: transparent;
  outline: 0px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid var(--borders);
}

.dialog-add-project
  > div
  > div:nth-of-type(3)
  > button.create-project-btn:hover {
  border-color: var(--txt-full-light);
}

.dialog-add-project > div > div:nth-of-type(2) > div.save-to-memory > section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > section
  > div
  > p {
  font-size: 14px;
  color: var(--txt-description-light);
}

.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > section
  > div {
  flex-grow: 1;
}

.dialog-add-project
  > div
  > div:nth-of-type(2)
  > div.save-to-memory
  > section
  > svg {
  color: var(--icon-clr);
  height: 20px;
  width: 20px;
  cursor: pointer;
}

@media (max-width: 680px) {
  .dialog-add-project > div {
    width: 400px;
  }

  .dialog-add-project > div > div:nth-of-type(1) {
    top: 2px;
    right: 2px;
  }

  .dialog-add-project > div > div:nth-of-type(2) {
    padding: 5px;
  }

  .dialog-add-project > div > div:nth-of-type(2) > input {
    width: 90%;
  }

  .dialog-add-project > div > div:nth-of-type(2) > div.files > div > img {
    height: 25px;
    width: 25px;
  }

  .dialog-add-project > div > div:nth-of-type(2) > div.files > div > p {
    font-size: 12px;
  }

  .dialog-add-project
    > div
    > div:nth-of-type(2)
    > div.save-to-memory
    > p:nth-of-type(1) {
    font-size: 14px;
  }
  .dialog-add-project
    > div
    > div:nth-of-type(2)
    > div.save-to-memory
    > p:nth-of-type(2) {
    font-size: 12px;
  }

  .dialog-add-project
    > div
    > div:nth-of-type(2)
    > div.save-to-memory
    > div
    > div
    > p {
    font-size: 14px;
  }
}

@media (max-width: 410px) {
  .dialog-add-project > div {
    width: 100%;
    height: 100%;
  }
  .dialog-add-project > div > div:nth-of-type(2) > div.files {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dialog-add-project > div > div:nth-of-type(3) > button.create-project-btn {
    width: 100%;
  }
}
