* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0a;
    color: #cccccc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font-size: 12px;
}

.note-container {
    width: 100%;
    max-width: 600px;
    background-color: #111;
    border: 1px solid #333;
    padding: 15px;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-bottom: 1px solid #333;
    background-color: #0a0a0a;
    margin-bottom: 15px;
}

.note-title {
    font-weight: normal;
    color: #999999;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.star-icon {
    color: #999999;
    font-size: 10px;
}

.note-content {
    background-color: #0a0a0a;
    border: 1px solid #333;
    padding: 15px;
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.note-content::-webkit-scrollbar {
    width: 6px;
}

.note-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.note-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.note-text {
    line-height: 1.4;
    color: #cccccc;
    font-size: 11px;
}

.note-text strong {
    color: #999999;
}

.code-block {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 10px;
    margin: 8px 0;
    font-size: 10px;
    color: #999999;
    overflow-x: auto;
}

.copy-button {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #999999;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background-color: #222222;
    border-color: #555555;
    color: #ffffff;
}

.color-options {
    margin: 15px 0;
}

.color-option {
    margin-bottom: 10px;
}

.contact-button {
    color: #999999;
    text-decoration: none;
    border: 1px solid #333;
    padding: 2px 6px;
    background-color: #1a1a1a;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.contact-button:hover {
    background-color: #222222;
    border-color: #555555;
    color: #ffffff;
}

.blinking-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 2px;
    background-color: #cccccc;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.edit-hint {
    font-size: 9px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    border-top: 1px dashed #333;
    padding-top: 8px;
}

::selection {
    background-color: #444444;
    color: #ffffff;
}

::-moz-selection {
    background-color: #444444;
    color: #ffffff;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 11px;
    }

    .note-container {
        padding: 10px;
        max-width: 100%;
    }

    .note-content {
        max-height: 400px;
        padding: 10px;
    }

    .note-title {
        font-size: 10px;
        text-align: center;
    }

    .star-icon {
        display: none;
    }

    .code-block {
        font-size: 9px;
        padding: 8px;
    }

    .copy-button {
        padding: 6px;
        font-size: 10px;
    }

    .note-text {
        font-size: 10px;
    }

    .edit-hint {
        font-size: 8px;
        padding: 6px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 5px;
    }

    .note-container {
        padding: 8px;
    }

    .note-content {
        padding: 8px;
        max-height: 350px;
    }

    .code-block {
        font-size: 8px;
        padding: 6px;
    }
}