:root {
    --green: #6aaa64;
    --yellow: #c9b458;
    --black: #212121;
}
/*rgb(27, 27, 27)*/
body {
    background-color: var(--black);
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

#header {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    text-align: center;
    height: 5vh;
}

#header img {
    height: 10vh;
}


@media screen and (orientation:landscape) {
    #word-container {
        width: 18vw;
        height: 60vh;
        /*width: 350px;*/
        /*height: 420px;*/
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 6vh;
        padding-top: 10px;
    }
    
    #opp-word-container {
        width: 18vw;
        height: 60vh;
        /*width: 350px;*/
        /*height: 420px;*/
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 6vh;
        padding-top: 10px;
    }
    
    .word-attempt {
        width: 100%;
        /* height: 15vh; */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        /* margin-bottom: 3vh; */
    } 
    
    .word-letter {
        /* height: 15vh; */
        aspect-ratio: 1;
        margin: 10px 1px;
        background: var(--black);
        border: 2px solid #707070;
        width: 15vh;
        line-height: 65px;
        font-size: 40px;
        font-family: arial;
        text-align: center;
        color: white;
        font-weight: bold;
        transition: all 0.3s;
    }
    
    .player-end {
        position: absolute;
        background-color: #2a2a2abc;
        width: 320px;
        height: 140px;
        color: white;
        border: 2px solid white;
        border-radius: 80px;
        text-align: center;
        padding-top: 1rem;
        margin-top: 10vh;
    }
    #end {
        position: absolute;
        background-color: #2a2a2a;
        width: 33vw;
        border: 5px solid #cbcd6b;
        border-radius: 2vw;
        height: 30vh;
        color: white;
        text-align: center;
        padding-top: 1rem;
        margin-top: 20vh;
        z-index: 100;
    }
    .score {
        color: white;
        margin-top: 10px;
        font-size: 80px;
    }
    .player-end-title {
        color:white;
        font-size: 3rem;
        margin-top: 1rem;
    }
    .fs-notice {
        background-color: rgba(0,0,0,0.4);
        position:absolute;
        left:0;
        top:0;
        z-index:10;
        width:100%;
        height:100%;
        text-align:center;
        line-height:100vh;
        color:white;
        font-size:10vh;
    }
    #winner {
        color:white;
        font-size: 3rem;
        margin-top: 1rem;
    }
}
@media screen and (orientation:portrait) {
    #word-container {
        width: 40vw;
        height: 60vh;
        /*width: 350px;*/
        /*height: 420px;*/
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 8vh;
        padding-top: 10px;
    }
    
    #opp-word-container {
        width: 40vw;
        height: 60vh;
        /*width: 350px;*/
        /*height: 420px;*/
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 8vh;
        padding-top: 10px;
    }
    
    .word-attempt {
        width: 100%;
        /* height: 15vh; */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        /* margin-bottom: 3vh; */
    } 
    
    .word-letter {
        /* height: 15vh; */
        aspect-ratio: 1;
        margin: 5px 1px;
        background: var(--black);
        border: 2px solid #707070;
        width: 15vh;
        line-height: 150%;
        font-size: 100%;
        font-family: arial;
        text-align: center;
        color: white;
        font-weight: bold;
        transition: all 0.3s;
    }
    
    .player-end {
        position: absolute;
        background-color: #2a2a2abc;
        width: 40vw;
        height: 10vh;
        color: white;
        border: 2px solid white;
        border-radius: 80px;
        text-align: center;
        padding-top: 0.6rem;
        margin-top: 10vh;
    }
    #end {
        position: absolute;
        background-color: #2a2a2a;
        width: 75vw;
        border: 5px solid #cbcd6b;
        border-radius: 2vw;
        height: 30vh;
        color: white;
        text-align: center;
        padding-top: 1rem;
        margin-top: 20vh;
        z-index: 100;
    }
    .score {
        color: white;
        margin-top: 10px;
        font-size: 80px;
    }
    .player-end-title {
        color:white;
        font-size: 1rem;
        margin-top: 0.1rem;
    }
    .player-end p {
        font-size: 0.6rem;
    }
    .fs-notice {
        background-color: rgba(0,0,0,0.4);
        position:absolute;
        left:0;
        top:0;
        z-index:10;
        width:100%;
        height:100%;
        text-align:center;
        line-height:100vh;
        color:white;
        font-size:10vw;
    }
    #winner {
        color:white;
        font-size: 8vw;
        margin-top: 1rem;
    }
}

.invalid {
    border-color: rgb(206, 120, 137);
    /* also need animation and -moz-animation */
    -webkit-animation: shake .5s linear;
    transition: all 0.5s;
}
/* also need keyframes and -moz-keyframes */
 @-webkit-keyframes shake {
    8%, 41% {
        -webkit-transform: translateX(-10px);
    }
    25%, 58% {
        -webkit-transform: translateX(10px);
    }
    75% {
        -webkit-transform: translateX(-5px);
    }
    92% {
        -webkit-transform: translateX(5px);
    }
    0%, 100% {
        -webkit-transform: translateX(0);
    }
}



.keyboard {
    position: absolute;
    bottom: 20px;
    max-width:100%;
    overflow:hidden;
    color: white;
	font-family: monospace;
	font-weight: bold;
	/* FlexBox */
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
    text-align: center;
    line-height: 30px;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;

	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;

	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}
.keyboard .keyboard-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;

	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}

@media screen and (orientation:portrait) {
    .keyboard .keyboard-row .key {
    	/*height: 30px;*/
     /*   width: 30px;*/
        height: 3vh;
        width: 1.5vh;
        line-height: 3vh;
    	padding: 10px;
    	border: 1px solid rgba(255, 255, 255, 0.2);
    	margin: 2px;
        border-radius: 10px;
    }
}
@media screen and (orientation:landscape) {
    .keyboard .keyboard-row .key {
    	/*height: 30px;*/
     /*   width: 30px;*/
        height: 3vh;
        width: 3vh;
        line-height: 3vh;
    	padding: 10px;
    	border: 1px solid rgba(255, 255, 255, 0.2);
    	margin: 2px;
        border-radius: 10px;
    }
}

.keyboard .keyboard-row .incorrect-key {
	/*background: rgba(255, 255, 255, 0.2);*/
	background: rgba(255, 255, 255, 0.1);
}
.keyboard .keyboard-row .vertical-center  {
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;

    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.green-key {
    background: #61b861 !important;
}
.yellow-key {
    background: #cbcd6b;
}

#btn-play-again {
    padding: 14px;
    text-align: center;
    background-color: #cbcd6b;
    color: #2a2a2a;
    font-weight: 900;
    font-size: 20px;
    outline: none;
    border-style: none;
    border-radius: 14px;
}

div#credit {
    position: absolute;
    bottom: 1px;
    color: #343434;
    font-size: 0.8rem;
}

#credit a {
    color: inherit;
    font-style: italic;
    text-decoration: none;
}