
/* --------------------------------------------------------
   BASICS / BODY
-------------------------------------------------------- */
body {
  background-image: url('Journal-Images/Journal-BG.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top center;
  background-size: cover;
  background-color: var(--background-color);
  margin: 0;
  min-height: 100vh; 
  display: flex;
  justify-content: center; 
  align-items: center; 
  font-family: "STIX Two Text", serif;
  font-weight: 400;
  font-style: italic;
  color: #2d2929;
  font-size: 14px;
}

/* --------------------------------------------------------
   LAYOUT
-------------------------------------------------------- */
.layout {
  display: flex;
  width: 840px;  /* overall page width */
  margin: 0 auto;
}

/* --------------------------------------------------------
   SIDEBAR
-------------------------------------------------------- */
/* Sidebar container */
/* Sidebar container */
.sidebar {
  width: 180px;
  display: flex;
  flex-direction: column;
  padding: 15px 0 15px 15px;
  background: #d4cdce;
  box-sizing: border-box;
  gap: 10px;
}

/* Inner sidebar box that holds everything */
.sidebar-inner {
  background: #b6a8ac;   
  padding: 9px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

/* Entry frame (on top of inner box) */
.sidebar-frame {
  background-image: url('Journal-Images/entry-frame.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%; 

  text-align: center;
  font-family: "sepian", sans-serif;
  color: #2c2e25;
  flex-shrink: 0;
  min-height: 230px;
  padding-left: 0;
  padding-right: 0;
}

/* Title inside entry frame */
.sidebar-frame h2 {
  color: #29250a;
  margin-bottom: 0px;
  font-size: 29px;
  font-style: normal;
}

/* List of entries */
.sidebar-frame ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 135px;   
  overflow-y: auto;    
  padding-right: 0px;  
}

.sidebar-frame ul::-webkit-scrollbar {
  width: 6px;
}

.sidebar-frame ul::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.sidebar-frame ul::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-frame ul li {
  margin: 4px 0;       /* reduces the vertical gap */
  line-height: 1.1; 
}

.sidebar-frame ul li a {
  color: #2c2e25;
  text-decoration: none;
  font-size: 20px;
}

.sidebar-frame ul li a:hover {
  text-decoration: underline;
}

/* Stacked images */
.sidebar-images {
  display: flex;
  flex-direction: column;
  padding: 12px 3px;
  box-sizing: border-box;
  background-color: #817b77;
  gap: 10px;
}

.sidebar-images img {
  width: 90%;
  display: block;
  margin: 0 auto;
}

/* Home button box */
.sidebar-home {
  text-align: center;
}

.sidebar-home img {
  width: 80%;
  display: inline-block;
}

.sidebar-gif {
  width: 90%;      
  display: block;
  margin: 0px auto; 
}


/* --------------------------------------------------------
   MAIN CONTENT
-------------------------------------------------------- */
.content {
  flex: 1;
  padding: 0;
  background: #d4cdce; 
}

/* --------------------------------------------------------
   PAGE IMAGE / WRAPPER
-------------------------------------------------------- */
.page-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.page-image {
  width: 96%;           
  display: block;
  margin: 16px 8px 16px 10px;    
}

.page-bg {
  background-image: url('Journal-Images/Journal-Page-BG.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 900px;
}

/* --------------------------------------------------------
   PAGE TEXT / ENTRY CONTENT
-------------------------------------------------------- */
.page-text {
  position: absolute;
  top: 24px;            /* distance from top of page image */
  left: 50%;
  transform: translateX(-50%);
  width: 80%; 
  height: calc(100% - 29px); /* fill space below top offset */
}

.entry-title {
  font-family: "sepian", sans-serif;
  font-weight: 400;
  font-style: italic;
  color: #60353d;
  text-align: center;
  margin-top: 0; 
  margin-bottom: 61px; /* space between title and text frame */
  font-size: 35px;
}

.entry-content {
  height: calc(100% - 65px); /* total height minus title + margin */
  overflow-y: auto;
  padding: 0 10px 10px 10px; 
  box-sizing: border-box;
  max-height: 570px;
}

.entry-content p:first-child {
  margin-top: 0;   /* remove default top margin for first paragraph */
}

.entry-content p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------
   ENTRIES
-------------------------------------------------------- */
.entry {
  display: none;
}

.entry.active {
  display: block;
}

/* --------------------------------------------------------
   ENTRY ARROWS
-------------------------------------------------------- */
.arrow {
  position: absolute;
  bottom: 27px; 
  width: 65px;   
  height: auto;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arrow-left {
  left: 180px; 
}

.arrow-right {
  right: 180px; 
}

/* Hover effect: swap PNG with GIF */
.arrow-left:hover {
  content: url('Journal-Images/Arrow-left.gif');
}

.arrow-right:hover {
  content: url('Journal-Images/Arrow-right.gif');
}

/* --------------------------------------------------------
   ENTRY PICTURES
-------------------------------------------------------- */
.entry-content img {
  display: block;
  margin: 10px auto; 
  max-width: 50%; 
}

/* --------------------------------------------------------
   COVER
-------------------------------------------------------- */
.cover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  pointer-events: none; 
}

.cover-title {
  font-family: "sepian", sans-serif;
  font-style: normal;
  font-size: 80px;
  color: #42292f;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s ease;
}

.cover-title:hover {
  color: #ab8590; 
}

.cover {
  display: none;
}

.cover.active {
  display: block;
}

