@font-face {
  font-family: 'Baby Doll';
  src: url('font/BabyDoll.woff2') format('woff2'),
       url('font/BabyDoll.woff') format('woff');
}

@font-face {
  font-family: 'PORKYS_';
  src: url('font/PORKYS_.TTF') format('truetype');
}

@font-face {
  font-family: 'Dreamer TM';
  src: url('DreamerTM-Regular.eot');
  src: local('Dreamer TM Regular'), local('DreamerTM-Regular'),
      url('DreamerTM-Regular.eot?#iefix') format('embedded-opentype'),
      url('DreamerTM-Regular.woff2') format('woff2'),
      url('DreamerTM-Regular.woff') format('woff'),
      url('DreamerTM-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  background: #ffe4ec url("images 2/pink2.gif") no-repeat center center;
  background-size: cover; 
  font-family: 'Baby Doll', sans-serif;
  color: #7a343f;
}

.wrap {
  width: 1080px;
  margin: 20px auto;
}

#container {
  background: #fff0f5;
  border: 2px solid #ff9fb8;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255, 159, 184, 0.6);
  padding: 12px;
}

#header {
  background:
    url("images 2/flowers.png") center 20% / cover no-repeat,
    linear-gradient(#ffd1e1, #ff9fb8);
  height: 220px;
  border-radius: 12px 12px 0 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

#header img {
  width: 280px;
}

.header-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  text-align: center;
  white-space: nowrap;
  font-family: 'Dreamer TM', cursive;
  font-size: 100px;
  letter-spacing: 1px;
  color: #ff7cc8;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff,
     0 0 6px rgba(255,182,206,0.8),
     0 0 12px rgba(255,105,180,0.6),
     0 0 18px rgba(255,105,180,0.4);
}

.welcome-bar { 
  width: 100%; 
  overflow: hidden; 
  white-space: nowrap; 
  background: #ffb8ce; 
  border-radius: 10px; 
  padding: 5px 0; 
  margin: 15px 0; 
  border: 2px solid #aa4152; 
} 

.welcome-text { 
  display: inline-block; 
  padding-left: 100%; 
  font-family: 'PORKYS_', cursive; 
  font-size: 1.3rem; 
  color: #ffffff; 
  text-shadow: 2px 2px #aa4152; 
  animation: scroll-left 14s linear infinite; 
} 

@keyframes scroll-left { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-100%); } 
}

.nav {
  display: flex;
  justify-content: space-evenly;
  gap: 6px;
  margin: 10px 0;
}

.nav-btn {
  background: linear-gradient(#fff0f5, #ffb8ce);
  border: 2px solid #ff9fb8;
  border-radius: 12px;  
  padding: 8px 18px;
  color: #ffffff;       
  font-family: 'PORKYS_';
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-shadow: 1px 1px 0 #ff6aa3, -1px 1px 0 #ff6aa3, 1px -1px 0 #ff6aa3, -1px -1px 0 #ff6aa3;
}

.nav-btn:hover {
  background: linear-gradient(#ffffff, #ffc6da);
}

.flex {
  display: flex;
  gap: 15px;
}

.box {
  flex: 1;
  background: #fffafc;
  border-radius: 0;
  border: 2px solid #ff9fb8;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
   min-height: 400px; height: auto;
}


h3 {
  font-family: 'PORKYS_', bold;
  color: #ffb8ce;
  text-shadow: 3px 3px #aa4152;
  text-align: center;
  font-size: 4rem;
  margin-bottom: 13px;
  margin-top: 13.5px;
}

#wrapper {
  max-width: 935px;
  margin: 25px auto;
  padding: 25px;
  background-size: cover;
}

main section {
  padding: 18.7px;
  border: 1px dashed #ccc;
  background-color: #fff0f5;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 12.7px;
}

main p {
  font-size: 1.19rem;
  line-height: 1.8;
  margin: 12.7px 0;
}

.arrow-button {
  font-family: "Baby Doll";
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #ffb6c1;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  transition: background-color 0.3s;
}

.arrow-button:hover {
  background-color: #ffa6c1;
}


.highlight {
  background-color: #ffb8ce; 
  padding: 2px 5px;
  border-radius: 3px; 
}

.journal-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  margin-top: 0px;
}


.journal-content {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;

  height: 100%;
 
  box-sizing: border-box;
}

.right-column {
  width: 800%;
  padding: 25px 25px 25px 25px;
  box-sizing: border-box;
}

.left-column {
  position: relative;
  width: 20%;

  box-sizing: border-box;
}




#calendar div {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 17px;
}

.clickable-day {
  background-color: lightpink;
  cursor: pointer;
  font-weight: bold;
}

.clickable-day:hover {
  background-color: hotpink;
  color: white;
}

.no-entry-day {
  color: #aaa;
}





.journal-content .right-column #entry-display {
  max-height: none;
  overflow-y: visible;
}

.diary-image {
  max-width: 100%;       
  max-height: 100%;     
  width: auto;          
  height: auto;        
  display: block;
  margin: 0 auto;      
  cursor: zoom-in;
}

.img-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.img-modal img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
  cursor: zoom-out;
}



.titlebar {
  background: linear-gradient(#ffd1e1 0%, #ff9fb8 50%, #ffb8ce 100%);
  border: 2px solid #ff9fb8;
  padding: 6px 10px;
}

.titlebar h2 {
  margin: 0;
  font-family: 'PORKYS_';
  color: white;
  text-shadow: 1px 1px #ff6aa3;
}

.keychain-hang {
  scale: 1.2;
  position: absolute;
  top: 18px;
  left: 70px;
  width: 280px;
  height: auto;
  transform: rotate(10deg);
  z-index: 10;
  pointer-events: none;
  max-width: none;
}


.calendar-img {
  width: 180px;
  display: block;
  margin: 0 auto 10px;
}

.calendar-box .content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calendar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.calendar-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;   
  padding: 6px;
  box-sizing: border-box;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr); 
  gap: 4px;
  flex: 1;
  height: 100%;
}

#calendar div {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 17px;
  background: #ffe4f0; 
  box-sizing: border-box;
}


.clickable-day {
  background: lightpink;
  cursor: pointer;
  font-weight: bold;
}
.clickable-day:hover { background: hotpink; color:white; }
.no-entry-day { color:#aaa; }

.diary-image {
  width: 100%;
  cursor: zoom-in;
}

.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.img-modal img {
  max-width:95%;
  max-height:95%;
}


footer {
  margin-top: 10px;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  background: linear-gradient(#ffd1e1, #ff9fb8);
  border-radius: 0 0 12px 12px;
  color: #aa4152;
  font-family: 'PORKYS_';
}

