@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #e8f5e9, #e3f2fd); /* soft green to soft blue */
    font-family: 'Open Sans', Arial, sans-serif;
}

.citation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 650px;
    width: 100%;
}

.citation-container {
    max-width: 650px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 26px 20px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.citation {
    font-family: 'Dancing Script', 'Comic Sans MS', cursive;
    font-size: 1.9rem;
    color: #2e7d32; /* main green */
    line-height: 1.4;
    margin-bottom: 24px;
}

.citation::before,
.citation::after {
    color: #1565c0; /* blue accent */
    font-size: 2.2rem;
    vertical-align: top;
}

.citation::before {
    content: '\201C';
    margin-right: 4px;
}

.citation::after {
    content: '\201D';
    margin-left: 4px;
}

form {
    margin: 0;
}

.new-quote-button {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    padding: 10px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #2e7d32, #1b5e20); /* green tones */
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease;
}

.new-quote-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(46, 125, 50, 0.55);
}

.new-quote-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.4);
}

.new-quote-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.4);
}

@media all and (max-device-width: 600px) {
    .citation-container {
        padding: 22px 16px 26px;
    }

    .citation {
        font-size: 2.5rem;
    }

    .new-quote-button {
        font-size: 1.5rem;
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-device-width: 600px) and (orientation: portrait) {
    body {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .citation-container {
        border-radius: 12px;       /* slightly smaller border radius */
        padding-top: 18px;
        padding-bottom: 22px;
    }

    .citation {
        font-size: 2.5rem;
    }
}
