:root {
    --color: rgba(205, 0, 0, 1);
    --black: rgba(0, 0, 0, .8);
}
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h1 {
    margin-bottom: 20px;
    color: var(--color);
    text-align: center;
}
h2 {
    margin-bottom: 20px;
    color: var(--black);
    text-align: center;
    grid-column: 1 / 3;
}
a, a:visited {
    color: var(--black);
    text-decoration: none;
}
a:hover {
    color: var(--color);
}
.full-row {
    width: 80%;
    text-align: center;
    border-bottom: solid 3px var(--color);
    padding-bottom: 25px;
    margin: 0 10% 10px;
    grid-column: 1 / 3;
}
.item {
    width: 80%;
    text-align: center;
    margin: 0 10% 10px;
}
#test-form {
    text-align: center;
}
.flex {
    display: flex;
    justify-content: center;
}
#test-form button {
    font-size: 30px;
    padding: 5px 15px;
}
#test-form .flex {
    justify-content: space-between;
    align-items: center;
}
label {
    width: 100%;
    display: block;
    margin-top: 20px;
}
textarea, .repl {
    width: 96%;
    min-width: 250px;
    height: 50px;
    border: solid 1px var(--black);
}
.repl {
    margin: 0 auto;
}
#regex, #flags, #replacement {
    height: 20px;
    display: inline-block;
}
textarea {
    display: inline-block;
}
#head-form > .flex, #test-form .flex:not(.hidden) {
    display: block;
}
.remove {
    margin-top: 35px;
}
.test {
    border: dotted 2px gray;
    margin-top: 20px;
    padding: 0 20px 20px;
}
.hidden{
    display: none;
}
.remove.hidden {
    display: block;
    visibility:hidden;
}
@media (min-width:601px) {
}
@media (min-width:769px) {
    #head-form > .flex, #test-form .flex:not(.hidden) {
        display: flex;
    }
}