/* https://dev.to/thormeier/fully-responsive-html-css-sticky-note-4okl */

/* Some positioning and ratios */
.sticky-container {
  max-width: 600px;
  position: relative;
  z-index: 10000;
  margin: -200px auto auto auto;
}

.sticky-outer {
  display: flex;
  padding-top: 92.5925926%;
  position: relative;

  width: 100%;
}

.sticky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Shadow behind the sticky note */
.sticky:before {
  box-shadow: -2px 2px 15px 0 rgba(0, 0, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.25);
  content: '';
  width: 90%;
  left: 5px;
  height: 83%;
  position: absolute;
  top: 30%;
}

/* The sticky note itself */
.sticky-content {

  width: 100%;
  height: 120%;
  background-image: url("../assets/img/resist.jpg");

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

  clip-path: url(#stickyClip);
}

/* Add responsiveness */
@media screen and (min-width: 640px) {
  .sticky:before {
    height: 79%;
    width: 90%;
  }
  .sticky-content {
    font-size: 1.25rem;
  }
}

@media screen and (min-width: 768px) {
  .sticky:before {
    height: 75%;
    width: 90%;
  }
  .sticky-content {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 1024px) {
  .sticky:before {
    height: 73%;
    width: 90%;
  }
  .sticky-content {
    font-size: 1.875rem;
  }
}

.note-placement {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
}

.non-sticky-container {
  position: relative;
  z-index: 10000;
  margin: 120px auto auto auto;
}

.non-sticky-outer {
  display: flex;
  position: relative;

  width: 100%;
}

.non-sticky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.non-sticky-content {

  width: 100%;
  height: 100%;

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

}

/* https://codepen.io/aitchiss/pen/QWKmPqx */

.resist-poster {
  position: relative;
  background-image: url("../images/posters/resist.jpg");
  min-width: 450px;
  min-height: 579px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  /* Taped only at the corners, so the sheet bows off the wall: one heavy,
     soft, off-centre pool instead of an even, flat drop shadow. */
  -webkit-box-shadow: 9px 24px 40px -16px rgba(0, 0, 0, 0.5), 2px 6px 12px -2px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 9px 24px 40px -16px rgba(0, 0, 0, 0.5), 2px 6px 12px -2px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 9px 24px 40px -16px rgba(0, 0, 0, 0.5), 2px 6px 12px -2px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid #bbb;
  margin: auto;
  margin-top: -280px;
  background-size: cover;
  /* Hung by hand: the whole poster leans a hair off-square. Tape + bend
     marks are children, so they lean with it and stay believably attached. */
  transform: rotate(-1.6deg);
}

.resist-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    /* worn spot where the two creases cross — paper is weakest here */
    radial-gradient(
      circle at 49.5% 50.5%,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0) 15%
    ),
    /* horizontal crease: a lit ridge above, its shadow just below */
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 48.5%,
      rgba(255, 255, 255, 0.32) 49.7%,
      rgba(0, 0, 0, 0.26) 50.4%,
      rgba(255, 255, 255, 0) 51.6%
    ),
    /* vertical crease: offset a hair from the horizontal one */
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 49%,
      rgba(255, 255, 255, 0.26) 50.2%,
      rgba(0, 0, 0, 0.22) 50.9%,
      rgba(255, 255, 255, 0) 52%
    );
}

.tape-section {
  position: absolute;
  width: 100%;
}

.top-tape {
  position: absolute;
  height: 4vmin;
  top: -5px;
  width: 110%;
  background-color: #dbd8be;
  border-right: 1px dotted #b7b49d;
  border-left: 1px dotted #b7b49d;
  opacity: 0.5;
}

.tape-section:first-of-type {
  top: 0;
}

.tape-section:last-of-type {
  bottom: 0;
}

.tape-section::before,
.tape-section::after {
  content: "";
  width: 10vmin;
  height: 4vmin;
  position: absolute;
  background-color: #dbd8be;
  opacity: 0.5;
  border-right: 1px dotted #b7b49d;
  border-left: 1px dotted #b7b49d;
}

/* Each corner was taped by a different distracted hand: no two pieces share
   an angle or a length, and none sits at a clean 45deg. */

/* top-left */
.tape-section:first-of-type::before {
  transform: rotate(-51deg);
  width: 11vmin;
  height: 3.7vmin;
  left: -4.3vmin;
  top: -0.6vmin;
}

/* top-right */
.tape-section:first-of-type::after {
  transform: rotate(39deg);
  width: 9.2vmin;
  height: 4.3vmin;
  right: -3.6vmin;
  top: 0.4vmin;
}

/* bottom-left */
.tape-section:last-of-type::before {
  transform: rotate(48deg);
  width: 10.4vmin;
  height: 3.5vmin;
  left: -4vmin;
  bottom: -0.3vmin;
}

/* bottom-right — a mismatched scrap of amber tape: the resistance patching
   with whatever they had on hand (and a nod to the amber they seal the world
   with). Slightly warmer and a touch more opaque than the other three. */
.tape-section:last-of-type::after {
  transform: rotate(-41deg);
  width: 8.7vmin;
  height: 4.1vmin;
  right: -3.9vmin;
  top: -2.6vmin;
  background-color: #e0af57;
  border-right: 1px dotted #b98a3b;
  border-left: 1px dotted #b98a3b;
  opacity: 0.58;
}