@font-face {
  font-family: "WildySans";
  src: url("./assets/fonts/Wildy-Sans.ttf");
}

.block {
  display: block;
}

/* -----------  CSS FOR POLAROIDS ON HOMEPAGE  ----------------*/
.polaroid_parent {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
@media (min-width: 630px) {
  .polaroid_parent {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .polaroid_parent {
    grid-template-columns: repeat(3, 1fr);
  }
}

.polaroid {
  background-color: white;
  color: white;
  padding: 1rem;
  height: 25rem;
  text-align: center;
  max-width: 18rem; /* This is the only new line */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
.polaroid:before {
  content: "";
  position: absolute;
  z-index: -1;
  transition: all 0.4s;
}
.polaroid:nth-of-type(2n + 1) {
  transform: scale(0.8, 0.8) rotate(5deg);
  -webkit-transform: scale(0.8, 0.8) rotateZ(5deg);
  outline: 1px solid transparent;
  transform: translateZ(5deg);
  will-change: transform;
  perspective: 1000;
  -webkit-perspective: 1000;
  padding: 1rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: all 0.35s;
}
.polaroid:nth-of-type(2n + 2) {
  transform: scale(0.8, 0.8) rotate(-3deg);
  -webkit-transform: scale(0.8, 0.8) rotateZ(-3deg);
  outline: 1px solid transparent;
  transform: translateZ(-3);
  will-change: transform;
  perspective: 1000;
  -webkit-perspective: 1000;
  padding: 1rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: all 0.35s;

}

.polaroid:nth-of-type(2n + 2) .polaroid:before {
  transform: rotate(-6deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.4);
}
.polaroid:hover {
  filter: none;
  transform: scale(1, 1) rotate(0deg);
  transition: all 0.4s;
}
.polaroid:hover .polaroid:before {
  content: "";
  position: absolute;
  z-index: -1;
  transform: rotate(0deg);
  height: 60%;
  width: 60%;
  bottom: 0%;
  right: 10%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transition: all 0.35s;
}

.polaroid_caption {
  font-family: "WildySans", Arial, sans-serif;
  margin-top: 5px;
  font-size: 3rem;
}

/* -----------------  END OF POLAROID CSS ---------------------- */

/* ------- About me polaroid ( no degree tilt ) -------- */
.about_parent {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
@media (min-width: 750px) {
  .about_parent {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tom {
  background-color: white;
  color: white;
  padding: 1rem;
  height: 25rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 18rem; /* This is the only new line */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
/* ----- Contact me button ---------- */

.offset_button {
  background-color: white;
  border: 1px solid;
  border-color: black !important;
  padding: 10px;
  color: black !important;
  box-shadow: 5px 10px #a43;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
  width: 40%;
}
.offset_button:hover {
  background-color: #fcc8d2;
  opacity: 1;
}

/* .test{
  background-color: white;
  padding:15px;
  width:90%;
  -webkit-appearance: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);

} */