﻿/********************************************
Module           :   site.css
Copyright        :   2010-2027 Alexander Bell
*********************************************/

* { box-sizing: border-box;margin: 0;padding: 0;}
*:before, *:after { box-sizing: inherit;}

/*LAYOUT*/
body {
    height: 100%;
    box-sizing: border-box;
    width: 100%;
    margin: 0px;
    padding: 0px;
    padding-top: 65px;
    padding-bottom: 60px;
    font-size: 16px;
    line-height: 1.5;
    background-color: antiquewhite;
    font-family: system-ui, -apple-system, sans-serif;
}

/*NAVBAR*/
/* Fixed Menu Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #cacaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000; /* Keeps the menu above other page elements */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #606060;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-links a:hover {
    background-color: #334155;
    color: #ffffff;
}

a.active {
        background-color: #334155;
        color: #ffffff;
    }

#imgBrand { animation: 1s ease-out 0s slideFromL;}


/*CONTAINER*/
.container { background-color: #ffffff; padding:0px 3px;}

/*FOOTER*/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background-color: #fafafa;
    vertical-align: central;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    z-index: 1000;
}

footer span.arrowUp {
    float:right; 
    font-size: 2em; 
    font-weight: 700;
    background-color: #dadada; 
    padding: 0px 10px; 
    border-radius: 3px; 
    cursor:pointer;
}

/*HEADINGS*/
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 2px;
}

.page-title {
    font-size: 2.5em;
    line-height: 1em;
    font-weight: 600;
    color: darkcyan;
    text-align: center;
    margin: 0em;
    padding: 0em;
    margin-bottom: 0em;
    vertical-align: bottom;
}
.page-subtitle-cyan,
.page-subtitle-orange {
    font-size: 1.6em;
    line-height: 1.6em;
    font-weight: 600;
    color: darkcyan;
    text-align: center;
    margin: 0em;
    padding: 0em;
}
.page-subtitle-cyan{color: darkcyan;}
.page-subtitle-orange { color: darkorange;}

.underline-text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

/*CONTENT*/
div.math-problem {
    width: 100%;
    margin-bottom: 0.5em;
    text-align: center;
}

img.math-problem {width: 100%; margin-bottom: 0.5em;}

p.answer-paragraph {
    height: 2.5em;
    line-height:2.5em;
    font-size: 1.4em;
    font-weight: 700;
    color: navy;
    text-align: left;
    padding: 0em;
    text-align: center;
}

.badge-answer {
    font-size: 1em;
    font-weight: 500;
    background-color: red;
    color: white;
    padding: 0.4em 0.6em;
    text-align: center;
    border-radius: 0.2em;
}

table.answer-table {
    width: 100%;
    margin: 0 auto;
    table-layout: fixed;
    border-collapse: collapse;
}
table.answer-table td,
table.answer-table th {
    font-size: 1.2em;
    font-weight: 500;
    background-color: #f0f0f0;
    text-align: left;
    overflow: hidden; /* Hides overflowing text */
    text-overflow: ellipsis; /* Adds "..." to cut-off text */
    white-space: nowrap; /* Keeps text on a single line */
    box-sizing: border-box;
    padding: 0;
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: left;
}

table.answer-table tr th {color: olive;}
table.answer-table tr td {color: navy;}

/* 1st */
table.answer-table tr td:first-child, 
table.answer-table tr th:first-child {font-weight: 600;}

/* 2nd */
table.answer-table tr td:nth-child(2), 
table.answer-table tr th:nth-child(2) {font-weight: 500;}

/* Last */
table.answer-table tr td:last-child, 
table.answer-table tr th:last-child { font-weight: 500;}

img.screenshots{vertical-align:top;}

.no-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* -------TERMS------ */
div#div-terms {
    background-color: #ffffff;
    padding: 1.5em;
}


/* -------MEDIA------ */
@media screen and (orientation: portrait) {
    body {
        width: 99%;
        margin-left: 0.5%;
    }
}
@media screen and (orientation: landscape) and (min-width: 1200px) {
    body { width: 60%;margin-left: 20%; }
}



/*TOGGLE*/
details {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

summary {
    background: #f4f4f4;
    padding: 12px 16px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hides default triangle in Firefox */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    /* Hides default triangle in Chrome/Safari */
    summary::-webkit-details-marker {
        display: none;
    }

/*details[open]*/
details[open] summary::after {
    content: '−';
}


    /* Custom '+' and '-' indicator */
    summary::after {
        content: '+';
        font-size: 1.2rem;
    }



.content {
    padding: 12px 16px;
    border-top: 1px solid #ddd;
}







/* ------------NA--------- */

/*SLIDE-IN*/
@keyframes slideFromL {
    0% {transform: translateX(-100%);}
    100% {transform: translateX(0);}
}
.slide-from-left {animation: 1s ease-out 0s 1 slideFromL;}

@keyframes slideFromT {
    0% {transform: translateY(-100%);}
    100% {transform: translateY(0);}
}
.slide-from-top {animation: 1s ease-out 0s 1 slideFromT;}

/*ZOOM*/
.zoom10 {transition: transform .1s;}
.zoom10:hover {transform: scale(1.1);}

.zoom20 {transition: transform .1s;}
.zoom20:hover  {transform: scale(1.2);}

/*FADE-IN*/
.fadeIn-3s {animation: fadeIn 3s;}
@keyframes fadeIn {0% {opacity: 0;} 100% { opacity: 1;}}

/*ROTATE*/
.rotate, .rotate15, .rotate180 { transition: all 1s;}
.rotate:hover { transform: rotate(360deg);}
.rotate15:hover {transform: rotate(15deg);}
.rotate90:hover {transform: rotate(90deg);}
.rotate180:hover {transform: rotate(180deg);}