@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-color: #0e1538;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins';
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-color);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;    
}

.container a{
    position: relative;
    width: 160px;
    height: 60px;
    display: inline-block;
    background: #fff;
    margin: 20px;
}

.container a:after, 
.container a:before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #f00;
    transition: .5s;
}

.container a:nth-child(1):before, 
.container a:nth-child(1):after {
    background: linear-gradient(45deg, #00ccff, #0e1538, #0e1538, #d400d4);    
}

.container a:nth-child(2):before, 
.container a:nth-child(2):after {
    background: linear-gradient(45deg, #ff075b, #0e1538, #0e1538, #1aff22);    
}


.container a:hover:before {
    inset: -3px;
}
.container a:hover:after {
    inset: -3px;
    filter: blur(10px);
}


.container a span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: inline-block;
    background: var(--bg-color);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    border: 1px solid #040a29;
    overflow: hidden;
}

.container a span::before {
    content: '';
    position: absolute;
    top:0;
    left:-50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.075);
    transform: skew(25deg);
}