/* 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;
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.11);
  -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.11);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.11);
  border: 1px solid #bbb;
  margin: auto;
  margin-top: -280px;
  background-size: cover;
}

.resist-poster::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      rgba(255, 255, 255, 0),
      50%,
      #DADADA,
      51%,
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      50%,
      #DADADA,
      51%,
      rgba(255, 255, 255, 0)
    );
}

.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;
}

.tape-section:last-of-type::after {
  transform: rotate(-45deg);
  right: -4vmin;
  top: -3vmin;
}

.tape-section:first-of-type::before {
  transform: rotate(-45deg);
  left: -4vmin;
}

.tape-section:first-of-type::after {
  transform: rotate(45deg);
  right: -4vmin;
  top: 0;
}

.tape-section:last-of-type::before {
  transform: rotate(45deg);
  left: -4vmin;
  bottom: 0;
}