:root {
  --text-color: white;
  /* --container-bg: rgba(44, 28, 35, 0.546); */
  --container-bg: rgba(44, 27, 35, 0.816);

  --theme-color: #cb2f60;
}

.image,
img,
button,
summary:hover {
  cursor: url("./images/cursors/pointer.png"), pointer;

}

a:hover {
  color: white;
  cursor: url("./images/cursors/pointer.png"), pointer;

}

video {
  cursor: url("./images/cursors/pointer.png"), pointer;

}

html {
  scrollbar-color: var(--theme-color) rgba(255, 255, 255, 0);
}


@keyframes bg-scroll {
  0% {
    background-position: top left;
  }

  28%,
  100% {
    background-position: bottom right;
  }
}

body {
  font-family: "Special Gothic Expanded One", sans-serif;
  background: url(./images/bgtile.png);
  /* backdrop-filter: invert(90%) brightness(10%) drop-shadow(0px 1000px 0 var(--theme-color)); */

  animation: bg-scroll 600s linear 100;

  color: var(--theme-color);
  display: grid;
  grid-gap: 1rem;
  grid-template:
    "header header header"
    "sidebar main main"
    "footer footer footer"
    / 1fr 4fr 1fr;
  /* padding: 5% 5%; */
  cursor: url("./images/cursors/cursor.png"), auto;

}


@font-face {
  font-family: "Hanson";
  src: url('./fonts/Hanson-Bold.ttf');
}

p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
li {
  cursor: url("./images/cursors/text.png"), text;
}

h1,
h2,
h3 {
  font-family: "Hanson", serif;
  /* letter-spacing: 2px; */
  /* font-stretch: expanded; */
}

/* h2, h3{
font-stretch: 100%;
} */

a {
  color: var(--theme-color);
}

#tagsContainer {
  border-radius: 5px;
  /* padding: 1rem; */
  text-align: center;
  margin-top: 1rem;
  background: var(--container-bg);
  border-style: outset;
  border-color: var(--theme-color);

}

#tagsContainer summary {
  cursor: url("./images/cursors/pointer.png"), pointer;

}

#tagsContainer summary h3 {
  display: inline-block;
  margin-top: 1rem;
}

summary h3 {
  display: inline-block;
}

summary:hover {
  background: rgba(13, 0, 8, 0.157);
}


#tagsContainer[open] {
  background-color: var(--container-bg);
  /* max-height: 100%; */
}

#tagsList {
  /* padding-top: 1rem;
  padding-bottom: 1rem; */
  padding: 1rem .5rem 2rem .5rem;
}

.tagButton {
  font-family: "Special Gothic Expanded One", sans-serif;
  /* background: rgba(from var(--container-bg) calc(255 - r) calc(255 - g) calc(255 - b)); */
  border-radius: 8px;
  padding: 0.45rem;
  margin: 3px;
  /* color: rgb(from var(--text-color) calc(255 - r) calc(255 - g) calc(255 - b)); */
  border-color: var(--text-color);

  background: var(--container-bg);
  color: var(--text-color);
}

#resetButton {
  font-size: medium;
  background: var(--theme-color);
  color: var(--text-color);
}


.light-mode {
  background: url(./images/bgtile-light.png) center;
  --text-color: black;
  --container-bg: rgba(204, 145, 172, 0.395);
}

.lightToggleContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.colorSelectContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.colorCycleButton {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: var(--container-bg);
  color: var(--text-color);
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 0.9rem;
  cursor: url("./images/cursors/pointer.png"), pointer;

  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.colorCycleButton:hover {
  border-color: var(--theme-color);
  transform: scale(1.01);
}

.colorCycleButton:focus {
  outline: none;
  border-color: var(--theme-color);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.colorCycleButton:active {
  transform: scale(0.98);
}

/* Toggle Switch Styles */
.lightToggleSwitch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  cursor: url("./images/cursors/pointer.png"), pointer;

}

.lightToggleSwitch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  cursor: url("./images/cursors/pointer.png"), pointer;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  border-radius: 24px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--text-color);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 16px;
  left: 3px;
  /* bottom: 3px; */
  top: 1px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: .4s;
}


.sun svg {
  fill: white;
  position: absolute;
  top: 2.5px;
  left: 28px;
  z-index: 1;
  width: 14px;
  height: 14px;
}

