:root {
    --line_color: #5984bd;
    --back_color: #5aa9e1;
}

@media screen and (min-width: 1201px) {
    button {
        background-color: transparent;
        font-size: 18px;
        width: 260px;
        height: 36px;
        border: none;
        font-weight: bold;
        color: var(--line_color);
        cursor: pointer;
    }

    button:hover {
        letter-spacing: 6px;
        color: #000000;
    }

    /* body{
    background-color: #9871e6;
} */

    .button {
        position: relative;
        z-index: 0;
        left: 25%;
        /* width: 240px; */
        width: 160px;
        height: 36px;
        text-decoration: none;
        font-size: 18px;
        font-weight: bold;
        color: var(--line_color);
        letter-spacing: 2px;
        transition: all .3s ease;
        cursor: pointer;
    }
}

@media screen and (max-width: 1200px) {
    button {
        background-color: transparent;
        font-size: 16px;
        width: 120px;
        height: 30px;
        border: none;
        font-weight: bold;
        color: var(--line_color);
        cursor: pointer;
    }

    button:hover {
        letter-spacing: 6px;
        color: #000000;
    }

    /* body{
    background-color: #9871e6;
} */

    .button {
        position: relative;
        z-index: 0;
        left: 25%;
        /* width: 240px; */
        width: 120px;
        height: 30px;
        text-decoration: none;
        font-size: 18px;
        font-weight: bold;
        color: var(--line_color);
        letter-spacing: 2px;
        transition: all .3s ease;
        cursor: pointer;
    }
}

.button_text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.button::before,
.button::after,
.button_text::before,
.button_text::after {
    content: '';
    position: absolute;
    height: 3px;
    border-radius: 2px;
    background: var(--line_color);
    ;
    transition: all .5s ease;
}

.button::before {
    top: 0;
    left: 24px;
    width: calc(100% - 36px * 2 - 16px);
}

.button::after {
    top: 0;
    left: 54px;
    width: 8px;
}

.button_text::before {
    bottom: 0;
    right: 54px;
    width: calc(100% - 36px * 2 - 16px);
}

.button_text::after {
    bottom: 0;
    left: 54px;
    width: 8px;
}

.button_line {
    position: absolute;
    top: 0;
    width: 46px;
    height: 100%;
    overflow: hidden;
}

.button_line::before {
    content: '';
    position: absolute;
    top: 0;
    width: 150%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 300px;
    border: solid 3px var(--line_color);
}

.button_line:nth-child(1),
.button_line:nth-child(1)::before {
    left: 0;
}

.button_line:nth-child(2),
.button_line:nth-child(2)::before {
    right: 0;
}

.button:hover {
    letter-spacing: 6px;
    color: #000000;
}

.button:hover::before,
.button:hover .button_text::before {
    width: 8px;
}

.button:hover::after,
.button:hover .button_text::after {
    width: calc(100% - 56px * 2 - 16px);
}

.button_drow1,
.button_drow2 {
    position: absolute;
    z-index: -1;
    border-radius: 16px;
    transform-origin: 16px 16px;
}

.button_drow1 {
    /* top: -16px; */
    top: -8px;
    /*line 1 2 3*/
    /* left: 40px; */
    left: 20px;
    width: 18px;
    /* width: 32px; */
    height: 0;
    transform: rotate(10deg);
    /* transform: rotate(30deg); */
}

.button_drow2 {
    /* top: 44px; */
    top: 5px;
    /*line 456*/
    /* left: 77px; */
    left: 47px;
    width: 18px;
    height: 0;
    transform: rotate(-127deg);
}

.button_drow1::before,
.button_drow1::after,
.button_drow2::before,
.button_drow2::after {
    content: '';
    position: absolute;
}

.button_drow1::before {
    bottom: 10px;
    /*jarak bawah line kedua*/
    left: 5px;
    width: 0;
    /* height: 32px; */
    height: 16px;
    /*tebal line kedua*/
    border-radius: 16px;
    transform-origin: 16px 16px;
    transform: rotate(-50deg);
    /* transform: rotate(-60deg); */
}

.button_drow1::after {
    /* bottom: 80px; */
    bottom: 35px;
    /*jarak bawah line ketiga*/
    left: 18px;
    /* left: 45px; */
    width: 0;
    height: 16px;
    border-radius: 16px;
    transform-origin: 16px 16px;
    transform: rotate(89deg);
}

.button_drow2::before {
    bottom: 20px;
    /*line kelima*/
    left: -15px;
    width: 0;
    height: 16px;
    border-radius: 16px;
    transform-origin: 16px 16px;
    transform: rotate(-146deg);
}

.button_drow2::after {
    /* bottom: 26px; */
    bottom: 15px;
    /*line keenam*/
    left: -42px;
    width: 0;
    height: 16px;
    border-radius: 16px;
    transform-origin: 16px 16px;
    transform: rotate(-272deg);
}

.button_drow1,
.button_drow1::before,
.button_drow1::after,
.button_drow2,
.button_drow2::before,
.button_drow2::after {
    background: var(--back_color);
}

.button:hover .button_drow1 {
    animation: drow1 ease-in .06s;
    animation-fill-mode: forwards;
}

.button:hover .button_drow1::before {
    animation: drow2 linear .08s .06s;
    animation-fill-mode: forwards;
}

.button:hover .button_drow1::after {
    animation: drow3 linear .03s .14s;
    animation-fill-mode: forwards;
}

.button:hover .button_drow2 {
    animation: drow4 linear .06s .2s;
    animation-fill-mode: forwards;
}

.button:hover .button_drow2::before {
    animation: drow3 linear .03s .26s;
    animation-fill-mode: forwards;
}

.button:hover .button_drow2::after {
    animation: drow5 linear .06s .32s;
    animation-fill-mode: forwards;
}

@keyframes drow1 {
    0% {
        height: 0;
    }

    /* 100% {height: 100px;} */
    100% {
        height: 50px;
    }

    /*tiga line pertama */
}

@keyframes drow2 {
    0% {
        width: 0;
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    11% {
        opacity: 1;
    }

    /* 100% {width: 120px;} */
    100% {
        width: 65px;
    }

    /*panjang line ke 2*/
}

@keyframes drow3 {
    0% {
        width: 0;
    }

    /* 100% {width: 80px;} */
    100% {
        width: 40px;
    }

    /*panjang line ke 3 & 5*/
}

@keyframes drow4 {
    0% {
        height: 0;
    }

    100% {
        height: 65px;
    }

    /*panjang line ke 4*/
    /* 100% {height: 120px;} */
}

@keyframes drow5 {
    0% {
        width: 0;
    }

    100% {
        width: 65px;
    }

    /*panjang line ke 6*/
    /* 100% {width: 124px;} */
}

/* .container{
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */