
/* ================= style.css ================= */
body {
  margin: 0;
  background: #f5efe6; /* soft beige minimal */
  font-family: "Cormorant Unicase", serif;
  text-align: center;
}

.main-title {
  font-weight: 600;
  margin-top: 20px;
}

#dial {
  width: 90vw;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 40px auto;
  border-radius: 50%;
  background: #e8dfd1;
  position: relative;
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.dial-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 18px;
}

.dial-btn:hover {
  transform: scale(1.2);
  background: #d6c8b0;
}

@media (max-width: 600px) {
  #dial {
    width: 85vw;
  }

  .dial-btn {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .main-title {
    font-size: 28px;
  }
}

#calendarWrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

body {
  margin: 0;
  background: #f5efe6 /* soft outer bg */
}

#calendar {
  position: relative;
  pointer-events: none;
}

.day,
.img-wrapper,
.resize-handle,
.sticker-wrapper {
  pointer-events: auto;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  
  width: 100%;
  margin: 0 auto;
  padding: 20px;

  box-sizing: border-box;
}

/* FULL PAGE */
#monthView {
  display: none;
  background-color: #f5efe6;
  padding: 40px 20px;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 100px;
  position: relative;
  pointer-events: none;
}

.day {
  aspect-ratio: 1 / 1;
  background: #f7f3ee;
  border-radius: 14px;
  padding: 6px;
  position: relative;
  cursor: pointer; 
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 12px;
  z-index: 1;
}

.day span {
  color: #2f2a26;   /* dark text */
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  pointer-events: none;
  top: 6px;
  left: 8px;
}

.empty-day {
  visibility: hidden;
}

.backBtn {
  cursor: pointer;
}

.scrap {
  position: absolute;
  width: 120px;
  cursor: grab;
  transition: 0.2s;
}

.scrap:hover {
  transform: scale(1.05);
}

.creator {
  text-align: center;
  margin-top: 60px;
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 30px;
}

.socials a {
  text-decoration: none;
  color: black;
  font-size: 13px;
  opacity: 0.7;
  transition: 0.3s;
}

.socials a:hover {
  opacity: 1;
}

#toolbar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 30px;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 99999;
}

#toolbar button {
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 1px;
  font-family: "Cormorant Unicase", serif; 
  opacity: 0.8;
}

#toolbar {
  z-index: 99999 !important;
  position: fixed;
}

#stickerPanel {
  z-index: 99999 !important;
}

#calendarWrapper {
  position: relative;
  z-index: 1;
}

#toolbar button:hover {
  opacity: 1;
}

.sticker-wrapper {
  position: absolute;
}

.scrap {
  position: absolute;
  width: 80px;
  cursor: grab;
}

.delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: black;
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#stickerPanel {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px;
  border-radius: 15px;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 300px;
  z-index: 2000;
}

.sticker {
  width: 40px;
  cursor: pointer;
}

.uploaded-img {
  position: absolute;
  z-index: 9999;
  cursor: grab;
  border-radius: 8px;
}

.img-wrapper {
  position: absolute;
  z-index: 10;
  width: 120px;
}

.img-wrapper img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.day {
  pointer-events: auto;
}

.sticker-wrapper {
  pointer-events: auto;
}


/* ↔️ RESIZE HANDLE */
.resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ccc;
  bottom: -6px;
  right: -6px;
  cursor: nwse-resize;
  border-radius: 2px;
}

/* 📱 MOBILE SCALE */
@media (max-width: 600px) {
  .polaroid {
    width: 100px;
  }

  .note {
    width: 100px;
    font-size: 12px;
  }
}

#calendar,
#calendarWrapper,
.day,
.img-wrapper,
.resize-handle,
.sticker-wrapper,
#toolbar,
#stickerPanel {
  pointer-events: auto;
}

@media (max-width: 600px) {

  #calendar {
    gap: 8px;
    padding: 8px;
  }

  .day {
    border-radius: 10px;
  }

  .creator {
    font-size: 12px;
  }

  .socials a {
    font-size: 12px;
  }
}