.moon svg {
  fill: white;
  position: absolute;
  top: 2.5px;
  left: 4px;
  z-index: 1;
  width: 14px;
  height: 14px;
}


#lightModeToggle:focus+.toggle-slider {
  box-shadow: 0 0 1px var(--theme-color);
}

#lightModeToggle:checked+.toggle-slider:before {
  transform: translateX(21px);
}

.tagSelected {
  background: var(--theme-color);
  color: var(--text-color);
  transform: scale(1.075);
}

.lightToggleSwitch:hover .toggle-slider {
  filter: brightness(1.1);
}

.lightToggleSwitch:active .toggle-slider::after {
  transform: scale(0.9);
}

.tagButton:hover {
  background: color-mix(in srgb, var(--theme-color) 80%, black 20%);
  transform: scale(1.03);
}

.age-verification-bg {
  /* background: rgba(0, 0, 0, 0.5); */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: none;
  backdrop-filter: blur(25px);
}

.age-checker {
  background: rgba(54, 20, 47, 0.5);

  background-repeat: no-repeat;
  margin: 0 auto;
  z-index: 5500;
  min-width: 250px;
  /* width: 50%; */
  /* height: 40%; */
  top: 50%;
  left: 50%;
  border-radius: 19px 19px;

  transform: translate(-50%, -50%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  position: absolute;
  display: flex;
  /* align-items: center;      */
  color: var(--text-color);
}

.age-section {
  text-align: center;
  padding: 10%;
}

.yes-button {
  padding-bottom: 5%;
  padding-top: 2%;
}

.no-button a {
  color: inherit;
  text-decoration: inherit;
}

.mouse-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  z-index: 9999;
  will-change: transform, opacity;
}

.age-section h3 {
  letter-spacing: 0.3em;
}

.age-section a {
  letter-spacing: 0.2em;
}

.age-section a:hover {
  color: var(--theme-color);
}

.close-age-popup {
  cursor: url("./images/cursors/pointer.png"), pointer;

  color: var(--text-color)
}


header {
  /* background: var(--container-bg); */
  /* padding-left: 5%;
  padding-right: 5%; */
  border-radius: 5px 5px;

  grid-area: header;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.headerImage {
  max-width: 100%;
  height: 100px;
  filter: drop-shadow(0px 1000px 0 var(--theme-color));
  transform: translateY(-1000px);
}

marquee {
  letter-spacing: 0.1em;
  font-size: small;
  /* padding-bottom: 10px; */
  /* position: fixed;
  top: 3rem; */
  margin-bottom: 1rem;
  height: 2rem;
}

marquee img:active {
  transform: scale(1.2);
}

marquee img {
  /* vertical-align: -.75rem; */
  vertical-align: -.5rem;
  overflow: visible;

}


aside {
  /* background: var(--container-bg); */
  /* padding-left: 5%;
  padding-right: 5%; */
  border-radius: 5px 5px;
  grid-area: sidebar;
  text-align: center;
  line-height: 1.6;
  /* margin-right: 1rem; */

  /* position: sticky; */
  max-height: 700px;
  overflow-y: scroll;
  min-width: 200px;
  margin-left: 5rem;
  padding-right: 1rem;

}

aside ul {
  list-style-type: none;

}

#mobileNav {
  display: none;
}

.nav-details {
  background: var(--container-bg);
  border-radius: 5px 5px;
  border-style: outset;
  border-color: var(--theme-color);

}

.nav-details>summary {
  list-style: none;
}

.nav-details>summary::marker,
.nav-details>summary::-webkit-details-marker {
  display: none;
}

.nav-summary {
  cursor: url("./images/cursors/pointer.png"), pointer;

  color: white;
  background: var(--container-bg);
  border-radius: 5px 5px 0 0;
  border: none;
  outline: none;
  transition: background-color 0.2s ease;
  /* height: 3rem; */
  text-align: center;
  justify-content: center;
}

summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-summary::-webkit-details-marker {
  display: none;
}

.nav-summary::marker {
  display: none;
}


nav {
  background: var(--container-bg);
  padding: .15rem;
  border-radius: 0 0 5px 5px;
}


nav ul {
  text-align: center;
  list-style-type: "";
  padding-left: 0;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  flex-direction: column;
  margin: 12px;
  padding: 0;
}

