/*----------------------------------------------------------------------
index.css holds CSS3 style definition used by index.html in the website.
Application: Website SFPD
Platform   : CSS3
------------------------------------------------------------------------
Copyright  : http://creativecommons.org/publicdomain/zero/1.0/
Created    : April 2022, Hartwig Thomas
----------------------------------------------------------------------*/
/*======================================================================
media-independent rules
======================================================================*/
@import "sfpd.css";

/*----------------------------------------------------------------------
select home button
----------------------------------------------------------------------*/
#homebutton 
{
  background-color: var(--color_orange);
}

/*----------------------------------------------------------------------
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;
}

/*----------------------------------------------------------------------
player
----------------------------------------------------------------------*/
/* modify article height */
article
{
  --article_height: calc(100vh - 3 * var(--height_hf));
  height: var(--article_height);
}

aside > div
{
  padding-left: var(--hpadding);
  padding-right: var(--hpadding);
  padding-top: calc(0.5 * var(--vpadding));
  padding-bottom: calc(0.5 * var(--vpadding));
  height: calc(var(--height_hf) - var(--vpadding));
  color: var(--color_light);
  background-color: var(--color_lightblack);
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 0;
}

@media (orientation: landscape)
{
  aside
  {
  --article_height: calc(100vh - 4 * var(--height_hf));
  --section_width: calc(50vw - 2 * var(--hpadding));
    max-width: min(var(--section_width), var(--article_height));
  }
}

.player > a
{
  height: calc(var(--height_hf) - var(--vpadding));
  width: calc(var(--height_hf) - var(--vpadding));
}

.player > a > img
{
  height: calc(var(--height_hf) - var(--vpadding));
  width: calc(var(--height_hf) - var(--vpadding));
	padding: 0;
  margin: 0;
}

.player > p
{
  margin-left: 0.5rem;
  /* margin-right: 0.5rem; */
  margin-top: 0.4ex;
  margin-bottom: 0.4ex;
  padding: 0;
  --size_text_font: 11pt;
  font-size: var(--size_text_font);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: auto;
  flex: 0 0 calc(100% - 4 * (var(--height_hf) - var(--vpadding)));
}

