@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&amp;display=swap');

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
    /*background: url(https://lilithdev.neocities.org/personal/home/BGstarani.gif);*/
    background: url(home/cloudyniteedit.png);
}

main {
    max-width: 960px;
    margin: 0 auto;

    /*border: white solid 8px;
    border-bottom: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;*/
    border: 20px solid transparent;
    border-image: url("../../solaria.neocities.org/bits/blacklace.png") 17 round;
    font-family: "Quicksand";
    image-rendering: pixelated;
}

header {
    /*background: url(https://lilithdev.neocities.org/personal/home/cloudynite_dither.png);*/
    background: url(home/BGstarani.gif);
    display: flex;
    justify-content: center;
    /*border: transparent solid 8px;
    border-bottom: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;*/
    /*padding: 24px;*/
    padding: 12px;
    border-radius: inherit;
    position: relative;
    image-rendering: initial;
}

#cityscape {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: url(home/X1ItSUI.png);
    filter: hue-rotate(60deg);
    background-size: auto 100%;
}

/*main:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -8px; /* same as border width */
    /*border-radius: inherit; /* inherit container box's radius */
    /*background: /*linear-gradient(to left, rgba(255,255,255,0.3) 0%, transparent 8px),
    linear-gradient(to right, rgba(255,255,255,0.3) 0%, transparent 8px),
    linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, transparent 8px),
    linear-gradient(to top, rgba(255,255,255,0.3) 0%, transparent 8px),*/
    /*linear-gradient(to bottom, #ff7dc9, #8bd8ff);
}*/

#content {
    padding: 16px;
    /*background: url(https://lilithdev.neocities.org/personal/home/purpl170_dither.jpg);*/
    /*border-top: 24px solid;*/
    /*border-top: 48px solid;
    image-rendering: crisp-edges;
    border-image: url(https://lilithdev.neocities.org/personal/home/02dadca2.gif) 24;
    border-image-repeat: repeat;*/
    background-size: 20px 20px;
    background-image: repeating-linear-gradient(0deg, #DCD0FF, #DCD0FF 1px, #e5e5f7 1px, #e5e5f7);
    image-rendering: initial;
}

#navigation {
    font-size: 2em;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /*margin-bottom: 32px;*/
}

.navigation-item {
    padding: 0.1em 0.4em;
    cursor: pointer;
}

.navigation-item.active {
    padding: 0.1em 0.4em;
    border-radius: 0.8em 0.3em;
    background: transparent;
    background-image: linear-gradient(
        to right,
        rgba(204, 0, 255, 0.1),
        rgba(204, 0, 255, 0.7) 4%,
        rgba(204, 0, 255, 0.3)
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: white;
}

.navigation-item:hover {
    filter: drop-shadow(rgba(204, 0, 255, 0.8) 0 0 4px);
}

.section {
    display: none;
    margin-top: 16px;
    animation: fadeEffect 0.5s; /* Fading effect takes 1 second */
  }
  
/* Go from zero to full opacity */
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.grid {
    display: flex;
    width: 100%;
    /*gap: 32px;*/
    gap: 5%;
    align-items: center;
}

.grid > div {
    /*flex-grow: 1;*/
    /*width: 100%;
    min-width: 0;
    aspect-ratio: 1;*/
    aspect-ratio: 1;
    flex: 1 1 0px;
    position: relative;
}

.grid > div > .grid-img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    /*z-index: 1;*/
    position: relative;
    display: block;
}

h1 {
    /*margin: 0 -0.4em;*/
    padding: 0.1em 0.4em;
    border-radius: 0.8em 0.3em;
    background: transparent;
    background-image: linear-gradient(
        to right,
        rgba(204, 0, 255, 0.1),
        rgba(204, 0, 255, 0.7) 4%,
        rgba(204, 0, 255, 0.3)
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: white;
    font-size: 2em;
    /*margin: 0 0;*/
    width: fit-content;
}

h2 {
    padding: 0.1em 0.4em;
    border-radius: 0.8em 0.3em;
    background: transparent;
    background-image: linear-gradient(
        to right,
        rgba(204, 0, 255, 0.1),
        rgba(204, 0, 255, 0.7) 4%,
        rgba(204, 0, 255, 0.3)
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: white;
    font-size: 1.5em;
    /*margin: 0 0;*/
    width: fit-content;
    margin: 8px 0;
}

#me-tomoko > img {
    /*box-shadow: 0 0 0 4px white, 0 0 0 8px #602A08;*/
    border: solid #602A08;
    border-top-width: medium;
    border-right-width: medium;
    border-bottom-width: medium;
    border-left-width: medium;
    border-width: 3px 5px 3px 5px;
    border-radius: 95% 4% 92% 5%/4% 95% 6% 95%;
    transform: rotate(2deg);
}

#me-mob {
    position: relative;
    border-radius: 6px;
    /*border: 8px solid transparent;
    border-image: url(https://i.imgur.com/jGSsrA9.gif) 1;
    box-sizing: content-box;*/
}

