/* Background */
body {
    min-height: 100vh;
    margin: 0;
    padding: 3% 0;
    background-color: #0f0700 !important;
    background-image: url("/static/images/black-paper.png");
    font-family: 'Poppins', sans-serif;
}

/* Main container */
.page-container {
    max-width: 700px;
    margin: auto;
}

/* Card transparency */
.transparent-card {
    background-color: rgba(20, 20, 20, 0.65) !important;
    backdrop-filter: blur(4px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    color: floralwhite !important;
}

/* Labels */
.form-label {
    color: #ffe9c4 !important;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Input */
.form-control {
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: white !important;
}

.form-control::placeholder {
    color: #c7bfbf !important;
}

/* Headline (chalk style) */
.page-title {
    font-family: 'CabinSketch-Regular', sans-serif !important;
    color: floralwhite !important;
    font-size: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

/* Chalk shake */
@keyframes chalk-shake {
    0% { transform: translate(0, 0) rotate(0); }
    20% { transform: translate(-1px, 1px) rotate(-1deg); }
    40% { transform: translate(-1px, -1px) rotate(1deg); }
    60% { transform: translate(1px, 1px) rotate(0); }
    80% { transform: translate(1px, -1px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0); }
}

.page-title:hover {
    animation: chalk-shake 0.4s linear;
    text-shadow: 0 0 6px #fff6d8;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background-color: #222 !important;
    border: 1px solid #444 !important;
    color: #ffd700 !important;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #444 !important;
    color: #fff6d8 !important;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

/* Result text */
pre {
    color: #f5f5f5 !important;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

/* Mobile */
@media (max-width: 480px) {
    body {
        padding-top: 10%;
    }
    .page-title {
        font-size: 1.3rem;
    }
    .transparent-card {
        padding: 15px !important;
    }
}
