body {
    background-color: #FEEE59;
    font-family: 'FuturaFuturisC';
    margin: 0;
}
* {
    box-sizing: border-box;
}
button, input, a, textarea {
    font-family: 'Open Sans'!important;
}


.content__editor {
    padding-left: 120px;
    position: relative;
}

.content__editor:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 56px;
    background: url(/images/q.svg) no-repeat center;
    background-size: contain;
    transform: translate(90%, -195%);
}


@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.first-block__dekor img {
    animation: heartbeat 2s infinite ease-in-out;
}


.content {
    margin: 100px 0 0 0;
}

.form-container {
    display: none;
} 

.form-container.form-open {
    display: block;
}

div#successMessage {
    font-weight: 700;
    text-align: center;
    font-size: 36px;
    margin-top: 36px;
    color: red !important;
}

.hint{
    text-align: left;
    margin-top: 15px;
    font-size: 18px;  
    color: grey;
}

.success {
   
    animation: opacity 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes opacity {
  25% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 2;
  }
}

span.lavanderia {
    font-family: "LavanderiaC";
}
span.great {
    font-family: 'Great Vibes';
}
span.caveat {
    font-family: 'Caveat';
}
span.baystar {
    font-family: 'Baystar';
}
span.antonella {
    font-family: 'Antonella script';
}

.content .container {
    max-width: 1920px;
    padding: 0 120px;
    display: flex;
}

.content-box {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    padding-left: 120px;
}

.content__inner {
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.content__inner a {
    margin-top: auto;
    margin-bottom: 40px;
}

.content__img {
    transform: translate(0px, 0px);
}

.content__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(6%, 0px);
}

.form-wrap {
    padding: 64px;
    border: 1px solid #6e645b;
    max-width: 768px;
    margin: 0 auto;
}

input, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.content__img {
    max-width: 800px;
}
.content {
    overflow: hidden;
}
.content__editor {
    color: #6E645B;
    text-align: left;
    font-size: 20px;
    max-width: 880px;
}
.form-block__meta h2 {
    font-size: 96px;
    line-height: 1;
    margin: 0;
    padding: 0;
}
.form-block__editor p:last-child {
    margin: 0 0 32px;
}
.form-block__editor p:first-child {
    margin: 0 0 32px;
}
.form-block__meta p {
    font-size: 38px;
    margin: 40px 0 0 0;
}

.form-block__meta {
    text-align: center;
    margin: 0 0 56px;
}

.form-block__editor {
    text-align: center;
    max-width: 899px;
    margin: 0 auto;
    font-size: 32px;
}

.form-block__editor p:nth-child(2) {
    max-width: 620px;
    margin: 0 auto 32px;
}

.field label {
    display: none;
}

.field input {
    height: 70px;
    border-radius: 96px;
    font-size: 24px;
    padding: 0 32px;
    border: 2px solid #6e645b;
    margin: 0;
    color: #000;
    box-sizing: border-box;
}

.field {
    margin: 0 0 16px;
}

.field-agree label a, .field-agree label {
    font-weight: 400;
    font-size: 16px;
    color: #000;
    font-family: "Open Sans";
}

.field-agree label {
    position: relative;
    padding-left: 34px;
    display: block;
}

.field-agree label:before, .field-agree label:after {
    content: '';
    display: block;
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translate(0px, -50%);
}

.field-agree label:before {
    width: 24px;
    height: 24px;
    border: 1px solid #6e645b;
}

.field-agree label:after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: url(/images/check.svg) no-repeat center;
    opacity: 0;
}

.field-agree input:checked ~ label:after {
    opacity: 1;
}

.field-agree input {
    display: none;
}

.field-agree {
    margin: 0 0 32px;
}

form > button {
    font-weight: 700;
    font-size: 32px;
    color: #fff;
    height: 70px;
    background: #f3141e;
    border: 0;
    border-radius: 100px;
}

#textInput {
    border-radius: 22px;
    background: #fff;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
}