.playbutton
{
  height: var(--height_hf);
  width: var(--height_hf);
  background-color: var(--color_lightblack);
  border-radius: 100%;
  outline: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.playbutton object
{
  width: calc(var(--height_hf) - var(--vpadding));
  height: calc(var(--height_hf) - var(--vpadding));
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none; /* otherwise SVG "steals" the click event. */ 
}

.prevbutton
{
  height: var(--height_hf);
  width: var(--height_hf);
  background-color: var(--color_lightblack);
  border-radius: 100%;
  outline: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.prevbutton object
{
  width: calc(var(--height_hf) - var(--vpadding));
  height: calc(var(--height_hf) - var(--vpadding));
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none; /* otherwise SVG "steals" the click event. */ 
}

.nextbutton
{
  height: var(--height_hf);
  width: var(--height_hf);
  background-color: var(--color_lightblack);
  border-radius: 100%;
  outline: none;
  border: 0;
  margin: 0;
  padding: 0;
  flex 0, 0, auto;
}

.nextbutton object
{
  width: calc(var(--height_hf) - var(--vpadding));
  height: calc(var(--height_hf) - var(--vpadding));
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none; /* otherwise SVG "steals" the click event. */ 
}

#searchbutton
{
  background-color: var(--color_white);
}

/*----------------------------------------------------------------------
sections
----------------------------------------------------------------------*/
section
{
  --left_height: min(var(--section_width), 0.45 * 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);
  --size_text_font: 11pt;
  font-size: var(--size_text_font);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

section.left > a
{
  margin: 0;
  padding: 0;
  border: 0;
}

section.left > a > img
{
  width: 49%;
	height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.meta
{
	display: inline-block;
  height: calc(100% - var(--height_hf));
  width: 50%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.meta > p
{
  --size_label_font: 8pt;
  font-size: var(--size_label_font);
	color: var(--color_orange);
  margin: 0;
  padding: 0;
  border: 0;
}

.meta > h1
{
  --size_h1_font: 12pt;
  font-size: var(--size_h1_font);
  font-weight: normal;
  margin: 0;
  padding: 0;
  border: 0;
  margin-top: 0.5rem;
}

.meta > h2
{
	display: none;
  --size_h2_font: 8pt;
  font-size: var(--size_h2_font);
  font-style: italic;
  margin: 0;
  padding: 0;
  border: 0;
  margin-top: 0.5rem;
}

.meta > pre
{
  --size_pre_font: 10pt;
  font-size: var(--size_pre_font);
	margin: 0;
  padding: 0;
  border: 0;
  margin-top: 0.5rem;
}

.meta > table
{
	display: none;
  margin-top: 0.5rem;
}

.result
{
  height: calc(0.5 * var(--height_hf));
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  margin-top: 1rem; 
}

.result > p
{
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: left;
}

.result > p > span
{
  margin: 0;
  padding: 0;
  border: 0;
}

#current
{
	margin-right: auto;
}

section.right
{
  width: var(--left_width);
  height: var(--right_height);
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: left;
  flex-wrap: wrap;
}

section.right > a
{
  height: calc(2 * var(--height_hf));
  width: calc(2 * var(--height_hf));
	padding: 0;
  margin: 0;
  border: 0;
}

section.right > a.active
{
  border: 1px solid var(--color_darkgray);
}

section.right > a.visited
{
  border: 1px solid var(--color_darkgray);
}

section.right  div
{
  position: relative;
  top: 0;
  left: 0;
  height: calc(2 * var(--height_hf));
  width: calc(2 * var(--height_hf));
  padding: 0;
  margin: 0;
  border: 0;
}

@media (orientation: portrait)
{
	section.right > a
  {
    max-width: calc(0.3 * var(--left_width));
    max-height: calc(0.3 * var(--left_width));
  }
	
  section.right  div
  {
    max-width: calc(0.3 * var(--left_width));
    max-height: calc(0.3 * var(--left_width));
  }
}

section.right img
{
  height: calc(2 * var(--height_hf));
  max-height: calc(0.3 * var(--left_width));
  width: calc(2 * var(--height_hf));
  max-width: calc(0.3 * var(--left_width));
  padding: 0;
  margin: 0;
}

.banner
{
	position: absolute;
  top: 0%;
  right: 0%;
  height: 30%;
  width: 30%;
}

section.right span
{
  --size_text_font: 11pt;
  font-size: var(--size_text_font);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-top: 0.45ex;
  margin-bottom: 0.4ex;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

@media (orientation: landscape)
{
	section.left
	{
    width: var(--left_width);
	  height: var(--section_height);
    overflow-y: auto;
  }

	.meta > h2
	{
	  display: block;
	}

  .meta > h2
  {
    display: block;
  }

  section.right
  {
    display: block;
	  width: var(--right_width);
	  height: var(--section_height);
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }
  
  section.right > a
  {
    display: block;
	  width: var(--right_width);
    height: var(--height_hf);
	  padding: 0;
    margin: 0;
    text-decoration: none;
  }

  section.right div
  {
    width: var(--right_width);
	  height: var(--height_hf);
    padding-left: var(--hpadding);
    padding-right: var(--hpadding);
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
	  flex: 0 0 var(--height_hf);
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    gap(0);
  }
  
	section.right img
	{
    height: var(--height_hf);
	  width: var(--height_hf);
    padding: 0;
    margin: 0;
	}
  
  .banner
  {
	  position: relative;
	  top: calc(-0.3 * (var(--height_hf) - var(--vpadding)));
	  left: calc(-0.15 * (var(--height_hf) - var(--vpadding)));
	  height: calc(0.35 * (var(--height_hf) - var(--vpadding)));
	  width: calc(0.35 * (var(--height_hf) - var(--vpadding)));
  }  
  
  section.right span
  {
    display: inline;
  }
  
  section.right span.title
  {
    margin: 0;
    padding: 0;
	  flex: 0 0 calc(50% - 2 * var(--hpadding));
  }
  
  section.right span.label
  {
    margin: 0;
    padding: 0;
    --size_label_font: 8pt;
    font-size: var(--size_label_font);
    flex: 0 0 calc(50% - 2 * var(--hpadding));
  }
  
}
