* {
    box-sizing: border-box;
    
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(29, 44, 73);
    color: cornsilk;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 90vh;
}

h1 {
    margin-top: 30px;
    margin-bottom: 70px;
}

.game-container {
    width: 450px;
    position: relative;
    margin: auto;
    height: 300px;
    padding: 20px;
}

svg {
    height: 340px;
    width: 250px;
    fill: transparent;
    stroke: white;
    stroke-width: 4px;
    stroke-linecap: round;
}

.figure-part {
    display: none;
}

.wrong-letter-container {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.wrong-letter-container p {
    font-size: 24px;
}

.wrong-letter-container span {
    margin: 0 0 5px;
}

.word {
    display: flex;
    height: 50px;
}

.letter {
    font-size: 30px;
    text-align: center;
    width: 25px;
    border-bottom: 4px solid rgb(3, 27, 71);
    margin: 0 5px;
}

.popup-container {
    position: fixed;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: rgba(0,0,0,0.3);
    display: none;
    justify-content: center;
}

.popup {
    height: 30%;
    background-color: cornflowerblue;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 10px 8px 7px 2px rgba(0,0,0,0.7);
}

.popup h2 {
    margin: 10px;
    padding: 5px 20px;
}
.popup h3 {
    margin: 7px;
}

.popup button {
    margin: 20px;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: rgb(252, 251, 251);
    color: rgb(20, 97, 240);
    font-weight: bold;
    border: 1px solid black;
}
.popup button:focus {
    outline: 0;
}
.popup button:active {
    transform: scale(0.98);
}

.notification-container {
    position: absolute;
    bottom: -40px;
    background-color: rgba(0,0,0,0.8);
    border-radius: 10px 10px 0 0;
    padding: 10px 20px;
    transition: transform 0.3s ease-in-out;
}

.notification-container p {
    margin: 0;
}

.notification-container.show {
    transform: translateY(-40px);
}