#textInput textarea {
    width: 100%;
    background: #EDEDED;
    border: 0;
    padding: 24px 24px 56px;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 24px;
    font-weight: 400;
    color: #000;
    font-family: 'FuturaFuturisC';
    border-radius: 18px;
    min-height: 318px;
}

.hidden {
    display: none;
}
.font-selection {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 16px;
    column-gap: 24px;
}

.font-selection input {
    display: none;
}

.font-selection span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    height: 56px;
    border-radius: 60px;
    background: #fff;
    cursor: pointer;
    border: 2px solid #fff;
}

.font-selection input:checked ~ span {
    border: 2px solid #6E645B;
}

.font-selection {
    margin-top: 56px;
}

div#charCount {
    position: absolute;
    bottom: 42px;
    right: 42px;
    font-size: 24px;
    color: #000;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.firs-block {
    padding-top: 200px;
}
.firs-block h1 {
    text-align: center;
    font-size: 80px;
    margin: 0 auto;
    line-height: 1.1;
}

.block-title span:last-child {
    background: url(/images/heart.svg) no-repeat right #FEEE59;
    background-size: 49px;
    right: 0;
}
.block-title span:first-child {
    background: url(/images/heart.svg) no-repeat left #FEEE59;
    background-size: 49px;
    left: 0;
}
.block-title span {
    position: absolute;
    top: 50%;
    transform: translate(0px, -50%);
    width: 67px;
    height: 40px;
}

.scroll {
    text-align: center;
    margin: 75px 0 200px;
}

.templates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    
}

.block {
    margin: 0 0 100px;
}

.firs-block p span {
    font-weight: 700;
}
.firs-block p {
    max-width: 1135px;
    text-align: center;
    font-size: 38px;
}
.generate {
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    background: #fc1419;
    height: 80px;
    border-radius: 50px;
    border: 0;
    margin: 64px auto 0;
    max-width: 680px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.edit {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
.edit a {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #6e645b;
    border-radius: 56px;
    padding: 10px 32px;
    background: #fff;
    gap: 8px;
    max-width: 230px;
    width: 100%;
    margin: 0;
}
button {
    cursor: pointer;
}

.block-title:before, .block-title:after {
    content: '';
    display: block;
    height: 1px;
    background: #6E645B;
    flex: 1;
}
.block-title {
    display: flex;
    align-items: center;
    font-size: 38px;
    font-weight: 400;
    justify-content: center;
    margin: 0 0 100px;
    gap: 60px;
    position: relative;
}

.first-block__dekor {
    text-align: center;
    margin: 72px 0;
}

.templates img {
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
    max-width: 100%;
}
textarea, input, textarea:focus, input:focus {
    outline: none;
    box-shadow: none;
}
.templates img.selected {
    border: 1px solid #6E645B;
}


canvas {
    border: 1px solid #000;
    margin-top: 10px;
    width: 100%;
}

.category-buttons.block-open button.open {
    display: flex;
}
.category-buttons.block-open button {
    display: none;
}

.category-buttons button {
    display: flex;
    align-items: center;
    height: 64px;
    background: #fff;
    border: 1px solid #6E645B;
    border-radius: 64px;
    padding: 0 60px 0 16px;
    font-size: 16px;
    position: relative;
    margin: 0 0 16px;
}


.message-categories > button img {
    max-width: 28px;
}


.category-buttons button:before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    transform: translate(0px, -50%) rotate(0deg);
    transition: .15s;
    background: url(/images/up.svg) no-repeat center;
    right: 20px;
}

.category-buttons button.open:before {
    background: url(/images/down.svg) no-repeat center;
    transform: translate(0px, -50%) rotate(0deg);
}

.category-buttons button.open {
    color: #fff;
    background: #F4151E;
}

.share-buttons {
    margin-top: 10px;
}
.share-buttons a {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    background: #0073ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.hidden {
    display: none;
}

.category-buttons button {
    cursor: pointer;
}

#templatesContainer {
    padding: 16px;
    background: #fff;
    border: 1px solid #6e645b;
    border-radius: 24px;
}

