/*!
Theme Name: instruct
Description: Theme for instruct website
Version: 1.0.0
*/
* {
    background-color: attr(data-bg type(<color>));
    color: attr(data-colour type(<color>));
}
html {
  scroll-behavior: smooth;
}
footer{  
    a {
        color: black;
    }
}
header{
    min-height: 350px;
}
section,
header,
footer {
    padding:5rem;
}
hr {
    height:3px;
    border:none;
    border-radius: 50px;
    background-color: attr(data-colour type(<color>), currentColor);
}
a {
    text-decoration: none;
    cursor: pointer;
}
h2 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0.3px;
    /* display: flex;
    align-items: center;
    gap: 1rem; */
}
h2 svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0; /* Prevents the SVG from shrinking if space is tight */
    fill: currentColor;
}
.descriptions {
    display: flex;
    flex-direction: row;
}
.form-selector-btn {
    background-color: #EFEFEF;
    color: black;
    font:inherit;
    padding: 0.75em;
    border: none;
    
    &.active{
        background-color: #FDF1C8;
    }
}
form {
    display: flex;
    flex-direction: column;
    label {
        display: inline-block;
        padding: 0.5em;
        width: 250px;
        text-align: left;
    }
}
.columns {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    &.reverse {
        flex-direction: row-reverse;
    }
    &.space-between{
        justify-content: space-between;
    }
    & > .self-start {
        margin-right: auto;
    }
    & > .self-center {
        margin-inline: auto;
    }
    & > .self-end {
        margin-left: auto;
    }
    
}
.rows {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    &.reverse {
        flex-direction: column-reverse;
    };
    & > .self-start {
        align-self: flex-start;
    }
    & > .self-center {
        align-self: center;
    }
    & > .self-end {
        align-self: flex-end;
    }
}
.text {
    max-width: 40em;
    /* width: 100%; */
    min-width: 20em;
    justify-content: space-evenly;    
}
.columns,
.rows {
    &.wrap-reverse {
        flex-wrap: wrap-reverse;
    }
    &.no-wrap {
        flex-wrap: nowrap;
    }
    &.gap-xsmall{
        gap: 0.5em;
    }
    &.gap-small{
        gap: 1em;
    }
    &.gap-medium{
        gap: 2em;
    }
    &.gap-large{
        gap: 5em;
    }
    &.gap-xlarge{
        gap:8em;
    }
    & > .grow {
        flex-grow: 1;
    }
    & > .shrink {
        flex-shrink: 1;
    }
    & > .basis-auto {
        flex-basis: auto;
    }
    & > .basis-50 {
        flex-basis: 50%;
    }
    & > .basis-30 {
        flex-basis: 30%;
    }
    
    & > .self-cross-center{
        align-self: center;
    }
    & > .self-cross-start{
        align-self: flex-start;
    }
    & > .self-cross-end{
        align-self: flex-end;
    }
    
}
ul.gap-large li:not(:last-child) {
    margin-bottom: 2em;
}
ul.no-marker {
    list-style-type: none;
    padding-left: 0;
}

li:not(:last-child) {
    margin-bottom: 1em;
}

.pill {
    border-radius: 9999px;
}
.button {
    border:none;
    padding:1.5em;
    padding-inline:1.5em;
    width: fit-content;
    max-height: 5em;


}
.center {
    &.rows,
    &.grid{
        align-items: center;
    }
    
    &.columns {
        justify-content: center;
    }

}
.cross-center {
    &.columns {
        align-items: center;
    }
    &.rows {
        justify-content: center;
    }
    &.grid {
        justify-items: center;
    }
}
.content {
    margin-block: 1.75rem;
}
.spacer {
    flex-shrink: 0;
    flex-grow: 1;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}

img {
    /* height:fit-content; */
    /* width: fit-content; */
    &.adapt {
        min-height:350px ;
        max-height: 650px;
        width: auto;
        object-fit: contain;
    }
}

.grid,
.grid-auto {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 1), minmax(0, 1fr));
    
    & > .self-cross-start {
        justify-self: start;
    }
    & > .self-cross-center {
        justify-self: center;
    }
    & > .self-cross-end {
        justify-self: end;
    }
    & > .self-start {
        align-self: start;
    }
    & > .self-center {
        align-self: center;
    }
    & > .self-end {
        align-self: end;
    }
}
/* .grid-auto {
    display:grid;
    grid-template-columns: auto 1fr;
} */
#eshop img {
    max-height: 500px;
}

