@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* Styling untuk elemen body */
body{
    display: flex;
    padding: 0 10px; 
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #5372F0;
}


.container{
    width: 440px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Styling unutk judul dalam container */
.container h2{
    font-size: 25px;
    font-weight: 500;
    padding: 16px 25px;
    border-bottom: 1px solid #ccc;
}

/* styling untuk konten didalam konttainer */
.container .content{
    margin: 25px 20px 35px;
}

/* styling untuk elemen kata yang akan ditebak */
.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;
}

/* styling untuk bagin informasi tambahan */
.content .details{
    margin: 25px 0 20px;
}

/* stylling untuk teks dalam bagian  details */
.details p{
    font-size: 18px;
    margin-bottom: 10px;
}

/* Menentukan ketebalan teks bold didalam details */
.details p b{
    font-weight: 500;
}

/* styling untuk input field */
.content input{
    width: 100%;
    height: 60px;
    outline: none;
    padding: 0 16px;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid #bfbfbf;
}

/* efek shadow saat input difokuskan */
.content input:focus{
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
}

/* Warna palcedor pada input */
.content input::placeholder{
    color: #bfbfbf;
}

/* warna pada placedor saat input aktif */
.content input:focus::placeholder{
    color: #bfbfbf;
}

/* styling unutk  tombol tombol dalam permainan */
.content .buttons{
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
}

/* Styling umum untuk tommbol */
.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;
}

/* efek tombol saat ditekan */
.buttons button:active{
    transform: scale(0.97);
}

/* styling tombol 'diperbarui kata' */
.buttons .refresh-word{
    background: #6C757D;
}

/* efek hobver untuk tombol 'Perbarui Kata' */
.buttons .refresh-word:hover{
    background: #5f666d;
}

/* styling tombol 'Cek Kata' */
.buttons .check-word{
    background: #5372F0;   
}

/* wefek hover untuk tombol 'Cek Kata' */
.buttons .check-word:hover{
    background: #2c52ed;
}

/* Responsivits untuk layar kecil (maksimal lebar 470px) */
@media screen and (max-width: 470px) {
    .container h2{
        font-size: 22px;
        padding: 13px 20px;
    }
    .container .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);
     }
}