*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body{
    height: 100%;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    overflow: hidden;
}


.page{
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    padding: 10px 10px 15px;
}


.container{
    text-align: center;
    border-bottom: 1px solid #000000;
    width: 100%;
    padding-bottom: 5px;
}


#pendu-container {
    position: relative;
    width: 260px;
    max-width: 80vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#pendu-canvas {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    width: 100%;
    height: auto;
    max-height: 60vh;
}

#pendu-steps {
    text-align: center;
    margin-top: 5px;
    font-size: 1rem;
}


.playground{
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#wordToFind{
    border: 1px solid #FFFFFF;
    letter-spacing: 5px;
    font-size: 1.1rem;
}


#tries {
    font-weight: bold;
    color: #ff0000;
}


input{
    width: 100%;
    font-size: 1rem;
    padding: 8px;
}

button{
    width: 100%;
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
}

button:active{
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

#testButton{
    background: #259b50;
    border: none;
    color: #ffffff;
}

#nextWord{
    background: #1e9acb;
    border: none; 
    color: #ffffff;
}


#message{
    min-height: 1.5em;
    font-size: 0.9rem;
}


@media (max-height: 600px){
    #pendu-canvas{
        max-height: 45vh;
    }
    body{
        font-size: 1em;
    }
}
