*{
    margin: 0;
}

body{
    position: relative;
    text-align: center;
    vertical-align: middle;
    background-color: #333;
    color: #fff;
    overflow-x: hidden;
}

h1{
    display: inline-block;
    text-align: center;
    font-size: 40px;
    margin-top: 30px;
    padding: 30px 0;
    transition: 0.3s;
    width: 400px;
}

h1:hover{
    text-shadow: 0 0 7px #dddd;
    transition: 0.3s;
}

#main{
    margin-top: 50px;
    width: 80vw;
    height: 50vh;
    display: flex;
    margin-left: 50%;
    transform: translateX(-50%);
}

#ta-wrap {
    flex: 6;
    height: 100%;
}

textarea{
    resize: none;
    width: 100%;
    height: 90%;
    background-color: #00594C;
    color: white;
    border: solid 10px #8B4720;
    border-bottom: groove 20px #8B4720;
    font-size: 16px;
    border-radius: 20px;
    transition: .2s;
}

textarea:hover{
    border-radius: 0;
    transition: .2s;
}

table{
    margin-left: auto;
    margin-right: auto;
    border: solid 10px #0000;
    flex: 4;
}

tr{
    height: 40px;
}

.disp-td{
    width: 3em;
}

.len-display{
    display: block;
    width: 100%;
    background-color: #00594c;
    color: #fff;
    border: groove 3px #8B4720;
    border-radius: 5px;
    text-align: center;
}

#copy,#reset{
    width: 200px;
    height: 50px;
    margin: 50px 30px 0px;
    background-color: #aaa;
    border-left: solid 4px #888;
    border-right: solid 4px #222;
    border-top: solid 4px #888;
    border-bottom: solid 4px #222;
    color: #333;
    font-size: 14px;
    font-style: bold;
    cursor: pointer;
}

#copy:hover,#reset:hover{
    background-color: #888;
}

#copy:active,#reset:active{
    width: 200px;
    height: 50px;
    background-color: #888;
    border-left: solid 4px #333;
    border-right: solid 4px #333;
    border-top: solid 4px #333;
    border-bottom: solid 4px #333;
    color: #333;
    font-size: 14px;
    font-style: bold;
}

#setting{
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: #fff3;
    z-index: 5;
}

#setting>i{
    color: #fff;
}

#closeSetting{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: #fff3;
    z-index: 5;
}

#closeSetting>i{
    color: #fff;
}

#setMenu{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #222;
    width: 50vw;
    height: 100vh;
    text-align: left;
}

#setMenu label{
    display: inline-block;
    width: 50%;
}

#setMenu div{
    margin: 5%;
    margin-left: 30px;
}

#setMenu button{
    display: block;
    margin: 30px;
}

@keyframes setting{
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes closeSetting{
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

footer {
    margin-top: 1em;
}

footer a{
    color: #fff;
}