
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans: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&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'system-ui', sans-serif;
}
body{
    display: flex;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(black, red, gold);
}
.container{

    width: 440px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.container h2{
    font-size: 25px;
    font-weight: 500;
    padding: 16px 25px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.startArea {
    display: flex;
    justify-content: center;
    align-items: center;
}

.startBtn {
    border: none;
    outline: none;
    color: #000000;
    cursor: pointer;
    margin: 15px;
    padding: 10px 0;
    font-size: 17px;
    border-radius: 5px;
    width: calc(100% / 2 - 8px);
    transition: all 0.5s ease;
    background: #ff0000;

}

.startBtn:hover{
    background: #707d8b;
}


.container .content{
    display: none;
    margin: 25px 20px 35px;
}
.content .word{
    user-select: none;
    font-size: 33px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 24px;
    margin-right: -24px;
    word-break: break-all;
    text-transform: uppercase;
}
.content .details{
    margin: 25px 0 20px;
}
.details p{
    font-size: 18px;
    margin-bottom: 10px;
}
.details p b{
    font-weight: 500;
}
.content input{
    width: 100%;
    height: 60px;
    outline: none;
    padding: 0 16px;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid #bfbfbf;
}
.content input:focus{
    box-shadow: 0px 2px 4px rgba(0,0,0,0.08);
}
.content input::placeholder{
    color: #aaa;
}
.content input:focus::placeholder{
    color: #bfbfbf;
}
.content .buttons{
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
}
.buttons button{
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    padding: 15px 0;
    font-size: 17px;
    border-radius: 5px;
    width: calc(100% / 2 - 8px);
    transition: all 0.3s ease;
}
.buttons button:active{
    transform: scale(0.97);
}
.buttons .refresh-word{
    background: #6C757D;
}
.buttons .refresh-word:hover{
    background: #5f666d;
}
.buttons .check-word{
    background: #ff0000;
}
.buttons .check-word:hover{
    background: #ff0000;
}




.modal {
    display: none;
    position: fixed;
    z-index: 1;

    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 300px;

}


.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}


.modal-wrong {
    border: 2px solid red;
}

.modal-correct {
    border: 2px solid green;
}


.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.score-area {
    padding-top: 15px;
    font-size: 18px;
    color: black;
}

.score {
    color: #3571AE;
}

@media screen and (max-width: 470px) {
    .container h2{
        font-size: 22px;
        padding: 13px 20px;
    }
    .content .word{
        font-size: 30px;
        letter-spacing: 20px;
        margin-right: -20px;
    }
    .container .content{
        margin: 20px 20px 30px;
    }
    .details p{
        font-size: 16px;
        margin-bottom: 8px;
    }
    .content input{
        height: 55px;
        font-size: 17px;
    }
    .buttons button{
        padding: 14px 0;
        font-size: 16px;
        width: calc(100% / 2 - 7px);
    }
}