/* Visit shop sets the tone for every pill in the header; About and Log in
   borrow its two colours so the three read as one set. Change them here and
   all three follow. */
:root {
  --hdr-pill:       #343464;
  --hdr-pill-hover: #3D3D74;
  --hdr-pill-ink:   #cdffe0;
}

body {
  font-family: "Outfit", sans-serif;
}

a {
   text-decoration: none !important;
}

* {
   box-sizing: border-box;
}

header {
   width: 100%;
   padding: 20px 40px 40px 40px;
   display: flex;
   justify-content: end;
   align-items: center;
   position: relative;
   z-index: 1;
}

.topbuttons, .msgbuttons, .shopBox {
   display: flex;
   width: 100%;
   justify-content: end;
   flex-wrap: wrap;
   gap: 20px;
}

.loginarrow {
   position: absolute;
   bottom: -95px;
   right: 20px;
}

/* The shop links: a panel under the button, not a strip that slides out of
   its side. Absolutely positioned so opening it never reflows the hero. */
.shopMenu {
   position: relative;
   display: inline-block;
}

.shopBox {
   position: absolute;
   top: calc(100% + 10px);
   left: 50%;
   transform: translateX(-50%) translateY(-6px);
   z-index: 10;
   flex-shrink: 0;
   flex-wrap: nowrap;
   width: max-content;
   align-items: center;
   white-space: nowrap;
   background: #262650;
   padding: 6px 12px;
   gap: 5px;
   border-radius: 20px;
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.shopBox.open {
   opacity: 1;
   visibility: visible;
   pointer-events: auto;
   transform: translateX(-50%) translateY(0);
   transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0s;
}

/* A little nub pointing back at the button it belongs to. */
.shopBox::before {
   content: "";
   position: absolute;
   top: -10px;
   left: 50%;
   width: 20px;
   height: 20px;
   margin-left: -10px;
   background: #262650;
   transform: rotate(45deg);
   border-radius: 5px 0 5px 0;
   z-index: -1;
}


 .msgbuttons {
   gap: 0px;
   color: #2B2B47;
   font-size: 22px;
   justify-content: space-between;
   font-weight: 600;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   margin-top: 30px;
  /* overflow: hidden;
   width: fit-content;*/
  /* transform-origin: 50% 100%;
   transform: scale(0, 0);
   animation: scaleUp 0.2s ease-out forwards 0.5s;
   animation-delay: 1.4s;*/
   font-family: "Outfit";
   text-transform: uppercase;
   letter-spacing: 0.5px;
 }

/* The hero pair: two solid tones, no outline and no shadow on either. They
   inherit 22px from .msgbuttons, so the size is set here explicitly. */
.browseBtn {
   display: inline-flex;
   align-items: center;
   border-radius: 999px;
   background: #BCFFCF;
   color: #20203C;
   font-size: 17px;
   font-weight: 800;
   padding: 12px 26px;
   letter-spacing: 0.5px;
   position: relative;
   z-index: 3;
   text-decoration: none;
   margin-right: 10px;
   transition: filter 0.14s;
   display: inline-flex;
   align-items: center;
   gap: 5px;
 }

 .cartic {
   height: 1.3em;
   width: auto;
   fill: currentColor
 }

.browseBtn:hover { filter: brightness(1.15); }
.browseBtn:active { transform: translateY(2px); transition: transform 0.1s;
filter: brightness(0.9); }
.shopBox0 {
   display: inline-flex;
   align-items: center;
   gap: 9px;
   border: 0;
   font-family: inherit;
   border-radius: 999px;
   background: var(--hdr-pill);
   color: var(--hdr-pill-ink);
   font-size: 17px;
   font-weight: 700;
   padding: 12px 26px;
   letter-spacing: 1px;
   position: relative;
   z-index: 2;
   cursor: pointer;
   transition: background 0.14s;
   text-transform: uppercase;
   line-height:  1.5em;
 }


.shopBox0:hover,
.shopBox0.open { background: var(--hdr-pill-hover); }


 .shopBox div {
   display: flex;
   padding: 6px 12px;
   align-items: center;
   color: #fff;
   font-size: 14px;
   border-radius: 8px;
   gap: 8px;
   z-index: 999;
   letter-spacing: 1px;
   line-height: 1.5em;
   transition: transform 0.1s, filter 0.1s;

 }

  .shopBox div svg, .browseBtn svg {
  position: relative;
  display: block;
  max-height: 1.7em;
  width: auto;
  }

  .browseBtn svg {
   max-height: 1.25em;
   fill: currentColor;
  }

  .spbrowse {
   position: absolute !important;
   top: 0px;
   right: -3px;
  }

   .spbrowse2 {
   position: absolute !important;
   top: 0px;
   right: -3px;
  }

 .shopBox div:hover {
   background: #41417c;
   transition: background 0.1s;
}

.topbuttons div {
   transition: 0.2s;
   position: relative;
}

.topbuttons div:last-child .sparkle {
   top: -3px;
   right: -3px;
   fill: #fcb3ff;
}

.topbuttons div:last-child:hover .sparkle {
   fill: #fff;
}

/* Both header pills, About and Log in, not just the last one. */
.topbuttons > a > div {
   border-radius: 30px;
   background: var(--hdr-pill);
   color: var(--hdr-pill-ink);
   font-weight: 600;
   padding: 12px 35px;
   font-size: 18px;
   letter-spacing: 1.8px;
}

.topbuttons > a > div:hover {
   background: var(--hdr-pill-hover);
   color: var(--hdr-pill-ink);
}

.decorcontBG {
   z-index: -1;
   padding: 0;
   margin: 0;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   position: absolute;
   position: fixed;
   background: linear-gradient(180deg, #161B37 0%, #1f2547 100%);
    background: linear-gradient(180deg, #16162b 0%, #161620 100%);
    background: #1E1E38;

}

.decor1 {
   width: 688px;
   height: 659px;
   position: absolute;
   display: block;
   border-radius: 30% 70% 70% 30% / 30% 51% 49% 70% ;
   background: hsl(240, 44%, 30%);
   opacity: 1;
   animation: spin 40s linear infinite;
   bottom: -300px;
   opacity: 0.15;
   left: 0px;
}
.decor3 {
   width: 688px;
   height: 659px;
   position: absolute;
   display: block;
   border-radius: 30% 70% 70% 30% / 30% 51% 49% 70% ;
   border: 2px solid #6e6cce;
   background: none;
   opacity: 1;
   animation: spin 40s linear reverse;
   bottom: -300px;
   left: 0px;
   opacity: 0.35;
}
.decor2 {
   width: 604px;
   height: 604px;
   position: absolute;
   border-radius: 450px;
  /* background: #17132c;
  */
   display: block;
   background: none;
   animation: spin 150s linear infinite reverse;
   border: 3px dashed #6662c7;
   opacity: 0.7;
   top: -300px;
   right: -200px;
}

@keyframes spin {
   to {
       transform: rotate(360deg);
  }
}

  .logoname {
   gap: 12px;
   color: #1F1F3A;
   font-size: 30px;
   font-weight: 900;
   letter-spacing: 3px;
   display: flex;
   width: 100%;
   justify-content: center;
  /* flex-wrap: wrap;*/
}

.acc.logoname {
   width: fit-content;
   font-size: 20px;
}

.hubTitle {
   color: #e4e4ff;
   font-weight: 900;
   margin-top: 10px;
   white-space: nowrap;
}

.acc.hubTitle {
   margin-top: 0;
   margin-left: 30px;
   letter-spacing: 1px;
}

.logoname > span {
   padding: 5px 15px;
   position: relative;
}

.logoname > span svg:nth-child(1) {
   width: 45px;
   height: auto;
}

.logoname.acc > span svg:nth-child(1) {
   width: 30px;
   height: auto;
}


.sparkle {
   width: 18px;
   height: auto;
   position: absolute;
   top: -9px;
   right: -9px;
}

.logoname > span:nth-child(1) {
   background: #2B2B47;
   padding: 0px 7px;
   display: flex;
   align-items: center;
}

.logoname > span:nth-child(2) {
   background: #BCFFCF;
}
.logoname > span:nth-child(3) {
   background: #fcb3ff;
}


.socials {
   position: fixed;
   bottom: 40px;
   display: flex;
   flex-direction: column;
   z-index: 110;
   left: 30px;
}
.socials div .socialhover {
   opacity: 1;
   transition: 0.3s linear;
   stroke-dashoffset: 1000;
   stroke-dasharray: 1000;
}
.socials div:hover .socialhover {
   opacity: 1;
   stroke-dashoffset: 920;
}
.socials div:hover {
   transform: scale(1.05);
}
.socials div {
   margin: 5px 0;
   transition: 0.2s linear;
   vertical-align: middle;
   position: relative;
}


.site-footer {
   position: relative;
   z-index: 2;
   margin-top: 60px;
   padding: 32px 40px 4px;
   text-align: center;
}

.site-footer-social {
   display: flex;
   justify-content: center;
   gap: 14px;
   margin-bottom: 20px;
}

.site-footer-social a {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: #2B2B47;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: background 0.15s, transform 0.15s;
}

.site-footer-social a:hover {
   background: #353568;
   transform: translateY(-2px);
}

.site-footer-links {
   display: flex;
   justify-content: center;
   align-items: center;
   flex-wrap: wrap;
   gap: 10px;
   font-size: 14px;
   color: #a9a8d4;
}

.site-footer-links a {
   color: #a9a8d4;
   transition: color 0.15s;
}

.site-footer-links a:hover {
   color: #BCFFCF;
}

.site-footer-links .dot {
   opacity: 0.5;
}

.site-footer-links .contact-btn {
   background: none;
   border: none;
   padding: 0;
   margin: 0;
   font: inherit;
   color: #a9a8d4;
   cursor: pointer;
   transition: color 0.15s;
}

.site-footer-links .contact-btn:hover {
   color: #BCFFCF;
}

.site-footer-copy {
   margin-top: 16px;
   font-size: 12px;
   color: #6f6e94;
   letter-spacing: 0.3px;
}

.avatar {
   width: 72px;
   height: 72px;
   flex-grow: 0;
   flex-shrink: 0;
   position: relative;
   top: -10px;
   border-radius: 50%;
   outline: 2px solid #AEDBFF;
   outline-offset: -1px;
}

.infobody {
   position: relative;
   gap: 30px;
   justify-content: center;
   display: flex;
   margin-top: 70px;
}

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

.accbody {
   position: relative;
   gap: 30px;
   justify-content: center;
   display: flex;
   margin-top: 70px;
   background: #35356871;
   padding: 60px 40px 25px 40px;
   width: 70%;
   border-radius: 12px;
}

.accheader {
   position: absolute;
   top: 0;
   width: 100%;
   height: fit-content;
   display: flex;
   justify-content: flex-start;
   padding: 5px 10px 0 30px;
   background: #353568;
   border-radius: 12px 12px 0 0;
}

.accheader div:nth-child(1) {
   background: linear-gradient(90deg, #9C98FF 0%, #BA9BFF 100%);
   border-radius: 10px 10px 0 0;
   padding: 5px 35px;
}


.messages {
   display: flex;
   gap: 17px;
   flex-direction: column;
   width: 565px;
   position: relative;
}

.messages .msg {
   background: #fff;
   border-radius: 30px;
   padding: 12px 30px;
   width: fit-content;
   color: #000;
   font-family: "Fredoka", "Outfit", serif;
   font-size: 21px;
   font-style: normal;
   font-weight: 400;
   position: relative;
   transform-origin: 0 100%;
   transform: scale(0, 0);
   animation: scaleUp 0.25s ease-out forwards 0.4s;
   z-index: 5;
}

.messages div:nth-child(3) {
  animation-delay: 0.5s;
}

.messages div:nth-child(4) {
   animation-delay: 0.6s;
 }


 .typing {
   position: relative;
   top: 0;
   left: 0;
   width: 41px;
   height: 7px;
   display: inline-block;
 }

 .typing span {
   content: '';
   animation: blink 1s infinite;
   animation-fill-mode: both;
   height: 8px;
   width: 8px;
   background: #2B2B47;
   position: absolute;
   left: 0;
   top: 0;
   border-radius: 50%;
  animation-delay: 0.1s;
}

.typing span:nth-child(2) {
   animation-delay: 0.3s;
   margin-left: 17px;
}
.typing span:nth-child(3) {
   animation-delay: 0.5s;
   margin-left: 34px;
}
@keyframes blink {
   0% {
      opacity: 0.1;
  }
   20% {
      opacity: 1;
  }
   100% {
      opacity: 0.1;
  }
}

.pseudoType {
   background: #fff;
   border-radius: 50px;
   padding: 10px 30px;
   width: fit-content;
   color: #000;
   font-family: "Fredoka", "Outfit", serif;
   font-size: 21px;
   font-style: normal;
   font-weight: 400;
   position: relative;
   transform-origin: 0 100%;
   position: absolute;
   left: 2px;
   transform: scale(0, 0);
   animation: scaleUp 0.2s ease-out forwards, scaleDown 0.2s ease-out forwards 0.4s;
   z-index: 0;
}

@keyframes scaleDown {
   0% {
      transform: scale(0);
   }
   100% {
      transform: scale(0);
   }
}


.msg1 > svg, .pseudoType svg {
   position: absolute;
   bottom: 0;
   left: -10px;
}

 .username {
   position: absolute;
   transform: translateY(-100%);
   top: -10px;
   color: #e4e4ff;
   font-family: "Nunito", "Outfit", serif;
   font-size: 21px;
   font-weight: 600;
   display: flex;
   align-items: center;
   gap: 7px;
   left: 0;
 }



@keyframes scaleUp {
   70% {
      transform: scale(1.1, 1);
   }
   100% {
      transform: scale(1, 1);
   }
}


/* chevron on the shop toggle */
.shopChev {
   width: 11px;
   height: 7px;
   flex-shrink: 0;
   transition: transform 0.18s ease;
}

.shopBox0.open .shopChev { transform: rotate(180deg); }
