:root {
  --polaroid-frame-height: 4.2in;
  --polaroid-frame-width: 3.4in;
  --polaroid-photo-height: 3.125in;
  --polaroid-photo-width: 3.0625in;
  --polaroid-top-margin: 0.3in;

  --fob-delay: 0.5s;

  --background-colour: #5c0023;

  --note-background: #dde;
  --note-min-height: 2in;
  --note-min-width: 50vmin;
  --note-max-height: 1000in;
  --note-max-width: 75vmin;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;

  background-color: var(--background-colour);
}

h1 {
  margin: 0;
}

.entries {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.entry {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  margin: 3vmin;
}

.polaroid {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows:
    calc(var(--polaroid-top-margin) + var(--polaroid-photo-height))
    auto;

  height: var(--polaroid-frame-height);
  width: var(--polaroid-frame-width);

  background-color: white;
  border-radius: 0.5vmin;
}

.picture {
  grid-column: 1;
  grid-row: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;

  position: relative;
}

.picture img {
  height: var(--polaroid-photo-height);
  width: var(--polaroid-photo-width);
}

.polaroid.eaten {
  background-color: #f2ede9;
  color: #38210a;
  transition: background-color var(--fob-delay), color var(--fob-delay);
}
.polaroid.eaten:hover {
  background-color: white;
  color: black;
  transition: background-color var(--fob-delay), color var(--fob-delay);
}

.eaten img {
  opacity: 80%;
  transition: opacity var(--fob-delay);
}
.eaten:hover img {
  opacity: 100%;
  transition: opacity var(--fob-delay);
}

.eaten .picture::after {
  content: '';
  background-image: url(images/kiss.png);
  background-size: 50%;
  background-repeat: no-repeat;
  position: absolute;
  top: 70%;
  left: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity var(--fob-delay);
}
.eaten:hover .picture::after {
  opacity: 40%;
  transition: opacity var(--fob-delay);
}

.caption {
  grid-column: 1;
  grid-row: 2;

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

  font-family: 'Brush Script MT', cursive;
  font-size: 22pt;
}

.notes {
  background-color: var(--note-background);
  background-image: url(images/notepaper.png);
  background-size: 300px 300px;

  min-height: var(--note-min-height);
  min-width: var(--note-min-width);
  max-height: var(--note-max-height);
  max-width: var(--note-max-width);

  border-radius: 1vmin;
  margin: 2vmin;
  padding: 1vmin 2vmin;
}

p {
  text-align: justify;
  text-justify: inter-word;
}
