/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

*,
::after,
::before {
    -webkit-box-sizing: border-box;
            box-sizing: border-box
}

@font-face {
    font-family: 'Forum';
    src: url('./fonts/forum-v18-latin-ext-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 50px auto 0 auto;
    font-family: 'Forum', 'Georgia', serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.65;
    color: #fff;
    background-color: #7E1C11;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent; 
    position: relative;   
}

a {
    color: inherit;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: var(--color-primary-hover);
    text-decoration: none;
}

b,
strong {
    font-weight: bold;
    font-weight: var(--bold);
}

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

img,
svg {
    vertical-align: middle;
}

h1 {
    text-align: center;
}

.text-center {
    text-align: center;
}
footer a.btn {
    display: inline-block;
    background-color: #000;   /* black background */
    color: #fff;              /* white text */
    padding: 0.6em 1.2em;     /* comfortable clickable area */
    text-decoration: none;    /* remove underline */
    font-weight: 500;         /* medium text weight */
    font-size: 1rem;          /* standard readable size */
    border: none;             /* no border */
    border-radius: 0;         /* sharp corners */
    cursor: pointer;          /* pointer on hover */
    transition: background-color 0.2s ease; /* smooth hover */
}

footer a.btn:hover {
    background-color: #333;   /* slightly lighter on hover */
}
#form .ec-v-form-submit button {
    padding: 20px 16px;
}

/* --- VISUALS --- */
.hero-butterflies {
    position: absolute;
    z-index: 60;        
    display: -webkit-box;        
    display: -ms-flexbox;        
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    top: -10px;
    left: 20px;    
}
@media (min-width: 768px) {
    .hero-butterflies {
        top: -10px;
        left: 20px;    
    }
}
img.butterfly-smaller {
    width: 100px;
    -webkit-transform: rotate(-30deg);
        -ms-transform: rotate(-30deg);
            transform: rotate(-30deg);
    -ms-flex-negative: 0;
        flex-shrink: 0;
}
img.butterfly-bigger {
    -webkit-transform: rotate(35deg);
        -ms-transform: rotate(35deg);
            transform: rotate(35deg);
    left: -40px;
    position: relative;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}
@media (max-width: 650px) {
    img.butterfly-bigger {
        display: none;
    }
}
div.hero-flower {
    position: absolute;
    right: -70px;
    bottom: -50px;
}
@media (min-width: 768px) {
    div.hero-flower {
        position: absolute;
        right: calc(50% - 150px);
        bottom: -60px;
    }
}
div.hero-flower .animated-flower {
    width: 300px;
    height: 300px;
}

img.visual-jupiter {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: -1;
}
img.visual-butterfly {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: -1;
}
img.visual-stars-left {
    display: none;
}

img.visual-paper-footer {
    position: relative;
    left: -50px;
    bottom: -1px;
    width: 270px;
    height: 225px;
}
@media (min-width: 768px) {
    img.visual-paper-footer {
        position: relative;
        left: -1px;
        bottom: -1px;
        width: 330px;
        height: 276px;
    }
}
@media (min-width: 768px) {
img.visual-padlock {
    display: block;
    position: absolute;
    top: 60px;
    right: 40px;
}
}
@media (min-width: 1200px) {
    img.visual-stars-left {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
    }
}
/* Mobil */
.visuals-footer {
    display: -ms-grid;
    display: grid;
    max-width: 1900px;
    margin: 0 auto;
    padding-top: 10px;

    -ms-grid-columns: 1fr 10px 1fr;

    grid-template-columns: 1fr 1fr; /* 2 sloupce */
    -ms-grid-rows: auto 10px auto;
        grid-template-areas:
        "cell2 cell2" /* logo celá šířka 2 sloupce */
        "cell1 cell3"; /* 2 buňky */
    gap: 10px;
    justify-items: center;
}

/* Přiřazení buněk */
.visuals-footer-cell-1 { -ms-grid-row: 3; -ms-grid-column: 1; grid-area: cell1; }
.visuals-footer-cell-2 { -ms-grid-row: 1; -ms-grid-column: 1; -ms-grid-column-span: 3; grid-area: cell2; }
.visuals-footer-cell-3 { -ms-grid-row: 3; -ms-grid-column: 3; grid-area: cell3; }

/* Desktop ≥ 650px */
@media (min-width: 650px) {
    .visuals-footer {
        -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr; /* 3 sloupce */
            grid-template-areas: "cell1 cell2 cell3"; /* všechny vedle sebe */
    }
    .visuals-footer-cell-1 {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }
    .visuals-footer-cell-2 {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
        -ms-grid-column-span: 1;
    }
    .visuals-footer-cell-3 {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }
}

.visuals-footer-cell-3 {
    position: relative;
    width: 100%;
    height: 100%;
}
img.visual-hearts {
    position: absolute;
    top: 0;
    left: auto;
    right: 20px;
    z-index: 2;
}
@media (min-width: 768px) {
    img.visual-hearts {
        left: 0;
        right: auto;
    }
}
/* --- CORE ELEMENTS --- */
img.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 140px;
    height: auto;
}
@media (min-width: 768px) {
    img.logo {
        width: 155px;
        height: 77px;
    }
}

div#form .ec-v-form-holder {
    background-color: transparent!important;
}

#form {
    position: relative;
    overflow: hidden;
    padding-top: 10px;
}


.embeded-form {
    position: relative;
    z-index: 20;
}

/* Container (optional, but recommended) */
.two-col {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;    
    max-width: 1900px;
    margin: 0 auto;
  }

  .diary {
    position: relative;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .diary {
        position: relative;
        width: 80%;
        margin: 0 auto;
    }
 }

 @media (min-width: 1120px) and (max-width: 1399.98px) {
    .form-wrapper {
        justify-self: flex-start;
        padding: 60px 0;
        width: 100%;
    }
    div#form .ec-v-form-holder {
        width: 100% !important;
    }
 }
 @media (min-width: 1120px) {
    .hero-butterflies {
        top: 0;
        right: 0;
        left: auto;
    }
    .two-col {
        -ms-grid-columns: 1fr 30px 1fr;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
      }

      .diary-inner {
        text-align: center;
    }
      .diary {
        position: relative;
        width: 100%;
        height: 100%;
    }
    .diary img.daillas-diary {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        right: 0;
        -o-object-fit: cover;
           object-fit: cover;
        -o-object-position: right;
           object-position: right;
    }
    #form {        
        padding-top: 40px;
    }
    .form-wrapper {
        justify-self: flex-start;
        padding: 60px 0;
    }
}
@media (min-width: 1900px) {
    .diary-inner {
        text-align: end;
    }
    .form-wrapper {        
        padding: 20px 0;
    }
    .diary img.daillas-diary {
        height: unset;
        width: unset;
        position: relative;
        top: unset;
        right: unset;
        -o-object-fit: unset;
           object-fit: unset;
        -o-object-position: unset;
           object-position: unset;
    }
}
.text-content {
    font-size: 1.1rem;
    width: 800px;
    max-width: 92%;
    margin: 0 auto;
    padding: 3rem 0;
}

/* FOOTER */
footer {
    font-family: 'Arial';
    color: #EFD3D3;
    font-family: 'Arial';
    font-size: .75rem;    
    position: relative; 
    overflow: hidden;   
}
footer a {
    text-decoration: underline;
}
footer a:hover, footer a:focus, footer a:active, footer a:visited {
    text-decoration: none;
    background: transparent;
}