h1 {
    width: fit-content;
    margin: 0 auto;
    border-radius: 50px;
    text-align: center;

    margin-top: 0;
    padding: 10px;
    /* Optional: Ein kleiner kontrollierter Abstand sieht meist besser aus */
    position: relative;

    font-family: "Raleway", sans-serif;
    font-weight: 300;
    font-size: 40px;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
    backdrop-filter: blur(2px);
}

h1 img {

    height: 35pt;
    line-height: 35px;
    width: 35pt;
    text-align: center;
    vertical-align: middle;
}

.file-controls :nth-child {
    vertical-align: middle;
}

h3 {
    margin-top: 0;
    padding-top: 10px;
    /* Optional: Ein kleiner kontrollierter Abstand sieht meist besser aus */
    position: relative;

    font-family: "Raleway", sans-serif;
    font-weight: 300;
    font-size: 14pt;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

h3 input {
    vertical-align: middle;
    outline: none;
    width: 80px;
    font-size: 13pt;
    border-radius: 5px;
    border: 1px solid;
}

body {
    padding: 0px;
    margin: 0;
    font-family: sans-serif;
    font-size: 14pt;
    /* padding: 10px; */
    gap: 0px;
    /* background-image: url('https://wallpapercave.com/wp/wp7449676.jpg'); */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    background-image: url('../data/background-image.png');
    background-attachment: fixed;
}

br {
    height: 1px;
}

.nice_box {
    border-radius: 25px;
    border: 2px solid;
}

#dreispalten {
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(2px);
}

.input-area {
    width: 40%;
    /* padding: 10px; */
}

.output-area {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    align-items: stretch;
}

.output-area #diagram-settings {
    width: 20%;
    box-sizing: border-box;
}

.output-area .preview-container {
    padding: 0;
    width: 80%;
    display: flex;
    justify-content: center;
    /* Horizontale Zentrierung */
    align-items: center;
    /* Vertikale Zentrierung */
    flex: 1;
}

.output-area iframe {
    width: 30%;
    box-sizing: border-box;
    border-radius: 25px;
    border: 2px solid;
    border-color: darkgray;
    background-color: #e0e0e0de;
}

textarea {
    width: 45%;
    box-sizing: border-box;
    height: 300px;
    font-family: monospace;
    align-self: center;
    margin: 0 auto;
    border-radius: 25px;
    border: 2px solid;
    padding: 10px;
}

#make_figure_label {
    text-align: center;
    align-self: center;
    padding: 10px;
}

#figure-settings-container {
    border-color: gray;
    background-color: rgba(83, 170, 141, 0.671);
    width: 20%;
    text-align: center;
}

#figure-settings {
    text-align: left;
}

#figure-settings ul li {
    padding-bottom: 5px;
}


table {
    font-size: 13pt;
}

/* Die Drehung der Header */
th {
    /* writing-mode: vertical-rl; */
    /* transform: rotate(180deg); */
    font-family: 'Times New Roman', Times, serif;
    text-align: middle;
    /* vertical-align: middle; */
    font-weight: 1;
    font-size: 15pt;
    padding: 10px;
    width: auto;
    border-bottom: 2px solid;
}

td {
    text-align: center;
}

td input {
    outline: none;
    border-radius: 5px;
    border: 1px solid;
}

.nice_box input[type="number"] {
    outline: none;
    border-radius: 5px;
    border: 1px solid;
    width: 35px;
    text-align: center;
}

.degeneration {
    width: 30px;
}

.energy {
    width: 40px;
}

.electrons {
    width: 30px;
}


td input[type="text"] {
    width: 60px;
}

#mo-preview {
    width: 60%;
    height: 400px;

    /* WICHTIG: Spiegelt die Y-Achse, damit höhere Energie oben ist */
    transform: scaleY(-1);
    border-radius: 25px;
    border: 2px solid;
}

#mo-preview line {
    stroke-width: 2px;
    /* Jetzt in Pixeln messbar! */
    vector-effect: non-scaling-stroke;
}

#mo-preview image {
    transform: scale(0.2, -0.2);
    transform-box: fill-box;
    transform-origin: center;
}

.energy_scale_tip {
    stroke-width: 200%;
}

.orbital_connection_line {
    /* stroke: #888888; */
    stroke-dasharray: 5, 4;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

.electron_normal {
    /* stroke: black; */
    stroke-width: 0.5px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.electron_compact {
    /* stroke: rgb(255, 0, 0); */
    stroke-width: 0.1px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.orbital_label {
    font-size: 0.3px;
    text-anchor: middle;
    /* fill: black; */
    transform: scale(1, -1);
    transform-origin: center;
    transform-box: fill-box;
    padding-bottom: 1px;
}

#unsaved_notifier {
    border-radius: 15px;
    border: none;
    padding: 3px;
}

#theme_switch {
    border-radius: 15px;
    border: none;
    padding: 3px;
    height: 22pt;
    line-height: 22px;
    width: 22pt;
    font-size: 14pt;
    text-align: center;
    color: rgb(43, 72, 134);
    vertical-align: middle;
}

#theme_switch:hover {
    transform: rotate(45deg);
    color: black;
    transition: transform 0.3s ease;
}

.remove_orbital {
    /* color: white;
    background-color: red;
    border-style: none;
    vertical-align: center; */
    /* position: relative; */
    border-radius: 8px;
    border-style: none;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    font-family: sans-serif;
    font-size: 8px;
    font-weight: 500;
    height: auto;
    line-height: 50%;
    list-style: none;
    margin: 0;
    outline: none;
    padding: 150% 150%;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: color 100ms;
    vertical-align: baseline;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.remove_orbital:hover {
    filter: brightness(150%);
    -webkit-filter: brightness(150%);
}

.add_orbital {
    border-radius: 8px;
    border-style: none;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 20px;
    line-height: 10px;
    list-style: none;
    margin: 0;
    outline: none;
    /* padding: 10px 16px; */
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: color 100ms;
    vertical-align: baseline;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.add_orbital:hover {
    filter: brightness(150%);
    -webkit-filter: brightness(150%);
}

#license {
    width: fit-content;
    padding: 10px;


    margin: 0 auto;
    text-align: center;


}