.editor-container {
    padding-top: 2vh;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editor-header {
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.editor-header h1 {
    font-family: 'Salernomi J', serif;
    font-size: 28px;
    font-weight: normal;
}

.salernomi-font {
    font-family: 'Salernomi J', serif !important;
}

.editor-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.editor-controls button {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier', monospace;
    transition: background-color 0.3s;
}

.editor-controls button:hover {
    background-color: #333333;
}

#new-image-btn {
    background-color: #1a1a1a;
    transition: background-color 0.3s, transform 0.2s;
}

#new-image-btn:hover {
    background-color: #333333;
    transform: scale(1.05);
}

.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

#image-canvas {
    border: 1px solid white;
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    background-color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.text-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#message-input {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #1a1a1a;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-family: 'Courier', monospace;
    resize: none;
    height: 60px;
}

.character-count {
    color: #cccccc;
    text-align: right;
    font-size: 12px;
    margin: 0 0 15px 0;
    font-family: 'Courier', monospace;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .editor-container {
        padding-top: 2vh;
    }
    
    .editor-header h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .editor-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .editor-controls button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .canvas-container {
        margin-bottom: 10px;
    }
    
    #image-canvas {
        max-height: 60vh;
    }
    
    #message-input {
        height: 50px;
        font-size: 12px;
    }
}