﻿body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fff3ee;
    color: #5b3b32;
}

.page {
    max-width: 1100px;
    margin: auto;
    padding: 30px 70px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top, #fffaf6 0%, #fff2ed 45%, #fde8e4 100%);
    min-height: 100vh;
}

.flower {
    position: fixed;
    width: 360px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

.flower-right {
    right: -80px;
    top: -20px;
}

.flower-left {
    left: -160px;
    bottom: -80px;
    transform: rotate(180deg);
}

.header,
.inputArea,
.toolbar,
.fontCard,
.invitationPreview,
.footer,
.bottomText {
    position: relative;
    z-index: 2;
}

.header {
    text-align: center;
    padding-top: 10px;
}

.logo {
    width: 300px;
    height: 100px;
    object-fit: contain;
}

.header h1 {
    margin: 20px 0 0;
    font-size: 54px;
    color: #bd3f63;
    font-family: Georgia, serif;
    font-weight: normal;
}

.header h2 {
    margin: 0;
    font-size: 70px;
    color: #d14b73;
    font-family: 'BaslikFont', cursive;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 1;
}

.header p {
    font-size: 20px;
    line-height: 1.5;
    margin-top: 18px;
}

.line {
    color: #c68a2d;
    margin: 14px auto;
    font-size: 20px;
}

.inputArea {
    max-width: 820px;
    margin: 25px auto;
    background: rgba(255,255,255,0.82);
    border: 1px solid #e6a8b6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(160,80,100,0.12);
}

.inputIcon {
    font-size: 30px;
    padding: 0 22px;
    color: #c63d62;
}

#txtMetin {
    flex: 1;
    border: none;
    background: transparent;
    padding: 20px 15px;
    font-size: 30px;
    outline: none;
    color: #65433a;
    font-family: Georgia, serif;
    font-style: italic;
}

