/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

@font-face {
  font-family: "Bellavoir Serif";
  src: url("../fonts/BellavoirSerif_PERSONAL_USE_ONLY.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  background:url("../pic/anime-style-clouds(1).jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}
/* ---------------------------------------loading screen------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.35s ease;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.container .preloader {
  animation: rotate 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}
@keyframes rotate {
  50% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(720deg);
  }
}
.preloader span {
  position: absolute;
  display: block;
  height: 64px;
  width: 64px;
  background: #3fc1f2;
  border: 1px solid #3fc1f2;
  border-radius: 100%;
}
.preloader span:nth-child(1) {
  transform: translate(-28px, -28px);
  animation: shape_1 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}
@keyframes shape_1 {
  60% {
    transform: scale(0.4);
  }
}
.preloader span:nth-child(2) {
  transform: translate(28px, -28px);
  animation: shape_2 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}
@keyframes shape_2 {
  40% {
    transform: scale(0.4);
  }
}
.preloader span:nth-child(3) {
  position: relative;
  border-radius: 0px;
  transform: scale(0.98) rotate(-45deg);
  animation: shape_3 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}
@keyframes shape_3 {
  50% {
    border-radius: 100%;
    transform: scale(0.5) rotate(-45deg);
  }
  100% {
    transform: scale(0.98) rotate(-45deg);
  }
}
.shadow {
  position: relative;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  height: 16px;
  width: 64px;
  border-radius: 50%;
  background-color: #d9d9d9;
  border: 1px solid #d9d9d9;
  animation: shadow 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}
@keyframes shadow {
  50% {
    transform: translateX(-50%) scale(0.5);
    border-color: #f2f2f2;
  }
}

.preloader-hide {
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------loading screen------------------------------- */




/* header */

.site-header { 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100px;
  width: 100%;
  background: transparent;
  font-size: 1.19rem;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 24px;
  position: relative;
}

.message {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header .message h2 {
  font-family: "Bellavoir Serif", "Poppins", serif;
  font-weight: 400;
  font-size: 3rem;
}


.site-header .logo {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 8vw, 80px);
  height: clamp(48px, 8vw, 80px);
  overflow: hidden;
}

.site-header .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* header */


/* piano */
.wrapper {
  padding: 35px 40px;
  border-radius: 20px;
  background: #141414;
  /* Responsive key sizing variables */
  --white-key-width: clamp(52px, 6vw, 70px);
  --white-key-height: clamp(180px, 32vh, 230px);
  --black-key-width: calc(var(--white-key-width) * 0.6);
  --black-key-height: clamp(110px, 18vh, 140px);
  --black-key-offset: calc(var(--black-key-width) / -2);
}
.wrapper header {
  display: flex;
  color: #b2b2b2;
  align-items: center;
  justify-content: space-between;
}
header h2 {
  font-size: 1.6rem;
}
header .column {
  display: flex;
  align-items: center;
}
header span {
  font-weight: 500;
  margin-right: 15px;
  font-size: 1.19rem;
}
header input {
  outline: none;
  border-radius: 30px;
}
.volume-slider input {
  accent-color: #fff;
}
.keys-checkbox input {
  height: 30px;
  width: 60px;
  cursor: crosshair;
  appearance: none;
  position: relative;
  background: #4b4b4b;
}
.keys-checkbox input::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8c8c8c;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}
.keys-checkbox input:checked::before {
  left: 35px;
  background: #fff;
}
.piano-keys {
  display: flex;
  list-style: none;
  margin-top: 40px;
}
.piano-keys .key {
  cursor: url("../curoshair/link 700.cur"), pointer;           
  user-select: none;
  position: relative;
  text-transform: uppercase;
}

