/* =========================
   POPSTATE EXIT MODAL
========================= */

.__popstate_exit_wrapper {
    user-select: none;
    text-decoration: none;
    position: absolute;
    top: 80%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: transparent !important;
    outline: none;
}

.__popstate_exit_animation {
    position: absolute;
    width: 200px;
    height: 150px;
    transition: 0.4s;
    will-change: transform;
}

/* =========================
   ENVELOPE STRUCTURE
========================= */

.__popstate_exit_body {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 200px;
    border-color: transparent transparent #e95f55 transparent;
    z-index: 2;
}

.__popstate_exit_top {
    position: absolute;
    top: 50px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 100px 0 100px;
    border-color: #cf4a43 transparent transparent transparent;
    transform-origin: 50% 0%;
    transition:
        transform 0.4s 0.4s,
        z-index 0.2s 0.4s;
    z-index: 2;
}

.__popstate_exit_back {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 100px;
    background: #cf4a43;
    z-index: 0;
}

.__popstate_exit_left {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 0 50px 100px;
    border-color: transparent transparent transparent #e15349;
    z-index: 2;
}

/* =========================
   LETTER
========================= */

.__popstate_exit_letter {
    position: absolute;
    left: 20px;
    bottom: 0;
    width: 160px;
    height: 60px;
    background: white;
    overflow: hidden;
    z-index: 1;
    transition:
        0.4s 0.2s,
        transform 0.4s 0.2s;
    transform-origin: bottom center;
}

.__popstate_exit_letter_border {
    width: 100%;
    height: 10px;
    background:
        repeating-linear-gradient(-45deg,
            #cb5a5e,
            #cb5a5e 8px,
            transparent 8px,
            transparent 18px);
}

.__popstate_exit_letter_title {
    width: 40%;
    height: 10px;
    margin-top: 10px;
    margin-left: 5px;
    background: #67cb5a;
}

.__popstate_exit_letter_content {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: visible;
}

.__popstate_exit_stamp {
    width: 30px;
    height: 30px;
    margin-top: 30px;
    margin-left: 120px;
    opacity: 0.3;
}

/* =========================
   OPEN STATE
========================= */

.__popstate_exit_wrapper.__active_popstate_exit .__popstate_exit_animation {
    transform: translateY(10px);
}

.__popstate_exit_wrapper.__active_popstate_exit .__popstate_exit_top {
    transform: rotateX(180deg);
    transition:
        transform 0.4s,
        z-index 0.2s;
    z-index: 0;
}

.__popstate_exit_wrapper.__active_popstate_exit .__popstate_exit_letter {
    position: absolute;
    top: 190px;
    left: 0;

    width: 97%;
    height: 80dvh;

    visibility: visible;
    overflow: scroll !important;

    transform: translateY(100px) scale(2);

    z-index: 3;
}

/* =========================
   TEXT CONTENT
========================= */

.__popstate_exit_text_box {
    width: 100%;
    height: auto;

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

.__popstate_exit_text_box p {
    color: black;
    text-align: justify;
    line-height: 33px;
    width: 85%;
    font-family: "Vibur", cursive;
    font-size: 18px;
    font-weight: 500;
    font-style: normal;
}


.__inv_div_history_state {
  
    width: 100%;
    height: 300px;
}

.__button_area_check {

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}


.__button_container_box_call_free {
  
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}



/* CSS */
.__button_styled_action_call_pushable {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.__button_styled_action_call_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition:
    transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.__button_styled_action_call_edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(197, 84%, 50%) 0%,
    hsl(187, 93%, 33%) 8%,
    hsl(197, 67%, 47%) 92%,
    hsl(182, 87%, 36%) 100%
  );
}

.__button_styled_action_call_front {
  display: block;
  position: relative;
  padding: 12px 27px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: white;
  background: hsl(189, 87%, 47%);
  will-change: transform;
  transform: translateY(-4px);
  transition:
    transform 600ms cubic-bezier(.3, .7, .4, 1);
}

@media (min-width: 768px) {
  .__button_styled_action_call_front {
    font-size: 1.25rem;
    padding: 12px 42px;
  }
}

.__button_styled_action_call_pushable:hover {
  filter: brightness(110%);
  -webkit-filter: brightness(110%);
}

.__button_styled_action_call_pushable:hover 
.__button_styled_action_call_front {
  transform: translateY(-6px);
  transition:
    transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.__button_styled_action_call_pushable:active 
.__button_styled_action_call_front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.__button_styled_action_call_pushable:hover 
.__button_styled_action_call_shadow {
  transform: translateY(4px);
  transition:
    transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.__button_styled_action_call_pushable:active 
.__button_styled_action_call_shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.__button_styled_action_call_pushable:focus:not(:focus-visible) {
  outline: none;
}




/* CSS */
.__free_state_button_catch_pushable {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.__free_state_button_catch_shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition:
    transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.__free_state_button_catch_edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;


   background: linear-gradient(
    to left,
    hsl(111, 97%, 13%) 0%,
    hsl(103, 98%, 23%) 8%,
    hsl(130, 92%, 20%) 92%,
    hsl(138, 95%, 24%) 100%
  );
}

.__free_state_button_catch_front {
  display: block;
  position: relative;
  padding: 12px 27px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: white;
  background: hsl(130, 84%, 35%);
  will-change: transform;
  transform: translateY(-4px);
  transition:
    transform 600ms cubic-bezier(.3, .7, .4, 1);
}

@media (min-width: 768px) {
  .__free_state_button_catch_front {
    font-size: 1.25rem;
    padding: 12px 42px;
  }
}

.__free_state_button_catch_pushable:hover {
  filter: brightness(110%);
  -webkit-filter: brightness(110%);
}

.__free_state_button_catch_pushable:hover 
.__free_state_button_catch_front {
  transform: translateY(-6px);
  transition:
    transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.__free_state_button_catch_pushable:active 
.__free_state_button_catch_front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.__free_state_button_catch_pushable:hover 
.__free_state_button_catch_shadow {
  transform: translateY(4px);
  transition:
    transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.__free_state_button_catch_pushable:active 
.__free_state_button_catch_shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.__free_state_button_catch_pushable:focus:not(:focus-visible) {
  outline: none;
}