@import url(https://fonts.bunny.net/css?family=saira-extra-condensed:700);
/*---------------- Base -------------*/

:root{
  --text: #ddd;
  --headings: #ccc;
  --bg: #111;
  --bg1: #333;
}
html{
  height: 100%;
}

body{
  margin:0;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  display: flex;
  flex-flow: column;
  flex-wrap: nowrap;
  height:100%;
}

header {
    background-color: var(--bg1); 
    margin: 0;
    display: flex;
    padding:1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

header img {
  height: 4rem;
  width: 4rem;

}

.slideHeader{
  background-color: inherit;
  height:3rem;
}

.header-logo{
  max-width:75vw;
  display: block;
}

.masthead{
  display: flex;
    display: flex;
    align-items: center;
}

header h1{
  margin: 0 1rem;
  padding: 0;
}

header a{
  color: var(--text)
}

img{
  width:75vh;
  max-height: 80vh;
}

#modeToggle{
  width: fit-content;
  padding:0.1rem;
  display:none;
  width: fit-content;
  height:fit-content;
  align-items: center;
  user-select: none;
}

#modeToggle svg{
  border-radius: 0.3rem;
  padding:0.3rem;
  cursor: pointer;
}

#modeToggle span{
  cursor:default;
}

#movePrevious, #moveNext, #slideState{
  display: none;
}

.article-meta{
  text-align: center;
}

.article-meta h2{
  font-size: 1.2rem;
}

main {
  height: fit-content;
  flex: 1;
}

main nav h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

article{
  max-width: 100ch;
  margin:auto;
}

.articleSlides{
  height: calc(100vh - 7rem);
  width: 95%;
  max-width:100%;
  overflow-y: auto;
}

.articleSlides .chroma{
  font-size: 2rem;
}

.articleSlides :is(h1, h2, h3, h4, h5, h6) {
  font-size: 3.3rem;
  font-weight: 600;
}

.articleSlides :is(ol, ul) {
  margin-left: 1em;
}

.articleSlides :not(iframe, img, svg, :has(iframe, img, svg)):is(
    :first-child:has(+ hr),
    hr + :last-child,
    hr + *:has(+ hr)
) {
    position: absolute;
    top: 50%;
    translate: 0 -100%;
}

.articleSlides svg {
    max-width: 90vw;
    max-height: 80vh;
    margin-inline: auto;
}

footer {
    background-color: var(--bg1); 
    padding:1rem;
    margin-top: 1rem;
    display:flex;
    flex-direction: row;
    justify-content: center;
}

/*-------------- Elements --------------*/


a{
  text-decoration: none;
  color: var(--hl1);
}

a:hover{
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6{
  font-family: "Saira Extra Condensed", serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--headings);
}

.articleSlides {
    position: relative
}
.articleSlides iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
}



hr{
  display: none;
}

.chroma{
  overflow: auto;
}

/*--------------- Dynamic -------------- */

@media (prefers-color-scheme: light) {
	:root {
		--text: #111;
    --headings:#333;
    --bg: #fff;
    --bg1: #ddd;
  }
}