/* Gallery: use pointer cursor */
body fieldset > label {
  cursor: url("../curoshair/link 700.cur"), pointer !important;
}
body fieldset input[type="radio"] {
  cursor: url("../curoshair/link 700.cur"), pointer !important;
}
.piano-keys .black {
  z-index: 2;
  width: var(--black-key-width);
  height: var(--black-key-height);
  margin: 0 var(--black-key-offset) 0 var(--black-key-offset);
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#333, #000);
}
.piano-keys .black.active {
  box-shadow: inset -5px -10px 10px rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom, #000, #434343);
}
.piano-keys .white {
  height: var(--white-key-height);
  width: var(--white-key-width);
  border-radius: 8px;
  border: 1px solid #000;
  background: linear-gradient(#fff 96%, #eee 4%);
}
.piano-keys .white.active {
  box-shadow: inset -5px 5px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to bottom, #fff 0%, #eee 100%);
}
.piano-keys .key span {
  position: absolute;
  bottom: 20px;
  width: 100%;
  color: #a2a2a2;
  font-size: clamp(0.8rem, 2.2vw, 1.13rem);
  text-align: center;
}
.piano-keys .key.hide span {
  display: none;
}
.piano-keys .black span {
  bottom: 13px;
  color: #888888;
}
/* piano */

.site-footer {
  width: 100%;
  margin-top: 40px;
  padding: 16px 20px;
  color: #0e0e0e;
  background: transparent;
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer p {
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  opacity: 0.9;
}




/* ---------------------------------------Bot button------------------------------- */

.Bot-Button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 10000;
  animation: bot-bounce 1.5s ease-in-out infinite;
  will-change: transform;
}

.Bot-Button .circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgb(0, 225, 255);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.Bot-Button:hover .circle,
.Bot-Button:focus-within .circle,
.Bot-Button .circle:hover,
.Bot-Button .circle:focus-within {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.Bot-Button a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #ffffff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 26px;
}

.Bot-Button a svg {
  width: 60%;
  height: 60%;
}

@keyframes bot-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media screen and (max-width: 615px) {
  .Bot-Button {
    width: 56px;
    height: 56px;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
}

.gallery {
  position: static;
}

/* --------------------------------------- Custom cursors --------------------------------------- */
/* Default site cursor */
body,
html {
  cursor: url("../curoshair/normsl u.cur"), auto;
}

/* Links and buttons */
a,
button {
  cursor: url("../curoshair/link 700.cur"), pointer;
}

/* Text inputs and editable areas */
input,
textarea,
[contenteditable="true"] {
  cursor: url("../curoshair/Text Select.cur"), text;
}

/* Removed select-crosshair; using pointer cursors instead */







/* Spacing between gallery (fieldset) and piano */
fieldset {
  margin: 16px 0 32px;
}

.wrapper {
  margin-top: 16px;
}


/* responsive */
@media screen and (max-width: 815px) {
  .wrapper {
    padding: 25px;
    --white-key-width: clamp(46px, 7vw, 60px);
    --white-key-height: clamp(160px, 30vh, 200px);
    --black-key-width: calc(var(--white-key-width) * 0.58);
    --black-key-height: clamp(96px, 16vh, 120px);
  }
  .wrapper header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "vol   keys";
    justify-items: center;
    align-items: center;
    gap: 8px;
  }
  .wrapper header h2 {
    grid-area: title;
    text-align: center;
    font-size: 1.25rem;
  }
  .wrapper header .volume-slider { grid-area: vol; }
  .wrapper header .keys-checkbox { grid-area: keys; }
  .wrapper header :where(h2, .column) {
    margin-bottom: 8px;
  }
  .wrapper .volume-slider input {
    max-width: 100px;
  }
  .keys-checkbox input {
    width: 48px;
    height: 24px;
  }
  .keys-checkbox input::before {
    width: 16px;
    height: 16px;
    left: 4px;
  }
  .keys-checkbox input:checked::before {
    left: 28px;
  }
  .piano-keys {
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
    justify-content: center;
  }
  .piano-keys .key:where(:nth-child(9), :nth-child(10)) {
    display: none;
  }
  .piano-keys .black {
    height: var(--black-key-height);
    width: var(--black-key-width);
    margin: 0 var(--black-key-offset) 0 var(--black-key-offset);
  }
  .piano-keys .white {
    height: var(--white-key-height);
    width: var(--white-key-width);
  }
}

@media screen and (max-width: 615px) {
  .wrapper {
    padding: 18px;
    --white-key-width: clamp(42px, 9vw, 50px);
    --white-key-height: clamp(150px, 28vh, 170px);
    --black-key-width: calc(var(--white-key-width) * 0.56);
    --black-key-height: clamp(88px, 15vh, 100px);
  }
  .wrapper header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "vol   keys";
    gap: 6px;
    justify-items: center;
    align-items: center;
  }
  .wrapper header h2 {
    grid-area: title;
    font-size: 1.05rem;
    text-align: center;
  }
  .wrapper header .volume-slider { grid-area: vol; }
  .wrapper header .keys-checkbox { grid-area: keys; }
  .wrapper header span {
    font-size: 1rem;
    margin-right: 10px;
  }
  .wrapper .volume-slider input {
    max-width: 88px;
  }
  .keys-checkbox input {
    width: 44px;
    height: 22px;
  }
  .keys-checkbox input::before {
    width: 14px;
    height: 14px;
    left: 4px;
  }
  .keys-checkbox input:checked::before {
    left: 26px;
  }
  .site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    gap: 8px;
  }

  .site-header .logo {
    position: static;
    transform: none;
    margin: 0 auto 4px;
    width: 72px;
    height: 72px;
  }

  .site-header .message h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .site-footer {
    padding: 12px 16px;
  }

  .site-footer p {
    text-align: center;
  }

  .piano-keys .key:nth-child(13),
  .piano-keys .key:nth-child(14),
  .piano-keys .key:nth-child(15),
  .piano-keys .key:nth-child(16),
  .piano-keys .key :nth-child(17) {
    display: none;
  }
  .piano-keys {
    overflow-x: auto;
    padding-bottom: 6px;
    justify-content: center;
  }
  .piano-keys .white { width: var(--white-key-width); height: var(--white-key-height); }
  .piano-keys .black { width: var(--black-key-width); height: var(--black-key-height); margin: 0 var(--black-key-offset) 0 var(--black-key-offset); }
}