#psychic-fx {
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 8px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: url(../shrine/a/mp100/psychic_effect_small.gif);
    background-size: auto 100%;
}

.centered-fx {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#me-bocchi {
    /*box-shadow: 0 0 0 2px pink, 0 0 0px 7px pink, 0 0 0 8px #3D0F12;*/
    box-shadow: 0 0 0 2px pink, 0 0 0px 7px pink, 0 0 0 8px #3D0F12;
    border-radius: 8px;
    position: relative;
}

#me-bocchi::after {
    width: 16px;
    height: 16px;
}

#me-basil {
    /*box-shadow: 0 0 0 1px black, 0 0 0 4px white, 0 0 0 5px black;*/
    box-shadow: 0 0 0 2px black, 0 0 0 8px white, 0 0 0 10px black;
}

#me-ame {
    box-shadow: 0 0 0 2px #4932C9, 0 0 0 6px #94F1E1, 0 0 0 8px #4932C9;
}

/*#me-kikuri {
    box-shadow: 0 0 0 8px #ECEFE6, -2px -2px 0 6px #E50003, 0 0 0 8px #4932C9;
}*/

#me-megumin {
    /*box-shadow: 0 0 0 4px #9F3543, 0 0 0 8px #CEA867, 0 0 0 9px #3D0F12;*/
    box-shadow: 0 0 0 4px #9F3543;
    border-radius: 4px;
}

#me-kobayashi > .grid-img {
    border: 16px solid black;
    border-image: url(me/frame_kobayashi.png) 69 round;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    position: absolute;
}

#me-fern > .grid-img {
    border: 10px solid black;
    border-image: url(me/frame_fern.png) 60 round;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    position: absolute;
}

#me-hex {
    filter: drop-shadow(rgb(117,0,175) 0 0 20px);
    border-radius: 4px;
}

.grid > div:hover > .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;

    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip::after {
    content: " ";
    position: absolute;
    bottom: 100%;  /* At the top of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.tooltip > img {
    width: 90%;
}

.tooltip > .title {
    text-align: center;
    color: grey;
}

/*ul {
    list-style-type: none;
}*/

li {
    margin: 2px 0;
}

li:has(details) {
    list-style-type: none;
}

.answer {
    margin: 4px;
    padding: 8px 16px;
    border: 1px solid rgba(204, 0, 255, 0.6);
    border-radius: 0.8em 0.3em;
}

.answer > p:nth-child(1) {
    margin-top:0;
}

.answer > p:nth-last-child(1) {
    margin-bottom:0;
}

characterbox {
  --pixel:2 !important;
  margin-top: 40px;
}

@media (max-width: 960px) {
  #me-mob {
    position: relative;
    border-radius: 6px;
    /*border: 8px solid transparent;
    border-image: url(https://i.imgur.com/jGSsrA9.gif) 1;
    box-sizing: content-box;*/
  }
  
  #psychic-fx {
      width: calc(100% + 0.5em);
      height: calc(100% + 0.5em);
      border-radius: 8px;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      background: url(../shrine/a/mp100/psychic_effect_small.gif);
      background-size: auto 100%;
  }
  
  #me-bocchi {
      /*box-shadow: 0 0 0 2px pink, 0 0 0px 7px pink, 0 0 0 8px #3D0F12;*/
      box-shadow: 0 0 0px 2px pink, 0 0 0 3px #3D0F12;
      border-radius: 2px;
      position: relative;
  }
  
  #me-basil {
      /*box-shadow: 0 0 0 1px black, 0 0 0 4px white, 0 0 0 5px black;*/
      box-shadow: 0 0 0 1px black, 0 0 0 4px white, 0 0 0 5px black;
  }
  
  #me-ame {
      box-shadow: 0 0 0 1px #4932C9, 0 0 0 3px #94F1E1, 0 0 0 4px #4932C9;
  }
  
  /*#me-kikuri {
      box-shadow: 0 0 0 8px #ECEFE6, -2px -2px 0 6px #E50003, 0 0 0 8px #4932C9;
  }*/
  .bg-kikuri {
    width: calc(100% + 0.5em) !important;
    height: calc(100% + 0.5em) !important;
    border-radius:0.2em !important;
  }
  
  #me-megumin {
      box-shadow: 0 0 0 1px #9F3543, 0 0 0 2px #CEA867, 0 0 0 3px #3D0F12;
      border-radius: 4px;
  }
  
  #me-kobayashi > .grid-img {
      border: 4px solid black;
      border-image: url(me/frame_kobayashi.png) 69 round;
      width: calc(100% + 4px);
      height: calc(100% + 4px);
      position: absolute;
  }
  
  #me-fern > .grid-img {
      border: 2px solid black;
      border-image: url(me/frame_fern.png) 60 round;
      width: calc(100% + 2px);
      height: calc(100% + 2px);
      position: absolute;
  }
  
  #me-hex {
      filter: drop-shadow(rgb(117,0,175) 0 0 4px);
      border-radius: 2px;
  }
}