/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

.translation-area {
    display: flex;
    flex-direction: column;
}

.input-area,
.output-area {
    margin-bottom: 15px;
    min-height: 150px;
    border-radius: 5px;
}

.output-area {
    background-color: #EEE;
    word-break: break-word;
    padding: 0.5em;
    overflow: scroll;
    max-height:50vh;
}

#switchdirection {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

#switchdirection input {
    display: none;
}

#switchdirection label {
    padding: 6px 10px;
    border-radius: 100%;
    background-color: #eeeeee;
    display: block;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

#switchdirection label:hover {
    background-color: cornflowerblue;
    color: white;
    cursor: pointer;
}


textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: none;
    background-color: #f9f9f9;
}

textarea:focus {
    outline: none;
    border-color: cornflowerblue;
}

.input-area {
    position: relative;
    display: block;
}

#input-text {
    position: relative;
}

#clear-input {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10000;
    font-weight: bolder;
    color: #555;
    display: block;
    padding: 6px 10px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: #eeeeee;
}

#clear-input:hover {
    padding: 6px 10px;
    border-radius: 100%;
    background-color: #CCC;
}

#outputText {
    background-color: #e9e9e9;
    color: #555;
    cursor: not-allowed;
}

::-moz-selection { /* Code for Firefox */
    color: white;
    background: cornflowerblue;
}

::selection {
    color: white;
    background: cornflowerblue;
}

.tabs input[type="radio"] {
    display: none;
}

/* Style the labels (tabs) */
.tabs label {
    margin: 0;
    cursor: pointer;
    display: inline-block;
    padding: .5rem 1rem;
}

.tabs label:hover {
    background-color: #f9f9f9;
    border-bottom: 3px solid #f9f9f9;
}

.tabs div {
    margin: 0;
    cursor: pointer;
    display: inline-block;
    padding: .5rem 1rem;
    border-bottom: 3px solid cornflowerblue;
}

.tabs input[type="radio"]:checked + label {
    border-bottom: 3px solid cornflowerblue;
}