.margin-0 {
    margin: 0;
}
.text-wrap {
    white-space: normal;
}

/* Basic styles for the new newsletter modal - you can integrate these into your main CSS */
    #newsletter-modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 100001; /* Sit on top, higher than other modals if any */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgba(0,0,0,0.6); /* Black w/ more opacity */
        /* display: flex; Use flexbox for centering */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
    }
    #newsletter-modal.visible{
        display: flex;
    }

    #newsletter-modal .instruct-modal-content {
        background-color: #ffffff; /* White background */
        padding: 30px; /* Increased padding */
        border: 1px solid #888;
        width: 90%; /* Responsive width */
        max-width: 500px; /* Max width for larger screens */
        position: relative;
        border-radius: 8px;
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.3), 0 12px 40px 0 rgba(0,0,0,0.25); /* Stronger shadow */
        box-sizing: border-box; /* Include padding in width */
    }

    /* Adjustments for smaller screens */
    @media (max-width: 600px) {
        #newsletter-modal .instruct-modal-content {
            width: 95%;
            padding: 20px;
        }
    }

    /* Ensure close button is visible and styled */
    .newsletter-close-button {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        position: absolute; /* Position relative to modal content */
        top: 10px;
        right: 15px;
    }
    .newsletter-close-button:hover,
    .newsletter-close-button:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    /* Existing instruct-form-row styles for modal content */
    #newsletter-modal .instruct-form-row {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        align-items: center;
    }
    #newsletter-modal .instruct-form-row label {
        flex: 0 0 120px; /* Adjusted label width for modal */
        margin-right: 15px;
        /* text-align: right; */
        font-weight: bold;
    }
    #newsletter-modal .instruct-form-row input[type="text"],
    #newsletter-modal .instruct-form-row input[type="email"] {
        flex: 1;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        max-width: calc(100% - 135px); /* Adjusted max-width */
    }
    #newsletter-modal .instruct-modal-buttons {
        text-align: right;
        padding-top: 20px;
        border-top: 1px solid #eee;
        margin-top: 20px;
    }
    #newsletter-modal .instruct-modal-buttons button {
        margin-left: 10px;
    }
    #newsletter-modal .spinner {
        visibility: hidden;
        float: none; /* Changed from float: left */
        margin: 0 5px; /* Centered margin */
        vertical-align: middle;
        display: inline-block; /* Ensure it respects vertical-align */
    }
    #newsletter-modal .spinner.is-active {
        visibility: visible;
    }

#formular .content {

    display:flex;
    gap:20px;
    .form-container{
        flex-grow: 2;
        form{
            display: flex;
            flex-direction: column;
            gap:12px;

            div:not(#card-element) {
                display:flex;
                justify-content: flex-start;
                gap:12px;
                input, textarea{
                    flex-grow: 1;
                }
            }
            label, 
            input, 
            textarea,
            select {
                padding: 8px;
                background-color: white;
                color: black;
            }
            input[type='checkbox']{
                flex-grow: 0;
                padding:12px;
                /* width:100%; */
                /* aspect-ratio: 1; */

            }
        }
    }
    .forms-right {
        display:flex;
        min-width: 250px;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap:24px;
        img {
            max-height: 350px;
        };
        
    }
}
button:disabled{
    background-color: lightgray;
    color: darkgray;
}

#formular a {
    text-decoration: underline;
}

@media only screen and (max-width: 1024px) {
    .grid,
    .grid-auto{
        grid-template-columns: minmax(0, 1fr);
    }
    #kniha .columns {
        justify-content: center;
    }

}

footer .content {
    background-image: url("assets/images/shoulderFragment.png");
    background-position: 75% 0%;
    background-size:contain;
    background-repeat: no-repeat;
}

.address::before{
    content: url("assets/images/location-marker.svg");
    position: relative;
    top: 50px;
    left: -40px;
}
.email::before{
    content: url("assets/images/mail-icon.svg");
    position: relative;
    top: 50px;
    left: -45px;
}
.phone::before{
    content: url("assets/images/phone-icon.svg");
    position: relative;
    top: 50px;
    left: -40px;
}

.site-header{
    background-image: url("assets/images/shoulderFragment.png");
    background-size: contain;
    background-position-x: 50%;
    background-repeat: no-repeat;
}

.single-post{
    font-family: nunito, sans-serif;
    font-style: normal;
    padding: 2rem;
}