/*
File name: yuhalu.css
Author: Kong Xiong
Original Date: 12/21/2019
Updated: 8/29/2025
*/

/* Reset some default spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, p {
    margin-top: 20px;
}

/* Lists */
ul, ol {
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 20px;
}

ol, ol li { margin-left: 0; padding-left: 0; }
ol { margin-left: 1.3em; display:inline-block; }

/* Text styles */
span.normal12pt {
    font-family: Arial, Verdana, "Times New Roman";
    font-size: 85%;
    color: black;
}

span.bold12pt {
    font-family: Arial, Verdana, "Times New Roman";
    font-weight: bold;
    font-size: 85%;
    color: black;
}

/* Body layout */
/* Body background with lighter top for readability */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 20px;
  background: linear-gradient(#e0f7fa, #b2ebf2, white) fixed; /* light cyan → medium cyan → white */
  color: #000; /* ensures default text is black for contrast */
}

/* Toolbar styling */
/*
#menuTab {
  height: 45px;
  line-height: 45px; // keeps text vertically centered
  left: 10%;
  right: 10%;
  width: 80%;
  z-index: 10;
  border: 1px solid gold;
  background: linear-gradient(cyan, orange);
  text-align: center;
  border-radius: 15px;
  box-shadow: 2px 2px 20px #888;
}
/*/

#menuTab {
    position: fixed;      /* keep it fixed at top */
    top: 0px;            /* distance from top of page */
    left: 10%;
    right: 10%;
    width: 80%;
    z-index: 10;
    height: 45px;         /* increased height */
    line-height: 45px;    /* vertically center the links */
    border: 1px solid gold;
    background: linear-gradient(cyan, orange);
    text-align: center;
    border-radius: 15px;
    box-shadow: 2px 2px 20px #888;
}



/*
#menuTab {
  position: fixed;
  left: 10%;
  right: 10%;
  width: 80%;
  z-index: 10;
  height: 30px;
  border: 1px solid gold;
  background: linear-gradient(cyan, orange);
  text-align: center;
  border-radius: 15px;
  box-shadow: 2px 2px 20px #888;
  line-height: 30px;
}
*/

/* Page window and content area */
#pageWindow {
  margin-top: 50px; /* prevents overlap with fixed toolbar */
  width: 100%;
  text-align: left;
  box-shadow: 2px 2px 20px #888;
}

#pageContent {
  margin: auto;
  width: 90%;
  padding: 20px;
  border: 1px solid gold;
  background: white;
  border-radius: 0px 0px 40px 0px;
  opacity: 0.95; /* slightly transparent */
  overflow: auto;
  text-align: left;
}

/* Footer styling */
footer {
  background: #2b6cb0;
  color: white;
  text-align: center;
  padding: 12px;
  flex-shrink: 0; /* keeps footer at bottom */
}


/* Header / Menu fixed */
#menuTab a {
    text-decoration: none;
    color: white;
    background: linear-gradient(to bottom, #3399ff, #0066cc);
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 1px 1px 8px #666;
    transition: all 0.2s ease-in-out;
}

#menuTab a:hover {
    background: linear-gradient(to bottom, #5Eab00, #3b7d00); /* green hover */
    color: white;
    transform: scale(1.05);
}


#menuTabKx abc.active {
    background-color: #ffcc00; /* highlight color */
    color: cyan;              /* text color */
    transform: scale(1.1);     /* optional, slightly bigger */
    box-shadow: 2px 2px 10px #666;
}

/* Define the pulse animation */
/* Smooth pulse with fade-out */
/* Smooth pulse animation for active toolbar items */
@keyframes smoothPulse {
    0% {
        transform: scale(1.05);
        box-shadow: 2px 2px 8px #666;
    }
    50% {
        transform: scale(1.15);
        box-shadow: 4px 4px 25px #00ffff;
    }
    100% {
        transform: scale(1.05);
        box-shadow: 2px 2px 8px #666;
    }
}

/* Active link or button */
#menuTab .active {
    background-color: #ffcc00;  /* highlight background */
    color: cyan;                 /* text color */
    animation: smoothPulse 1s ease-in-out 5; /* pulse 5 times */
    animation-fill-mode: forwards;          /* keep final style */
    border-radius: 10px;
}



@media (max-width: 600px) {
    #menuTab {
        flex-direction: column;
        gap: 8px;
        font-size: 16px;
    }
}

#menuTabRainbow {
    position: relative;
    left: 20%;
    right: 20%;
    width: 60%;
    height: 26px;
    border: 1px solid gold;
    background: linear-gradient(cyan, orange);
    border-radius: 15px;
    box-shadow: 2px 2px 20px #888;
    text-align: center;
}

/* Scrollable menus */
div.scrollMenu {
    background-color: white;
    overflow-x: auto;
    white-space: nowrap;
}

div.scrollMenu a {
    display: inline-block;
    color: blue;
    text-align: center;
    padding: 2px;
    text-decoration: none;
}

div.scrollMenu a:hover {
    background: #5Eab00;
    color: blue;
}

div.scrollMenu a:visited {
    text-decoration: underline;
    font-size: 75%;
}

/* Buttons */
button.button {
    color: red;
    background: lightblue;
    text-align: center;
    font: 14px Arial;
    width: 56px;
    height: 24px;
    border-radius: 4px;
}

/* Main content container */
main {
    flex: 1; /* grow to fill space above footer */
    padding: 20px;
    width: 90%;
    margin: 60px auto 0; /* leave space for fixed menu */
    text-align: left;
}

/* Page content scrollable if too tall */


/* Footer always visible at bottom */
footer {
    background: #2b6cb0;
    color: white;
    text-align: center;
    padding: 12px;
    flex-shrink: 0;
}

/* Intro section styling */
.intro-section {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #2b6cb0;
}

/* Adjust typography spacing */
p {
    margin-bottom: 15px;
}

ol li, ul li {
    margin-bottom: 5px;
}

/* Colored diacritic spans */
span.cdiac {
    color: darkred;
    font-weight: bold;
}
