:root {
	--lighttext: hsl(57.273, 29.73%, 85.49%);
	--highlight: hsl(70.909, 9.0164%, 47.843%);
	--triangle: hsl(0, 78.082%, 57.059%);
	--border: hsl(70.909, 9.0909%, 23.725%);
	--grey: hsl(0, 0%, 90%);
	--contentheight: calc(100vh - 7.5rem - 4vmin);
	--tableheight: calc(var(--contentheight) - 3rem);
	--itemheight: calc((var(--contentheight) - 7rem) / 2);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: hsl(0, 0%, 0%);
	color: hsl(0, 100%, 100%);
	font-family: 'Raleway', sans-serif;
	font-size: 2vmin;
	line-height: 3vmin;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

h1 {
	font-family: 'Haettenschweiler';
	font-size: 6vmin;
	font-weight: normal;
	letter-spacing: 0.2vmin;
	text-shadow: -1px 1px var(--lighttext);
}

h1 span {
	display: inline-block;
	transform-origin: 46% 59%;
	transform: rotate(180deg);
	text-shadow: 1px -1px var(--lighttext);
}

h3 {
	font-size: 3vmin;
	line-height: 4vmin;
	color: var(--lighttext);
}

h4 {
	font-size: 2.5vmin;
	line-height: 3.5vmin;
	color: var(--highlight);
	margin-bottom: 2rem;
}

h5 {
	font-size: 2vmin;
	line-height: 3vmin;
	color: var(--highlight);
	writing-mode: tb;
    transform: rotate(180deg);
}

h6 {
	font-size: 2vmin;
	line-height: 3vmin;
	margin-bottom: 1rem;
	color: hsl(0, 0%, 0%);
}

img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

p {
	color: hsl(0, 0%, 0%);
	margin-bottom: 1.5rem;
	font-size: 2vmin;
	line-height: 3vmin;
}

p:last-of-type {
	margin-bottom: 0;
}

a {
	color: var(--highlight);
	text-decoration-style: dashed;
	display: inline-block;
	transition: color 0.4s ease-in-out;
}

a:hover {
	color: var(--triangle);
	text-decoration-style: solid;
}

ul {
	list-style: none;
	margin-top: -1rem;
	margin-bottom: 1.5rem;
	margin-left: 1rem;
	color: hsl(0, 0%, 0%);
}

nav {
	position: fixed;
	bottom: 0;
	left: 0;
	background-color: var(--highlight);
	width: 100%;
	height: 4rem;
	z-index: 20;
}

#navwrapper {
	width: fit-content;
	margin: 0 auto;
}

#navitems {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	justify-items: center;
	align-items: end;
    width: 100%;
}

.navitem {
	padding: 1rem 2rem;
	white-space: nowrap;
	cursor: pointer;
	background-color: var(--highlight);
	transition: color 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.current {
	color: var(--lighttext);
	background-color: hsl(0, 0%, 0%);
}

.current:after {
	position: absolute;
    content: "\1F5D9";
    font-size: 0.7rem;
    line-height: 0.7rem;
    padding: 0.1rem;
    top: 0.6rem;
    margin-left: 0.7rem;
    border: 0.1rem solid var(--lighttext);
    border-radius: 1rem;
    aspect-ratio: 1;
}

.navitem:hover {
	color: var(--lighttext);
	background-color: hsl(0, 0%, 0%);
}

#navslider {
	position: relative;
	width: 100%;
	transition: all 0.4s ease-in-out;
}

#navindicator {
	position: relative;
	max-width: 100%;
	width: 0;
	height: 0.4rem;
	background-color: hsl(0, 0%, 0%);
	transition: width 0.4s ease-in-out;
	margin: 0 2rem;
}

#intro {
	position: relative;
	display: grid;
	grid-template-rows: 50vh 8vmin auto;
	width: 80%;
	margin: 0 auto;
}

#intropic {
	align-self: end;
}

#subtitle {
	justify-self: end;
	align-self: start;
}

