.button {
    position: relative;
    padding: 0.5em 1.5em;
    border: none;
    background-color: transparent;
    cursor: pointer;
    outline: none;
    font-size: 35px;
    font-family: 'Amatic SC';
    letter-spacing:5px;
    margin: 1em 0.8em;
    transition: all 0.3s ease;
}
.button:focus {
    outline:none;
}
.button.type1 {
    color: #566473;
}
.button.type1.type1::after, .button.type1.type1::before {
    content: "";
    display: block;
    position: absolute;
    width: 20%;
    height: 20%;
    border: 2px solid;
    transition: all 0.6s ease;
    border-radius: 2px;
}
.button.type1.type1::after {
    bottom: 0;
    right: 0;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: #566473;
    border-right-color: #566473;
}
.button.type1.type1::before {
    top: 0;
    left: 0;
    border-bottom-color: transparent;
    border-right-color: transparent;
    border-top-color: #566473;
    border-left-color: #566473;
}
.button.type1.type1:hover:after, .button.type1.type1:hover:before {
    width: 100%;
    height: 100%;
}
.button.type2 {
    color: #16a085;
}
.button.type2.type2:after, .button.type2.type2:before {
    content: "";
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #16a085;
    transition: all 0.3s ease;
    transform: scale(0.85);
}
.button.type2.type2:hover:before {
    top: 0;
    transform: scale(1);
}
.button.type2.type2:hover:after {
    transform: scale(1);
}
.button.type3 {
    color: #c6c0c0;
}
.button.type3.type3::after, .button.type3.type3::before {
    content: "";
    display: block;
    position: absolute;
    width: 20%;
    height: 20%;
    border: 4px solid;
    transition: all 0.6s ease;
    border-radius: 2px;
}
.button.type3.type3::after {
    bottom: 0;
    right: 0;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: #c6c0c0;
    border-right-color: #c6c0c0;
}
.button.type3.type3::before {
    top: 0;
    left: 0;
    border-bottom-color: transparent;
    border-right-color: transparent;
    border-top-color: #c6c0c0;
    border-left-color: #c6c0c0;
}
.button.type3.type3:hover:after, .button.type3.type3:hover:before {
    border-bottom-color: #c6c0c0;
    border-right-color: #c6c0c0;
    border-top-color: #c6c0c0;
    border-left-color: #c6c0c0;
    width: 100%;
    height: 100%;
}
.button.type3:hover {
    background-color:#c6c0c0;
    color:black;
}
.button.type3:active {
    background-color:transparent;
    color:#c6c0c0;
}
.button.type4 {
    color: red;
}
.button.type4::after {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 0;
    left: 0;
    background-color: red;
    transition: width 0.3s ease-in-out;
}
.button.type4::after {
    bottom: 0;
}
.button.type4:hover::after {
    width: 50px;
}
.button.type5 {
    color: #1f1f1f;
}
.button.type5.type5::after, .button.type5.type5::before {
    content: "";
    display: block;
    position: absolute;
    width: 20%;
    height: 20%;
    border: 4px solid;
    transition: all 0.6s ease;
    border-radius: 2px;
}
.button.type5.type5::after {
    bottom: 0;
    right: 0;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: #1f1f1f;
    border-right-color: #1f1f1f;
}
.button.type5.type5::before {
    top: 0;
    left: 0;
    border-bottom-color: transparent;
    border-right-color: transparent;
    border-top-color: #1f1f1f;
    border-left-color: #1f1f1f;
}
.button.type5.type5:hover:after, .button.type5.type5:hover:before {
    border-bottom-color: #1f1f1f;
    border-right-color: #1f1f1f;
    border-top-color: #1f1f1f;
    border-left-color: #1f1f1f;
    width: 100%;
    height: 100%;
}
.button.type5:hover {
    background-color:#1f1f1f;
    color:#c6c0c0;
}
.button.type5:active {
    background-color:transparent;
    color:#c6c0c0;
}
.glow-on-hover {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #c6c0c0;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 3px;
    text-transform:uppercase;
    transition: 0.3s;
    font-family: 'Amatic SC';
    font-weight: 700;
    font-size: 25px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(10px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    transition: all 0.3s ease-in-out;
    border-radius: 0px;
}

.glow-on-hover:hover {
    color: #000;
    letter-spacing: 2px;
}

.glow-on-hover:hover:after {
    background: transparent;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1f1f1f;
    left: 0;
    top: 0;
    border-radius: 3px;
    transition: 0.3s;
}
.glow-on-hover:focus {
    outline: 0;
}
.glow-on-hover:active:before {
    transition: 0.1s;
    filter: blur(20px);
}
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}