@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
:root {
    --background-color: 3, 9, 13;
    --text-color: 223, 216, 200;
    --accent-color: 230, 200, 100;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: rgb(var(--background-color));
    color: rgb(var(--text-color));
    font-size: 0.95em;
    line-height: 1.5;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: rgb(var(--accent-color));
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

.maxWidth {
    max-width: 1000px;
    margin: auto;
}

.sectionWrapper {}

.sectionBackground {
    min-height: 350px;
    background-size: cover;
    background-position: center center;
    justify-content: flex-end;
}

.section {
    padding: 0px 5.93%;
    display: flex;
    flex-direction: column;
}

.text {
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: rgb(var(--text-color));
}

.textCenter {
    text-align: center;
}

.sectionBackground .text {
    padding-bottom: 2rem;
}

h1 {
    background-color: rgb(var(--background-color));
    padding: 1rem 2rem;
    margin: -1rem -2rem;
    display: inline-block;
}

h2, h3 {
    color: rgb(var(--accent-color));
    font-size: 2rem;
    font-weight: 400;
    margin: 2.5rem 0rem 0.5rem;
}

h2:first-child, h3:first-child {
    margin-top: 0;
}

p strong {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
}

.button {
    padding: 0.5rem 1rem;
    margin: 2rem 0rem;
    background-color: rgba(var(--accent-color), 0.3);
    display: inline-block;
    color: rgb(var(--text-color));
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.legal {
    text-align: right;
    color: rgb(var(--text-color));
    background: transparent;
    padding: 1rem 2rem;
    position: absolute;
    display: block;
    font-size: 0.8rem;
    right: 0;
}


/* Navigace */

#navigation {
    position: fixed;
    top: 0;
    width: 100vw;
    background-color: rgba(var(--background-color), 0.5);
    --accent-color: white;
    backdrop-filter: blur(3px);
    z-index: 1000;
}

#navigation .section {
    padding-top: 0px;
    padding-bottom: 0px;
}

#navigation ul {
    list-style: none;
    display: flex;
    align-content: flex-end;
    justify-content: flex-end;
    margin: 0;
}

#navigation a {
    padding: 1.8rem 1.5rem 1.2rem;
    display: inline-block;
}

#navigation li:last-child a {
    padding-right: 0;
}


/* Header */

#header .section {
    min-height: 400px;
}


/* Kontakt */

#kontaktText a {
    display: block;
}


/* Columns */

.twoColumns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.twoColumns>* {
    flex-basis: calc(50% - 2rem);
    padding: 0 1rem;
}

.twoColumns>.columnText {
    padding: 1rem;
    align-self: center;
}

.fourColumns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.fourColumns>* {
    flex-basis: calc(25% - 2rem);
    padding: 1rem 1rem;
}

