/*! Enhanced Minimalist Web Notepad | https://github.com/pereorga/minimalist-web-notepad */

body {
    margin: 0;
    background: #ebeef1;
    font-family: sans-serif;
    height: 100vh; /* Ensure full height */
}

header {
    text-align: center;
    padding: 10px 0;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: transparent;
    background-image: linear-gradient(45deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
    background-clip: text;
    -webkit-background-clip: text;
    text-stroke: 1px black;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: glow 1.5s infinite alternate;
    margin: 0;
    display: inline-block;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5), 0 0 10px #ff7e5f, 0 0 20px #feb47b;
    }
    to {
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5), 0 0 15px #86a8e7, 0 0 30px #91eae4;
    }
}

#content {
    font-size: 100%;
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    resize: none;
    width: 100%;
    height: calc(100% - 70px); /* Fill remaining space after header */
    min-height: 100%;
    box-sizing: border-box;
    border: 1px #ddd solid;
    outline: none;
    background-color: #fff;
    color: #000;
    line-height: 1.5;
}

.container {
    position: absolute;
    top: 70px; /* Leave space for the header */
    right: 0;
    bottom: 0;
    left: 0;
}

#printable {
    display: none;
    white-space: pre-wrap;
    word-break: break-word;
}

@media print {
    #content {
        display: none;
    }
    #printable {
        display: block;
    }
}
