:root {
  --app-detail-info-header-height: 155px;
  --app-detail-info-main-height: 100px;
  --app-detail-info-actions-height: 50px;

  --app-detail-info-footer-height: calc(
    100% - var(--app-detail-info-header-height) -
      var(--app-detail-info-main-height) - var(--app-detail-info-actions-height)
  );
}

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

body {
  background-color: #edebf0;
  color: #4c4c4c;
  font-family: sans-serif;
  width: 90%;
  margin: 0 auto;

  padding-top: 2rem;
  padding-bottom: 2rem;
}

button {
  box-shadow: none;
  outline: none;
  border: none;
  text-decoration: none;
  background: none;
  cursor: pointer;
}

img {
  /* border-radius: 16px; */
}

a {
  text-decoration: none;
}

.hidden {
  display: none;
}

.overflow-y-hidden {
  overflow-y: hidden;
}

#page_title {
  text-align: center;
  font-size: 3rem;
  font-weight: 600;
}

.apps {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.load-more {
  margin-top: 2rem;
  text-align: center;
}

.load-more > button {
  padding: 8px 18px;
  border-radius: 60px;
  border: none;
  color: #525c69;
  font-weight: 600;
  background-color: #b3e600;
  text-transform: capitalize;
  cursor: pointer;
}

.load-more > button:disabled {
  background-color: #d3d7dc;
  cursor: not-allowed;
}

.apps--box {
  /* border: 1px solid #a8b3cf33; */
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;

  display: flex;
  column-gap: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.09);
}

.apps--box__left > div {
  width: 65px;
  height: 65px;
  border-radius: 16px;
}

.apps--box__left > div.no-image {
  border: 1px solid #a0a0a0;
}

.apps--box__left > div.no-image > img {
  transform: scale(0.5);
  filter: opacity(0.7);
}

.apps--box__right {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.apps--box__right_info_title {
  font-size: 1rem;
}

.apps--box__right_info_price_type {
  font-size: 0.7rem;
  color: #a19e9e;
  margin-top: 4px;
}

.apps--box__right_actions {
  display: flex;
}

.apps--box__right_actions button {
  padding: 4px 12px;
  border-radius: 60px;
  outline: 0;
  border: 1px solid #bad9f8;
  color: #525c69;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: transparent;
  text-transform: capitalize;
  cursor: pointer;
}

.apps--box__right_actions button:hover {
  color: #4c4c4c;
  background-color: #b3e600;
  border-color: transparent;
}

#app_detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

#app_detail .app_detail_backdrop {
  /* position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.8); */

  /* -webkit-backdrop-filter: blur(1px); */
  /* backdrop-filter: blur(1px); */
}

#app_detail .app_detail_info {
  background-color: #fff;
  width: 100%;
  height: calc(100% - 55px);
  transform: translateY(55px);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#app_detail .app_detail_info .app_detail_info--header {
  border-radius: 8px;
  background-color: #fff;

  display: flex;
  column-gap: 16px;
  padding: 1.5rem;

  height: var(--app-detail-info-header-height);

  /* position: sticky;
  top: 0;
  z-index: 1000; */
}

/* #app_detail
  .app_detail_info
  .app_detail_info--header
  > #pulldown_to_close_app_detail {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  border-radius: 60px;
  background-color: #b3b1b5;
} */

#app_detail .app_detail_info .app_detail_info--header-left > div {
  width: 100px;
  height: 100px;
  border-radius: 16px;
}

#app_detail .app_detail_info .app_detail_info--header-left > div.no-image {
  border: 1px solid #a0a0a0;
}

#app_detail
  .app_detail_info
  .app_detail_info--header-left
  > div.no-image
  > img {
  transform: scale(0.5);
  filter: opacity(0.7);
}

#app_detail .app_detail_info .app_detail_info--header-right {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

#app_detail .app_detail_info .app_detail_info--header-right--title {
  font-size: 1.3rem;
  color: #525c69;
}

#app_detail .app_detail_info .app_detail_info--header-right--actions a {
  padding: 4px 14px;
  border-radius: 60px;
  border: 1px solid #b3e600;
  color: #525c69;
  font-weight: 600;
  font-size: 0.9rem;
  background-color: #b3e600;
  text-transform: uppercase;
  cursor: pointer;
}

.app_detail_info__main {
  display: flex;
  border-top: 1px solid #edeef0;
  border-bottom: 1px solid #edeef0;
  padding: 16px;

  height: var(--app-detail-info-main-height);
}

.app_detail_info__main .app_detail_info__main-item {
  text-align: center;
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;

  padding-left: 10px;
  padding-right: 10px;
}

.app_detail_info__main .app_detail_info__main-item:not(:nth-child(1))::before {
  content: '';
  position: absolute;
  left: 0px;
  display: block;
  width: 1px;
  height: 97%;
  background: rgb(237, 238, 240);
}

.app_detail_info__main .app_detail_info__main-item > p:nth-child(1) {
  text-transform: uppercase;
  color: #adaeae;
}

.app_detail_info__main .app_detail_info__main-item > p:nth-child(2) {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.app_detail_info__footer {
  padding: 1.5rem 1.5rem 100px;

  overflow-y: scroll;
  height: var(--app-detail-info-footer-height);
}

.app_detail_info__footer > p {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.app_detail_info__footer > .app_detail_info__footer-content {
  font-size: 0.85rem;
}

.app_detail_info_actions {
  /* margin-top: 3rem;
  position: absolute;
  left: 1rem;
  bottom: 1rem; */
  display: flex;
  align-items: center;
  height: var(--app-detail-info-actions-height);
}

.app_detail_info_actions a {
  width: 200px;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;

  line-height: 30px;

  border: 1px solid #edeef0;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 60px;
  text-transform: uppercase;
  background-color: #3bc8f5;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.app_detail_info_actions a.btn-icon-mail {
  padding-left: 9px;
}

#close_app_detail {
  position: fixed;
  top: 10px;
  right: 15px;

  cursor: pointer;

  font-size: 2rem;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .apps {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .apps--section {
    flex: 0 0 50%;
    max-width: 50%;

    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* #pulldown_to_close_app_detail {
    display: none;
  } */

  #app_detail {
    padding: 4rem 8rem;
  }

  #app_detail .app_detail_info {
    height: 100%;
    transform: none;

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  /* #close_app_detail {
    top: 15px;
  } */
}

@media screen and (min-width: 1200px) {
  .apps--section {
    flex: 0 0 33.3333333333%;
    max-width: 33.3333333333%;
  }
}

@media screen and (min-width: 1600px) {
  .apps--section {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