/* Section margin */
.sectionMargin {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Styly k autorům */


/* #region */

.author .text {
    margin: 0;
    padding: 0;
}

.author h6 {
    margin: 0rem 0 0.1rem;
    font-size: 1.2rem;
    color: rgb(var(--accent-color));
}

.author .icon {
    background-size: cover;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 2rem;
}

.author {
    display: flex;
    margin-top: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.author a {
    display: block;
    color: rgba(var(--text-color), 0.6);
    font-size: 0.8rem
}

.author a:first-of-type {
    color: rgba(var(--text-color), 1);
}


/* #endregion */


/* Styly k tabulce */


/* #region */

.tableHeader h4 {
    color: rgb(var(--accent-color));
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
}

.tableHeader {
    color: rgba(var(--text-color), 0.5);
    font-size: 0.8rem;
    align-items: stretch;
    margin-top: 2.5rem;
}

.tableRow {
    border-top: 1px solid rgba(var(--text-color), 0.3);
    padding: 0.5rem 0;
    margin: 0.5rem 0 0rem;
}

.tableRow h5 {
    color: rgba(var(--text-color), 1);
    font-size: 1rem;
    margin: 0
}

.tableRow p {
    color: rgba(var(--text-color), 0.5);
    font-size: 0.8rem;
    margin: 0
}

.tableHeader, .tableRow {
    display: flex;
    flex-wrap: wrap;
}

.tableHeader>div, .tableRow>div {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
}

.tableHeader>div:first-of-type, .tableRow>div:first-of-type {
    flex-direction: column;
    flex-basis: 320px;
    flex-grow: 0;
}

.tableHeader span:nth-of-type(1), .tableRow span:nth-of-type(1) {
    flex-basis: 15%;
}

.tableHeader span:nth-of-type(2), .tableRow span:nth-of-type(2) {
    flex-basis: 15%;
}

.tableHeader span:nth-of-type(3), .tableRow span:nth-of-type(3) {
    flex-basis: 70%;
    flex-grow: 0;
    max-width: 400px;
}

.tableHeader>div>span, .tableRow>div>span {
    align-self: center;
}


/* #endregion */


/* Styly k patičce */


/* #region */

.socials svg {
    width: 1.5em;
    padding: 0.5em 1em;
    fill: rgb(var(--accent-color));
}


/* #endregion */


/* mobilni verze */


/* #region */

@media (max-width:960px) {
    #navigation ul {
        padding: 0;
    }
    #navigation li:last-child a {
        padding-right: 1.5rem;
    }
    .twoColumns {
        flex-direction: column;
    }
    .text {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .text.fourColumns>.img {
        margin-bottom: 1rem;
    }
    .fourColumns>div {
        flex-basis: calc(50% - 2rem);
    }
    .author {
        overflow-x: hidden;
    }
    .tableHeader span:nth-of-type(1), .tableRow span:nth-of-type(1) {
        flex-basis: 50%;
    }
    .tableHeader span:nth-of-type(2), .tableRow span:nth-of-type(2) {
        flex-basis: 50%;
    }
    .tableHeader span:nth-of-type(3), .tableRow span:nth-of-type(3) {
        flex-basis: 100%;
        padding-top: 5px;
    }
    .tableHeader>div:first-of-type, .tableRow>div:first-of-type {
        padding-bottom: 7px;
    }
    h1 {
        max-width: calc(320px - 4rem);
        margin-bottom: -3rem;
    }
    .legal {
        margin-top: 2.5rem;
        padding-right: 1rem;
        color: white !important;
        opacity: 0.5;
        font-size: 0.7rem;
    }
    .sectionBackground {
        background-position: 71% 74%;
    }
}

@media (max-width:400px) {
    .author .icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
}

@media (max-width:500px) {
    #navigation ul {
        justify-content: space-between;
        padding: 0;
    }
}

@media (min-width:760px) {
    #autoriText .twoColumns {
        flex-direction: row;
    }
}


/* #endregion */


/* fullscreen image */

.img {
    cursor: zoom-in;
    background-color: transparent;
    transition: background-color 0.56s ease;
}

.img.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #222;
    z-index: 10;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.img img {
    max-width: 800px;
}


/*filtrovani*/

.archiv {
    margin-bottom: 3em;
}

.archiv>* {
    padding: 0.25em;
    display: none;
}

div.prihlasene a img {
    height: 5em;
    width: auto;
}

div.vybrane a img {
    height: 150px;
    width: auto;
}


/* The "show" class is added to the filtered elements */

.show {
    display: inline-block;
}


/* Style the buttons */

.btn {
    border: none;
    outline: none;
    padding: 12px 16px;
    margin: 0.25em;
    color: rgb(var(--background-color));
    background-color: rgb(var(--text-color));
    cursor: pointer;
    transition-duration: 1s;
    transition-property: background-color, color;
    text-decoration: none;
}
.btn.small{
    padding: 5px 10px;
    margin: 0;
}
.btn.primary {
    background-color: rgb(var(--accent-color));
    color: rgb(var(--background-color));
}
/* Add a grey background color on mouse-over */

.btn:hover {
    background-color: rgb(44, 43, 43);
    color: white;
}


/* Add a dark background color to the active button */

.btn.active {
    background-color: rgb(var(--accent-color));
    color: white;
}

/* Tabs */

.tab-content {
    height: 0;
    overflow: hidden;
}
.tab-content.selected {
    height: auto;
    overflow: auto;
}
.tab-content::-webkit-scrollbar {
    display: none;
}

/* .tabLine .tab-nav, .tabLine>span {
    display: inline-block;
    border-bottom: 3px solid transparent;
    padding: 10px 0;
    margin-right: 20px;
} */
/* .tabLine .tab-nav.selected {
    border-bottom-color: rgb(var(--text-color));
} */
/* form.orderForm .tabLine .tab-nav label {
    min-width: unset;
    padding-right: 7px;
} */
/* .tabLine {
    border-bottom: 1px solid rgb(var(--text-color));
} */

