@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Kanit: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&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Tint&family=Kanit: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&display=swap');
/* css boilerplate */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: #fff0f5;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-family: "Bungee", sans-serif;
    margin-bottom: 30px;
    text-align: center;
    color: #e69eb7;
}

.Box {
    display: flex;
    background-color: white;
    width : 1000px;
    height: 450px;
    padding : 70px;
    align-items: flex-end;
    gap: 60px;
    border: 3px solid #efd1db;
}

.hangman img {
    max-width: 300px;
}

.word-display {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.word-display .letter {
    width: 30px;
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 3px solid black;
    margin-bottom: 50px;
}

.word-display .letter.guessed {
    border-color: transparent;
    margin: -40px 0 35px;
}

.game h4 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}

.game h4 b {
    font-weight: 600;
    color: #e76a94;
}

.game .guess b {
    color: rgb(255,0, 0);
}

.game .keyboard {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.keyboard button {
    width: calc(100% / 8 - 5px);
    color: black;
    background-color: #efd1db;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.keyboard button:hover {
    background-color: #fff0f5;
}

.model {
    position: fixed;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
}

.model .content {
    background-color: white;
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 30px;
}

.model h4 {
    font-family: "Bungee Tint", sans-serif;
    font-size: 25px;
}

.model p {
    font-size: 17px;
    margin: 17px;
    color: black;
}

.model p b {
    color: #e76a94;
    font-size: 20px;
    font-weight: 600;
}

.model button {
    background-color: #efd1db;
    color: black;
    padding: 10px;
    border: 2px solid #e76a94;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.model button:hover {
    background-color: #fff0f5;
}

.hidden {
    visibility: hidden;
}

@media (max-width: 770px) {
    .Box {
        flex-direction: column;
        padding: 0;
        align-items: center;
    }
    .hangman img {
        max-width: 200px;
    }
    h1 {
        font-size: 15px;
    }
}
