@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;200;300;400;500;600;700;800;900&display=swap');

button{
    font-family: 'Noto Sans KR', sans-serif;
    border: none;
}
body {
    font-family: 'Noto Sans KR', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}
.content-wrap{
    padding: 0 20px;
}
.tit{
    font-size: 1.7em;
}
h1 {
    color: #333;
    margin: 0.7rem;
}


#word-to-type {
    font-size: 3em;
    margin-bottom: 0.5rem;
    color: #444;
    text-align: center;
}

.input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#user-input {
    font-size: 2.5em;
    width: 98%;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    height: 54px;
}


.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 350px;
    min-height: 100px;
}

.coffee-donation {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 5px;
}

.coffee-donation a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3125rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.coffee-donation a:hover {
    background-color: lightgray;
}

.coffee-icon {
    width: 30px;
    height: auto;
    border-radius: 50%;
}

.toss-icon {
    width: 1.875rem;
    height: auto;
    border-radius: 50%;
    margin-right: 5px;
    padding: 0.3125rem;
    border: #eaeaea 1px solid;
}

.kakao-icon {
    width: 1.875rem;
    height: auto;
    border-radius: 50%;
    margin-right: 5px;
    padding: 0.3125rem;
    background-color: #FEE500;
    border: #eaeaea 0.5px solid;
}

.shake {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}



#temp-score {
    font-size: 1.3em;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    color: green;
    letter-spacing: -1px;
}
.button-area{
    width: 100%;
}
.button-area button{
    width: 100%;
    margin-bottom: 10px;
    font-size: 2em;
    border-radius: 10px;
    color: #fff;
    padding: 8px 0;
}
.button-area button:nth-child(2){
    margin-bottom: 0;
}

#challenge-button {
    border-color: #E0E0E0;
    border-width: 1px;
    border-style: solid;
    background-color: #d34d68;
    width: 100%;
}

#challenge-button:hover {
    background-color: #B22222;
}

#challenge-button-label {
    display: inline-block;
    text-align: center;
}

#scores {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 10px 0;
}

#score-table {
    align-items: center;
    font-size: 1.5em;
    border-collapse: collapse;
    width: 100%;
}

#score-table td {
    border-top: 2px solid #CCCCCC;
    padding: 10px 0;
    font-size: 1.3rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* or relative, or absolute */
    z-index: 9999;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 2em 1.5em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal h1 {
    margin: 0;
}

.share {
    font-weight: 500;
    background-color: #FEE500;
    color: #3A1D1D !important;
    font-size: 1.5em;
    border-radius: 0.5rem;
    border-color: #E0E0E0;
    border-width: 1px;
    border-style: solid;
    padding: 0;
}


.share:hover {
    background-color: #cbbc38;
}

.close {
    width: 4em;
    font-size: 1.5em;
    border-radius: 0.5rem;
    background-color: #45a049;
    color: #fff !important;
    padding: 10px 0;
}

.close:hover {
    background-color: #3c8c41;
}


#congratulationText {
    color: crimson;
    font-size: 1em;
}

.version {
    font-size: 0.8em;
    color: #999;
    margin-top: 1rem;
}

#resultImage {
    width: 100%;
}

#mute-button {
    background-color: transparent;
    border: none;
    font-size: 2em;
    /* 아이콘 크기 조정 */
    color: #333;
    /* 아이콘 색상 조정 */
    cursor: pointer;
    /* 마우스 커서를 손가락 모양으로 변경 */
    padding: 0;
    width: 3em;
}

#mute-button:focus {
    outline: none;
}

.ad-wrap{
    width: 100%;
    background-color: red;
}
.kakao-ad {
    min-width: 0px !important;
}
@media (max-width: 321px) {
    #score-table {
        font-size: 1em;
    }
    #temp-score {
        font-size: 1.2em;
    }
}

@media (min-width: 1000px){
    #resultImage {
        width: 40%;
    }
}

.btn-wrap {
    display: flex;
    justify-content: center;
    gap:10px;
    margin-top: 10px;
}
.btn-wrap button{
    width: 100%;;
}