nav li {
  padding: 5px;
  padding-right: 10px;
  flex: 1;

}

nav li a {
  display: inline-block;
  width: 100%;
  height: 100vh;
  font-weight: bold;
  vertical-align: middle;
  border-radius: .3em;
  text-decoration: none;
  padding: 0 .5em;
  font-size: 15px;

  color: white;
  background-color: var(--theme-color);
  padding: 10px 5px;
  height: max-content;
  letter-spacing: 0.1em;
  font-family: "Hanson", serif;
}

nav li a:hover {
  color: var(--text-color);
  transition: color 0.25s ease, background-color 0.25s ease, scale 0.25s ease;
  outline: 2px solid var(--main-link-color);
  background: color-mix(in srgb, var(--theme-color) 80%, black 20%);
  color: #ccc;
  scale: 1.05;
}

nav li a.active {
  color: var(--text-color);
  outline: 2px solid var(--main-link-color);
  background: color-mix(in srgb, var(--theme-color) 80%, black 20%);
  color: #ffffff;
  text-decoration: underline;
    text-shadow:  rgb(255, 255, 255) 1px 0 10px;
}

noscript {
  padding-bottom: 10rem;
}

.themesContainer {
  background: var(--container-bg);
  border-radius: 5px 5px;
  padding: 1rem;
  margin-top: 1rem;
  border-style: outset;
  border-color: var(--theme-color);


}


main {
  /* padding-left: 5%;
  padding-right: 5%; */
  border-radius: 5px 5px;
  grid-area: main;
  height: 700px;
  overflow-y: scroll;
  /* display: grid; */
  padding-right: 1rem;

}

main .section {
  background: var(--container-bg);
  border-radius: 5px 5px;
  padding: 5%;
  padding-top: 2%;
  /* margin-bottom: 1rem; */
  /* height: fit-content; */
  align-items: center;
  justify-content: center;
  text-align: center;

  border-style: outset;
  border-color: var(--theme-color);

}

div .guidelines {
  margin-bottom: 1rem;
}



#homePage {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: minmax(300px, 1fr) minmax(250px, 1fr) 350px;
}

.intro {
  justify-content: center;
  grid-column: 1 / 4;
  grid-row: 1;
}

.waveGif {
  vertical-align: -.4rem;
}

#clickMe{
  background-color: #6b0e6a03;
  height: 100px;
}

#clickMe:hover{
    cursor: url("./images/cursors/pointer.png"), pointer;
}

.welcomeImg{
  float: right;
  height: 200px;
  padding-top: .5rem;
    filter: drop-shadow(0 0 4px #6b0e6a);
      transition: all 300ms ease-in-out;

}

.welcomeImg:hover{
    transform: rotate(-9deg);
      transition: all 300ms ease-in-out;
}

.statusImage {
  filter: drop-shadow(5px 1px 4px #6b0e6a);
}

.statusImage:hover {
  animation: bounce 0.5s;
    /* animation-delay: .5s; */
}


.hide {display:none}

#clickMeImg.slide-down {
  animation: slideDownBack 2s ease forwards;
}

@keyframes slideDownBack {
  0% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(100px);
  }
  50% {
    transform: translateY(100px);
  }
  80% {
    transform: translateY(100px);
  }
  90% {
    transform: translateY(0);
  }
}

/* Do the shift: */
.statusImgContainer:hover img:first-child{display:none}
.statusImgContainer:hover img:last-child{display:inline-block}

@keyframes bounce {

  from,
  to {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(0.95, 1.05);
  }

  50% {
    transform: scale(1.05, 0.95);
  }

  75% {
    transform: scale(0.975, 1.025);
  }
}

