/* Allgemeine Seiteinstellungen */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f3f3;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #cce1f7;
}

a:hover {
    text-decoration: none;
    color: #869fba;
}

span.smallspace {
    margin-left: 8px;
}

h3 {
    color: #0078d4; /* Microsoft 365 Blau */
    margin-top: 20px;
}

form {
    max-width: 500px;
    min-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Eingabefelder */
label {
    font-weight: bold;
    color: #444;
    display: block;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 120, 212, 0.3);
}

/* Buttons */
input[type="submit"] {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 16px;
}

input[type="submit"]:hover {
    background-color: #6c9ea0;
}

input[type="submit"]:focus {
    outline: none;
}

.inputbox {
    display: flex;
    justify-content: space-between;
}

.navbar {
    display: flex;
    justify-content: space-between;
    background-color: #2c3e50;
    padding: 16px;
    color: white;
}

footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    background-color: #545454;
    color: white;
}

.footer-left {
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 16px;
}

.footer-right {
    display: flex;
    align-items: center;
    font-size: 8px;
    padding-right: 16px;
}

.navbar-left {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.navbar-right {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.output-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.formatted-output {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Consolas", "Courier New", monospace;
    max-width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

.loading {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #FFFFFFAA;
    align-items: center;
    justify-content: center;
}

.loading-text {
    margin-left: 64px;
    font-size: 16px;
    font-weight: bold;
}

.warning {
    width: calc(100% - 32px);
    border-radius: 16px;
    background-color: darkgoldenrod;
    color: #ffffff;
    font-weight: bold;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .footer-left {
        font-size: 12px;   
    }
}

@media (max-width: 900px) {
    .navbar-left {
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    form {
        padding: 15px;
        min-width: 300px;
    }

    .inputbox {
        display: block;
    }

    input[type="submit"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar-right {
        display: none;
    }

    .footer-right {
        display: none;
    }
}