#introtxtwrap {
	width: 80%;
	margin: 0 auto;
}

#introtxt::after {
  content: '|';
  width: 0.7rem;
  margin-left: -1px;
  color: hsl(0, 0%, 0%);
  background-color: hsla(0, 100%, 100%, 0.7);
  display: inline-block;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  49% { opacity: 1; }
  50% { opacity: 0; }
  99% { opacity: 0; }
  100% { opacity: 1; }
}

section.overlay {
	position: absolute;
	z-index: 10;
	top: 100vh;
	left: 0;
	width: 100%;
	max-width: 100%;
	height: calc(100vh - 4rem);
	background-image: url(../imgs/sectionbg.png);
	background-repeat: no-repeat;
	background-position: left top;
	background-size: contain;
	background-color: var(--highlight);
	transition: top 0.6s ease-in-out;
}

section.overlay.opened {
	top: 0;
}

section.overlay.vertical .contentwrapper {
	overflow-y: auto;
}

section.overlay.horizontal .contentwrapper {
	overflow: hidden;
}

section.overlay.horizontal .content {
	overflow-y: hidden;
	overflow-x: scroll;
	background-color: hsl(0, 100%, 100%);
}

.contentwrapper {
	width: 80%;
	max-width: 80vw;
	height: calc(100vh - 5rem);
	position: relative;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	background-color: hsl(0, 100%, 100%);
	border-bottom: 0.5rem solid hsl(0, 0%, 0%);
	padding: 2rem;
}

.content h3 {
	background-color: hsl(0, 0%, 0%);
	padding: 1rem;
	margin: -2rem;
	margin-bottom: 2rem;
}

.content.citation {
	background-color: var(--lighttext);
	padding: 2rem;
	margin: 1rem 2rem 2rem;
}

.content .divider {
	color: var(--triangle);
	font-size: 4vmin;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.content .reference {
	background-color: var(--highlight);
    padding: 0.3rem;
    color: var(--lighttext);
    font-weight: 700;
    border-radius: 1rem;
    margin-right: 0.5rem;
    cursor: pointer;
	transition: color 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.content .reference:hover {
    color: var(--highlight);
	background-color: hsl(0, 100%, 100%);
}

.content button {
	outline: none;
	border: none;
}

.referencetarget {
	padding: 0.5rem 1rem;
}
.referencetarget::backdrop {
	background: hsla(0, 100%, 100%, 0.2);
}
:popover-open {
	margin: auto;
	border: 0.15rem solid var(--highlight);
}

.withindicator {
	padding: 0 2rem;
}

.withindicator:before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	vertical-align: middle;
    margin-top: -0.3rem;
    margin-right: 0.5rem;
	border-style: solid;
	border-width: 0.3rem 0 0.3rem 0.6rem;
	border-color: transparent transparent transparent var(--triangle);
}

.withindicator2r:after {
	content: "";
	position: absolute;
	display: inline-block;
	right: 0;
	width: 0;
	height: 0;
    margin-top: 0.45rem;
	border-style: solid;
	border-width: 0.3rem 0 0.3rem 0.6rem;
	border-color: transparent transparent transparent var(--triangle);
}

.withindicator2l:before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	vertical-align: middle;
    margin-top: -0.3rem;
    margin-right: 0.5rem;
	border-style: solid;
	border-width: 0.3rem 0.6rem 0.3rem 0;
	border-color: transparent var(--triangle) transparent transparent;
}

.withindicator2u:before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	vertical-align: middle;
    margin-top: -0.3rem;
    margin-right: 0.5rem;
	border-style: solid;
	border-width: 0 0.3rem 0.6rem 0.3rem;
	border-color: transparent transparent var(--triangle) transparent;
}

.content.pdf {
	margin-top: 1rem;
	text-align: center;
}

.content.pdf img {
	height: calc(var(--contentheight) - 6rem - 9vmin);
}

