/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: AntiqueWhite;
  color: black;
  font-family: Georgia;
}

.stamp {
  --fold: 50px;
  --border: 3px;
  --bg: url(https://stupied.neocities.org/meta/img/clouds.jpg);
  top: 1rem;
  left: 1rem;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4/3;
  display: block;
  position: relative;
  border: var(--border) solid black;
  box-sizing: border-box;
  background-image: var(--bg);
  background-size: cover;  
  overflow: hidden;
  clip-path: polygon(
    calc(100% - var(--fold)) 0,
    100% var(--fold),
    100% 100%,
    0 100%,
    0 0
  );
  transition: 0.2s;

  &:hover {
    --folded: calc(var(--fold) + 20px);
    clip-path: polygon(
      calc(100% - var(--folded)) 0,
      100% var(--folded),
      100% 100%,
      0 100%,
      0 0
    );
    &::after {
      width: var(--folded);
    }
  }

  &::after{
    transition: 0.2s;
    content: "";
    top: calc(0px - var(--border));
    right: calc(0px - var(--border));
    position: absolute;
    width: var(--fold);
    aspect-ratio: 1/1;
    border: var(--border) solid;
    background-color: white;
    background: linear-gradient(45deg, white 50%, black 50%);
    border: 2px solid;
  }

  & > span {
    bottom: 0.2rem;
    left: 0.2rem;
    position: absolute;
    font-family: var(--display-font);
    color: black;
    text-shadow: 0 0 5px white;
  }
}