@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
* {
    padding: 0;
    margin: 0;
    font-family: "Open Sans", sans-serif;
	box-sizing: border-box;
}
body {
    display: flex;
    align-items: center;
    background: #5E63AE;
    justify-content: center;
    padding: 0 10px;
    min-height: 100vh;
}
.container {
    background: #fff;
    display: block;
    gap: 70px;
    padding: 60px 40px;
    border-radius: 10px;
	width: 800;
    align-items: flex-end;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
	position: absolute;
	margin-top: 100px;
	padding-bottom: inherit;
	top: 85;
}
.section {
    text-align: center;
    color: #ffffff;
	margin: auto;
    font-size: 4.50rem;
    top: 5%;
	width: 100%;
    position: absolute;
}
.game-box .word-display {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    justify-content: left;
}
.word-display .word {
	width: 28px;
    word-spacing: normal;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 3px solid #000;
}
.word-display .letter {
    width: 28px;
    border-bottom: 3px solid #000;
    text-align: center;
    font-weight: 600;
    margin-bottom: 40px;
    font-size: 2rem;
    text-transform: uppercase;
}
.word-display .letter.guessed {
    border-color: transparent;
    margin: -40px 0 35px;
}
.game-box h4 {
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
}
.game-box h4 b {
    font-weight: 600;
}
.game-box .guesses-text b {
    color: #ff0000;
}
.game-box h4 img {
	vertical-align: bottom;
    height: 30px;
    width: 140px;
    bottom:0;
}
.game-box h4 img[src="images/pending.png"] {
    align: center;
}
.keyboard {
    position: relative;
    justify-content: normal;
	text-align: center;
	display: block;
}
:where(.game-modal, .keyboard) button {
    border: none;
    color: #fff;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 1.25rem;
    background: #5E63AE;
}
:where(.played-modal, .keyboard) button {
    color: #fff;
    background: #5E63AE;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    outline: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}
.keyboard button {
	height: 70px;
    width: calc(100% / 10 - 7px);
	margin-top: 5px;
    margin-left: 5px;
	justify-content: center;
	touch-action: manipulation;
}
.keyboard button[disabled] {
    pointer-events: none;
    opacity: 0.7;
}
:where(.game-modal, .keyboard) button:hover {
    background: #8286c9;
}
:where(.played-modal, .keyboard) button:hover {
    background: #8286c9;
}
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    padding: 0 10px;
}
.played-modal {
    top: 0;
    left: 0;
    width: 100%;
    position: fixed;
    height: 100%;
    pointer-events: none;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    z-index: 9999;
    justify-content: center;
    padding: 0 10px;
    transition: opacity 0.3s ease;
}
.game-modal.show {
    opacity: 1;
    transition: opacity 0.3s 0.3s ease;
    pointer-events: auto;
}
.played-modal.show {
    opacity: 1;
    transition: opacity 0.3s 0.3s ease;
    pointer-events: auto;
}
.game-modal .content {
    max-width: 420px;
    padding: 30px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.played-modal .content {
    width: 100%;
    padding: 30px;
    text-align: center;
    max-width: 420px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.game-modal img {
    max-width: 130px;
    margin-bottom: 20px;
}
.played-modal img {
    max-width: 130px;
    margin-bottom: 20px;
}
.game-modal img[src="images/victory.gif"] {
    margin-left: -10px;
}
.played-modal img[src="images/victory.gif"] {
    margin-left: -10px;
}
.game-modal h4 {
    font-size: 1.53rem;
}
.played-modal h4 {
    font-size: 1.53rem;
}
.game-modal p {
    font-size: 1.15rem;
    margin: 15px 0 30px;
    font-weight: 500;
}
.played-modal p {
    font-size: 1.15rem;
    margin: 15px 0 30px;
    font-weight: 500;
}
.game-modal p b {
    color: #5E63AE;
    font-weight: 600;
}
.played-modal p b {
    color: #5E63AE;
    font-weight: 600;
}
.game-modal button {
    padding: 12px 23px;
}
.played-modal button {
    padding: 12px 23px;
}
@media (max-width: 760px) {
	.section {
		top: 0;	
	}
	.keyboard {
		position: relative;
		justify-content: normal;
		display: block;
		text-align: center;
		
	}
	.keyboard button {
		width: calc(100% / 10 - 5px);
		height: 60px;
		touch-action: manipulation;
	}	
	.container {
		top: 10px;
		width: 95%;
		position: absolute;
		padding: 60px 15px;
	}
	.game-box .word-display {
		justify-content: left;
	}
	.word-display .letter {
		font-size: 2rem;
		text-align: center;
		width: 28px;
		font-weight: 600;
		margin-bottom: 40px;
		border-bottom: 3px solid #000;
		text-transform: uppercase;
	}
	.game-box h4 {
		font-size: 1.2rem;
	}
	
}
@media (max-width: 540px) {
	.word-display .letter {
		width: 18px;
		font-size: 2rem;
		text-align: center;
		font-weight: 600;
		margin-bottom: 40px;
		text-transform: uppercase;
		border-bottom: 3px solid #000;
	}
}
@media (max-width: 240px) {
	.word-display .letter {
		width: 7px;
		font-size: 1.2rem;
		text-align: center;
		font-weight: 600;
		margin-bottom: 40px;
		text-transform: uppercase;
		border-bottom: 3px solid #000;
	}
	.keyboard button {
		height: 32px;
		touch-action: manipulation;
	}
}