#templatesList {
    
    
    overflow-y: scroll;
    padding-right: 22px;
    max-height: 420px;
}

#templatesList::-webkit-scrollbar {
    width: 12px;               
}
  
#templatesList::-webkit-scrollbar-track {
    background: #EDEDED;     
    border-radius: 10px;
}
#templatesList::-webkit-scrollbar-thumb {
    background-color: #F4151E;   
    border-radius: 20px;      
    border: 0px solid #F4151E;  
}
.message-categories > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: #f4151e;
    cursor: pointer;
}
.message-categories {
    padding-left: 124px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#templatesContainer {
    flex: 1;
}
.message-categories > button {
    margin: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0px, -50%);
}
.block__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}
.template-option {
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
}

.template-option:after {
    content: '';
    display: block;
    position: absolute;
    bottom: -16px;
    left: 40px;
    right: 40px;
    height: 1px;
    border-bottom: 1px dashed #6e645b;
}
.template-option:last-child {
    margin: 0;
}
.template-option {
    position: relative;
    margin: 0 0 32px;
}

.template-option:hover {
    background: #ededed;
}

.template-option.selected {
    background: #ededed;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.share-buttons button {
    border: 1px solid #6e645b;
    border-radius: 80px;
    width: 268px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    background: #fff;
    margin: 0;
}

.share-buttons button.selected {
    border: 1px solid #f3141e;
}

.sendButton.hidden {
    display: none;
}

.sendButton {
    padding: 0;
    height: 88px;
    border-radius: 88px;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    background: #f3141e;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 450px;
    margin: 64px auto 0;
}

.output.block {
    max-width: 768px;
    margin: 0 auto 100px;
}


@media only screen and (max-width: 1600px) {
    .content__img {
        max-width: 600px;
    }
    .content__editor {
        font-size: 16px;
    }

    .content-box {
        gap: 60px;
        padding-left: 60px;
    }

    .content__inner {
        padding-top: 60px;
    }

    .content__editor:before {
        transform: translate(90%, -110%);
    }
}

.block-title br,
.font-block h2 {
    display: none;
}