/* Calculate price */

calculator-element{
    width:100%;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
calculator-element.right{
    justify-content: flex-end;
    text-align: right;
}
calculator-element .value{
    font-weight: 600;
}
calculator-element .value,calculator-element .unit {
    font-size: 1.5rem;
    border-color:transparent;
    text-align: right;
}
calculator-element.small .value,calculator-element.small .unit {
    font-size: 1rem;
}

/* Product detail */

.productDetail .price {
    font-size: 1.5rem;
    margin: 0;
}
.productDetail .original_price {
    color: grey;
    font-size: 75%;
    text-decoration-line: line-through;
    margin-right: 0.6em;
}

/* Order form */


form .formLine{
    display: flex; gap: 10px;
    margin: 10px 0;
    align-items: baseline;
    position: relative;
}
form .formLine-center .formLine{
    align-items: center;
}
form .formLine.hidden{
    display: none;
}
form.orderForm input[type=text],
form.orderForm input[type=email],
form.orderForm input[type=number],
form.orderForm select,
form.orderForm textarea,
form.orderForm input[type=submit] {
    color: rgb(var(--text-color));
    background: transparent;
    border: 1px solid rgb(var(--text-color),0.3);
    padding: 7px;
    position:relative;
    line-height: 1.5;
}
form.orderForm textarea{
    width: calc(100% - 14px);
}
form.orderForm input[type=submit] {
    background: rgb(var(--accent-color));
    color: rgb(var(--background-color));
}
form.orderForm input.large[type=submit] {
    font-size: 1.2em;
    margin: 10px 0
}
form.orderForm label {
    min-width: 150px;
    display: inline-block;
    cursor:pointer;
}
form.orderForm .formLine label::after {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: block;
}
form.orderForm input[type=radio]+label{
    margin-left: 10px;
}
form.orderForm label b {display:block;
    transition: 0.3s ease color;}
form.orderForm input[type=radio]:checked+label b{
    color: rgb(var(--accent-color))
}
@media(min-width: 1024px){
    .formColumns{
        display: flex;
        gap: 38px;
    }
    .formColumns>*{flex: 1;}
    .formColumns .formLine{margin: 0;padding:7px 0; }
    .formColumns .formLine label{white-space: normal;}
}

.productForm input{
    color: rgb(var(--text-color));
    background: transparent;
    border: 1px solid rgb(var(--text-color),0.3);
    padding: 4px;
    line-height: 1.5;
    box-sizing: border-box;
    text-align: center;
}

/* Cart icon */
.cart-icon{
border-bottom: 1px solid;
width: 100%;
text-align: center;
padding-bottom: 5px;
}
.cart-link {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    right: 20px;
    background-color: white;
    align-items: center;
    padding: 15px;
    gap: 10px;
    z-index: 1;
    }
  
  .cart-count {
    font-weight: bold;
    color: #222;
    margin-left: 5px;
  }
  
  .cart-count::before {
    content: "(";
  }
  
  .cart-count::after {
    content: ")";
  }
  .cart-button{
    padding: 10px 0 12px;
  }
  /* Cart page */
  .cart-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .cart-line {
    display: flex;
    gap: 2rem;
    margin: 20px 0;
    max-width: 600px;
}
.cart-line--image {
    width: 250px;
    flex-shrink: 0;
}
@media(max-width:480px){
    .cart-line--image {
        width: 100px;
    }
}
.cart-line--details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-line--description {
    display: flex;
    flex-direction: column;
}

.cart-line--price {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-line--remove {
    display: flex;
    align-items: center;
}
span.cart-line--price-per-piece{
    opacity: 0.5;
}
span.cart-line--price-total {
    font-size: 1.5em;
}

h3.cart-line--title {
    font-size: 1.5em;
}

.cart-summary {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}
.cart-summary-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


/* Checkout page */
.checkout-section form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

/* Information */
.checkout-message {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    right: 20px;
    background-color: white;
    align-items: flex-end;
    padding: 15px;
    gap: 10px;
    max-width: 250px;
}
.checkout-message p{
    margin:0;
}