﻿body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-family: 'Arial', sans-serif;
    font-size: 20pt;
    font-weight: bold;
    text-align: left;
    background-color: #BF0000;
    color: #ffffff;
    padding: 40px 0;
    padding-left: 175px;
    margin: 0;
    background-image: url('https://dl.ccb-online.de/informatik/HTML-Applets/Logo.svg');
    background-repeat: no-repeat;
    background-position: 40px center; /* Anpassung der Position des Logos */
    background-size: contain; /* Größenanpassung des Logos */
    width: 100%;
    box-sizing: border-box;
}

.layout3 {
    padding-top: 20px;
    margin-top: 20px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.hinweis {
    margin-top: 20px;
    font-style: italic;
    color: #6c757d;
    width: 100%; /* Stellt sicher, dass der Hinweis die volle Breite nutzt */
    box-sizing: border-box; /* Verhindert, dass Padding oder Border die Breite beeinflussen */
    padding: 0 20px; /* Optional: Gleiche linke und rechte Polsterung wie die Container-Polsterung */
}

#text-input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    resize: none;
    min-height: 72px; /* Festgelegte Mindesthöhe für das Textarea-Eingabefeld */
}

#morse-code-container {
    display: none; /* Standardmäßig ausgeblendet */
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

#morse-code-output {
    font-size: 24px;
    white-space: pre-wrap; /* Erlaubt Zeilenumbrüche dort, wo sie im Text vorkommen */
    word-wrap: break-word; /* Erlaubt den Zeilenumbruch innerhalb langer Wörter */
    overflow-wrap: break-word; /* Sicherstellt, dass der Umbruch auf allen Browsern funktioniert */
    margin: 0;
    padding: 10px;
    /* Entferne den Rahmen */
    border: none;
    min-height: 72px; /* Gleiche Mindesthöhe wie das Textarea-Eingabefeld */
    overflow: auto;
    box-sizing: border-box;
}

/* Dynamische Anpassung */
@media (max-width: 600px) {
    #morse-code-output {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    #morse-code-output {
        font-size: 16px;
    }
}
