/* cute-phone */


@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');


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

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f8f8f8;
  transition: background-color 1s ease-in-out;
  font-family: quicksand, sans-serif;
}

/* Tap Label */
.tap-label {
  margin: 0 0 1rem;
  font-size: 14px;
  color: #95a1ad;
  padding: 6px 10px;
  border-radius: 8px;
  transition: opacity 0.3s ease-in-out;
}

.screen.on ~ .tap-label {
  opacity: 0;
  pointer-events: none;
}

/* Phone Body */
.phone {
  position: relative;
  width: clamp(260px, 35vh, 380px);
  height: clamp(480px, 70vh, 650px);
  background-color: #fff6ee;
  border-radius: 40px;
  box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Screen */
.screen {
  width: 88%;
  height: 85%;
  background-color: #383838;
  border: 3px solid lightgray;
  border-radius: 16px;
  transition: background 1s ease-in-out;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.screen.on {
  background: linear-gradient(45deg, #f4cfc7, #d1e0de);
}

/* Elements Visibility */
.elements,
.time-display,
.notes,
.lock-screen,
.music-player {
  display: none;
}

.screen.on .elements,
.screen.on .time-display,
.screen.on .notes,
.screen.on .music-player {
  display: block;
}

/* Front Camera */
.front-cam {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: gray;
  border-radius: 50%;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Side Buttons */
.side-buttons {
  position: absolute;
  top: 20%;
  right: -6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-btn {
  width: 5px;
  height: 35px;
  background-color: pink;
  border-radius: 0px 50px 50px 0px;
  box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.2);
}

.side-btn.bottom {
  background-color: #f4a6c4;
}

/* Time Display */
.time-display {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: bold;
  color: #535366;
}

/* Music Player */
.music-player {
  display: none;
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 250px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  backdrop-filter: blur(10px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  align-items: center;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.screen.on .music-player {
  display: flex;
}

.album-cover {
  width: 50px;
  height: 50px;
  background: rgb(216, 208, 187);
  border-radius: 5px;
  border: 2px solid #978262;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-icon {
  font-size: 24px;
  line-height: 1;
}

.song-title {
  color: #71828d;
  font-size: 14px;
  font-weight: bold;
}

.song-artist {
  font-size: 12px;
  font-weight: 500;
  color: gray;
}

/* Notes */
.notes {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 200px;
  min-height: 100px;
  color: #6d5a64ff;
  background: #f0ede5;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Lock Screen */
/* Lock Screen */
.lock-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: opacity 0.3s ease-in-out;
  padding: 20px;
}

/* Password Label */
.lock-screen label {
  display: block;         /* ensures it behaves as block element */
  font-size: 16px;
  font-weight: 600;
  color: #ffeef5;
  margin-bottom: 20px;    /* creates real space below */
}

.lock-screen input {
  display: block;         /* stack properly */
  width: 75%;
  padding: 12px;
  font-size: 15px;
  border-radius: 12px;
  border: none;
  background: #f8f1f6;
  color: #babcc4ff;
  margin-bottom: 20px;    /* space below input */
  text-align: center;
  outline: none;
}



.lock-screen input:focus {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.12),
              inset -4px -4px 8px rgba(255, 255, 255, 0.9);
  background: #fff9fc;
}


/* Fake Keyboard */
.keyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 80%;
  margin-top: 20px;
}

/* Keys as aquircle (square squircle buttons) */
.key {
  aspect-ratio: 1 / 1;   /* ✅ makes keys square */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf6f9;
  color: #6c6c80;
  font-size: 18px;
  font-weight: 600;
  border-radius: 16px; /* ✅ squircle shape */
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;

 
  transition: all 0.2s ease-in-out;
}

.key:active {
  transform: scale(0.95);
  background: #f2e7ef;
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.12),
              inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}

/* Special arrow key */
.key:last-child {
  background: #d6f5dd;
  color: #4a7856;
  font-weight: bold;
  font-size: 20px;
}
.key:last-child:active {
  background: #b8e6c5;
}




/* Optional hover glow (desktop only) */
@media (hover: hover) {
  .key:hover {
    background: #fbefff;
    box-shadow: 0 4px 10px rgba(190, 150, 210, 0.25);
  }
}





/* Hide Lock Screen Initially */
.lock-screen.hidden {
  display: none;
}
/* Responsive Adjustments */
@media (max-width: 400px) { 
    .phone {
        width: 260px;
        height: 480px;
    }
}




/* Swipe Arrow */
.swipe-arrow {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px; /* bigger and more noticeable */
  color: #ffffff;
  cursor: pointer;
  animation: bounce 2s ease-in-out infinite; /* slower and smoother */

  /* Subtle glow for visibility */
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);

  /* Prevent text selection across browsers */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  display: none; /* hide by default */
}

/* Show only when screen is ON */
.screen.on .swipe-arrow {
  display: block;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); } /* smoother peak */
}





.notification {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 50px; /* pill shape for cuteness */
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap; /* ✅ keeps it always on one line */
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  animation: fade-in 0.3s ease;
  z-index: 999;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Success - pastel green */
.notification.success {
  background: #e0f7ec;
  color: #2b7a4b;
  border: 1px solid #b6e5c7;
}

/* Error - pastel pink */
.notification.error {
  background: #ffe3ec;
  color: #b7325e;
  border: 1px solid #f5b6c9;
}

/* Smooth fade-out */
.notification.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}


/* =========================
   IFRAME STYLING
========================= */
/* iframe container inside screen */
.screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 16px; /* match .screen */
  object-fit: cover;    /* fills container */
}


/* Prevent text selection and blue highlight */
.phone,
.phone * {
  -webkit-user-select: none; /* Safari/Chrome */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;         /* Standard */
  -webkit-tap-highlight-color: transparent; /* Removes blue highlight on touch */
  -webkit-touch-callout: none; /* Prevent long-press menu on iOS */
}