.toolbar {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.toolbar button,
.counter {
    border: 1px solid #e3a2af;
    border-radius: 9px;
    padding: 15px 22px;
    font-size: 16px;
    background: white;
    color: #c43e63;
    box-shadow: 0 5px 15px rgba(130,60,80,0.08);
}

.toolbar button {
    cursor: pointer;
}

.toolbar button:first-child {
    background: linear-gradient(135deg, #e85b82, #c93d65);
    color: white;
    border: none;
    font-weight: bold;
}

.toolbar button.light:hover {
    background: #fff4f6;
}

.counter {
    color: #5b3b32;
}

.fontCard {
    display: grid;
    grid-template-columns: 115px 1fr 170px;
    background: rgba(255,255,255,0.90);
    border: 1px solid #ead1c9;
    border-radius: 8px;
    margin-bottom: 14px;
    min-height: 125px;
    box-shadow: 0 6px 18px rgba(100,60,50,0.10);
    transition: 0.2s;
}

.fontCard.selected {
    border: 2px solid #d64a72;
    background: #fff8fa;
}

.siraAlan {
    border-right: 1px solid #f0d8d2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.siraNo {
    font-family: Georgia, serif;
    font-size: 42px;
    color: #bd3f63;
}

.sus {
    color: #c68a2d;
    font-size: 22px;
}

.fontContent {
    padding: 18px 28px;
}

.fontAdi {
    color: #d24668;
    font-size: 16px;
    margin-bottom: 8px;
}

.onizleme {
    font-size: 48px;
    color: #222;
    line-height: 1.2;
    word-break: break-word;
}

.secimAlan {
    border-left: 1px dashed #e5b7a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secimLabel {
    text-align: center;
    color: #c43e63;
    cursor: pointer;
    font-size: 16px;
}

.secimLabel .heart {
    display: block;
    font-size: 34px;
    margin-bottom: 5px;
}

.secimLabel input {
    width: 22px;
    height: 22px;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* DAVETİYE KARTI */

.invitationPreview {
    margin-top: 50px;
    text-align: center;
}

.invitationPreview h3 {
    color: #bd3f63;
    font-size: 36px;
    font-family: Georgia, serif;
    font-weight: normal;
    margin-bottom: 5px;
}

.previewInfo {
    color: #7b5a50;
    font-size: 16px;
    margin-bottom: 25px;
}

.invitationCard {
    width: 390px;
    min-height: 570px;
    margin: 20px auto 40px;
    background: rgba(255,255,255,0.95);
    border: 4px double #c68a2d;
    padding: 38px 28px;
    box-shadow: 0 14px 34px rgba(120,70,50,0.20);
    position: relative;
    color: #222;
    box-sizing: border-box;
    overflow: hidden;
}

.invitationCard::before {
    content: "";
    position: absolute;
    top: -35px;
    left: -35px;
    width: 210px;
    height: 210px;
    background: url('images/KirazCicegi.png') no-repeat center;
    background-size: contain;
    opacity: 0.48;
    transform: rotate(220deg);
}

.invitationCard::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 190px;
    height: 190px;
    background: url('images/KirazCicegi.png') no-repeat center;
    background-size: contain;
    opacity: 0.35;
}

.cardTopFlower {
    height: 70px;
}

.dateBox {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 25px;
    line-height: 1;
    margin-bottom: 28px;
    color: #111;
}

.cardNames {
    position: relative;
    z-index: 2;
    font-family: 'BaslikFont', cursive;
    font-size: 48px;
    color: #111;
    margin: 18px 0;
    line-height: 1.1;
}

.cardText {
    position: relative;
    z-index: 2;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.5;
    margin: 24px 0 45px;
}

.familyRow {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    margin-bottom: 30px;
}

.cardHeart {
    position: relative;
    z-index: 2;
    font-size: 30px;
    color: #111;
    margin-bottom: 8px;
}

.cardBottom {
    position: relative;
    z-index: 2;
    font-size: 12px;
    line-height: 1.5;
    font-weight: bold;
}

.footer {
    margin-top: 35px;
    background: rgba(255,255,255,0.82);
    border: 1px solid #d6a048;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 20px;
    padding: 22px;
    box-shadow: 0 6px 16px rgba(100,60,50,0.08);
}

.footer > div {
    display: flex;
    gap: 18px;
    align-items: center;
    border-right: 1px solid #d6a048;
    padding-right: 20px;
}

.footer > div:last-child {
    border-right: none;
}

.footerIcon {
    border: 1px solid #d6a048;
    color: #c68a2d;
    border-radius: 50%;
    min-width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.footer p {
    margin: 0;
    line-height: 1.45;
}

.webLink {
    color: #c43e63;
    text-decoration: none;
    font-weight: bold;
}

.webLink:hover {
    color: #a52d4e;
    text-decoration: underline;
}

.bottomText {
    text-align: center;
    margin: 18px 0;
    color: #d14b73;
    font-size: 28px;
    font-family: Georgia, serif;
    font-style: italic;
}

@media screen and (max-width: 768px) {

    .page {
        padding: 20px 14px;
    }

    .flower {
        width: 230px;
        opacity: 0.45;
    }

    .flower-right {
        right: -90px;
        top: -30px;
    }

    .flower-left {
        left: -120px;
        bottom: -50px;
    }

    .logo {
        width: 240px;
        height: auto;
    }

    .header h1 {
        font-size: 34px;
    }

    .header h2 {
        font-size: 46px;
    }

    .header p {
        font-size: 16px;
    }

    #txtMetin {
        font-size: 23px;
        padding: 16px 10px;
    }

    .inputIcon {
        font-size: 24px;
        padding: 0 14px;
    }

    .toolbar {
        display: block;
    }

    .toolbar button,
    .counter {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
        text-align: center;
    }

    .fontCard {
        grid-template-columns: 1fr;
    }

    .siraAlan {
        border-right: none;
        border-bottom: 1px solid #f0d8d2;
        padding: 10px;
    }

    .siraNo {
        font-size: 34px;
    }

    .fontContent {
        padding: 16px;
        text-align: center;
    }

    .onizleme {
        font-size: 36px;
    }

    .secimAlan {
        border-left: none;
        border-top: 1px dashed #e5b7a0;
        padding: 14px;
    }

    .invitationPreview h3 {
        font-size: 28px;
    }

    .invitationCard {
        width: 100%;
        max-width: 390px;
        min-height: 520px;
        padding: 32px 18px;
    }

    .cardNames {
        font-size: 42px;
    }

    .familyRow {
        font-size: 11px;
        gap: 10px;
    }

    .footer {
        grid-template-columns: 1fr;
    }

    .footer > div {
        border-right: none;
        border-bottom: 1px solid #e7c27d;
        padding-bottom: 14px;
    }

    .footer > div:last-child {
        border-bottom: none;
    }

    .bottomText {
        font-size: 22px;
    }
}