* {
    padding: 0;
    margin: 0;
    font-family: Caveat, sans-serif;
    overflow: hidden;
}

main {
    height: 100vh;
    width: 100vw;
    /* min-width: 1600px; */
    display: grid;
    grid-template: repeat(10, 1fr) / repeat(12, 1fr);
    background-image: url(src/bg-cells.jpg);
    background-size: cover;
    background-repeat: repeat-y;
}

.bg_img {
    /* width: 100%; */
    /* height: 100vh; */
    object-fit: cover;
    grid-area: 1 / 1 / -1 / 13;
    z-index: -1;
}

.hangman_div {
    grid-area: 2 / 2 / 7 / 5;
}

.hangman_pic {
    width: 100%;
}

#test_button {
    grid-area: 3 / 6 / 5 / 8;
}

.alphabet {
    grid-area: 3 / 8 / -3 / 12;
    font-size: 4em;
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-evenly;
    /* min-width: 500px; */
}

.letter {
    width: 15%;
    height: 15%;
    font-family: Caveat, sans-serif;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.missing_word {
    grid-area: -2 / 2 / -4 / 6;
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* min-width: 600px; */
}

.missing_letter {
    text-align: center;
    height: 100%;
    width: 17%;
    font-size: 4em;
    position: relative;
    color: black;
}

.missing_letter::after {
    font-size: 2px;
    background-image: url(src/hangman_pics/letter_base.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    position: absolute;
    top: 40%;
    left: 20%;
    width: 70%; 
    height: 30px;
    content:"";
}

.wrong_letter {
    color: red;
}

.right_letter {
    color:#001fff;
}

.game_over_pic {
    position: absolute;
    top: 27%;
    left: 15%;
    width: 25%;
}

.game_over_words {
    position: absolute;
    right: 10%;
    top: 27%;
    font-size: 10em;
    min-width: 45%;
    text-align: center;
    white-space: nowrap;
}

.try_again_button {
    font-size: 3em;
    position: absolute;
    right: 5%;
    top: 45%;
    font-size: 7em;
    width: 40%;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.game_win_pic {
    position: absolute;
    /* top: 20%; */
    left: 5%;
    bottom: 0;
    width: 40%;
}

@media (max-width: 768px) {
    * {
        font-size: 1em;
    }

    main {
        height: 100vh;
        width: 100vw;
        background-image: url(src/bg-mobile.jpg);
        background-size: contain;
        background-repeat: repeat;
    }
    .hangman_div {
        /* background-color: #001fff; */
        grid-area: 2 / 2 / 6 / -2;

    }

    .hangman_pic {
        height: 100%;
        width: auto;
    }

    .missing_word {
        grid-area: 6 / 2 / 7 / -2;
    }

    .missing_letter {
        font-size: 2em;
    }
    
    .alphabet {
        grid-area: -5 / 2 / -2 / -2;
        font-size: 2em;
        align-content: flex-end;
    }

    .game_over_words {
        width: 80%;
        font-size: 5em;
    }

    .try_again_button {
        font-size: 4em;
        width: 70%;
    }

    .game_win_pic {
        width: 65%;
        left: 10%;
    }

    .game_over_pic {
        width: 70%;
        top: 55%;
    }

    .game_over_words {
        top: 35%;
    }
}