/* ( trbl , tb-lr , t-lr-b ) */

@import url('font/font.css');

:root {
    --light-yellow: #ffda48;
    --dark-yellow:   #ffd000;
}

body {
    max-width: 800px;   /* page width */
    overflow: visible;
    margin: 0 auto;     /* centered */
    padding: 15px;      /* readability */
    font-family: 'Segoe UI Variable Text','Segoe UI','Open Sans', sans-serif; /* personal favorite, adjustable later */
    line-height: 1.6;   /* readability */
    color: black;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI Variable Display','Segoe UI','Open Sans', sans-serif;
    color: black;
    margin: 12px 0;
    line-height: 1.2;
}   h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.4em; }


a {
    color: #0066cc;
    text-decoration: none;  /* remove underline */
}   a:hover {               /* underline on hover */
    text-decoration: underline;
    color: var(--dark-yellow);
}

ol {
    margin: 20px 0;
    padding-left: 40px;
}

ol li {
    margin-bottom: 10px;
}

table { margin: 10px 0 15px; }

button {
    text-decoration: none;
    border: none;
    padding: 8px 10px;
    background-color: #333;
    color: white;
    border-radius: 20px;
    letter-spacing: 0.5px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}   button:hover {
    color: black;
    background-color: var(--dark-yellow);
}

iframe {
    width: 100%; 
    height: 60vh;
    border: none;
    position: relative;
    top: 0;
    left: 0;
}

.sidebar {
    display: block;
    width: 90vw;
    max-width: 300px;
    background-color: #f9f9f9;
    border: 2px solid var(--light-yellow);
    border-radius: 20px;
    height: 61vh;
    overflow-y: auto;
    padding: 10px;
}   body.dark-mode .sidebar {
    background-color: #181818;
    color: white;
}

::-webkit-scrollbar {
   width: 8px; }
 ::-webkit-scrollbar-track {
   background: transparent;
   margin: 50px;
   border-radius: 50px; }
 ::-webkit-scrollbar-thumb {
   background: #888;
   border-radius: 50px; }
 ::-webkit-scrollbar-thumb:hover {
   background: #555;
}

.content {
    margin-left: 260px;
    padding: 20px;
    flex: 1;
}

#hamburger-menu {
    border: none;
    cursor: default;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #777;
}

.footnote {
    font-size: 0.6em;
}

#under-construction {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--light-yellow);
    color: #000;
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 20px;
    font-size: 1.2em;
    z-index: 15;
    border: 2px solid var(--dark-yellow);
    border-radius: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#close-button {
    font-style: bold;
    margin: 1px 0px 0px 10px;
    background: var(--dark-yellow);
    border: none;
    cursor: pointer;
    color: #000;
}

#searchInput {
    padding: 7px 10px;
    margin: 0 5px 15px;
    border: 2px solid #555;
    border-radius: 20px;
    letter-spacing: 0.5px;
    cursor: text;
}   body.dark-mode #searchInput {
    background-color: #181818;
    color: white;
}

#linkContainer {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* LaTeX */
.math.inline {
    display: inline;
}

.math.display {
    display: block;
    text-align: center;
    margin: 10px 0;
}
.math.displayLeft {
    display: block;
    text-align: left;
    margin: 10px 10px 10px 10px;
}

/* table */
table, th, td {
    border-collapse: collapse;
    padding: 5px;
    text-align: left;
}

.tiles {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: 20px;
}

.tile {
    width: 30%;
    border: 1px solid #ccc;
    padding: 10px 12px 4px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.tile h3 {
    margin-top: 0;
}

.button-container {
    display: flex;
    gap: 8px; 
    align-items: center; /* align with menus */
}

.inlineButton {   
    background-color: var(--light-yellow);
    border:none;
    margin-left:8px;
    position: relative;
    top: -5px; /* looks weird without! */
}.inlineButton:hover {
   background-color: var(--dark-yellow);
}


body.dark-mode {
    background-color: #181818;
    color: white;
}

body.dark-mode a {
    color: #97b7ff;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode li,
body.dark-mode ol {
    color: white;
}

#header-js {
    flex-wrap: nowrap; 
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
} .nav-actions h2 {
    margin: 0;
}
.nav-actions a:hover {
    color: var(--dark-yellow);
    text-decoration: underline;
}

.nav-links {
    color: var(--dark-yellow);
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0;
    list-style: none;
}

.nav-link a {
    font-style: normal;
    font-weight: normal;
    font-size: medium;
    text-decoration: none;
    color: black;
    flex: 1 1 auto;
    flex-wrap: nowrap;
}

.dropdown {
    position: relative;
    flex: 1 1 auto;
}

.dropdown-content {
    display: none;
    padding: 50px 25px 0 50px;
    gap: 5px;
    flex-direction: column;
    align-items: flex-end;
    background-color: transparent;
    position: absolute;
    right: -25px;
    top: -10px;
    z-index: 10;
}

.dropdown-content button {
    text-align: right;
    border: none;
    text-decoration: none;
    display: block;
    width: max-content;
}

.dropdown:hover .dropdown-content {
   display: flex;
}

.dropdown-content iframe:focus + .dropdown-content,
.dropdown-content:hover,
.dropdown:hover .dropdown-content {
   display: flex;
}
