/*----------------------------------------------------------------------
questions.css holds CSS3 style definition used by questions.html in the website.
Application: Website CultLib
Platform   : CSS3
------------------------------------------------------------------------
Copyright  : http://creativecommons.org/publicdomain/zero/1.0/
Created    : March 2022, Hartwig Thomas
----------------------------------------------------------------------*/
/*======================================================================
media-independent rules
======================================================================*/
@import "sfpd.css";

/*----------------------------------------------------------------------
header button popups
----------------------------------------------------------------------*/
header > div
{
  z-index: 1;
  position: fixed;
  top: var(--height_hf);
  right: 0;
  height: var(--height_hf);
  --download_width: 12rem;
  width: var(--download_width);
  display: none;
}

header > div > a
{
  height: 100%;
  background-color: var(--color_darkgray);
  color: var(--color_light);
  text-decoration: none;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  /* border-bottom: 1px solid var(--color_light); */
}

header > div > a object
{
  height: calc(0.7 * var(--size_button));
  width: auto;
  vertical-align: bottom;
}

/*----------------------------------------------------------------------
sections
----------------------------------------------------------------------*/
section
{
  --left_height: min(var(--section_width), 0.5 * var(--article_height) - 2 * var(--vpadding));
	--right_height: calc(var(--article_height) - var(--left_height) - 4 * var(--vpadding));
  --left_width: min(var(--section_width), var(--article_height) - 2 * var(--hpadding));
  --right_width: calc(var(--article_width) - var(--left_width) - 4 * var(--hpadding) - 1px);
}

section.left
{
  width: var(--left_width);
  height: var(--left_height);
}

section.left > div
{
  width: 100%;
  height: 100%;
}

section.left > div
{
  width: 100%;
  height: 100%;
  display:flex; 
  justify-content:center;
  align-items:center;  
}

section.left > div > img
{
  height: 100%;
  width: auto;
}

section.right
{
  width: var(--left_width);
	height: var(--right_height);
  --size_text_font: 14pt;
  font-size: var(--size_text_font);
  position: relative;
}

@media (orientation: landscape)
{
  section.left
  {
    width: var(--left_width);
    height: var(--section_height);
  }

  section.right
  {
    width: var(--right_width);
    height: var(--section_height);
  }
}

section.right > div
{
  margin-top: 0;
  margin-bottom: 0;
}

/*----------------------------------------------------------------------
horizontal scroll area of tabbed display
----------------------------------------------------------------------*/
.hscroll
{
	display: grid;
  grid-auto-flow: column;
  max-width: min-content;
  grid-template-rows: auto;
  scrollbar-width: none;
  overflow-x: auto;
}

.hscroll::-webkit-scrollbar
{
  display: none;
}

.hscroll a
{
	width: calc(var(--left_width) * 0.3);
	max-width: 20rem;
  border-style: solid;
  border-color: var(--color_light);
  border-width: 0;
  text-align: center;
}

.hscroll a:link 
{ 
  color: var(--color_light);
  text-decoration: none; 
}
.hscroll a:visited
{ 
  color: var(--color_light);
  text-decoration: none; 
}

.hscroll a:hover
{ 
  color: var(--color_light);
  text-decoration: none; 
}

.hscroll a:active
{ 
  color: var(--color_light);
  text-decoration: none; 
}

.hscroll a.selected
{
  border-width: 0 0 1px 0;
}

.hscroll a.scroll
{
  position: absolute;
  display: inline;  
  width: 1rem;
  height: var(--size_text_font);
  border: 0;
  background-color: var(--color_black);
}

.hscroll a.scroll.prev
{
  left: var(--hpadding);
}

div.hscroll a.scroll.next
{
  right: var(--hpadding);
}

.hscroll a.scroll.hidden
{
  display: none;
}

/*----------------------------------------------------------------------
tab area of tabbed display
----------------------------------------------------------------------*/
.tab
{
	font-size: var(--size_text_font);
}

.tab > ul
{
  margin: 0;
  padding-top: 1ex;
	display: none;
}

.tab > ul.selected
{
  margin: 0;
  padding-top: 1ex;
	display: block;
}

/*----------------------------------------------------------------------
tree view of newsletter
----------------------------------------------------------------------*/
section.right
{
  display: flex;
  flex-direction: column;	
}

.hscroll
{
	flex: 0 0 auto;
}

.tab
{
	flex: 0 1 auto;
  overflow-y: auto;
}

.tab > ul
{
	list-style-type: none;
  margin-left: 0;
  margin-right: 6px;
	padding: 0;
}

.caret 
{
  cursor: pointer;
  user-select: none; /* Prevent text selection */
  color: white;
}

.nested 
{
	display: none;
}

.active 
{
  display: block;
}
