@font-face {
    font-family: "Minecraftia";
    src: url(fonts/Minecraftia-Regular.ttf);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Minecraftia", monospace;
    background: linear-gradient(to bottom, #e4ebe5 0%, #FFB6C1 40%, #FFA8B5 70%, #FF9AAD 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.cloud {
    position: absolute;
    image-rendering: pixelated;
    opacity: 0.8;
}
.cloud1 {
    width: 150px;
    top: 10%;
    left: 10%;
    animation: float-cloud 40s linear infinite;
}
.cloud2 {
    width: 180px;
    top: 15%;
    right: 15%;
    animation: float-cloud 50s linear infinite reverse;
}
.cloud3 {
    width: 120px;
    top: 25%;
    left: 50%;
    animation: float-cloud 45s linear infinite;
}
.cloud4 {
    width: 140px;
    top: 35%;
    right: 30%;
    animation: float-cloud 55s linear infinite reverse;
}
.cloud5 {
    width: 160px;
    top: 5%;
    left: 70%;
    animation: float-cloud 48s linear infinite;
}
.cloud6 {
    width: 130px;
    top: 20%;
    left: 30%;
    animation: float-cloud 52s linear infinite reverse;
}
.cloud7 {
    width: 170px;
    top: 30%;
    right: 5%;
    animation: float-cloud 46s linear infinite;
}
@keyframes float-cloud {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(calc(100vw + 100px));
    }
}
.container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
}
header {
    text-align: center;
    margin-bottom: 40px;
}
.logo {
    width: 180px;
    margin: 0 auto 10px;
    animation: float 3s ease-in-out infinite;
}
.logo img {
    width: 100%;
    image-rendering: pixelated;
}
h1 {
    font-size: 1.8rem;
    color: white;
    text-shadow: 3px 3px 0 #AA0000;
    line-height: 1.2;
    white-space: nowrap;
}
.card-container {
    background: white;
    padding: 40px 60px;
    border: 4px solid #555;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
}
input, textarea {
    width: 100%;
    border: none;
    outline: none;
    font-family: "Minecraftia", monospace;
    line-height: 2;
    color: #333;
    font-size: 16px;
}
textarea {
    resize: none;
    overflow: hidden;
}
.letter-date {
    text-align: right;
    color: red;
    margin-bottom: 25px;
}
.letter-title {
    color: red;
    margin-bottom: 25px;
}
.letter-body {
    margin-bottom: 40px;
}
.letter-signature {
    text-align: right;
    color: red;
}
.decorative-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}
.decorative-hearts img {
    width: 48px;
    image-rendering: pixelated;
}
.actions {
    text-align: center;
    margin-top: 35px;
}
button {
    padding: 14px 20px;
    background: #FF6FAF;
    color: white;
    border: 4px solid #CC3A7A;
    cursor: pointer;
    font-family: "Minecraftia";
    font-size: 18px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}
button:hover {
    transform: translate(-2px, -2px);
}
.print-letter {
    position: fixed;
    top: -9999px;
    left: 0;
    width: 700px;
    font-family: "Minecraftia", monospace;
    font-size: 16px;
}

.print-letter div {
    white-space: pre-wrap;
}


@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}