/* about page */

body {
  background-color: #fffcfe;
  font-family: "lovely";
  font-size: 10.5px;
}

::selection {
  color: #ffc4d4;
}

.abtpage {
  width: 900px;
  margin: 70px auto 35px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #8a7070;
}

.abttop {
  display: grid;
  grid-template-columns: 250px 1fr 220px;
  gap: 12px;
}

.abtcard {
  position: relative;
  background: #fffafd;
  border: 2px solid white;
  outline: 1px solid #f5d5e8;
  border-radius: 18px;
  padding: 24px;
  box-sizing: border-box;
}

.abttitle,
.chartitle {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  text-align: center;
  font-family: "Ownglyph PDH Regular";
  font-size: 24px;
  font-weight: normal;
  color: #a48787;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

.abtsection {
  position: relative;
  overflow: visible;
}

.abtbow {
  position: absolute;
  width: 52px;
  height: auto;
  z-index: 40;
  pointer-events: none;
}

.abtbowleft {
  top: -20px;
  left: -8px;
  transform: rotate(-25deg);
}

.abtbowright {
  top: -20px;
  right: -8px;
  transform: rotate(25deg);
}

.abtsection::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed #f0d3df;
  border-radius: 14px;
  pointer-events: none;
}

.abtsection::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 12px;
  right: 12px;
  height: 28px;
  background-image: url("/img/bar5.png");
  background-repeat: repeat-x;
  background-size: auto;
  filter: drop-shadow(0 1px #e7bfd0);
  pointer-events: none;
}

/* portrait */

.portrait {
  min-height: 280px;
  padding: 20px;
  background-color: #fffafd;
  background-image: url("/img/whitepolka.jpg");
  background-repeat: repeat;
  background-size: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portraitimg {
  display: block;
  width: 215px;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-width: 8px;
  border-style: solid;
  border-image: url("/img/pinkborder2.gif") 7 fill round;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
  opacity: 0.88;
  filter: saturate(0.65);
}

.icecream,
.piping,
.purin,
.kkuma {
  position: absolute;
  height: auto;
  z-index: 60;
  pointer-events: none;
  filter:
    saturate(0.72)
    brightness(1.04)
    contrast(0.96)
    drop-shadow(-2px -2px 0 #fff)
    drop-shadow(2px -2px 0 #fff)
    drop-shadow(-2px 2px 0 #fff)
    drop-shadow(2px 2px 0 #fff)
    drop-shadow(0 0 3px #fff2f8)
    drop-shadow(0 0 6px #fff2f8);
}

.icecream {
  width: 78px;
  top: -28px;
  left: -28px;
}

/* about text */

.abtlace {
  border-width: 8px;
  border-style: solid;
  border-image: url("/img/laceborder.png") 8 fill round;
  padding: 18px 18px 24px;
  box-sizing: border-box;
  background: #fffafd;
}

.abtwrap {
  position: relative;
}

.abtframe {
  height: 190px;
  border: 1px dashed #f0cdda;
  background: #fff;
  padding: 28px 14px 14px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.abtframe p {
  margin: 0;
  line-height: 1.6;
}

.abtaccent {
  color: #f2a7c5;
}

.abtemote {
  height: auto;
  vertical-align: -2px;
}

.abtemote18 {
  width: 18px;
}

.abtemote15 {
  width: 15px;
}

.abtdivider {
  margin: 16px 0;
  text-align: center;
}

.abtdivider img {
  width: 260px;
  height: auto;
}

.abtheartline {
  text-align: center;
  color: #f2a7c5;
  font-style: italic;
}

.pinkbow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
}

/* favourites */

.favsection {
  position: relative;
  overflow: visible;
  border: 8px solid transparent;
  border-image: url("/img/laceborder.png") 8 fill round;
  border-radius: 0 !important;
  outline: none !important;
  padding: 28px 18px 18px;
  box-sizing: border-box;
}

.favsection::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed #f2cfdc;
  pointer-events: none;
  z-index: 1;
}

.favsection::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 230px;
  height: 30px;
  transform: translateX(-50%) rotate(180deg);
  background: url("/img/pinkicing.png") center / 230px auto no-repeat;
  pointer-events: none;
  z-index: 3;
}

.favheading {
  position: absolute;
  z-index: 3;
  top: -17px;
  left: 50%;
  width: 230px;
  height: 30px;
  margin: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.favheading img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.favtitle {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: "Ownglyph PDH Regular";
  font-size: 21px;
  font-weight: normal;
  color: #9f7f87;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

.favcontent {
  position: relative;
  z-index: 2;
  padding: 10px 2px 2px;
}

.favtext {
  height: 255px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px dashed #f2cfdc;
  border-radius: 0;
  background: #fff;
  padding: 18px 14px 14px;
  box-sizing: border-box;
  font-family: "basiic", sans-serif;
  font-size: 10px;
  line-height: 1.7;
}

.favgroup {
  padding-left: 25px;
  text-indent: -16px;
}

.favlabel {
  border-bottom: 1px dotted #e8bfd0;
  padding-bottom: 1px;
  background: #fff5f9;
}

.favpeek {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 30px;
  height: auto;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.piping {
  width: 92px;
  top: -30px;
  right: -34px;
  transform: rotate(-8deg);
}

/* favourite characters */

.charsection {
  position: relative;
  overflow: visible;
  border: 8px solid transparent;
  border-image: url("/img/softpinklace2.png") 6 fill round;
  outline: none;
  border-radius: 18px;
  padding: 40px 18px 18px;
  box-sizing: border-box;
}

.charheading {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 520px;
  height: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.charheading img {
  position: absolute;
  width: 520px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.charheading .chartitle {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 24px;
}

.chargrid {
  display: grid;
  grid-template-columns: repeat(4, 155px);
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}

.charcard {
  position: relative;
  width: 155px;
  height: 155px;
  overflow: hidden;
  border-width: 8px;
  border-style: solid;
  border-image: url("/img/laceborder.png") 8 fill round;
  box-sizing: border-box;
  background: #fff;
}

.charslider {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6);
  opacity: 1;
  transition: opacity 1.8s ease-in-out, filter 0.35s ease;
}

.charcard:hover .charslider {
  filter: none;
}

.charslider.fade {
  opacity: 0;
}

.purin {
  width: 88px;
  left: -30px;
  bottom: -30px;
}

.kkuma {
  width: 78px;
  right: -18px;
  bottom: -24px;
}

/* back */

.backbutton {
  margin: 5px 0;
  text-align: center;
}

.backbutton img {
  width: 20px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.backbutton img:hover {
  opacity: 1;
}

/* right click menu */

#context_menu {
  position: absolute;
  display: none;
  width: 70px;
  background: #fef8fc;
  border: 1px dotted #aaa;
  letter-spacing: 1px;
  font-size: 8px;
  color: #787878;
  z-index: 999;
}

#context_menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#context_menu li {
  padding: 4px;
  cursor: url("/img/key.png"), progress;
}

#context_menu li:hover {
  background: #fef8fc;
  color: #848484;
}

/* tooltips */

#s-m-t-tooltip {
  max-width: 105px;
  padding: 3px 5px;
  box-sizing: border-box;
  background: #fffafd;
  border-width: 6px;
  border-style: solid;
  border-image: url("/img/laceborder.png") 8 fill round;
  font-family: "basiic";
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: #9f7f87;
  pointer-events: none;
  z-index: 999999 !important;
  box-shadow: 0 0 8px rgba(245, 213, 232, 0.25);
}

#s-m-t-tooltip div {
  padding-left: 5px;
}