@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@import url('https://fonts.cdnfonts.com/css/billabong');

@font-face {
  src: url(/fonts/Spirit.woff2);
  font-family: 'spirits';
  font-display: swap;
}

/* -----------------------------------------------------------
   BASE STYLES & CURSOR
----------------------------------------------------------- */
* {
  cursor: url(https://cur.cursors-4u.net/nature/nat-10/nat997.cur), auto !important;
  box-sizing: border-box;
}

html, body {
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background-color: #ffffff; 
  background-image: url('/media/backgrounds/pinkcheck.png') !important;
  background-size: 40px;
  background-repeat: repeat;
  background-attachment: fixed;
}

body {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  perspective: 2500px;
  -webkit-font-smoothing: subpixel-antialiased;
  image-rendering: -webkit-optimize-contrast;
  font-size: 12px;
  color: #616161;
  font-family: 'Nunito', sans-serif;
  background: transparent !important; 
}

html::after, body::before {
  content: none !important;
  display: none !important;
}

@media (min-width: 1024px) {
  html::after {
    content: "" !important;
    display: block !important;
    position: fixed;
    bottom: 50px;
    right: 340px;
    width: 400px;
    height: 500px;
    background-image: url("/media/graphics/earphones.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0 0 4px rgba(251, 250, 248, 0.9)) drop-shadow(0 0 8px rgba(251, 250, 248, 0.6));
  }

  body::before {
    content: "" !important;
    display: block !important;
    position: fixed;
    bottom: 80px;
    left: 120px;
    width: 400px;
    height: 490px;
    background: url("/media/lolita/lolitadress3.png") no-repeat;
    background-size: contain;
    background-position: bottom left;
    transform: scaleX(-1);
    pointer-events: none;
    z-index: 5; 
    filter: drop-shadow(0 0 4px rgba(251, 250, 248, 0.9)) drop-shadow(0 0 8px rgba(251, 250, 248, 0.6));
  }
}

@media (max-width: 350px) {
  .iphone6-bezel {
    transform: scale(0.9);
  }
}

/* -----------------------------------------------------------
   SELECTION & SCROLLBARS
----------------------------------------------------------- */
::selection {
  background-color: #feeef6;
  color: #616161;
}

::-moz-selection {
  background-color: #feeef6;
  color: #616161;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
  margin: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #ffcce6;
  border-radius: 50px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ffb3d9;
}

/* -----------------------------------------------------------
   POPUP NOTIFICATION 
----------------------------------------------------------- */
.win-window {
  position: absolute;
  top: 40px; 
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  max-width: 90%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 3000;
  border: 1px solid #ffdaed;
  touch-action: none;
  user-select: none;
  animation: slideDown 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes slideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.win-header {
  background: #ffeff7;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffdaed;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  cursor: move;
  box-shadow:
    inset 2px 2px 0px rgba(255, 255, 255, 0.8),
    inset -2px -2px 2px rgba(215, 127, 171, 0.15);
}

.win-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #88685d;
  text-transform: lowercase;
  font-family: nunito;
}

.win-controls {
  display: flex;
  gap: 5px;
}

.win-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ffdaed;
}

.win-btn.close {
  background: #f4abcb;
  cursor: pointer;
  transition: 0.2s;
}

.win-btn.close:hover {
  background: #88685d;
}

.win-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  font-weight: normal;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: #88685d;
}

/* -----------------------------------------------------------
   IPHONE CONTAINER 
----------------------------------------------------------- */
.iphone6-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  position: relative; 
  z-index: 10;  
}

.iphone6-bezel {
  width: 320px;
  height: 656px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
  border-radius: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.12),
    inset 0 0 5px rgba(0, 0, 0, 0.05),
    0 0 0 2px #d1d1d1;
  border: 1px solid #d1d1d1;
  padding: 50px 12px 60px 12px;
  margin: auto; 
}


/* -----------------------------------------------------------
   TOP ELEMENTS & HOME BUTTON
----------------------------------------------------------- */
.iphone6-top-elements {
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.camera {
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
}

.speaker {
  width: 40px;
  height: 4px;
  background: #dcdcdc;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.iphone6-home-button {
  width: 45px;
  height: 45px;
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  position: absolute;
  bottom: 8px;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone6-home-button:active {
  transform: scale(0.96);
  background: #f0f0f0;
}

.iphone6-home-button::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.5px solid #bebebe;
  border-radius: 4px;
  opacity: 0.7;
}

/* -----------------------------------------------------------
   IPHONE SCREEN & STATUS BAR
----------------------------------------------------------- */
.iphone6-screen {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  position: relative; 
  border: 2px solid #1a1a1a;
  background: url('/media/backgrounds/plushies.jpeg') no-repeat center center !important;
  background-size: cover !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

.ipad-status-bar {
  height: 25px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 10;
}

.status-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* -----------------------------------------------------------
   GRID & APPS
----------------------------------------------------------- */
.iphone6-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-top: 8px;
}

.iphone6-scroll-area::-webkit-scrollbar {
  display: none;
}

.iphone-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  justify-items: center;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.app-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.app-icon::before {
  content: '';
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.app-label {
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* -----------------------------------------------------------
   DOCK
----------------------------------------------------------- */
.iphone6-dock-container {
  position: absolute;
  bottom: 12px; 
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 20; 
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.iphone6-dock-container.app-is-open {
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden; 
  pointer-events: none; 
}

.iphone6-dock {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 10px;
  border-radius: 14px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dock-icon {
  width: 40px; 
  height: 40px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dock-item {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover {
  transform: scale(1.1) translateY(-4px); 
  z-index: 10; 
}

.dock-item:active {
  transform: scale(0.9);
}

/* -----------------------------------------------------------
   LACE OVERLAYS
----------------------------------------------------------- */
#lace {
  background-image: url(https://file.garden/aS-t0Aj4K3mdDujK/kkul/graphics/lacey.png);
  background-size: auto 100%;
  width: 100%;
  height: 20px;
  filter: drop-shadow(0px 1px #D1B9B3);
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 9999;
}

#lace-bottom {
  background-image: url(https://file.garden/aS-t0Aj4K3mdDujK/kkul/graphics/lacey.png);
  background-size: auto 100%;
  width: 100%;
  height: 20px;
  filter: drop-shadow(0px 1px #D1B9B3);
  position: fixed;
  bottom: 0px;
  left: 0px;
  transform: rotate(180deg);
  z-index: 9999;
}