.gc3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	height: calc(var(--contentheight) - 4rem);
	max-height: calc(var(--contentheight) - 4rem);
	background-color: hsl(0, 0%, 0%);
}

#auschwitz .gc3 div:nth-of-type(2) {
	padding: 3vmin 2rem 0;
	background-color: hsl(0, 0%, 0%);
}

#auschwitz p {
	text-wrap: balance;
	color: var(--lighttext);
}

#auschwitz a {
	height: 100%;
}

#auschwitz img {
	object-fit: cover;
}

#epilogue .content:nth-of-type(2) {
	padding-top: 2rem;
}

#epilogue .content:nth-of-type(2) p {
	margin-bottom: 0;
}

#epilogue .content:nth-of-type(2) a {
	line-height: 6vmin;
}



#secret {
	z-index: 10;
	left: 1rem;
}

#nineteen65 {
	z-index: 15;
	left: calc(1rem + 5vmin);
}

#nineteen80 {
	z-index: 20;
	left: calc(1rem + 10vmin);
}

#secret.hidden {
	left: calc(100% - 15vmin);
}

#nineteen65.hidden {
	left: calc(100% - 10vmin);
}

#nineteen80.hidden {
	left: calc(100% - 5vmin);
}

.subsection {
	border-top: 0.15rem solid var(--border);
	border-left: 0.15rem solid var(--border);
	position: absolute;
	min-width: calc(100% - 2rem);
	min-height: var(--tableheight);
	height: var(--tableheight);
	max-height: var(--tableheight);
	transition: left 0.4s ease-in-out;
}

#nineteen65.subsection {
	min-width: calc(100% - 1rem - 5vmin);
}

#nineteen80.subsection {
	min-width: calc(100% - 1rem - 10vmin);
}

.subsectionheader {
	position: absolute;
	height: calc(100% + 4rem);
	width: 4vmin;
	display: grid;
	grid-template-rows: 1fr 4rem;
}

.submenu {
	grid-row: 1;
    writing-mode: tb;
    transform: rotate(180deg);
    display: grid;
    background-color: var(--grey);
    justify-items: end;
}

.submenu div {
    color: black;
    line-height: 4vmin;
}

.submenu div:first-of-type {
    padding-bottom: 0.3rem;
}

.submenu div:nth-of-type(n+2) {
    padding: 0.7rem 0;
	cursor: pointer;
}

.submenu .active {
    background-color: var(--border);
    color: var(--lighttext);
}

#secret .submenu {
	grid-template-columns: 1fr repeat(4, auto);
}

#nineteen65 .submenu {
	grid-template-columns: 1fr repeat(10, auto);
}

.subsection h5 {
	position: relative;
	display: block;
	right: 0.1rem;
	line-height: 4vmin;
	grid-row: 2;
	border-top: 0.15rem solid var(--border);
	border-left: 0.15rem solid var(--border);
	border-right: 0.15rem solid var(--border);
	border-top-left-radius: 0.5rem;
	cursor: pointer;
	padding-top: 0.3rem;
	padding-bottom: 0.3rem;
	height: 4rem;
	background-color: hsl(0, 100%, 100%);
	transition: color 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.subsection h5:hover {
	background-color: var(--border);
	color: hsl(0, 100%, 100%);
}

.subsection .content {
	position: absolute;
	border-bottom: 0.15rem solid var(--border);
	margin-left: 4vmin;
	padding: 1rem;
	min-height: calc(var(--contentheight) - 3rem);
	height: calc(var(--contentheight) - 3rem);
	max-height: calc(var(--contentheight) - 3rem);
	display: grid;
	grid-gap: 1rem;
	width: calc(80vw - 14vmin - 1rem);
	left: 0;
	transition: left 0.4s ease-in-out;
}

.subsection .content.hidden {
	top: 0;
	left: 100vw;
}

.subsection .content.fixed {
	left: 0;
}

.pageheader {
	/*min-height: 100%;
	height: 100%;
	max-height: 100%;*/
	min-height: calc(var(--tableheight) - 3rem);
    height: calc(var(--tableheight) - 3rem);
    max-height: calc(var(--tableheight) - 3rem);
	background-color: var(--lighttext);
	padding: 1rem;
}

.pageheader li {
	font-weight: bold;
}

[data-page="1"] {
	grid-template-columns: 42vw 400vw;
}
[data-page="2"] {
	grid-template-columns: 460vw;
}
[data-page="3"] {
	grid-template-columns: 500vw;
}
[data-page="4"] {
	grid-template-columns: 540vw;
}
[data-page="5"] {
	grid-template-columns: 42vw 400vw;
}

[data-page="1"] .pageheader,
#nineteen80 .content .pageheader,
[data-page="5"] {
	overflow-y: auto;
}

#nineteen80 .content {
	grid-template-columns: 40vw auto 30vw;
}

