.game_logo {
    margin-top: 30px;
    width: 500px;
}

.game_body {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
}

.game_title{
    display: flex;
    flex-direction: column;
    position: relative;
    top: 20px;
    width: 100%;
}

hr {
    width: 500px; 
}

.start-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    width: 500px;
}

.logo_wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 500px;
}

.logo_wrap::after{
    content: "";
    width: 63px;
    height: 52px;
    display: block;
    background-image: url(../image/renewal/images/img_wordle_arrow.png);
    background-repeat: no-repeat;
    background-size: 85%;
    position: absolute;
    top: 130px;
    right: -9px;
    animation: act .7s linear infinite alternate forwards;
}

@keyframes act {
    0%{
        transform: translate(-3px,-1px);
    }
    100%{
        transform: translate(3px,1px);
    }
}

.event-guide {
    position: relative;
    display: flex;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    padding: 5%;
    background: #B9B7FF;
    border-radius: 1vw;
    gap: 0px;
    flex-direction: column;
    margin: 20px auto;
    align-items: flex-start;
}
.event-guide::before{
    position: absolute;
    content: "";
    display: block;
    width: 0;
    height: 0;
    top: 30px;
    left: -40px;
    border-bottom: 0px solid transparent;
    border-top: 25px solid transparent;
    border-right: 20px solid #B9B7FF;
    border-left: 20px solid transparent;
}

.game_body p {
    color: #1C1D1F;
    margin: 5px;
}
.game_body p:first-child span {
    background: #FFF;
}
.game_body p:nth-child(2) span {
    background: #fff2b7;
}
.game_body p:nth-child(3) span {
    background: #b8ffc3;
}

#board {
    width: 480px;
    height: 420 px;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

#board.board_back::after{
    content: "";
    width: 63px;
    height: 61px;
    display: block;
    background-image: url(../image/renewal/images/img_wordle_hand.png);
    background-repeat: no-repeat;
    background-size: 90%;
    position: absolute;
    bottom: 57px;
    left: 15px;
    animation: act 1s linear infinite alternate forwards;
}

.board_back{
    background-image: url(../image/renewal/images/img_wordle_board.png);
    background-size: 100%;
    background-repeat: no-repeat;
    width: 450px;
    padding: 8% 8% 10% 10%;
}


.game_footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    right: 30px;
}

#retry {
    left: 42.5%;
    top: 30px;
}

.rows {
    display: flex;
}

.tile {
    /* box */
    border: 2px solid lightgrey;
    border-radius: .2vw;
    width: 60px;
    height: 60px;
    margin: 2.5px;

    /* text */
    color: white;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.correct {
    background-color: #72b368;
    color: white;
    border-color: white;
    transition-duration: 0.5s;
}

.present {
    background-color: #ddc747;
    color: white;
    border-color: white;
    transition-duration: 0.5s;
}

.absent {
    background-color: #a2a6a8;
    color: white;
    border-color: white;
    transition-duration: 0.5s;
}

.invalid {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.2s;
    /* When the animation is finished, start again */
    animation-iteration-count: 2;
    
}

@keyframes shake {
    0% { transform: translateX(0) }
    25% { transform: translateX(5px) }
    50% { transform: translateX(-5px) }
    75% { transform: translateX(5px) }
    100% { transform: translateX(0) }
   }

.remove {
    display: none;
}

.game_btn {
    position: relative;
    float: left;
    width: 120px;
    padding: 0;
    margin: 10px 20px 10px 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 50px;
    color: #FFF;
    border-radius: 5px;
    transition: all 0.2s ;
    background: #95DD73;
    box-shadow: 0px 5px 0px 0px #4BAD51;
}

.game_btn:hover {
    margin-top: 15px;
    margin-bottom: 5px;
    box-shadow: 0px 0px 0px 0px #4BAD51;
}
.game_btn::before{
    position: absolute;
    content: "";
    display: block;
    width: 0;
    height: 0;
    top: 10px;
    right: -35px;
    border-bottom: 0px solid transparent;
    border-top: 20px solid transparent;
    border-left: 20px solid #95DD73;
    border-right: 20px solid transparent;
}

/* 모달 */
.modal-wrap{
    background-color:rgba(0,0,0,.3);
    justify-content:center;
    align-items:center;
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    display:none;
    padding:15px;
}

#success-modal > .modal::after{
    content: "";
    display: block;
    position: absolute;
    width: 110px;
    height: 110px;
    z-index: 2;
    top: -45px;
    left: -18px;
    background-image: url(../image/renewal/images/img_wordle_success.png);
    background-size: 100%;
}

#fail-modal > .modal::after{
    content: "";
    display: block;
    position: absolute;
    width: 110px;
    height: 110px;
    z-index: 2;
    top: -45px;
    left: -18px;
    background-image: url(../image/renewal/images/img_wordle_fail.png);
    background-size: 100%;
}

.modal{
    position: relative;
    width:100%;
    max-width:400px;
    background-color:#ffffff;
    border-radius:10px;
    /* overflow:hidden; */
    /* background-color:#4bb526; */
    box-shadow: 5px 10px 10px 1px rgba(0,0,0,.3);
}
.modal-head{
    width:100%;
    height:70px;
    padding-top: 15px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.head-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -2px;
    text-align: center;
    color: #1C1D1F;
}

.modal-body{
    width:100%;
    background-color:#ffffff;
}

.body-content{
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: center;
    font-size: 25px;
    font-weight: 600;
}

#answer { 
    line-height: 30px;
}

.modal-foot{
    width:100%;
    height:50px;
}

.modal-btn{
    border: 4px solid white;
    border-radius: 0 0 10px 10px;
    background: #B9B7FF;
    display: inline-flex;
    width: 100%;
    height: 60px;
    float: left;
    align-items: center;
    color: #1C1D1F;
    cursor: pointer;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.modal-btn.confirm{
    /* border-right:1px solid #4bb526; */
}