:root{
  --bg: #ffefe5;
  --red: #d39089;
  --heart: #e85151;
  --shadow: rgba(0,0,0,0.3);
}
::selection {
  background: var(--red);
  color: white;
}

*{
  box-sizing: border-box;
}
html{
  margin: 0;
  height: 100vh;
}
body{
  margin: 0 auto;
  max-width: 1920px;
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
}

#bg{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/hearts.png");
  background-repeat: repeat;
  opacity: 0.15;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6{
  margin: 0;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
}

h2{
  font-size: 55px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--heart);
  text-shadow: 
    -1px -1px 0px white, -1px 1px 0px white, 1px -1px 0px white, 1px 1px 0px white, 
    2px 2px 0px var(--shadow), 3px 3px 0px var(--shadow);
}
p{
  margin: 0;
  margin-bottom: 0.5em;
  font-size: 20px;
  line-height: 1.420;
}

#banner{
  --banner-size: 200px;
  --shadow-size: 150px;
  --shadow-gap: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(var(--banner-size) + var(--shadow-size));
  /* overflow: hidden; */
  /* background: white; */
  /* box-shadow: 0px var(--shadow-size) var(--shadow-size) white; */
  /* margin-left: calc(-1 * var(--shadow-size) / 2 ); */
  background: linear-gradient(to bottom, white calc(var(--banner-size) + var(--shadow-gap)), transparent calc(var(--banner-size) + var(--shadow-size)));
}
#banner::before {
  content: "";
  position: absolute;
  top: 0;left: 0;
  display: block;
  width: 100%;
  height: calc(100% + var(--shadow-size));
  height: 100%;
  z-index: 1;
  opacity: 0.1;
  background: url("images/banner_fade.png");
  background-position: center top;
  background-repeat: no-repeat;
}
#banner-image{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-position: cover;
  background-position: center;
  /* filter: blur(20px); */
}
#title{
  position: relative;
  text-align: center;
  font-size: 80px;
  margin-top: -50px;
  z-index: 1;
  font-weight: 400;
  text-shadow: 1px 1px 0px var(--heart), 2px 2px 0px var(--heart), 3px 3px 0px var(--heart);
}

#main{
  display: flex;
  flex-direction: column;
  max-width: 1500px;
  margin: auto;
  padding: 0px 20px;
}
.post{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
  padding: 50px;
  min-height: 50vh;
  /* border: 1px solid var(--red); */
  /* background: white; */
}
.post:first-child{
  /* margin-top: 150px; */
}
.post.horizontal{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
}
.post.white{
  background-color: white;
  border: 2px solid var(--heart);
}
.post.inline{
  width: auto;
  display: inline-flex;
  padding: 100px;
  min-height: auto;
  margin-left: auto;
  margin-right: auto;
}
.post h2.vertical{
  display: inline-flex;
  flex-direction: column;
  text-align: center;
}
.post h2.vertical .is-space{
  display: none;
}

.waifu-holder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  justify-items: center;
  align-items: flex-start;
  grid-gap: 20px;
}
.waifu {
  position: relative;
  max-width: 350px;
  width: 100%;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	border: 20px solid white;
  background: white;
  /* overflow: hidden; */

  opacity: 0;
  transform: translateY(-100px);
  transition: opacity, 250ms ease-in-out, 250ms ease-in-out;
}
.waifu,
.waifu:hover{
  text-decoration: none;
}
.waifu-image{
  position: relative;
  width: 100%;
  height: 300px;
  border: 1px solid rgba(0,0,0,0.7);
  overflow: hidden;
}
.waifu-image img{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms 250ms linear;
}
.waifu-image :first-child{
  mix-blend-mode: hard-light;
}
.waifu-image :last-child{
  transition: opacity 1000ms 750ms linear;
}
.waifu.reveal{
  opacity: 1;
  transform: translateY(0px);
}
.waifu.reveal .waifu-image :first-child,
.waifu.reveal .waifu-image :last-child{
  opacity: 1;
}

.waifu .waifu-image::after{
  content: "";
  position: absolute;
  top: 0; left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translate(-100%);
}
.waifu:hover .waifu-image::after{
  transform: translate(100%);
  transition: transform 500ms ease-in-out;
}

.waifu-body{
  height: 80px;
  padding: 10px 0px;
  background: white;
}
.waifu-body h3{
  position: relative;
  font-family: "All That Matters";
  font-size: 40px;
  text-align: center;
  width: fit-content;
  margin: auto;
}
.waifu-body h3 :first-child{
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}
.waifu-body h3 a:last-child{
  --shadow: rgba(0,0,0,0.5);
  position: absolute;
  top: 0; left: 0;
  text-shadow: 
    0px 1px 0px var(--shadow),
    1px 0px 0px var(--shadow),
    1px 1px 0px var(--shadow),

    0px -1px 0px var(--shadow),
    -1px 0px 0px var(--shadow),
    -1px -1px 0px var(--shadow),

    -1px 1px 0px var(--shadow),
    1px -1px 0px var(--shadow)
  ;
  display: none;
}

