* {
  box-sizing: border-box;
}

:root {
  --background: #7795f9;
}

body,
html,
#new__app {
  margin: 0;
  width: 100%;
  height: 100%;
}

#new__app {
  /* overflow: hidden; */
  touch-action: pan-up;
  color: #ffffff;
  font-family: "Shabnam", 'Kalameh-Regular';
  text-align: center;
  /*text-shadow: 0 0 5px #ffffff, 0 0 20px #000, 0 0 30px #000;*/
}

#new__app h1 {
  --fontSize: 5rem;
  --lineHeight: 50px;
  width: auto;
  font-family: 'Kalameh-Black';
  height: calc(2 * var(--lineHeight));
  line-height: var(--lineHeight);
  /*margin: calc(50vh - var(--lineHeight)) auto 0;*/
  margin: 50px auto 0;
  font-size: var(--fontSize);
}

#new__app a {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

#new__app canvas {
  display: block;
  position: fixed;
  z-index: -1;
  top: 0;
}

#folder__container {
  /*overflow: hidden;*/
  /* padding: 4rem 2rem 2rem; */
  /* min-height: 100vh; */
  /* background: linear-gradient(
    to bottom right,
    rgb(173, 83, 137),
    rgb(60, 16, 83)
  ); */
  font-size: 1.2rem;
  font-family: "Shabnam";
  display: grid;
  grid: 2rem auto / repeat(2, 50%);
  grid-column-gap: 2rem;
  justify-content: center;
  width: 100%;
  .folder {
    grid-column: 1 / -1;
  }
}

p {
  margin-bottom: 1rem;
}

.tab {
  font-family: "Shabnam";
  text-transform: uppercase;
  line-height: 0.8;
  display: inline-block;
  margin-left: -35px;
  filter: drop-shadow(0px -3px 2px rgba(0, 0, 0, 0.05));
  border: none;
  border-radius: 6px 6px 0 0;
  position: relative;
  margin-right: 4rem;
  background: var(--background);
  white-space: nowrap;
  cursor: pointer;
  background: var(--background);
  &:focus {
    outline: none;
    span {
      border-bottom: 2px solid;
      border-radius: 0;
    }
  }
  &:first-of-type {
    margin-left: 30px;
  }
  div {
    background: var(--background);
    padding: 6px 0;
    position: relative;
    z-index: 10;
  }
  span {
    display: inline-block;
    border: 2px solid transparent;
    padding: 6px 15px 6px;
    border-radius: 5px;
    z-index: 5;
    position: relative;
    font-size: 1.3rem;
    font-family: 'Kalameh-Blak';
    color: #fff;
    min-width: 6rem;
  }
  &:before,
  &:after {
    content: "";
    height: 100%;
    position: absolute;
    background: var(--background);
    border-radius: 8px 8px 0 0;
    width: 30px;
    top: 0;
  }
  &:before {
    right: -16px;
    transform: skew(25deg);
    border-radius: 0 8px 0 0;
  }
  &:after {
    transform: skew(-25deg);
    left: -16px;
    border-radius: 8px 0 0 0;
  }
  &.active {
    z-index: 50;
    position: relative;
    span {
      background: white;
      box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
      border-radius: 5px;
      color: black;
    }
  }
}

.content {
  border-radius: 10px;
  position: relative;
  width: 100%;
  #tab-1 {
    display: block;
  }
  &:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    border-radius: inherit;
  }
  &__inner {
    font-family: "Shabnam", 'Kalameh-Regular';
    display: none;
    background: var(--background);
    border-radius: inherit;
    padding: 1rem;
    filter: drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1));
    z-index: 5;
  }
}

.folder {
  margin: 1rem auto;
  max-width: 50rem;
  width: 100%;
   
  
  ::-webkit-scrollbar {
    background: transparent; /* Chrome/Safari/Webkit */
    display: none;
  }
}

.page {
  padding: 1.5rem;
  border-radius: 2px;
  min-height: 20rem;
  line-height: 160%;
  background-color: #f9f9f9;
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.15));
  background-image: linear-gradient(#e4e4e4 1px, transparent 1px);
  background-size: 8% 8%, 2px 2px;
}

.tabs {
  padding: 2rem 0 0 0;
  width: 100%;
  margin: 0 0.5rem;
  overflow-x: auto;
  width: calc(100% - 1rem);
  white-space: nowrap;
  @media (min-width: 50rem) {
    margin: 0 2rem;
    width: calc(100% - 4rem);
  }
}

.tabs span {
    font-family: 'Shabnam' !important;
}

.folder {
  .tab,
  .content__inner {
    &:nth-of-type(1) {
      --background: #af4d98;
    }
    &:nth-of-type(2) {
      --background: #d66ba0;
    }
    &:nth-of-type(3) {
      --background: #e5a9a9;
    }
    &:nth-of-type(4) {
      --background: #6cb6bb;
    }
  }
  .tab {
    border: 2px solid;
    border-width: 2px 0 0;
    &:before,
    &:after {
      top: -2px;
      border-top: 2px solid;
    }
    &:before {
      border-right: 2px solid;
    }
    &:after {
      border-left: 2px solid;
    }
    &.active {
      span {
        border: 2px solid;
      }
      &:focus span {
        outline: 1px solid rgba(255, 255, 255, 0.7);
      }
    }
    &:not(.active) {
      border-bottom: 2px solid;
      &:before,
      &:after {
        box-shadow: 0 1.5px 0 black;
      }
    }
  }
  .content {
    top: -2px;
    left: -2px;
    &__inner {
      box-shadow: 0 0 0 1.5px black;
    }
  }
  .page {
    border: 2px solid;
  }
}

#shadow:checked ~ .folder {
  .tab {
    --background: linear-gradient(to bottom, #af4d98, #e5a9a9);
    span {
      color: black;
    }
    &:focus span {
      border-bottom-color: black;
    }
    &.active:focus span {
      border-color: black;
    }
  }
  .content__inner {
    --background: linear-gradient(to bottom, #af4d98, #e5a9a9);
  }
}

/* radio buttons styling */
input.variation {
  display: none;
  + label {
    display: flex;
    align-items: stretch;
    column-gap: 10px;
    align-items: center;
    cursor: pointer;
    color: white;
    .circle {
      width: 25px;
      height: 25px;
      border-radius: 50%;
      border: 3px solid white;
    }
  }
  &:checked + label .circle {
    background: white;
    box-shadow: inset 0 0 0 3px #3c1053;
  }
  &:nth-of-type(1) + label {
    justify-self: flex-end;
  }
}

.hidden__element {
  display: none;
}
