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

body {
  background: #FFF2E6;
  scroll-behavior: smooth;
  color: #323331;
}

img {
  image-rendering: pixelated;
}

.scroll-bar {
  font-family: lores-12, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  width: 97%;
  background: #F8CAEA;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  border: 4px solid #323331;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #323331;
}

.scroll-bar.paused .scroll-content {
  animation-play-state: paused;
}

.scroll-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 15s linear infinite;
  font-size: 18px;
  font-weight: bold;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.main-nav {
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  width: 97%;
  background: #D4CE79;
  padding: 15px 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  border: 4px solid #323331;
  border-radius: 28px;
  box-shadow: 6px 6px 0 #323331;
}

.home-logo a {
  color: #fbe9eb;
  cursor: pointer;
  border: none;
  background: none;
}

.main-nav a {
font-family: lores-12, sans-serif;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  color: #323331;
  padding: 10px 10px;
  background: #F497D8;
  border: 3px solid #323331;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #323331;
  transition: none;
}

.main-nav a:hover {
  transform: translateY(-2px);
  background: #F8CAEA;
}

.page {
  position: static !important;
  min-height: 100vh;
  padding: 150px 6% 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.welcome-section {
  font-family: lores-21-serif, sans-serif;
  font-weight: 400;
  font-style: normal;
  background: #FFF2E6;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
  width: 100%;
  padding: 60px 40px;
  border-radius: 20px;
  margin-top: 40px;
}

.welcome-image img {
    width: 350px;
    height: auto;
    border-radius: 10px;
}

.welcome-content {
    max-width: 500px;
}

.welcome-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.welcome-title {
    font-size: 45px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.welcome-title span {
    color: #F497D8;
}

.welcome-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

.welcome-button {
  display: inline-block;
  background: #F497D8;
  color: #323331;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s ease;
  border: 4px solid #323331;
  border-radius: 28px;
  box-shadow: 6px 6px 0 #323331;
}

.welcome-button:hover {
    background: #F8CAEA;
}

.wide {
  width: 95%;
  max-width: 1100px;
}

.spaced {
  margin-bottom: 40px;
}

h2 {
  font-family: argent-pixel-cf, sans-serif;
  font-weight: 400;
  font-style: italic;
  background-color: #D4CE79;
}

.textbox {
  font-family: lores-21-serif, sans-serif;
  font-weight: 400;
  font-style: normal;
  width: 95%;
  max-width: 1100px;
  background: white;
  color: #222;
  border: 4px solid #323331;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #323331;
}

.textbox-header {
  background: #F8CAEA;
  padding: 12px 20px;
  border-bottom: 4px solid #323331;
  border-radius: 18px 18px 0 0;   
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 22px;
  font-weight: bold;
}

.circle {
  width: 20px;
  height: 20px;
  background: #F497D8;
  border-radius: 50%;
  border: 3px solid #323331;
}

.close {
  font-size: 22px;
  user-select: none;
}

.textbox-content {
  padding: 25px;
  font-size: 18px;
  line-height: 1.7;
}

.page-3-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.page-3-image {
    flex: 1;
    max-width: 50%;
}

.page-3-textbox {
    flex: 1;
    max-width: 50%;
}

.mermaid {
    width: 100%;
    overflow-x: auto;
}

.info-popup {
    font-family: lores-21-serif, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #323331;
    display: none;                 
    position: fixed ;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.45);  
    justify-content: center;
    align-items: center;
    z-index: 5000;             
    padding: 20px;
}

.info-box {
    font-family: lores-21-serif, sans-serif;
    font-weight: 400;
    font-style: normal;
    background: #ffffff;
    color: #323331;
    max-width: 90%;
    border: 4px solid #000;
    border-radius: 22px;
    box-shadow: 6px 6px 0 #000;    
    padding: 30px;
    text-align: center;
    animation: popIn 0.18s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.info-box h3 {
    font-family: argent-pixel-cf, sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.info-box p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.close-info {
    font-family: lores-21-serif, sans-serif;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    padding: 14px 0;
    background: #F398D8;
    border: 3px solid #000;
    border-radius: 22px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
}

.close-info:hover {
    background: #F9C9E9;
}

#popup-overlay {
  font-family: lores-21-serif, sans-serif;
  font-weight: 400;
  font-style: normal;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#read-popup-overlay {
  font-family: lores-21-serif, sans-serif;
  font-weight: 400;
  font-style: normal;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#popup-box,
#read-popup-box {
  width: 420px;
  background: #FFF2E6;
  border: 4px solid #323331;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #323331;
  text-align: center;
  padding-top: 55px;
  position: relative;
}

.popup-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 55px;
  background: #d9a84c;
  border: 4px solid #323331;
  border-radius: 50%;        
  box-shadow: 4px 4px 0 #323331;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-message {
  font-size: 22px;
  font-weight: bold;
  margin: 35px 0 30px;
}

.popup-buttons {
  display: flex;
  width: 100%;
}

.popup-btn {
  font-family: lores-21-serif, sans-serif;
  font-weight: 400;
  font-style: normal;
  width: 50%;
  padding: 18px 0;
  background: #F497D8;
  border-right: 4px solid #323331;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.popup-btn.left {
  margin: 10px;
  border-radius: 22px 22px 22px 22px;
  border: 3px solid #323331;
}

.popup-btn.right {
  margin: 10px;
  border-radius: 22px 22px 22px 22px;
  border: 3px solid #323331;
}

.popup-btn:hover {
  background: #F8CAEA;
}

#read-popup-box {
  color: transparent;
  padding: 25px 30px;
}

.read-title {
  color: #323331;
  margin: 15px;
  font-size: 24px;
  font-weight: bold;
}

.read-text {
  color: #323331;
  margin: 15px;
  font-size: 18px;
  line-height: 1.6;
}

.read-close {
  font-family: lores-21-serif, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #323331;
  width: 100%;
  padding: 14px 0;
  background: #F497D8;
  border: 3px solid #323331;
  border-radius: 22px 22px 22px 22px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.read-close:hover {
  background: #F8CAEA;
}

footer {
  font-family: lores-12, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  width: 97%;
  background: #D4CE79;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 10px;
  border: 4px solid #323331;
  border-radius: 28px;
  box-shadow: 6px 6px 0 #323331;
}

footer-container {
  background: #2E3924;
}