.waifu-sakura .waifu-body h3 :first-child{
  background-color: rgb(255, 136, 136);
}
.waifu-sharo .waifu-body h3 :first-child{
  background-color: #ffcb00;
}
.waifu-colors .waifu-body h3 :first-child{
  background-image: linear-gradient(
		to right,
		rgba(79, 156, 255),
		rgba(255, 111, 111),
		rgba(255, 217, 67)
	);
}
.waifu-erio .waifu-body h3 :first-child{
  background-color: rgb(65, 201, 255);
}

.waifu-body .visit{
  font-family: "All That Matters";
  font-size: 18px;
  text-align: center;
  display: block;
  width: fit-content;
  margin: auto;
  margin-top: 15px;
  margin-right: 0;
  color: #aaa;
  transform: translateX(-50%);
  opacity: 0;
  transition: transform 250ms ease-in-out, opacity 250ms ease-in-out;
}
.waifu:hover .waifu-body .visit{
  opacity: 1;
  transform: translateY(0%);
}


.waifu-sakura .waifu-body a{
  background-color: rgb(255, 136, 136);
  color: black;
}
.waifu-sharo .waifu-body a{
  background-color: #ffcb00;
  color: black;
}
.waifu-colors .waifu-body a{
  background-image: linear-gradient(
		to right,
		rgba(79, 156, 255),
		rgba(255, 111, 111),
		rgba(255, 217, 67)
	);
  color: white;
}
.waifu-erio .waifu-body a{
  background-color: rgb(65, 201, 255);
  color: white;
}

.emoji{
  height: 1.2em;
  vertical-align: text-bottom;
}
.mart{
  margin-top: 150px;
}


[display] > span{
  display: inline-block;
  white-space: pre;
  opacity: 0;
}
[display] > span.no-pre{
  white-space: normal;
}
[display].show > span{
  animation: var(--anim-name) var(--anim-dur) ease-in var(--anim-delay) forwards;
}


@keyframes warp{
  0% {
    opacity: 0;
    transform: scale(0, 5);
  }
  100% {
    opacity: 1;
    transform: scale(1, 1);
  }
}
@keyframes left{
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes right{
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes down{
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
@keyframes up{
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}





@media (max-width: 850px){
  #banner{
    --shadow-size: 50px;
    --banner-size: 100px;
    --shadow-gap: 0px;
    /* height: 100px; */
  }
  #banner::before{
    background-position: center bottom;
  }
  #title{
    font-size: 60px;
    margin-top: 0px;
  }
  .post{
    padding: 40px 0px;
    min-height: auto;
  }
  .post.horizontal{
    width: 100%;
  }
  h2{
    font-size: 40px;
  }
  .mart{
    margin: 0;
  }
}
@media (max-width: 750px){
  .post.horizontal{
    padding: 40px;
  }
}
@media (max-width: 600px){
  #title{
    font-size: 10vw;
  }
  h2{
    font-size: 35px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  p{
    text-align: center;
  }
  .post.horizontal{
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .post.white{
    background: none;
    border: none;
  }
  .post h2.vertical{
    flex-direction: row;
  }
  .post h2.vertical .is-space{
    display: inline;
  }
}




@media (min-width: 1281px){
  .waifu:nth-child(3n+1) {
    transition-delay: 0ms;
  }
  .waifu:nth-child(3n+2) {
    transition-delay: 100ms;
  }
  .waifu:nth-child(3n+3) {
    transition-delay: 200ms;
  }

  .waifu:nth-child(3n+1) .waifu-image img{
    transition-delay: 250ms;
  }
  .waifu:nth-child(3n+2) .waifu-image img{
    transition-delay: 350ms;
  }
  .waifu:nth-child(3n+3) .waifu-image img{
    transition-delay: 450ms;
  }

  .waifu:nth-child(3n+1) .waifu-image :last-child{
    transition-delay: 500ms;
  }
  .waifu:nth-child(3n+2) .waifu-image :last-child{
    transition-delay: 600ms;
  }
  .waifu:nth-child(3n+3) .waifu-image :last-child{
    transition-delay: 700ms;
  }
}
@media (min-width: 800px) and (max-width: 1280px){
  .waifu-holder{
    grid-template-columns: repeat(2, 1fr);
  }

  .waifu:nth-child(2n+1) {
    transition-delay: 0ms;
  }
  .waifu:nth-child(2n+2) {
    transition-delay: 100ms;
  }

  .waifu:nth-child(2n+1) .waifu-image img{
    transition-delay: 250ms;
  }
  .waifu:nth-child(2n+2) .waifu-image img{
    transition-delay: 350ms;
  }

  .waifu:nth-child(2n+1) .waifu-image :last-child{
    transition-delay: 500ms;
  }
  .waifu:nth-child(2n+2) .waifu-image :last-child{
    transition-delay: 600ms;
  }
}
@media (max-width: 850px){
  .waifu-holder{
    grid-template-columns: repeat(1, 1fr);
  }
  
  .waifu:nth-child(n+1) {
    transition-delay: 0ms;
  }

  .waifu:nth-child(n+1) .waifu-image img{
    transition-delay: 250ms;
  }

  .waifu:nth-child(n+1) .waifu-image :last-child{
    transition-delay: 500ms;
  }
}