:root
{
    --hlavni: red;
    --text: gainsboro;
    --podklad: #ffffff80;
    --pozadi: oldlace;
    --zvyrazneni: lime;
    
    --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);
}

*
{
    font-size: inherit;
    color: inherit;
}

a { color: var(--hlavni); }
a:hover { color: var(--zvyrazneni); }

label { margin: 0; }

img { width: 100%; height: auto; }

h1, h2, h3 
{ 
    color: var(--hlavni);
    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(--podklad);
    margin: 2em 1em;
}

/* Modular color system */
#topper
{
    background-color: var(--pozadi);
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
}
#topper * { color: inherit; }

nav#menu 
{ 
    z-index: 100;
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
    text-wrap: nowrap;
    background-color: var(--podklad);
}
nav#menu svg
{
    width: 1em;
    height: 1em;
    margin: 0 -0.35em;
}
nav#menu button
{
    display: none;
    border: 1px solid var(--zvyrazneni);
    background: transparent;
    color: var(--menu-c);
    padding: 0.5em 1em;
    font-size: 2em;
}
nav#menu a, nav#menu .dd
{
    padding: 1em;
    transition: 0.3s;
}
nav#menu .dd
{
    position: relative;
    height: 100%;
}
nav#menu .dd > span
{
    color: var(--hlavni);
}
nav#menu .dd > div
{
    z-index: 100;
    display: none;
    position: absolute;
    flex-direction: column;
    left: 0;
    top: 100%;
    transition: 0.3s;
    background-color: white;
}
nav#menu .dd > span::after
{
    content: " ↓";
}
nav#menu .dd > div > a
{
    color: white;
    padding: 1em 2em;
    flex: 2;
}
nav#menu .dd > div > a::after
{
    color: white;
    padding: 1em 0 1em 2em;
    flex: 1;
    content: ">";
}
nav#menu .dd > div > a:hover
{
    color: var(--zvyrazneni);
}
nav#menu > div > .dd:hover
{
    display: flex;
    background-color: var(--hlavni);
    color: white;
}
nav#menu > div > .dd:hover > div
{
    display: flex;
    background-color: var(--hlavni);
}
nav#menu > div > .dd:hover > span
{
    color: white;
}
nav#menu > div > a.vybrano 
{
    color: var(--zvyrazneni);
}
nav#menu > div > a, #menu > div > div > a, .slidebut { position: relative; z-index: 1; }
/*nav#menu > div > a::before, #menu > div > div > a::before, .slidebut::before
{
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--pozadi);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
    z-index: -1;
}
nav#menu > div > a:hover::before, #menu > div > div > a:hover::before, .slidebut:hover::before { transform: scaleY(1); }*/
@media only screen and (max-width: 1200px) 
{
    nav#menu > a { font-size: 3em; s}
    nav#menu button { display: block; }
    nav#menu:not(.open) > div { display: none !important; }
    nav#menu { position: relative; }
    nav#menu > div 
    {
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        gap: 0 !important;
        left: 0;
        right: 0;
        align-items: stretch !important;
        background-color: white;
        border-bottom: 5px solid var(--zvyrazneni);
    }
    nav#menu > div > a
    {
        text-align: center;
        font-size: 1.5em;
    }
    body
    {
        font-size: 24px;
    }
}
.slidebut { border: 1px solid var(--menu-a); }
nav#menu > div > a, .slidebut { overflow: hidden; }
nav#menu > div > a.vybrano
{
    background-color: rgba(180,220,255,.15);
}
nav#menu > div > a::before, .slidebut::before
{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(180,220,255,.15),
            rgba(255,255,255,.35),
            rgba(180,220,255,.15),
            transparent
        );
    transform: translateX(-100%);
    
}
nav#menu > div > a:hover::before, .slidebut:hover::before
{
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
    transform: translateX(100%);
}
nav#menu > div > a:hover, .slidebut:hover
{
    transition: background-color .7s cubic-bezier(.2,.7,.2,1);
    background-color: rgba(180,220,255,.15);
}

#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 {
    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
{
    background-color: var(--podklad);
    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;
}
.prev, .next { color: var(--hlavni); }
.prev:hover, .next:hover { color: var(--zvyrazneni); }
.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;
}
.dots svg { transition: transform .3s ease, opacity .3s ease; }
.dot.active svg { transform: scale(1.3); }
.dot { color: var(--hlavni); }
.dot.active, .dot:hover { color: var(--zvyrazneni); }

#fotobox * { color: var(--fotobox-c); }
#fotobox { background-color: var(--fotobox-b); }
#reference * { color: var(--fotobox-c); }

#vzkaz input { bakcground-color: var(--vzkaz-b); }

#novinky
{
    background-color: var(--pozadi);
}

#footer
{
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
    background-color: var(--pozadi);
}

#heeler
{
    background-color: var(--pozadi);
    padding-left: var(--blockpad);
    padding-right: var(--blockpad);
}

.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; }

.x20 { 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; }

.partneri img
{
    max-width: 200px;
    object-fit: contain;
}
.partneri a, .partneri div
{
    display: flex;
    flex: 1;
    justify-content: center;
    margin: auto 0;
    min-width: 200px;
    max-width: 200px;
}

.grayhover
{
   -webkit-filter: grayscale(100%);
   -moz-filter: grayscale(100%);
   filter: grayscale(100%);
   transition: all 0.5s ease;
}
.grayhover:hover
{
   -webkit-filter: grayscale(0%);
   -moz-filter: grayscale(0%);
   filter: grayscale(0%);
}