#nineteen65 .content[data-page="14"] {
	grid-template-columns: auto 90vw;
}

#secret .pagecontent {
	display: grid;
	grid-template-rows: repeat(2, var(--itemheight));
	grid-gap: 1rem;
	min-height: 100%;
    height: 100%;
    max-height: 100%;
}

#secret .pagecontentTop,
#secret .pagecontentBottom {
	display: flex;
	flex-flow: row nowrap;
	gap: 3rem;
}

#nineteen80 .pagecontent .ex1980 {
	display: flex;
	flex-flow: row nowrap;
	min-height: 100%;
    height: 100%;
    max-height: 100%;
}

#nineteen80 .pagecontent .ex1980 div {
    height: calc(var(--tableheight) - 3rem);
    max-height: calc(var(--tableheight) - 3rem);
}

#nineteen80 .pagecontent .ex1980 div img {
    width: auto;
}

.lj::before {
    content: "LEKTORI JELENTÉSEK";
    position: absolute;
    display: block;
    color: hsl(0, 100%, 100%);
    transform: rotate(-90deg);
    left: -26vmin;
    top: 50%;
    font-weight: bold;
    font-size: 5.6vmin;
}

#nineteen65 .pagecontent {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	grid-gap: 2rem;
	min-height: 100%;
    height: 100%;
    max-height: 100%;
}

#nineteen65 .pagecontent .ex1965 {
	display: flex;
    flex-flow: column wrap;
    gap: 2rem;
}

#nineteen65 .pagecontent .ex1965 .tableheader {
	color: hsl(0, 0%, 0%);
	max-width: 60vw;
}

#nineteen65 .pagecontent .ex1965 .items {
	display: flex;
    flex-flow: row wrap;
    gap: 1rem;
	justify-content: center;
}

#nineteen80 .pagecontent:nth-of-type(3) {
	position: relative;
	padding-top: 0.6rem;
	top: -1rem;
	right: -1rem;
	display: flex;
	flex-flow: column nowrap;
	gap: 1rem;
	min-height: calc(var(--tableheight) - 1rem);
    height: calc(var(--tableheight) - 1rem);
    max-height: calc(var(--tableheight) - 1rem);
	background-color: var(--grey);
	align-items: center;
	justify-items: center;
}

#nineteen65 [data-page="14"] .pagecontent:nth-of-type(2) {
	position: relative;
	padding-top: 0.6rem;
	padding-left: 4rem;
	top: -1rem;
	right: -1rem;
	display: flex;
	flex-flow: row wrap;
	gap: 1rem;
	min-height: calc(var(--tableheight) - 1rem);
    height: calc(var(--tableheight) - 1rem);
    max-height: calc(var(--tableheight) - 1rem);
	background-color: var(--grey);
	align-items: center;
	justify-items: center;
}

.blankitem {
	color: hsl(0, 100%, 100%);
    background-color: var(--highlight);
    border: 1px solid var(--border);
	padding: 0.5rem 1rem;
}

.horizontal {
	width: 12rem;
    aspect-ratio: 3 / 2;
}

.horizontal.wide {
	width: 16rem;
    aspect-ratio: 18 / 8;
}