a, a:hover {
    text-decoration: none;
}
.category-buttons button, .share-buttons button {
    color: #000;
}
.category-buttons button:hover:before {
    background: url(/images/red.svg) no-repeat center;
}
@media only screen and (max-width: 1199px) {
    div#successMessage {
        font-size: 35px;
        margin-top: 35px;
        color: red !important;
    }
    .scroll img {
        max-width: 80px;
    }

    .form-block__meta h2 {
        font-size: 28px;
    }

    .form-block__meta p {
        font-size: 16px;
        margin: 0;
        margin-top: 16px;
    }
    .sendButton {
        height: 48px;
        font-size: 16px;
        margin-top: 32px;
    }

    .form-block__meta {
        text-align: center;
        margin: 0 0 24px;
    }

    .form-wrap {
        padding: 16px;
    }

    .form-block__editor p:first-child {
        margin: 0 0 16px;
    }
    .form-block__editor {
        font-size: 16px;
    }
    .form-block__editor img {
        max-width: 120px;
        margin: 0 0 0px;
    }
    .form-block__editor p:nth-child(2), .form-block__editor p:last-child {
       
        margin: 0 auto 24px;
    }
    .field input {
        height: 48px;
        font-size: 16px;
        padding: 0 16px;
    }
    #textInput {
        border-radius: 22px;
        padding: 16px;
    }

    form > button {
        font-weight: 700;
        font-size: 16px;
        color: #fff;
        height: 48px;
        background: #f3141e;
        border: 0;
        border-radius: 100px;
    }

    .field-agree label, .field-agree label a {
        font-size: 12px;
    }

    .field-agree {
        margin: 0 0 16px;
    }
    div#charCount {
        position: absolute;
        bottom: 32px;
        right: 32px;
        font-size: 14px;
        color: #000;
    }

    #textInput textarea {
        font-size: 16px;
        padding: 16px 16px 40px;
        max-height: 216px;
        min-height: 216px;
    }

    #charCount {
        position: absolute;
        bottom: 32px;
        right: 32px;
        font-size: 14px;
        color: #000;
    }

    .category-buttons button {
        height: 56px;

    }

    .firs-block {
        padding-top: 144px;
    }

    .block-title br {
        display: block;
    }

    .content-box {
        flex-direction: column;
        gap: 40px;
        align-items: flex-end;
        padding: 0;
    }

    .block-title {
       
        text-align: center;
    }

    .content__inner {
        padding: 0 16px;
    }

    .content__editor {
        font-size: 16px;
        max-width: 100%;
        padding-left: 0;
    }
    .content__inner {
        display: block;
    }
    .content__editor:before {
        position: relative;
        transform: translate(0px, 0px);
        width: 40px;
        height: 32px;
        margin: 0 0 32px;
    }
    .content__img {
        max-width: 340px;
    }

    .content__img {
        transform: translate(0px, 20px);
    }

    .content-box:before {
        content: '';
        display: none;
        position: absolute;
        bottom: 16px;
        left: 16px;
        width: 135px;
        height: 16px;
        background: url(/images/logo.svg) center no-repeat;
        background-size: contain;
    }
    .content-box a.hidden img {
        max-width: 135px;
    }
    .content-box a.hidden {
        display: inline-block;
        position: absolute;
        bottom: 16px;
        left: 16px;
        width: 135px;
    }
    .content-box {
        position: relative;
    }
    .content__inner img {
        display: none;
    }

    .firs-block h1 {
        font-size: 28px;
    }
    .firs-block p {
        max-width: 343px;
        text-align: center;
        font-size: 18px;
        margin: 0 auto;
    }
    .scroll {
        text-align: center;
        margin: 75px 0 100px;
    }
    .block-title {
        font-size: 18px;
        gap: 16px;
    }

    .block-title span:first-child,
    .block-title span:last-child {
        background-size: 28px;
    }

    .block-title span {
        width: 36px;
    }

    .block-title {
        margin: 0 0 60px;
    }
}

@media only screen and (max-width: 1024px) {

    .content__img img {

        transform: translate(26%, 0px);
    }

    .block__left {
        display: contents;
    }
    
    div#textInput {
        order: 1;
    }
    
    .font-block {
        order: 3;
    }
    
    .block__right {
        order: 2;
    }

    .templates {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .block__inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .font-block h2 {
        display: flex;
        margin-top: 64px;
    }

    .font-selection span {
        height: 48px;
        font-size: 16px;
    }

    .font-selection {
        grid-template-columns: 1fr 1fr;
    }

    .message-categories {
        padding: 0;
    }

    .message-categories > button {
        top: 0;
        transform: translate(0px, 0px) rotate(90deg);
        position: relative;
        order: 1;
    }

    .category-buttons {
        order: 2;
    }

    .message-categories {
        padding: 0;
        justify-content: center;
        align-items: center;
        gap: 0px;
    }

    .category-buttons {
        order: 2;
        width: 100%;
    }

    .generate {
        height: 48px;
        font-size: 16px;
        max-width: 330px;
        margin: 45px auto;
    }

    div#templatesContainer {
        order: 3;
        width: 100%;
        box-sizing: border-box;
    }

    .message-categories > button img {
        max-width: 20px;
    }
    .message-categories > button {
        width: 48px;
        height: 48px;
        margin: 0 0 45px;
    }

    .template-option:after {
        left: 0px;
        right: 0px;
    }

    .share-buttons {
        gap: 16px;
    }

    

    .share-buttons button img {
        max-width: 24px;
    }
    .share-buttons button {
        height: 48px;
        font-size: 16px;
        padding: 0 24px;
        max-width: 190px;
        width: 100%;
    }
}

@media only screen and (max-width: 425px) {

    .templates {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }



}