/* -------------------------------- variables ------------------------------- */
:root {
  --sidebarbg: #fffedd;
}

/* ------------------------------ font families ----------------------------- */
@font-face {
  font-family: "terminal";
  src: url("fonts/terminal-grotesque_open.woff2") format("woff2");
}

@font-face {
  font-family: "degheest";
  src: url("fonts/Director-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "osufont";
  src: url("fonts/Quicksand-VariableFont_wght.ttf") format("truetype");
}

/* --------------------------------- italic --------------------------------- */
em {
  font-style: italic; /* Usually default, but ensures consistency */
  color: #fce300; /* Optional: adds color to the emphasized word */
}

/* ---------------------------------- spans --------------------------------- */
.wavy {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #fce300;
}

.small {
  font-size: 0.8em;
  letter-spacing: 1px;
}

/* ---------------------------------- oneko --------------------------------- */
o-neko {
  z-index: 99999;
  pointer-events: none;
}

li {
  list-style-image: url("images/bocchidot.gif");
  margin-left: 30px;
}

a {
  text-decoration: none;
  color: #51cfd8;
  transition: all 0.3s ease;
  position: relative;
}

a:hover,
button:hover {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  color: #ca4487;
  text-shadow: 0 0 8px #19767e94;
  cursor: pointer;
  animation: fadeIn;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "terminal", "degheest", "degheest";
  background: url("https://i.pinimg.com/1200x/78/68/d6/7868d6ac9c58fd51f7153e70233d9f48.jpg")
    no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 20px;
  padding-bottom: 0;
  color: #fd8ea0;
  overflow: hidden;
  height: 100%;
}

h1 {
  font-size: 20px;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* -------------------------------------------------------------------------- */
/*                                  scrollbar                                 */
/* -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #effcdb;
  border: 1px solid #dffab7;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #dffab7;
  border-radius: 6px;
  border: 2px solid #9fbe70;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8f9a;
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: #dffab7 #effcdb;
  }
}

/* -------------------------------------------------------------------------- */
/*                                    music                                   */
/* -------------------------------------------------------------------------- */
#music-player {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-width: 7px;
  border-style: none none solid none;
  border-color: white;
  border-image: url("images/yellow\ border.png") 7 fill round;
  height: 30px;
  color: #fd8ea0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  z-index: 10;
}

#controls {
  display: flex;
  gap: 10px;
}

#controls button {
  background-color: transparent;
  border: none;
  text-shadow: 2px 2px #ffd6b7;
  color: #3fc4ceb2;
  cursor: pointer;
}

#controls button :hover {
  text-decoration: none;
  animation: fadeIn;
}

#progress-bar {
  position: relative;
  flex-grow: 1;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.726);
  border: #ff8ba6 1px solid;
  margin: 0 10px;
  margin-top: 0px;
  overflow: hidden;
  cursor: pointer;
}

#progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-image: url("images/progress\ bar.jpg");
  background-size: 10px;
  border-right: white 1px solid;
}

#song-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

#current-time,
#total-duration {
  font-size: 10px;
  color: #8d4330;
}

/* -------------------------------------------------------------------------- */
/*                      the container of the whole thing                      */
/* -------------------------------------------------------------------------- */
.main-container {
  width: 100%;
  max-width: 1000px;
  transition: max-width 0.4s ease;
  margin: 0 auto;
  margin-top: 3rem;
  margin-inline: auto;
  background: #fff;
  border: 3px outset #cf8894;
  height: 90vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  isolation: isolate;
}

.main-container[data-tab="home"] {
  max-width: 1000px;
}
.main-container[data-tab="media"] {
  max-width: 1500px;
}
.main-container[data-tab="games"] {
  max-width: 1500px;
}
.main-container[data-tab="goals"] {
  max-width: 1000px;
}

/* -------------- decorations - the images on top of containers ------------- */
.container-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
}

.container-decoration.top-left {
  top: -30px;
  left: -66px;
  width: 110px;
  height: 110px;
}

.container-decoration.middle-right {
  top: 20%;
  right: -30px;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
}

.container-decoration.bottom-right {
  bottom: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
}

.container-decoration.bottom-right2 {
  bottom: -100px;
  right: -50px;
  width: 300px;
  height: 360px;
}

/*
.container-decoration.games1 {
    top: 100px;
    right: 200px;
    width: 200px;
    height: 260px;
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.main-container[data-tab="games"] .container-decoration.games1 {
    display: block;
}
*/

.container-decoration.games1 {
  top: -70px;
  right: 0px;
  width: 200px;
  height: 260px;
  animation: fadeIn 0.4s ease-in-out;
}

.container-decoration.games2 {
  bottom: 130px;
  left: 0px;
  width: 160px;
  height: 220px;
  opacity: 70%;
  animation: fadeIn 0.4s ease-in-out;
}

