body {
    margin: 0;
    font-family: sans-serif;
    background-color: #222;
    color: #eee;
}

#background {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-image: url("../../img/tafel.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    top: 0;
    z-index: -10;
    opacity: 0.7;
}

h1 {
    position: relative;
    text-align: center;
    margin: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 6rem;
    background-image: url("../../img/tech.jpg");
    background-size: 30rem;
    background-repeat: repeat;
    background-position: center center;
    color: transparent;
    -webkit-background-clip: text;
    font-weight: 900;
    animation: h1ani 100s linear infinite;
}

@keyframes h1ani {
    0% {
        background-image: url("../../img/Pi.jpg");
        background-size: 15rem;
    }

    28% {
        opacity: 1;
        background-image: url("../../img/Pi.jpg");
    }
    29% {
        opacity: 0;
    }
    30% {
        opacity: 1;
        background-image: url("../../img/tech.jpg");
        background-size: 30rem;
    }

    58% {
        opacity: 1;
        background-image: url("../../img/tech.jpg");
    }
    59% {
        opacity: 0;
    }
    60% {
        opacity: 1;
        background-image: url("../../img/cubes.jpg");
        background-size: 20rem;
    }

    98% {
        opacity: 1;
        background-image: url("../../img/cubes.jpg");
    }
    99% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        background-image: url("../../img/Pi.jpg");
        background-size: 15rem;
    }
}

.settings {
    display: grid;
    border: solid 2px #fff;
    margin: 2rem;
    grid-gap: 1rem;
    padding: 1rem;
}

.selects {
    display: inline-grid;
}

.rechnerSelect {
    padding: 0.5rem 1rem;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: solid 2px #aaa;
}

h4 {
    font-size: 18px;
}

.rechner {
    position: relative;
    display: grid;
    grid-column-gap: 2em;
    grid-row-gap: 2em;
    padding: 2em
}

#inWrapper {
    position: relative;
    grid-column-start: 1;
    grid-column-end: 2;
}

#outWrapper {
    position: relative;
    grid-column-start: 2;
    grid-column-end: 3;
}

h4 {
    color: #fff;
    font-size: 16px;
}

h6 {
    position: relative;
    color: #0bc743;
    font-size: 16px;
    font-weight: lighter;
    float: left;
}

/*input -----------------------------------------------------*/

.inputType1 {
    position: relative;
    height: 50px;
    width: 13em;
    margin: 1em;
    overflow: hidden;
}

.inputType1 input {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.inputType1 label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-bottom: solid 1px #aaa;
}

.inputType1 label::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    border-bottom: solid 3px #5fa8d3;
    bottom: -1px;
    left: 0;
    transform: translateX(-100%);
    transition: transform 300ms ease;
}

.inputType1 span {
    position: absolute;
    bottom: 5px;
    left: 0;
    font-size: 12px;
    transition: all 300ms ease;
    pointer-events: none;
}

.inputType1 input:focus + .inputType1Label .inputType1Span,
.inputType1 input:valid + .inputType1Label .inputType1Span {
    transform: translateY(-150%);
    color: #5fa8d3;
    font-size: 14px;
}

.inputType1 input:focus + .inputType1Label::after,
.inputType1 input:valid + .inputType1Label::after {
    transform: translateX(0);
}

#size {
    position: relative;
    width: 4em;
    color: #fff;
    background-color: transparent;
    border: none;
    border-bottom: solid 2px #fff;
    text-align: center;
}

#size:focus {
    outline: none;
    border-color: #5fa8d3;
}

/*------ matrix ---------------------------------------------*/

.matrix {
    text-align: center;
    border-left: solid 2px #fff;
    border-right: solid 2px #fff;
    border-radius: 1.5em;
    padding: 0.5em 1em;
    border-spacing: 0.7em;
    border-collapse: separate;
    margin-top: 1em;
}

.gaussInput {
    position: relative;
    width: 4em;
    text-align: center;
    background-color: transparent;
    color: #fff;
    border: none;
    border-bottom: solid 2px #fff;
}

.gaussInput:focus {
    outline: none;
    border-color: #5fa8d3;
}

.sizeSelection {
    position: relative;
    bottom: 1em;

}

.sizeSelection input {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    text-align: center;
    width: 2em;
    background-color: transparent;
    border: none;
    border-bottom: solid 2px #fff;
    color: #fff;
    transition: 100ms;
}

.sizeSelection input:focus {
    outline: none;
    border-color: #5fa8d3;
}

.gaussInput:invalid {
    color: #ff3e3e;
}

.gaussOutFrame {
    position: relative;
    float: left;
    margin: 0 4em 1em 0;
}

.gaussInputDiv {
    position: relative;
    white-space: nowrap;
}

