/* GLOBAL STYLES */

/* Importing fonts from file to be safe. */
@font-face {
    font-family: 'Segoe UI';
    src: url('Fonts/SegoeUI.eot');
    src: url('Fonts/SegoeUI.eot?#iefix') format('embedded-opentype'),
        url('Fonts/SegoeUI.woff2') format('woff2'),
        url('Fonts/SegoeUI.woff') format('woff'),
        url('Fonts/SegoeUI.ttf') format('truetype'),
        url('Fonts/SegoeUI.svg#SegoeUI') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pistilli';
    src: url('Fonts/Pistilli.eot');
    src: url('Fonts/Pistilli.eot?#iefix') format('embedded-opentype'),
        url('Fonts/Pistilli.woff2') format('woff2'),
        url('Fonts/Pistilli.woff') format('woff'),
        url('Fonts/Pistilli.ttf') format('truetype'),
        url('Fonts/Pistilli.svg#Pistilli') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Defines colour palette for the page. Modified by the theme button. */
:root {
    --bg-color: #1C1E1C;
    --accent-color: #FFFFFF;
    --visual-color: #161816;
    --text-color: #FFFFFF;
    --subtext-color: #c0c0c0;
    --link-color: #A59DF1;
    --command-color: #3F4240;
}

/* Basic styling setting colour, font, text format, and margin. Also sets cursor style over buttons. */
body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0 0.5rem 0 0.5rem;
    line-height: 1.5rem;
}
button:hover {
    cursor: pointer;
}

/* Styling for links, commands, and formulae. */
.text-actionable-link {
    color: var(--link-color);
    text-decoration: none;
}
.text-actionable-link:hover {
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
}
.text-underlined-link {
    color: var(--link-color);
    text-decoration: underline;
}
.text-underlined-link:hover {
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
}
.text-superscript-link {
    color: var(--text-color);
    text-decoration: none;
}
.text-superscript-link:hover {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}
.command-text {
    color: var(--text-color);
    background-color: var(--command-color);
    font-weight: normal;
    font-family: monospace;
    font-size: 0.95rem;
    padding: 0 0.2rem 0 0.2rem;
    border-radius: 0.3rem;
}
.formula {
    overflow-x: auto;
    text-align: center;
}

/* BODY STYLES */

/* Styling for the header including logo and buttons. */
.page-header {
    position: sticky;
    top: 0;
    margin-top: -8px;
    z-index: 997;
    background-image: linear-gradient(to bottom, var(--bg-color) 0rem, var(--bg-color) 3.8rem, #00000000 4.8rem);
    width: 100%;
    display: flex;
    height: 3.8rem;
    padding: 0 0 1rem 0;
}
/* Logo styling. */
.taylorbowl-logo {
    margin: auto auto auto 0;
    display: flex;
    text-decoration: none;
}
.taylorbowl-logo-image {
    height: 2.2rem;
}
.taylorbowl-logo-text {
    height: fit-content;
    margin: auto 0 auto 0.3rem;
    font-family: Pistilli;
    font-size: 1.3rem;
    transform: scaleY(1.3);
    letter-spacing: -0.6px;
    color: var(--text-color);
}

.menu-logo {
    max-height: 100%;
    margin: auto;
    vertical-align: middle;
    transform: scaleY(0.9);
}

/* Menu button on small screen styling. */
.lg-theme-button, .lg-open-search-button, .lg-search-input, .lg-enter-search-button, .search-logo, .theme-logo {
    display: none;
}
.open-menu-button {
    height: 2rem;
    width: 2rem;
    margin: auto 0 auto 0;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
}
/* Theme, search, and menu buttons on large screen styling. */
@media (min-width: 444px) {
    .lg-theme-button {
        height: 2rem;
        width: 2rem;
        margin: auto 0.5rem auto auto;
        border-radius: 0.4rem;
        padding: 0;
        border: none;
        background: none;
        display: flex;
        align-items: center;
    }
    .theme-logo {
        width: 80%;
        margin: auto;
        vertical-align: middle;
        display: flex;
    }
    .lg-open-search-button {
        height: 2rem;
        width: 2rem;
        margin: auto 0.5rem auto 0;
        padding: 0;
        border-radius: 0.4rem;
        border: none;
        background: none;
        display: flex;
        align-items: center;
    }
    .search-logo {
        max-height: 86%;
        margin: auto;
        vertical-align: middle;
        display: flex;
    }
    .lg-search-input {
        width: 100%;
        height: 2.3rem;
        padding: 0 0.5rem 0 0.75rem;
        border-radius: 0.7rem 0rem 0rem 0.7rem;
        margin: auto;
        display: none;
        border-style: solid;
        border-width: 1px;
        border-color: var(--accent-color);
        background-color: var(--bg-color);
        color: var(--text-color);
        border-right: none;
    }
    .lg-search-input:focus {
        outline-width: 0;
    }
    .lg-enter-search-button {
        background: none;
        width: fit-content;
        height: 2.3rem;
        border-radius: 0rem 0.7rem 0.7rem 0rem;
        margin: auto;
        padding: 0.1rem 0.5rem 0.1rem 0.5rem;
        display: none;
        border-style: solid;
        border-width: 1px;
        border-color: var(--accent-color);
        border-left: none;
    }
}

.page-cover {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    z-index: 998;
    position: fixed;
    display: none;
    top: 0;
    left: 0;
}

.page-cover-advertisement {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    z-index: 998;
    position: fixed;
    display: none;
    top: 0;
    left: 0;
}
.advertisement {
    background-color: var(--visual-color);
    width: 50%;
    max-width: 360px;
    height: fit-content;
    display: none;
    z-index: 999;
    padding: 0.5rem 0.8rem 0.5rem;
    position: fixed;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 1rem 1.3rem var(--visual-color);
}
.advertisement-text {
    color: var(--text-color);
    text-align: justify;
    display: inherit;
}
.escape-text {
    margin-top: 0.22rem;
    text-align: left;
    font-size: 0.8rem;
    color: var(--subtext-color);
}

.page-cover-kofi {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    z-index: 998;
    position: fixed;
    display: none;
    top: 0;
    left: 0;
}
.kofi {
    background-color: var(--visual-color);
    width: 50%;
    max-width: 360px;
    height: fit-content;
    display: none;
    z-index: 999;
    padding: 0.5rem 0.8rem 0.5rem;
    position: fixed;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 1rem 1.3rem var(--visual-color);
}
.kofi-text {
    color: var(--text-color);
    text-align: justify;
    display: inherit;
}
.escape-text {
    margin-top: 0.22rem;
    text-align: left;
    font-size: 0.8rem;
    color: var(--subtext-color);
}

.menu {
    background-color: var(--bg-color);
    width: fit-content;
    height: auto;
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 2.2rem 2rem 3rem 2rem;
    display: none;
    overflow: auto;
}
.menu-button {
    height: 2rem;
    width: fit-content;
    margin: auto 0 1.3rem 0;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    width: fit-content;
    color: var(--text-color);
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.7rem;
}
.close-menu-logo {
    max-height: 100%;
    margin: 0 1rem 0 0;
    vertical-align: middle;
    display: flex;
}
.menu-theme-logo {
    max-height: 100%;
    margin: auto;
    margin: 0 1rem 0 0;
    vertical-align: middle;
    display: flex;
}
.menu-search-logo {
    max-height: 95%;
    margin: auto;
    margin: 0 1rem 0 0.1rem;
    vertical-align: middle;
    display: flex;
}

.disclaimer {
    background-color: var(--visual-color);
    color: var(--text-color);
    padding: 0.7rem 1rem 0.7rem;
    margin: 1rem 0 0 0;
}

.contents-list {
    color: var(--text-color);
    display: block;
    margin: 0 0 0 0;
    padding: 0;
    width: fit-content;
    height: 70%;
    float: left;
    line-height: 1.5rem;
    overflow: auto;
}
.contents-list-title {
    margin-bottom: 0.5rem;
    font-size: 1.22rem;
    font-weight: 600;
}
.menu-line {
    margin-top: 0.44rem;
    margin-bottom: 1.3rem;
    height: 1px;
    color: var(--accent-color);
    background-color: var(--accent-color);
    border: none;
}

.page-title {
    color: var(--text-color);
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    line-height: 2.4rem;
}
.page-title-line {
    margin-top: 0.44rem;
    height: 1px;
    color: var(--accent-color);
    background-color: var(--accent-color);
    border: none;
}
.page-subtitle {
    color: var(--subtext-color);
    margin: 0 0.5rem 0 0.5rem;
}
.section-title {
    color: var(--text-color);
    font-family:'Times New Roman', Times, serif;
    font-size: 1.7rem;
    line-height: 1.8rem;
    margin: 0 0 0 0;
    text-align: left;
    display: flex;
}
.section-title-line {
    margin-top: 0.22rem;
    height: 1px;
    color: var(--accent-color);
    background-color: var(--accent-color);
    border: none;
}
.section-subtitle {
    color: var(--subtext-color);
    margin: 0 0.5rem 0 0.5rem;
    font-size: 1rem;
}
.subsection-title {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.22rem;
    margin: 1.5rem 0 0 0;
}
.subsection-subtitle {
    color: var(--subtext-color);
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}
.content {
    color: var(--text-color);
    margin: 1.5rem 0 0 0;
    display: block;
    text-align: justify;
}
.show-hide {
    border: none;
    background: none;
    margin-top: 0.4rem;
    margin-left: 0.5rem;
    position: relative;
    top: -0.13rem;
    color: var(--text-color);
}
.show-hide:hover {
    cursor: pointer;
}
.toggle-content {
    display: none;
}
.version-text {
    margin-top: 2.2rem;
    text-align: right;
    font-size: 0.8rem;
    color: var(--subtext-color);
}
.song-text {
    font-style: italic;
}
table {
    border-collapse: collapse;
    margin-top: 1rem;
    color: var(--text-color);
}
td {
    padding: 0.5rem;
    border-top-style: solid;
    border-width: 1px;
    font-weight: 100;
}
th {
    padding: 0.5rem;
    font-weight: 600;
    text-align: left;
}
ol {
    margin-right: 2rem;
}

.visual {
    width: 24rem;
    display: block;
    max-width: 100%;
    margin: 1.3rem auto 1.3rem auto;
}
.visual-image {
    width: 100%;
    border-style: solid;
    border-width: 0.5rem;
    border-color: var(--visual-color);
    box-sizing: border-box;
    display: inline-block;
}
.visual-caption {
    width: 100%;
    background-color: var(--visual-color);
    margin-top: -0.5rem;
    padding: 0 0.5rem 0.5rem 0.5rem;
    border-style: solid;
    box-sizing: border-box;
    border-color: var(--visual-color);
    border-width: 0.1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}
@media (min-width: 666px) {
    .visual {
        width: 24rem;
        max-width: 100%;
        float: right;
        margin-top: 0.5rem;
        margin-left: 5%;
        margin-bottom: 1.3rem;
    }
    .visual-image {
        width: 100%;
        border-style: solid;
        border-width: 0.5rem;
        border-color: var(--visual-color);
        box-sizing: border-box;
        display: inline-block;
    }
    .visual-caption {
        width: 100%;
        background-color: var(--visual-color);
        margin-top: -0.5rem;
        padding: 0 0.5rem 0.5rem 0.5rem;
        border-style: solid;
        box-sizing: border-box;
        border-color: var(--visual-color);
        border-width: 0.1rem;
        text-align: center;
        font-size: 0.9rem;
        color: var(--text-color);
    }
}

.toggler {
    padding: 0 0 0 0;
    height: fit-content;
    border: none;
    background: none;
    margin: 1.5rem 0.7rem auto 0;
    transform: none;
    color: var(--text-color);
    font-family:'Times New Roman', Times, serif;
    font-size: 1.7rem;
    display: flex;
    width: 100%;

}
.toggler-image {
    height: 1.1rem;
    margin: auto 0.7rem auto 0;
}
.toggle-content {
    display: none;
}

.tippy-box {
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--visual-color);
    padding: 0.3rem;
    border-radius: 0.5rem;
}
.tippy-box .tippy-arrow::before {
    color: var(--visual-color);
}


