﻿/* ------------------ definicje zmiennych layoutu -------------------------------- */

:root {
    --kolor-tła: LightGoldenRodYellow;
    --kolor-czcionki-standard: black;
    --kolor-czcionki-podtytułów: blue;
    --kolor-tekstu-ostrzegawczy: red;
    --rozmiar-czcionki: 16px;
    
}

body {
    font-family: Verdana,Tahoma,Arial; 
    color: var(--kolor-czcionki-standard);
    background-color: var(--kolor-tła);
    font-size: var(--rozmiar-czcionki);
    margin-left: 1em;
    margin-right: 1em;
    scrollbar-width: auto;
    overflow-y: scroll;
    scrollbar-color: blue sandybrown;
    }


/* ---------------------------- definicje klas ---------------------------------  */
.kolor-wyróżniony {color: var(--kolor-czcionki-podtytułów);}
.tekst-ostrzegawczy {color: var(--kolor-tekstu-ostrzegawczy);}
.kolor-ważny {color: var(--kolor-tekstu-ostrzegawczy);}

.tekst-na-środek {text-align: center; text-align-last: center;}
small.tekst-na-środek {text-align: center; display: inline-block;}

.obiekt-na-środek
{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.szer20 
{
	width: 20%;
}

.kontener-dla-logo 
{
    justify-content: center; 
    display: flex;
    height: calc(6 * 2.5em);
    margin-bottom: 1.4em;
}

.logo-obrazek 
    {height: inherit;
    object-fit: contain;
	border-radius: 28px;
	display: inline; 
	margin-right: 30px;}

	

.logo-tekst
    {
    color: var(--kolor-czcionki-podtytułów);
    text-shadow: 1px 1px 2px #000000;
    text-align: left;
    font-size: 2.5em;
    display: inline-block;        
    }

.małe {font-size: 0.8em;}
.większe {font-size: 1.3em;}

.stopka {text-align: center; text-indent: 2em; font-style: italic; font-size: 0.7em}

.menu-kontener {
    color: var(--kolor-czcionki-podtytułów);
    display: flex;
    margin: 0;
    text-decoration: none;
    align-content: space-between;
    justify-content: center;
    flex-wrap: wrap;
}


.menu-element 
    {
    text-decoration: none;
    margin-right: 0.7em; 
    margin-bottom: 0.7em;
    border: 1px solid #ff3; 
    background-color: #ff3;
    display: inline-block; 
    overflow: hidden; 
    max-width: 12em;
    text-align: center;
	padding: 0.5em 1em;
    border-radius: 1em;
    font-size: inherit;
    }

.menu-element a {text-decoration: none; color: inherit; margin: 0; padding: 0;}
.menu-element a:hover {color: red;}

.czcionka-dla-smartfona 
    {
        display: none
        
    } /* ten element widoczny jest tylko na smartfonach */

 
/* formaty ogólne */
p, dd, ul, ol, li, q, blockquote, details, section {text-align: justify;}
p, dd, li, blockquote {text-align-last: left;}

dt {margin-top: 0.5em; margin-bottom: 0.5em;}
dd {margin-bottom: 1em;}

ul.lista_linkow {list-style-type: disc;}

blockquote::before {content: "„";}
blockquote::after {content: "”";}
q {quotes: "„" "”" "»" "«";}

h1 {font-size: 1.8em; text-align: center; color: var(--kolor-czcionki-podtytułów);}
h2 {font-size: 1.5em; text-align: center; color: var(--kolor-czcionki-podtytułów) }
h3 {font-size: 1.2em; text-align: center; color: var(--kolor-czcionki-podtytułów)}

dd {margin-inline-start: 0.5em; text-align: justify; text-align-last: left;}
li {margin-bottom: 0.5em;}
abbr {text-decoration: none;}
details[open] {margin-top: 0.7em; margin-bottom: 1em; margin-left: 1.5em;}
summary {margin-bottom: 0.2em;}
details[open] summary {margin-bottom: 0.7em; margin-left: -1.5em;}

hr {
    border-top: 2px solid; 
/*    color:  var(--kolor-podtytułów); 
    size: 4px; 
    background-color: ; 
    height: 4px;
*/
    }

/* sekcje nav i footer */
nav+hr 
{
	width:  50%;
}

footer hr:first-child 
{
	width: 94%;
}


/* formularz */
.formularz {margin-left: auto; margin-right: auto; text-align: center;}

textarea {min-width: 80%; max-width: 97%; font-size: 1.4em;}
input, label, textarea {display: inline-block;}
input, label {margin-right: 12px;}
.formularz input[name="kod2"] {width: 8em;}

/* tabele z tekstem modlitwy */
table.modlitwa {border: 1px solid black;}
.modlitwa  th {text-align: center;}
.modlitwa  td {padding: 1.5em;}



/* obrazy, mapy */
.mapa {max-width: 80%; max-height: 80%;} 
img.literatura {max-width: 320px; margin-right: 1.5em; float: left; clear: both;}
.literatura {clear: both; margin-bottom: 1em;}

/* Scroollbar  */
::-webkit-scrollbar {
  width: 1em;
  
}

::-webkit-scrollbar-track {
  background-color: sandybrown;
}
 
::-webkit-scrollbar-thumb {
  background: var(--kolor-czcionki-podtytułów); 
  border-radius: 5px;
    
}

::-webkit-scrollbar-thumb:hover {
  background: var(--kolor-tekstu-ostrzegawczy); 
  border-radius: 5px;
 }


/* dla TV - telewizory 4K zgłaszają się jako width 1280px */

@media screen and (orientation: landscape) and (min-width: 1260px) and (pointer: none) 
{
body {max-width: 80%; margin-left: auto; margin-right: auto;}
nav li {margin-bottom: 1.2rem;} /* rozszerzenie międzyliniowe linków do tekstów */
details {margin-bottom: 1rem;}  /* rozszerzenie otwieranej listy */
summary {cursor: pointer;}

}

/* dla monitorów w formacie 16:9 z rozdzielczością > 760 poziomo */
@media screen and (min-height: 750px) and (pointer: fine) and (aspect-ratio >= 16/9)
{
body {max-width: 1280px; margin-left: auto; margin-right: auto;}

}



/* dla monitorów o wysokiej rozdzielczości lub w formacie 16:9 */

@media screen and (min-width: 1700px) and (pointer: fine)
{
body {max-width: 1280px; margin-left: auto; margin-right: auto; font-size: 20px;}

}

/* dla monitorów 4K */
@media screen and (min-width: 3400px)  and (pointer:fine)
{
body {max-width: 2500px; margin-left: auto; margin-right: auto; font-size: 32px;}

}




/* dla smartfonów */ 

 
@media screen and (orientation: portrait) and (hover: none)
{
    body {padding: 0 1em;}
    details {margin-bottom: 1.5rem;}   /* rozszerzenie otwieranej listy */
	summary {cursor: pointer;}
    .menu-kontener {margin-top: 0.5em;}
    .menu-element {height: auto; width: 5.7em; max-width: 6em; vertical-align: middle;}
	.logo-obrazek { display: none;}
    .logo-tekst
        {
        font-size: 1.2em;
        text-align: center;
        }
	.logo-tekst br {display: none;}
	.logo-tekst br:last-of-type {display: inline-block;}
    textarea { min-width: 95%; font-size: +20%;}
	input {margin: 0.7em;}
	nav li {margin-bottom: 1rem;} /* rozszerzenie międzyliniowe linków do tekstów */
	.kontener-dla-logo {height: auto; margin-bottom: 0; height: auto;
    margin-bottom: 0;}
    p, dd, li, q, blockquote, details, summaryx {text-align: left;} 

    .czcionka-dla-smartfona 
    {
        display: block;
        position: fixed;
        top: 1.5em;
        left: 0.5em;
        font-weight: 900;
        
    } /* ten element widoczny jest tylko na smartfonach */

    

}

@media screen and (max-width: 800px) and (pointer: fine)
{ 
body {font-size: 12px;}

}

/* monitory i smartfony o niskiej rozdzielczości w trybie landscape */

@media screen and (max-width: 600px)
{
    body {font-size: 14px;}
	.logo-obrazek { display: none;} /* chowamy logo dla małych rozdzielczości */
	.logo-tekst
        {
        font-size: 1em;
        text-align: center;
        }
	.kontener-dla-logo {height: auto; margin-bottom: 0;}
	
}

	