/* --------------------------------- header --------------------------------- */
.header {
  background: linear-gradient(to bottom, #f7c7cf 0%, #a4dee2 100%);
  padding: 15px;
  border-bottom: 2px solid #c9e2c9;
  position: relative;
  z-index: 1;
}

.header-image {
  width: 100%;
  height: 120px;
  background-image:
    linear-gradient(to right, #fafafa00 0%, #ffffff 63%, #ffffff 50%),
    url("images/adsasdsda.png");
  /*background: url('images/adsasdsda.png') center/cover;*/
  background-size: cover;
  background-position: center;
  border: 2px solid #fbccdc;
}

.site-title {
  position: absolute;
  top: 35px;
  left: 30px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 15px;
  border: 2px dashed #fbccdc;
  color: #fd8ea0;
  font-size: 30px;
  font-weight: normal;
  font-family: "terminal";
  letter-spacing: 5px;
}

.site-subtitle {
  margin-top: 6px;
  font-size: 11px;
  color: #a4dee2;
  font-family: "degheest";
  font-weight: normal;
}

#wavy {
  position: relative;
}

#wavy span {
  position: relative;
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  animation-delay: calc(0.1s * var(--i));
  letter-spacing: -8px;
}

/* wavy animation */
@keyframes wave {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/*                                   sidebar                                  */
/* -------------------------------------------------------------------------- */
.sidebar-left {
  width: 180px;
  background: var(--sidebarbg);
  border-right: 2px solid #e8b4b8;
  overflow-y: auto;
  padding: 15px;
}

.sidebar-right {
  width: 180px;
  background: var(--sidebarbg);
  border-left: 2px solid #e8b4b8;
  overflow-y: auto;
  padding: 15px;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 15px;
  color: #fd8ea0;
  font-weight: bold;
  margin-bottom: 8px;
  border-bottom: 1px solid #9fbe70;
  padding-bottom: 4px;
}

.sidebar-text {
  font-size: 11px;
  color: #fd8ea0;
  text-shadow:
    0 0 10px rgb(250, 248, 248),
    0 0 20px rgb(223, 236, 236);
  line-height: 1.6;
  font-family: "degheest";
}

.sidebar-link {
  color: #51cfd8;
  text-decoration: none;
  font-size: 11px;
  display: block;
  padding: 3px 0;
  font-family: "degheest";
}

.sidebar-link.active {
  color: #fd8ea0;
  text-decoration: underline;
  text-decoration-style: wavy;
}

.sidebar-link:hover {
  text-decoration: underline;
  color: #5aa6ad;
  animation: 0.4 fadeIn;
}

/* ------------------------------- profile box ------------------------------ */
/*old profile box*/
/*.profile-box {
    background: #fff;
    border: 2px solid #e8b4b8;
    padding: 10px;
    margin-bottom: 10px;
}*/

.profile-box {
  background-image:
    linear-gradient(#d5dde038, #eafeff8e, #ffd8dd 80%),
    url("https://i.pinimg.com/736x/3e/53/0d/3e530dd7f5dd806b12a7baa408bb95d6.jpg");
  background-size: cover; /* Stretches/scales image to fill the container */
  background-position: center; /* Centers the image inside the container */
  background-repeat: no-repeat; /* Prevents the image from tiling */
  height: auto;
  border: 2px solid #e8b4b8;
  margin-bottom: 8px;
  padding: 10px;
}

.profile-image {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #fffefe 50%, #ffb8b8 100%);
  border: 2px solid #9fbe70;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* -------------------------------------------------------------------------- */
/*                              Middle Container                              */
/* -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-image:
    linear-gradient(var(--sidebarbg) 20%, #00ca00 50%),
    url("https://i.pinimg.com/736x/fc/8f/dd/fc8fdd17d134bb5c80f4a1d463553044.jpg");
  background-size: 50% 100%;
  background-position: center;
  background-attachment: fixed;
  background-color: rgba(122, 144, 255, 0.4);
  background-blend-mode: lighten;
}

/* ---------------------------------- posts --------------------------------- */
.post {
  margin-bottom: 25px;
  background: #fff;
  border: 2px groove #e68c99;
  padding: 15px;
  position: relative;
}

.post-content {
  font-size: 0.8em;
  color: #be5061;
  line-height: 1.8;
  position: relative;
}

.post-decoration {
  position: absolute;
  top: -26px;
  right: -18px;
  width: 70px;
  height: 70px;
  pointer-events: none;
}

.post-date {
  font-size: 13px;
  color: #51cfd8;
  margin-bottom: 5px;
}

.post-title {
  font-size: 16px;
  color: #f692a3;
  font-weight: bold;
  margin-bottom: 10px;
  border-left: 4px solid #d98b8e;
  padding-left: 8px;
}

.post-image {
  width: 100%;
  max-width: 300px;
  height: 150px;
  background: linear-gradient(135deg, #ffe8e8 0%, #ffd6d6 100%);
  border: 2px inset #ffd4da;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.post.image-post {
  padding: 0;
  line-height: 0; /* removes the tiny gap under images */
  min-height: 300px;
}

.post.image-post > img:not(.post-decoration) {
  position: absolute;
  inset: 0; /* top, right, bottom, left = 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* crops from the bottom, so Miku's head stays in frame */
}

.post-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dotted #e8b4b8;
  font-size: 11px;
  color: #999;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 equal columns */
  grid-auto-rows: 75px; /* height of one row */
  gap: 15px; /* the spaces between boxes */
  margin-bottom: 25px;
}

.post-grid > .post {
  margin-bottom: 0; /* the grid gap handles spacing now */
  overflow-y: auto; /* long text scrolls instead of spilling out */
}

/* which column it is in*/
.c1 {
  grid-column: 1;
}
.c2 {
  grid-column: 2;
}
.c3 {
  grid-column: 3;
}

/* height: rows */
.r1 {
  grid-row-end: span 1;
}
.r2 {
  grid-row-end: span 2;
}
.r3 {
  grid-row-end: span 3;
}
.r4 {
  grid-row-end: span 4;
}
.r5 {
  grid-row-end: span 5;
}
.r6 {
  grid-row-end: span 6;
}
.r7 {
  grid-row-end: span 7;
}
.r8 {
  grid-row-end: span 8;
}

/* which row it starts at */
.s1 {
  grid-row-start: 1;
}
.s2 {
  grid-row-start: 2;
}
.s3 {
  grid-row-start: 3;
}
.s4 {
  grid-row-start: 4;
}
.s5 {
  grid-row-start: 5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button {
  background: none;
  border: none;
}

.tab-section {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
  position: relative;
}

.tab-section.active {
  display: block;
}

/* -------------------------------------------------------------------------- */
/*                                   Medias                                   */
/* -------------------------------------------------------------------------- */
#medias {
  text-align: center;
  font-size: 40px;
  font-weight: normal;
  color: #f692a3;
  font-weight: bold;
  font-family: "terminal";
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/*                                    Games                                   */
/* -------------------------------------------------------------------------- */
#osubanner {
  display: flex;
  gap: 15px;
  align-items: stretch;
  flex-wrap: wrap;
  border-radius: 15px;
  background-image:
    linear-gradient(to right, #d5dde00c, #411b448e),
    url("https://c4.wallpaperflare.com/wallpaper/39/35/772/osu-games-art-digital-art-hd-wallpaper-preview.jpg");
  background-size: cover;
  background-position: center;
}

#osubanner > .osu-text {
  flex: 0 0 100%; /* full width, so it drops underneath */
}

/* -------------------------------------------------------------------------- */
/*                                    Anime                                   */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/*                                  calender                                  */
/* -------------------------------------------------------------------------- */
.calendar {
  background: #fff;
  border: 2px dashed #9fbe70;
  padding: 10px;
  margin-bottom: 15px;
}

.calendar-header {
  text-align: center;
  font-size: 12px;
  color: #5aa6ad;
  margin-bottom: 8px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-nav {
  cursor: pointer;
  color: #a5dee2;
  user-select: none;
}

.calendar-nav:hover {
  color: #65b5bb;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 10px;
  text-align: center;
}

.calendar-day {
  padding: 2px;
  color: #f98e9e;
}

.calendar-day.header {
  color: #f98e9e;
  font-weight: bold;
}

.calendar-day.today {
  background: #d7f8fa;
  border-radius: 3px;
}

.calendar-day.other-month {
  color: #a5dee2;
}

/* -------------------------------------------------------------------------- */
/*                                 my buttons                                 */
/* -------------------------------------------------------------------------- */

.button-section {
  background: #fff;
  border: 2px solid #e8b4b8;
  padding: 15px;
  text-align: center;
  justify-content: center;
  margin-bottom: 15px;
}

.button-title {
  font-size: 13px;
  color: #c97679;
  font-weight: bold;
  margin-bottom: 10px;
}

.button-image {
  display: inline-block;
  transition: transform 0.2s ease;
}

.button-image:hover {
  transform: scale(1.05);
}

.button-image img {
  width: 100px;
  height: 31px;
  border: 1px solid #e8b4b8;
  display: block;
}

textarea {
  field-sizing: content;
  width: 100px;
  height: 50px;
}

/* -------------------------------------------------------------------------- */
/*                             stamps and blinkies                            */
/* -------------------------------------------------------------------------- */
.marquee-section {
  background: #ffb8d9a9;
  height: 120px;
  overflow: hidden;
  text-align: center;
}

.marquee-section img {
  display: block;
  margin: 0 auto 5px;
}

.mstamp {
  width: 130px;
  height: 100px;
  margin: 0 5px;
}

.mblinkie {
  width: 130px;
  height: 60px;
  margin: 0 5px;
}

.neocities {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0rem;
}

.button-neocities {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 7px;
  border-style: solid;
  border-image: url("https://file.garden/ZZ2PUl9MPilKgIvB/collection/borders/xnxzti-1.png")
    8 fill round;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer {
  background: linear-gradient(to bottom, #dfeef0 0%, #93dde2 100%);
  border-top: 2px solid #c9e2c9;
  padding: 10px 15px;
  text-align: center;
  font-size: 13px;
  color: #5aa6ad;
  position: relative;
  z-index: 1;
}

.footer-links {
  margin-top: 5px;
}

.footer-link {
  color: #5aa6ad;
  text-decoration: none;
  margin: 0 5px;
}

.footer-link:hover {
  text-decoration: underline;
}