.vertical {
	height: 12rem;
    aspect-ratio: 2 / 3;
}

.vertical.tall {
	height: 18rem;
    aspect-ratio: 12 / 18;
}

.item {
	display: flex;
	gap: 0.5rem;
}

.ex1965 .item {
	gap: 1rem;
	flex-flow: row wrap;
}

.itemfirst {
	flex-flow: row nowrap;
}

.sourcefirst,
.ex1965 .item.sourcefirst {
	flex-flow: row-reverse nowrap;
}

.ba {
	align-self: end;
}
.tar {
	text-align: right;
	padding-inline-end: 0.8rem;
}

.vac {
	align-self: center;
}

.hac {
	justify-content: center;
}

.w10 {
	max-width: 10vw;
}
.w20 {
	max-width: 20vw;
}
.w30 {
	max-width: 30vw;
}
.w40 {
	max-width: 40vw;
}
.w50 {
	max-width: 50vw;
}
.w60 {
	max-width: 60vw;
}
.w65 {
	max-width: 65vw;
}
.w70 {
	max-width: 70vw;
}
.w80 {
	max-width: 80vw;
}
.w90 {
	max-width: 90vw;
}
.w100 {
	max-width: 100vw;
}
.w110 {
	max-width: 110vw;
}
.w120 {
	max-width: 120vw;
}
.w130 {
	max-width: 130vw;
}
.w140 {
	max-width: 140vw;
}
.w150 {
	max-width: 150vw;
}
.w160 {
	max-width: 160vw;
}
.w200 {
	max-width: 200vw;
}

.contentimage a {
	height: var(--itemheight);
	max-height: var(--itemheight);
}

.contentimage.small a {
	height: calc(var(--itemheight) - 10rem);
	max-height: calc(var(--itemheight) - 10rem);
}

.contentimage.large a {
    height: calc(var(--itemheight) * 1.5);
    max-height: calc(var(--itemheight) * 1.5);
}

.contentimage a:hover,
.content.pdf a:hover {
	background-color: var(--lighttext);
	border-radius: 0.3rem;
}

.contentimage a:hover img,
.content.pdf a:hover img {
	mix-blend-mode: color-burn;
	width: auto;
}

.imagesource {
	color: black;
	font-size: 1.8vmin;
	position: relative;
}






/* FANCYBOX */
/**/
.fancybox__backdrop {
	left: 10% !important;
	right: 10% !important;
}

.fancybox__container {
    padding-top: 1rem !important;
    padding-left: 10% !important;
    padding-right: 10% !important;
    padding-bottom: 4rem !important;
    --fancybox-bg: var(--highlight) !important;
}

.fancybox__content {
	padding: 0 !important;
	width: 100% !important;
	min-height: var(--contentheight) !important;
	border-bottom: 0.5rem solid hsl(0, 0%, 0%);
}

.fancybox__slide.has-caption {
  flex-direction: column-reverse;
}

.fancybox__caption {
	align-self: start !important;
	background-color: hsl(0, 0%, 0%);
	padding: 1rem !important;
	color: var(--lighttext) !important;
	width: 100%;
}

.fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {
    padding-top: 0 !important;
}

.fancybox__slide.has-image>.fancybox__content {
	background: hsl(0, 100%, 100%) !important;
}

.fancybox__content>.f-button.is-close-btn {
    --f-button-width: 34px;
    --f-button-height: 34px;
    --f-button-border-radius: 4px;
    --f-button-color: var(--lighttext) !important ;
    --f-button-hover-color: var(--highlight) !important;
    --f-button-svg-width: 22px;
    --f-button-svg-height: 22px;
    top: -2.9rem !important;
    right: 1rem !important;
    opacity: 1 !important;
    transition: transform 0.4s ease-in-out;
}
.fancybox__content>.f-button.is-close-btn:hover {
	transform: rotate(270deg);
}

.f-button svg {
    stroke-width: 4 !important;
}
/**/
/* EOFFANCYBOX */