@import 'colours.css.old';
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&display=swap');

/* HTML/Body */
html, body, h1, h2, h3, h4, h5, ul, ol, li, p, section {
    font-family: Ubuntu Sans, serif;
    font-size: 1.25rem;
}

/* Columns and Rows */
.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.column {
    border-radius: 0.75rem;
    border-style: solid;
    border-width: 0.025rem;
    display: flex;
    flex: 1 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.row {
    align-items: start;
    display: flex;
    flex: 1 0 auto;
    flex-direction: row;
    flex-flow: row wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.row:last-child {
    margin-bottom: unset;
}

.row > .column.fragment {
    margin: 0 !important;
}

/* Fragment */
.fragment {
    border-radius: 0.75rem;
    border-style: solid;
    border-width: 0.025rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 0.75rem;
    width: calc(100vw - 5.7rem);
}

.fragment:last-child {
    margin-bottom: unset;
}

.fragment > .row > .column {
    border: unset;
    margin: unset;
    padding: unset;
    background-color: unset;
}

/* Header */
.logo {
    background-image: url('https://github.coventry.ac.uk/pages/ab6459/CUEH_Slides/images/logo.svg');
    background-repeat: no-repeat;
    height: 50px;
    margin-right: 1rem;
    width: 199px !important;
}

.module-header {
    align-items: center;
    border-radius: 1.25rem;
    color: white;
    display: flex;
    flex-direction: row;
    margin: 1rem;
    padding: 1.25rem;
}

.module-details {
    display: inline-block;
}

.module-details > .module-code {
    font-weight: bolder;
    margin-right: 0.5rem;
}

.module-details > .module-title {
    font-weight: 50;
}

.lecture-title {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
}

header > .row > .column {
    border: unset;
    margin: 0;
    padding: 0;
}

/* Slide Boundary */
.slides-container {
    border-radius: 1.25rem;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0.025rem;
    height: calc(100vh - 9rem);
    margin: 1rem;
    width: initial;
}

.stack, .present {
    width: calc(100vw - 4rem) !important;
}

.title-page, .level1 {
    align-items: center;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.level2 {
    margin: 1rem;
    width: 100%;
}

/* Heading */
.title-page > h1.lecture-title {
    font-size: 1.85rem;
    font-style: normal;
    font-weight: 650;
    margin: 0.25rem 0;
    padding: 0;
}

.title-page > h2.lecture-subtitle {
    font-size: 1.55rem;
    font-style: normal;
    font-weight: 500;
    margin: 0.25rem 0;
    padding: 0;
}

.title-page > h3.author {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 50;
    margin: 0.65rem 0;
    padding: 0;
}

.level1 > h1 {
    font-size: 1.85rem;
    font-style: normal;
    font-weight: 650;
    margin: 0.25rem 0;
    padding: 0;
}

.level2 > h2 {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    box-sizing: border-box;
    border-style: solid;
    border-bottom-width: 0;
    border-left-width: 0.025rem;
    border-right-width: 0.025rem;
    border-top-width: 0.025rem;
    font-size: 1.55rem;
    margin: 0;
    padding: 1rem;
    text-align: left;
}

.level2 > h3 {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    border-style: solid;
    border-bottom-width: 0.025rem;
    border-left-width: 0.025rem;
    border-right-width: 0.025rem;
    border-top-width: 0;
    font-kerning: normal;
    font-weight: 200;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0 1rem 1rem;
    text-align: left;
}

.level2 > h4, .column > h4, .column-100 > h4, #explanation-dijkstra > h4, div[id*="explanation"] > h4 {
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.fragment > h4 {
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-align: left;
}

.row > .column.fragment > h4 {
    margin: 0 !important;
}

.level2 > h5, .column > h5, .fragment > h5 {
    font-weight: 300;
    font-style: italic;
    margin: 0;
    text-align: left;
}

/* Lists */
ol, ul {
    line-height: 1.75rem;
    margin-bottom: 0;
    margin-top: 0;
    text-align: left;
}

h3 + ol, h3 + ul {
    border-radius: 0.75rem;
    border-style: solid;
    border-width: 0.025rem;
    padding: 0.75rem;
}

h3 + ol > li, h3 + ul > li {
    margin-left: 1.15rem;
}

/* Tables */
div.table, div[id*='table-'] {
    display: flex;
    border-radius: 0.75rem;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0.025rem;
    margin: 1rem auto 1rem auto;
    width: 100%;
}

div.table:before, div[id*='table-']:before {
    border-right-width: 0.025rem;
    border-right-style: solid;
    border-bottom-left-radius: 0.75rem;
    border-top-left-radius: 0.75rem;
    content: "\F5AA";
    font-family: "bootstrap-icons";
    padding: 1rem;
}

table {
    border-collapse: collapse;
    margin: 1rem;
    table-layout: fixed;
    width: 100%;
}

thead th {
    line-height: 1.5rem;
    padding: 0.25rem;
}

td {
    line-height: 1.85rem;
    padding: 0.25rem;
}

/* Blockquotes */
blockquote p {
    font-weight: 600;
    line-height: 1.75rem;
}

/* Source Code */
.column[id*="walkthrough-button"] {
    background-color: unset !important;
    border: unset;
    padding: unset;
    margin: unset;
}

code {
    text-wrap: wrap;
}

pre.sourceCode, pre.stdout, pre.shell {
    display: flex;
    border-radius: 0.75rem;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0.025rem;
    flex: 1;
    flex-flow: column;
    margin: 0;
    overflow: auto;
    text-align: left;
}

code::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

code::-webkit-scrollbar-track {
    border-width: 0;
    border-style: solid;
}

code::-webkit-scrollbar-thumb {
    border-radius: 0.75rem;
    border: 0.015rem solid transparent;
    background-clip: content-box;
}

code::-webkit-scrollbar-corner {
    background-color: unset;
}

pre.stdout > code, code {
    background-color: unset !important;
}


table.hljs-ln {
    width: 100%;
}

table.hljs-ln td:nth-child(1) {
    text-align: center;
    width: 1rem;
}

td.hljs-ln-code, .hljs-ln-n {
    font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, serif !important;
    text-align: left;
}

td.hljs-ln-numbers {
    opacity: unset !important;
}

/* Image */
figure {
    border-radius: 0.75rem;
    box-sizing: border-box;
    border-style: solid;
    border-width: 0.025rem;
    display: flex;
    margin: 1rem auto 1rem auto;
    width: 100%;
}

figure:before {
    border-right-width: 0.025rem;
    border-right-style: solid;
    border-bottom-left-radius: 0.75rem;
    border-top-left-radius: 0.75rem;
    font-family: "bootstrap-icons";
    padding: 1rem;
}

figure:before {
    content: "\F42A";
}

figure.containerZoom, figure.containerZoom:before {
    background-color: unset !important;
    border-color: unset !important;
    border-style: unset !important;
    border-width: unset !important;
    border-radius: unset !important;
}

figure.containerZoom:before {
    display: none !important;
}

figure img {
    border-bottom-right-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    width: 100%;
}

figcaption {
    display: none;
}

/* Slide Numbers */
.reveal .slide-number {
    bottom: 0.75rem;
    border-radius: 1rem;
    border-style: solid;
    border-width: 0.025rem;
    display: block;
    font-size: 0.95rem;
    left: 0.75rem;
    padding: 0.5rem;
    position: absolute;
    width: fit-content;
    z-index: 31;
}

.reveal .slide-number a {
    text-decoration: none;
}

/* Anchor Links */
a, a:link, a:visited {
    text-decoration: none;
}

/* Box Links */
.link-box {
    border-radius: 0.75rem;
    border-style: solid;
    border-width: 0.025rem;
    display: block;
    margin: 0 auto 0 auto;
    padding: 0.75rem;
    width: 75%;
}

/* Dark Mode */
a.btn-theme {
    align-items: center;
    color: white !important;
    display: flex;
    font-size: 1.15rem;
    flex-grow: 1;
    justify-content: end;
    cursor: pointer;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}