/* Overrides Colors */
body {
    background-color: #F4EFC8;
    color: #500000;
}

/* Overrides Colors */
ruby { /* please give me some design */
    ruby-base {
        color: transparent;
    }
    rt { /* Overrides Colors */
        color: var(--ruby-text-color, #500000);
    }
}

.hor-break { /* Overrides Colors */
    background-color: #500000;
}


a { /* Overrides Colors */
    color: #500000;
}

.navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 20px 0;
    border-top: 1px solid #500000;
    border-bottom: 1px solid #500000;
    padding: 10px 0;
}

.borders-top-bottom {
    border-top: 1px solid #500000;
    border-bottom: 1px solid #500000;
}
.nav-line {
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 5px 10px;
}

.nav-line::before,
.nav-line::after {
    content: "";
    position: absolute;
    height: 1px;
    background: #500000;
    width: 100%;
    left: 0;
}

.nav-line::before {
    top: 0;
}

.nav-line::after {
    bottom: 0;
}

.nav-line:hover {
    color: #333;
    text-decoration: underline;
}
.horizontal-star {
    overflow: hidden;
    border: none;
    height: 1.25em;
    text-align: center;
}
.horizontal-star::after {
    content: "**********************************************************************************************************************";
}

/* 1. The Tooltip Base Text */
ttb {
    display: inline; 
    cursor: help;
    border-bottom: 2px dashed #3498db;
    color: #1a5a80;
}

/* 2. The Fixed Top Sheet (<tt>) */
ttb tt {
    /* Fix it to the viewport, ignoring where the text is */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; /* Spans the entire width of the screen */
    
    /* Styling the sheet */
    writing-mode: horizontal-tb;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 16px 24px;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center; /* Centers the content nicely on wide screens */
    font-family: soviSans;
    button, input, select, textarea {
        font-family: soviSans;
    }
    i, em {
        font-family: soviSansItalic, soviSans, Arial, Helvetica, sans-serif;
    }
    ruby {
        rt {
            color: white;
        }
    }

    /* Hidden state: Pushed up off the screen entirely */
    opacity: 0;
    transform: translateY(-100%); 
    transition: transform 0.3s ease, opacity 0.2s ease;
    
    z-index: 9999; /* Keeps it above everything else on the page */
}

/* 3. The Hover State: Slide it down into view */
ttb:hover tt {
    opacity: 1;
    transform: translateY(0); /* Slides down to exactly top: 0 */
}

.vertical-rl {
    writing-mode: vertical-rl; 
    max-height: 480px
}