:root
{
    --topper-a: orange;
    --topper-b: gainsboro;
    --topper-c: black;
    
    --menu-a: orange;
    --menu-b: #3c150b;
    --menu-c: white;
    
    --carousel-a: orange;
    --carousel-b: rgba(0, 0, 0, 0.5);
    --carousel-c: white;
    
    --akce-a: yellow;
    --akce-b: red;
    --akce-c: white;
    
    --fotobox-a: white;
    --fotobox-b: rgba(0, 0, 0, 0.5);
    --fotobox-c: white;
    
    --vzkaz-a: orange;
    --vzkaz-b: LightGoldenRodYellow;
    --vzkaz-c: black;
    
    --footer-a: orange;
    --footer-b: #222222;
    --footer-c: white;
    
    --heeler-a: orange;
    --heeler-b: gainsboro;
    --heeler-c: black;
    
    --button-a: orange;
    --button-b: brown;
    --button-c: white;
    
    --text-c: black;
    --text-h: goldenrod;
    
    --blockpad: 25px;
    --footwidth: 1000px;
    
    --dark: rgba(0, 0, 0, 0.5);
}

@font-face 
{
    font-family: "Logo";
    src: url(fonts/Manrope-VariableFont_wght.ttf) format("truetype");
}
@font-face 
{
    font-family: "Heading";
    src: url(fonts/AlegreyaSansSC-Thin.ttf) format("truetype");
}

body
{
    overflow-y: scroll;
    width: 100%;
    color: var(--text-c);
}

*
{
    font-size: inherit;
    color: inherit;
}

a { color: inherit; }

label { margin: 0; }

img { width: 100%; height: auto; }

h1, h2, h3 
{ 
    color: var(--text-h);
    margin: 0;
    font-family: "Heading";
    font-weight: bold;
}
h1 { font-size: 3em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
.article h1, .article h2, .article h3
{
    margin: 1em 0;
}
.refdetail h1, .refdetail h2, .refdetail h3
{
    margin: 0;
}

hr 
{
    border-color: var(--text-h);
    margin: 2em 1em;
}

/* Modular color system */
#topper
{
    color: var(--topper-c);
    background-color: var(--topper-b);
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
}
#topper * { color: inherit; }
#topper a:hover
{
    color: var(--topper-a);
}

nav 
{ 
    z-index: 100;
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
    text-wrap: nowrap;
    background-color: var(--menu-b);
}
nav button
{
    display: none;
    border: 1px solid var(--menu-c);
    color: var(--menu-c);
    padding: 0.5em 1em;
}
nav a { padding: 1em; color: var(--menu-c); transition: 0.3s; }
nav > div > a.vybrano { background-color: var(--menu-a); color: var(--menu-c); }
nav > div > a, nav > div > div > a, .slidebut { position: relative; z-index: 1; }
nav > div > a::before, nav > div > div > a::before, .slidebut::before
{
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--menu-a);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
    z-index: -1;
}
/*nav > div > a:hover::before, nav > div > div > a:hover::before, .slidebut:hover::before { transform: scaleY(1); }
nav > div > a:hover, nav > div > div > a:hover, .slidebut:hover { color: var(--menu-c); }
@media only screen and (max-width: 1200px) 
{
    nav button { display: block; }
    nav > div:not(.open) { display: none !important; }
    nav > div 
    {
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        gap: 0 !important;
        right: 0;
        align-items: end !important;
        background-color: var(--dark);
    }
}*/
.slidebut { border: 1px solid var(--menu-a); }

#akce
{
    background-color: var(--akce-b);
    border-radius: 0 5px 5px 0;
    z-index: 100;
}
#akce > div * { color: var(--akce-c); }
#akce > div > span
{
    padding: 1em;
    transition: left 0.5 ease;
}
#akce > div > span * { color: var(--akce-a) !important; }
#akce > div { position: relative; }
#akce > div > div 
{ 
    position: absolute;
    width: 200px;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    background-color: var(--akce-b);
    border-radius: 0 5px 5px 0;
    transition: transform 0.5s ease;
    padding: 2em;
    padding-top: 4em;
    z-index: -1;
}
#akce:hover > div > div { transform: translateX(0); }
#akce:hover > div > span { left: 100%; }