.statusContainer {
  color: #fff;
  font-size: small;
  /* max-width: 28ch; */
  width: 100%;
  height: 50%;
  text-align: center;

  /* triangle dimension */
  --a: 90deg;
  /* angle */
  --h: .5em;
  /* height */

  --p: 51%;
  /* triangle position (0%:left 100%:right) */
  --r: 1.2em;
  /* the radius */
  --b: 5px;
  /* border width  */
  --color: rgb(121, 37, 87);

  padding: 1em;
  border-radius: var(--r)/min(var(--r), var(--p) - var(--h)*tan(var(--a)/2)) var(--r) var(--r) min(var(--r), 100% - var(--p) - var(--h)*tan(var(--a)/2));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%,
      0 min(100%, var(--p) + var(--h)*tan(var(--a)/2)),
      calc(-1*var(--h)) var(--p),
      0 max(0%, var(--p) - var(--h)*tan(var(--a)/2)));
  background: var(--color);
  border-image: conic-gradient(var(--color) 0 0) fill 0/ max(0%, var(--p) - var(--h)*tan(var(--a)/2)) var(--r) max(0%, 100% - var(--p) - var(--h)*tan(var(--a)/2)) 0/0 0 0 var(--h);
  min-width: 100px;

}

.status {
  display: flex;
  gap: 2rem;
  /* justify-content: center; */

  grid-column: span 2;
  grid-row: 2;
}

.hitCount {
  grid-column: 3;
  grid-row: 2;
  justify-content: space-around;
  border-image: url("./images/border.png") 30 / 20px round;
}

.hitCount p {
  margin-top: 4rem;
}




#galleryMain {
  background: var(--container-bg);
  border-radius: 5px 5px;
  padding: 2% 5% 5% 5%;
  overflow-y: scroll;
  height: 700px;
  border-style: outset;
  border-color: var(--theme-color);

}



#chattable {
  height: 400px;
  width: 250px;

}

.chatHeader {
  position: relative;
}

#hideChatButton {
  width: 2.4rem;
  height: 2.4rem;
  /* border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24); */
  border: none;
  background: none;
  background-image: url("/images/icons/eyeopen.webp");
  filter: invert(1);

  background-position: center;
  background-repeat: no-repeat;
  background-size: 2rem 2rem;
  /* color: white; */
  font-size: 0;
  cursor: url("./images/cursors/pointer.png"), pointer;

  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  padding: 0;
  position: absolute;
  left: 10rem;
  top: -.25rem;
}

#hideChatButton.open {
  background-image: url("/images/icons/eyeclosed.webp");
}

#hideChatButton:hover {
  /* background-color: rgba(255, 255, 255, 0.08); */
  transform: scale(1.1);
}


.latest,
.cool {
  text-align: center;
  justify-content: center;
}

.latest {
  grid-column: 1/3;
  grid-row: 3;
}

#chatContainer {
  grid-area: chat;
  grid-column: 3;
  grid-row: 3;
}

.cool {
  grid-column: 1/3;
  grid-row: 4/6;
}

#socialsNav {
  background: none;
}


.socials {
  grid-column: 3;
  grid-row: 3;

}

.socials h2 {
  padding-top: 2rem;
}

.socials img {
  vertical-align: -.25rem;

}

.socials a {
  background-color: rgba(0, 0, 0, 0.48);
}

.updateLog {
  grid-column: 3;
  grid-row: 4;
  overflow-y: scroll;
}

.petContainer {
  grid-column: 3;
  grid-row: 5;
}

.updateLog li,
.updateLog h3 {
  text-align: left;

}

.guestbookContainer {
  grid-column: 1/4;
}

#guestbook {
  height: 500px;
  width: 100%;
}

.mediaLog p,
.mediaLog li,
.mediaLog h4 {
  text-align: left;
}

.mediaLog h2,
.mediaLog big,
.mediaLog h4 {
  color: white;
  text-shadow: var(--theme-color)1px 0 10px;
}

.logEntry {
  background-color: rgba(13, 0, 0, 0.076);
  border-radius: 5px;
  padding: 1rem;
  border-style: outset;
  border-color: var(--theme-color);
}


footer {
  /* background: var(--container-bg); */
  border-radius: 5px 5px;
  grid-area: footer;
  text-align: center;
  font-size: small;
  margin-top: 3rem;
}

p {
  line-height: 1.5rem;
}



.galleryContainer {
  /* background:black;  */
  border-radius: 6px;
  /* margin-bottom: 25px; */
  padding-bottom: 50px;
  /* margin-top: 0; */
  /* overflow-y: hidden; */
}


.gallery {
  display: flex;
  flex-wrap: wrap;
  /* border: 5px solid; */
  border-radius: 15px 15px;
  /* margin-bottom: 10px; */
  /* padding-left: 10%; */
  /* justify-content: center; */
  /* justify-items: stretch; */

}

