@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Oleo Script Swash Caps', cursive;
}


.outer {
    display: table;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

}

.middle {
    display: table-cell;
    vertical-align: middle;
    border: 15px solid black;
    padding: 20px;
    width: 200px;
    height: 150px;
}

.inner {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
    transition: all 0.3s ease 0.3s;
}

.word {
    font-size: 80px;
    font-family: 'Oleo Script Swash Caps', cursive;
    transition: all 0.3s ease 0.5s;
}

.btn {
    transition: all 0.3s ease 1s;
}

.btn2 {
    transition: all 0.3s ease 1s;
}

/* CSS */
.button-57 {
    position: relative;
    overflow: hidden;
    border: 1px solid #18181a;
    color: #18181a;
    display: inline-block;
    font-size: 20px;
    line-height: 15px;
    padding: 18px 70px 17px;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-57 span:first-child {
    position: relative;
    transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 10;
}

.button-57 span:last-child {
    color: white;
    display: block;
    position: absolute;
    bottom: 0;
    transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 100;
    opacity: 0;
    top: 60%;
    left: 50%;
    transform: translateY(225%) translateX(-50%);
    height: 14px;
    line-height: 13px;
}

.button-57:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    transform-origin: bottom center;
    transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
    transform: skewY(9.3deg) scaleY(0);
    z-index: 50;
}

.button-57:hover:after {
    transform-origin: bottom center;
    transform: skewY(9.3deg) scaleY(2);
}

.button-57:hover span:last-child {
    transform: translateX(-50%) translateY(-100%);
    opacity: 1;
    transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}



/* CSS */
.button-53 {
    background-color: #3DD1E7;
    border: 0 solid #E5E7EB;
    box-sizing: border-box;
    color: #000000;
    display: flex;
    font-family: 'Oleo Script Swash Caps', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.75rem;
    padding: .75rem 1.65rem;
    position: relative;
    text-align: center;
    text-decoration: none #000000 solid;
    text-decoration-thickness: auto;
    width: 100%;
    max-width: 460px;
    position: relative;
    cursor: pointer;
    transform: rotate(-2deg);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-53:focus {
    outline: 0;
}

.button-53:after {
    content: '';
    position: absolute;
    border: 1px solid #000000;
    bottom: 4px;
    left: 4px;
    width: calc(100% - 1px);
    height: calc(100% - 1px);
}

.button-53:hover:after {
    bottom: 2px;
    left: 2px;
}

@media (min-width: 768px) {
    .button-53 {
        padding: .75rem 3rem;
        font-size: 1.25rem;
    }
}

.button-53 {
    /* opacity: 0; */
    visibility: hidden;
    pointer-events: none;
}

@media only screen and (max-width: 600px) {
    .button-57 {
        /* opacity: 0; */
        visibility: hidden;
        pointer-events: none;
    }

    .button-53 {
        visibility: visible;
        opacity: 1;
        pointer-events: all;
        position: relative;
        bottom: 50px;
    }

    .word {
        color: #5B7DB1;
    }

    /* body {
        background-color: #C4DDFF;
    } */

    .middle {
        display: table-cell;
        vertical-align: middle;
        border: 0;
        padding: 0px;
        width: 0px;
        height: 0px;
    }

    .sub2 {
        position: relative;
        top: 290px;
        right: 5px;
        z-index: 1;
        transition: all 0.3s ease 4s;
    }

    .section {
        display: grid;
        grid-template-columns: auto auto;
        position: relative;
        padding: 20px;
        top: 15px;
    }

    .point-section {
        transition: all 0.3s ease 4s;
        text-align: center;
        border: 2px solid black;
        border-radius:10px ;
    }
    
    .count-section {
        transition: all 0.3s ease 4s;
        text-align: center;
        border: 2px solid black;
        border-radius:10px ;
    }

    .final-section {
        text-align: center;
        position: relative;
        bottom: 35px;
        transition: all 0.3s ease 1.5s;
    }
}

.fadeIn {
    opacity: 1;
    pointer-events: all;
}

.fadeOut {
    opacity: 0;
    pointer-events: none;
}

.play-area {
    text-align: center;
    transition: all 0.3s ease 1s;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    /* position: relative;
    top: 260px; */
    z-index: 99;
}

.animation {
    position: relative;
    top: 260px;
    animation: move 2s ease 2s forwards;
}


@keyframes move {
    from {
        top: 260px;
    }

    to {
        top: 40px;
    }
}

.shake {
    animation: shake 0.3s ease 0.2s;
}

@keyframes shake {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(2em);
    }

    40% {
        transform: translate(-2em);
    }

    60% {
        transform: translate(2em);
    }

    80% {
        transform: translate(-2em);
    }

    100% {
        transform: translate(0);
    }
}

.answer {
    transition: all 0.3s ease 4s;
    position: relative;
    top: 260px;
    z-index: 1;
    text-align: center;
    border: 2px solid black;
    width: 200px;
    height: 80px;
    border-radius: 20px;
    font-size: 30px;
    display: grid;
    font-family: 'Noto Sans', sans-serif;
}

.guessWord {
    position: relative;
    top: 150px;
    transition: all 0.3s ease 4s;
    font-family: 'Courier New', Courier, monospace !important;
}

.sub {
    position: relative;
    top: 290px;
    z-index: 1;
    transition: all 0.3s ease 4s;
}
.section {
    display: grid;
    grid-template-columns: auto auto;
    position: relative;
    top: 10px;
    transition: all 0.3s ease 1s;
}

.point-section {
    transition: all 0.3s ease 4s;
    text-align: center;
    border: 2px solid black;
}

.count-section {
    transition: all 0.3s ease 4s;
    text-align: center;
    border: 2px solid black;
}

.final-section {
    text-align: center;
    transition: all 0.3s ease 1.5s;
}