
/* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}


/* =========================
   ENTRY / DOOR PAGE
========================= */

body.welcome-body {
  min-height: 100vh;
  background-color: #f8c5dc;
  background-image: url("images/purple-background.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  font-family: Helvetica, Arial, sans-serif;
  color: #762b5b;
}

.welcome-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  gap: 28px;
}

.door-button {
  display: block;
  width: min(390px, 82vw);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.door-button img {
  display: block;
  width: 100%;
  height: auto;
}

.door-message {
  min-height: 20px;
  margin: 0;
  font-size: 16px;
  color: #762b5b;
  text-align: center;
}


/* =========================
   HOME PAGE
========================= */

body.home-body {
  width: 100%;
  min-height: 100vh;
  background-color: #e8b8d5;
  background-image: url("images/purple-background.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
  font-family: Helvetica, Arial, sans-serif;
}

.home-body .desktop {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 30px;
}


/* =========================
   PHOTO BOOTH
========================= */

.photobooth-window {
  position: absolute;
  width: min(58vw, 660px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.photobooth-window img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   WELCOME GIF
========================= */

.welcome-gif {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.welcome-gif img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   DESKTOP FOLDERS
========================= */

.desktop-icons {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.desktop-file {
  position: absolute;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #442b46;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.desktop-file img {
  width: 75px;
  height: auto;
  display: block;
}

.desktop-file span {
  display: inline-block;
  padding: 3px 7px;
  background: rgba(255, 245, 250, 0.88);
  border-radius: 3px;
  white-space: nowrap;
}

.desktop-file:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 7px #ff6be8);
}


/* FOLDER POSITIONS */

.file-about {
  top: 8%;
  left: 8%;
}

.file-artwork {
  top: 40%;
  right: 8%;
}

.file-photography {
  top: 45%;
  left: 3%;
}

.file-diary {
  top: 65%;
  right: 8%;
}

.file-favourites {
  bottom: 7%;
  left: 12%;
}

.file-kiss {
  left: 2%;
  bottom: 7%;
}

.file-contact {
  bottom: 7%;
  left: 72%;
  transform: translateX(-50%);
}

.file-contact:hover {
  transform: translateX(-50%) scale(1.1);
}



/* GREY IPOD TURTA RADIO - POSITION FIX */

.ipod-radio {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 390px;
  height: auto;
  z-index: 12;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ipod-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* SCREEN */
.ipod-radio-screen {
  position: absolute;
  left: 10.5%;
  top: 21.5%;
  width: 42.3%;
  height: 57%;
  z-index: 3;
  overflow: hidden;
  background: #111;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SMALLER DISPLAY */
.ipod-radio-screen .radio-display {
  width: 88%;
  padding: 4px;
  margin: 4px auto 3px;
  border: none;
  border-radius: 3px;
  box-shadow: none;
  background: linear-gradient(120deg, #f9c9e8, #e88bc9);
  text-align: center;
  flex-shrink: 0;
}

.ipod-radio-screen .radio-display-title {
  font-size: 9px;
  color: #68265f;
}

.ipod-radio-screen .radio-display-subtitle {
  font-size: 6px;
  margin-top: 2px;
}

/* SPOTIFY SCREEN */
#spotify-player {
  width: 100%;
  height: 110px;
  min-height: 110px;
  overflow: hidden;
  background: #111;
  border-radius: 3px;
  display: flex;
  justify-content: center;
}

#spotify-player iframe {
  display: block;
  width: 280px;
  height: 152px;
  border: 0;
  transform: scale(0.46);
  transform-origin: top center;
}

/* IPOD CLICK CONTROLS */
.ipod-radio .radio-buttons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.ipod-radio .radio-buttons button {
  position: absolute;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #555;
  font-size: 8px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: none;
}

/* PREVIOUS - LEFT BUTTON */
.ipod-radio #radioPrev {
  left: 65%;
  top: 39%;
}

/* PLAY / PAUSE - BOTTOM BUTTON */
.ipod-radio #radioToggle {
  left: 75%;
  top: 66%;
}

/* NEXT - RIGHT BUTTON */
.ipod-radio #radioNext {
  left: 85%;
  top: 39%;
}

@media (max-width: 700px) {
  .ipod-radio {
    position: relative;
    top: auto;
    right: auto;
    width: min(90vw, 390px);
    margin: 15px auto;
    order: 2;
  }
}


/* =========================
   MY LITTLE PONY
========================= */

.pony-home {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 230px;
  z-index: 5;
  text-align: center;
  background: transparent;
}

.pony-home img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.pony-name {
  color: #812a91;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 1px 1px white;
  margin: 2px 0 6px;
  text-transform: uppercase;
}


/* PONY NAME FORM */

.pony-name-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 5px 0;
}

.pony-name-form input {
  width: 135px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #a43b99;
  border-radius: 6px;
  background: #fff0ff;
  color: #701568;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10px;
}

.pony-name-form button {
  padding: 6px 8px;
  border: 1px solid #a43b99;
  border-radius: 6px;
  background: linear-gradient(#fff0ff, #e879d4);
  color: #701568;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}


/* PONY ACTIONS */

.pony-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pony-actions button {
  padding: 6px 9px;
  border: 1px solid #a43b99;
  border-radius: 7px;
  background: linear-gradient(#fff0ff, #e879d4);
  color: #701568;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 0 #a33a8f;
  transition: transform 0.15s ease;
}

.pony-actions button:hover {
  transform: translateY(-2px);
}

.pony-status {
  min-height: 15px;
  margin-top: 6px;
  color: #812a91;
  font-size: 10px;
  font-weight: bold;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  .home-body .desktop {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    padding: 20px 12px 30px;
  }

  .welcome-gif {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 0;
    width: 140px;
    margin: 5px auto 0;
  }

  .photobooth-window {
    position: relative;
    width: min(94vw, 560px);
    top: auto;
    left: auto;
    transform: none;
    order: 1;
    margin-top: 10px;
  }

  .turta-radio {
    position: relative;
    top: auto;
    right: auto;
    width: min(320px, 95%);
    margin: 10px auto;
    order: 2;
  }

  .desktop-icons {
    position: relative;
    inset: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 20px 5px;
    order: 3;
  }

  .desktop-file {
    position: relative;
    inset: auto;
    width: 100%;
    font-size: 11px;
    transform: none;
  }

  .desktop-file img {
    width: 65px;
  }

  .file-contact {
    left: auto;
    bottom: auto;
    transform: none;
  }

  .file-contact:hover {
    transform: scale(1.1);
  }

  .pony-home {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(75vw, 230px);
    margin: 10px auto;
    order: 4;
  }
}

/* FINAL IPOD BUTTON ALIGNMENT */

.ipod-radio #radioPrev {
  left: 65%;
  top: 39%;
}

.ipod-radio #radioToggle {
  left: 73%;
  top: 66%;
}

.ipod-radio #radioNext {
  left: 81%;
  top: 39%;
}

/* FINAL IPOD BUTTON POSITIONS */

.ipod-radio #radioPrev {
  left: 70%;
  top: 42%;
}

.ipod-radio #radioNext {
  left: 89%;
  top: 42%;
}

.ipod-radio #radioToggle {
  left: 77%;
  top: 73%;
}

/* FINAL IPOD BUTTON ALIGNMENT */

.ipod-radio #radioPrev {
  left: 60%;
  top: 46%;
}

.ipod-radio #radioNext {
  left: 80%;
  top: 46%;
}

.ipod-radio #radioToggle {
  left: 70%;
  top: 58%;
}


/* DIARY FOLDER POSITION */

.file-diary {
  top: 45%;
  right: 15%;
}
/* MOVE PHOTO BOOTH SLIGHTLY LEFT */

.home-body .photobooth-window {
  left: calc(50% - 60px);
  transform: translate(-50%, -50%);
}
/* PHOTO BOOTH POSITION FIX */

body.home-body .desktop .photobooth-window {
  position: absolute !important;
  left: calc(50% - 60px) !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}
.back-home {
  position: fixed;
  top: 22px;
  left: 25px;
  z-index: 999;
  color: #70204e;
  background: #d9c3ed;
  border: 1px solid #87558f;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 3px 3px 0 #87558f;
  transition: 0.2s ease;
}

.back-home:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #87558f;
}
/* PHOTO BOOTH VIDEO */

.photobooth-window {
  position: absolute;
  width: min(58vw, 660px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.photobooth-window video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.photobooth-window img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}
}
/* INVISIBLE IPOD CLICK WHEEL */

.ipod-radio {
  position: absolute;
}

.radio-buttons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.radio-buttons button {
  position: absolute;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 50%;
}

/* PREVIOUS - LEFT SIDE */
.radio-buttons .wheel-prev {
  width: 12%;
  height: 16%;
  left: 54%;
  top: 20%;
}

/* NEXT - RIGHT SIDE */
.radio-buttons .wheel-next {
  width: 12%;
  height: 16%;
  left: 78%;
  top: 20%;
}

/* PLAY / PAUSE - BOTTOM */
.radio-buttons .wheel-play {
  width: 17%;
  height: 17%;
  left: 64%;
  top: 31%;
}
/* HIDDEN IPOD CONTROLS - BEHIND THE IPOD IMAGE */

.ipod-radio .radio-buttons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ipod-radio .ipod-frame {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.ipod-radio .radio-buttons button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: transparent !important;
  opacity: 0;
  pointer-events: auto;
  z-index: 1;
}
/* REMOVE VISIBLE BUTTON CIRCLES */

.ipod-radio .radio-buttons button#radioPrev,
.ipod-radio .radio-buttons button#radioNext,
.ipod-radio .radio-buttons button#radioToggle {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: transparent !important;
  opacity: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}
/* BOOK PAGE DECORATION */

.reading-page-decor {
  position: absolute;
  width: 500px;
  top: 50%;
  left: calc(45% - 260px);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.reading-page-decor img {
  display: block;
  width: 100%;
  height: auto;
  transform: none;
}

/* PHOTO BOOTH FRAME AND VIDEO */

.photobooth-window {
  position: absolute;
  width: min(58vw, 660px);
  height: auto;
  top: 50%;
  left: calc(50% - 60px);
  transform: translate(-50%, -50%);
  z-index: 2;
  overflow: hidden;
}

/* VIDEO - INSIDE THE SCREEN AREA */
.photobooth-window video {
  position: absolute;
  left: 7.3%;
  top: 7%;
  width: 83.7%;
  height: 77%;
  object-fit: cover;
  z-index: 1;
}

/* PHOTO BOOTH FRAME - ABOVE VIDEO */

.photobooth-window img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* MOBILE */

@media (max-width: 700px) {
  .photobooth-window {
    position: relative;
    width: min(94vw, 560px);
    top: auto;
    left: auto;
    transform: none;
    margin: 10px auto;
  }
}