.gallery .image {
  /* width: 25%; */
  height: 270px;
  /* width: auto; */
  overflow: hidden;
  /* border-radius: 6px; */
  padding: 5px;

  /* Need this for text on border */
  padding-bottom: 40px;
  padding-top: 10px;
  margin: 5px;
  color: white;
  text-align: center;
  /* square thumbnail */
  /* aspect-ratio: 1 / 1 ; */
  background: rgba(13, 0, 8, 0.157);
  transition: transform 0.25s ease;
  /* flex-basis: 20%; */
  flex-grow: 1;
  max-width: 400px;
  position: relative;
}

.latest .div {
  margin: 30px;
}

.latest .image {
  overflow: hidden;
  /* border-radius: 6px; */
  padding: 5px;
  height: 300px;
  /* width: calc(50%); */

  /* Need this for text on border */
  padding-bottom: 30px;

  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  color: white;
  text-align: center;
  /* square thumbnail */
  aspect-ratio: 1 / 1;
  background: rgb(62, 5, 33);
  transition: transform 0.25s ease;
  /* flex-basis: 20%; */
  flex-grow: 1;
  /* max-width: 400px; */
  display: block;
  position: relative;
}

/* in future maybe icon area, width: ... */
.image .imageIcon {
  display: inline-block;
  position: absolute;
  width: 35px;
  height: 35px;
  top: 10px;
  filter: invert(100%) drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.7));
}

.gallery img,
.gallery video {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.latest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .image:hover,
.latest .image:hover {
  transform: scale(1.05);
  background: color-mix(in srgb, var(--container-bg) 70%, rgb(83, 6, 47) 30%);
}

.gallery div span {
  padding-top: 5px;
  margin: 4px 4px;
  /* font-size: 11px; */
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  justify-content: center;
}

.gallery .subImage , .latest .subImage {
  display: none;
}

#crt {
  position: relative;
  width: 500px;
  height: 400px;
  /* aspect-ratio: 16 / 9; */
  margin: 0 auto;
}

.tv {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.cool .video-shell {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  width: 420px;
  height: 280px;

}

.cool .video-shell::after {
  content: "";
  position: absolute;
  inset: 1rem;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 3px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.yt {
  width: 420px;
  height: 280px;
  clip-path: inset(10px 11px 13px 11px round 5%);
}

/* maybe do @media for max width 1200ish */
@media (max-width: 1200px) {
  #homePage {
    display: flex;
    flex-direction: column;
  }

  aside {
    margin-left: 1rem;
  }

  .updateLog {
    min-height: 300px;
  }

  .hitCount p {
    margin-top: auto;
  }

    #crt {
    width: 300px;
    height: 250px;
  }

  .cool .video-shell {
    position: absolute;
    top: 1.1rem;
    left: 1.2rem;
    width: 260px;
    height: 190px;

  }

  .yt {
    width: 260px;
    height: 190px;
    clip-path: inset(10px 11px 13px 11px round 5%);
  }

  .pong{
    text-align: center;
    justify-content: center;
  }


}

/* Mobile */
@media (max-width: 800px) {
  .age-checker {
    display: inline;
  }

  main,
  footer,
  header,
  aside {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 0;

  }

  body,
  header,
  .wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow-x: hidden;

  }

  .gallery {
    justify-content: center;
  }

  .nav-details {
    display: none;
  }

  #mobileNav {
    display: block;
  }


  aside nav {
    margin-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  aside nav ul {
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

  }

  aside nav li {
    /* padding: 3px; */
    flex-basis: 20%;
    flex-grow: .15;
    /* height: 50px; */
    height: 2.5rem;
    margin: 5px;

  }

  aside nav li a {
    font-size: 13px;
  }

  .nav-summary {
    font-size: 1rem;
    padding: 0.4rem;
  }

  .gallery div {
    padding-top: 0px;
    min-width: 200px;
    flex-grow: 0;
    aspect-ratio: 1 / 1;
  }

  .gallery div img {
    object-fit: cover;
  }

  .latest .image {
    height: 270px;

  }

  .image .imageIcon {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }

  #crt {
    width: 300px;
    height: 250px;
  }

  .statusContainer {

    height: 75%;
  }

  .updateLog {
    min-height: 300px;
  }

  /* #socialsNav{
    display: flex;
    flex-direction: row;
  } */

}