#carousel * { color: var(--fotobox-c); }
.carousel {
    position: relative;
    overflow: hidden;
}
.slides {
    display: flex;
    transition: transform .5s ease;
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide img {
    display: block;
    width: 100%;
}
.slide>div
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide>div>div
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 1em;
}
#carousel .slide>div>div
{
    color: var(--carousel-c);
    background-color: var(--carousel-b);
    border: 1px solid var(--carousel-a);
}
.slide div span:first-child
{
    font-size: 3em;
    font-weight: bold;
}
.controls
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.prev, .next
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1em;
    border: none;
    background-color: transparent;
}
#carousel .prev, #carousel .next { color: var(--carousel-c); }
#carousel .prev:hover, #carousel .next:hover { color: var(--carousel-a); }
.prev { left: 0; }
.next { right: 0; }
.dots
{
    display: flex;
    gap: 1em;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.dots button
{
    border: none;
    background-color: transparent;
    padding: 1em;
}
#carousel .dots button { color: var(--carousel-c); }
#carousel .dots button:hover, #carousel .dots button.active { color: var(--carousel-a); }
.dots svg { transition: transform .3s ease, opacity .3s ease; }
.dot.active svg { transform: scale(1.3); }

#fotobox * { color: var(--fotobox-c); }
#reference * { color: var(--fotobox-c); }

#vzkaz input { bakcground-color: var(--vzkaz-b); }

#footer
{
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
    background-color: var(--footer-b);
    color: var(--footer-c);
}

#heeler
{
    background-color: var(--heeler-b);
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
}
#heeler * { color: var(--heeler-c); }
#heeler > a:hover { color: var(--heeler-a); }

.regal { gap: 1em 1em; }
.regal>div { width: calc((100% - 7em) / 8); }
.regal img { aspect-ratio: 1/1; object-fit: cover; }
@media only screen and (max-width: 1300px) { .regal>div { width: 16%; } }
@media only screen and (max-width: 992px) { .regal>div { width: 24%; } }
@media only screen and (max-width: 660px) { .regal>div { width: 48%; } }

.regal2 { gap: 1em 1em; }
.regal2>div, .regal2>a { width: calc((100% - 3em) / 4);; }
.regal2 img { aspect-ratio: 1/1; object-fit: cover; }
@media only screen and (max-width: 1300px) { .regal2>div, .regal2>a { width: 31%; } }
@media only screen and (max-width: 992px) { .regal2>div, .regal2>a { width: 48%; } }
@media only screen and (max-width: 660px) { .regal2>div, .regal2>a { width: 100%; } }

.regal3 { gap: 1em 1em; }
.regal3>div, .regal3>a { width: calc((100% - 2em) / 3); }
.regal3 img { aspect-ratio: 1/1; object-fit: cover; }
@media only screen and (max-width: 1300px) { .regal3>div, .regal3>a { width: 48%; } }
@media only screen and (max-width: 992px) { .regal3>div, .regal3>a { width: 48%; } }
@media only screen and (max-width: 660px) { .regal3>div, .regal3>a { width: 100%; } }

.card
{
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.5em;
    aspect-ratio: 1/1;
    color: white;
}
.card img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.overlay 
{
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    transition: background-color 0.5s ease;
    display: flex;
    align-items: flex-end;
}
.text 
{
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 1.5em;
    gap: 1em;
}
.arrow 
{
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.card:hover img { transform: scale(1.08); }
.card:hover .overlay { /*background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0));*/ background-color: transparent; }
.card:hover .text { background-color: rgba(0,0,0,0.5); color: white; }
.card:hover .arrow
{
    opacity: 1;
    transform: translateX(0);
}

.md
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.md:not(.act) { display: none; }
.md.act { display: flex; }
.md img
{
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.gallery
{
    display: grid;
    gap: 1em;
}
.gallery img
{
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: outline 0.1s ease;
    outline: 0px solid orange;
    border-radius: 0.5em;
}
.gallery img:hover { outline: 3px solid orange; }

.sip { position: relative; }
.sip input:not([type="checkbox"]), .sip textarea, .sip select
{
    border: none;
    border: 1px solid var(--vzkaz-c);
    outline: none !important;
    outline-left: 3px solid var(--vzkaz-a);
    padding: 0.5em;
    padding-top: 1em;
    width: 100%;
    background-color: transparent;
    
    resize: none;
    vertical-align: top;
}
.sip input::placeholder { color: transparent; }
.sip label
{
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.75em;
}
.sip input:focus + label, .sip input:valid + label, .sip textarea:focus + label, .sip textarea:valid + label, .sip select + label, .sip input[type="date"] + label{ font-size: 0.5em; }
.sip input[type="checkbox"]
{
    position: absolute;
    top: 0;
    right: 0;
    margin: 1em;
}
.sip button { position: absolute; right: 0; border: none; width: 3em; }
.sip button:hover { background-color: transparent; color: var(--c5); }
::-ms-reveal { display: none; }
.sip input[type="color"] { height: 50px; }
button.sip
{
    border: none;
    padding: 0.5em;
    background-color: var(--button-b);
    color: var(--button-c);
}
button.sip.bad
{
    background-color: gainsboro;
}
button.sip:not(.bad):hover
{
    background-color: var(--button-a);
}

.scb
{
    display: flex;
    gap: 1em;
    align-items: center;
    cursor: pointer;
}
.scb input[type="checkbox"]
{
    height: 1.5em;
    width: 1.5em;
}

.radio
{
    display: flex;
    align-items: center;
    cursor: pointer;
}
.radio input[type="radio"]
{
    width: 1.5em;
    height: 1.5em;
    margin: 0.5em;
}

.fin
{
    background-color: var(--vzkaz-b);
    border: 1px dashed black;
    text-align: center;
    font-weight: bold;
    padding: 1em;
    cursor: pointer;
}
.fin input[type="file"]
{
    display: none;
}

.footwidth
{
    max-width: var(--footwidth);
}

.grid3
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Boot myself by my pullstrap */
.fr { display: flex; flex-direction: row; } /* Flex row */
.fc { display: flex; flex-direction: column; } /* Flex column */

.fw { flex-wrap: wrap; }

.aic { align-items: center; }
.ais { align-items: stretch; }
.ait { align-items: start; }
.aib { align-items: baseline; }
.jcc { justify-content: center; }
.jcb { justify-content: space-between; }
.jce { justify-content: end; }

.f1 { flex: 1; }
.f2 { flex: 2; }
.f3 { flex: 3; }
.f4 { flex: 4; }
.f5 { flex: 5; }

.pr { position: relative; }
.pa { position: absolute; }
.pf { position: fixed; }
.t { top: 0; }
.l { left: 0; }
.r { right: 0; }
.b { bottom: 0; }
.vc { top: 50%; transform: translateY(-50%); }

.hv { height: 100vh; }
.hvm { min-height: 100vh; }
.hf { height: 100%; }
.wv { width: 100vw; }
.wf { width: 100%; }

.p00 { padding: 0; }
.p05 { padding: 0.5em; }
.p10 { padding: 1em; }
.p15 { padding: 1.5em; }
.p20 { padding: 2em; }
.p30 { padding: 3em;}
.m00 { margin: 0; }
.m { margin: 1em; }
.g { gap: 1.5em; }

.g20 { gap: 2em; }
.g25 { gap: 2.5em; }
.g30 { gap: 3em; }

.x2 { font-size: 2em; }
.x12 { font-size: 1.2em; }
.x15 { font-size: 1.5em; }
.x17 { font-size: 1.7em; }
.x08 { font-size: 0.8em; }
.x05 { font-size: 0.5em; }

.tb { font-weight: bold; }
.tc { text-align: center; }

.bdark { background-color: var(--dark); }
.twhite { color: white; }