html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, input, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* 
font-family: 'Josefin Sans', sans-serif;
font-family: 'Mukta', sans-serif; 
font-family: 'Varela Round', sans-serif;
*/

#mainContainer {
    background: url(../images/face.png) no-repeat fixed center top transparent; 
    background-size: cover;
    min-height: 100vh;
    padding-top: 40px;
    font-family: 'Audiowide', sans-serif; 
}

#gameContainer {
    color: #fff;
}

#textContainer > div {
    text-align: justify;
    margin: 0 auto;
    width: 80%;
}

/* ----- ALL BORDER BOX SHADOW SETTINGS BELOW ----- */

#instructionsBody, .modal {
    background-color: rgba(25, 28, 30, 0.65);
    box-shadow: -1px -1px 14px 10px rgb(91, 255, 249);
}

/* ----- ALL BORDER BOX SHADOW SETTINGS ABOVE ----- */

#gameTitle {
    color: rgb(128, 11, 166);
    padding-top: 5px;
    font-size: 22px;
    font-weight: 600;
    text-shadow:
        -1px -1px 2px rgb(91, 255, 249),
        1px 1px 2px rgb(91, 255, 249),
        -1px 1px 2px rgb(91, 255, 249),
        1px -1px 2px rgb(91, 255, 249);
    letter-spacing: 1px;
}

#instructionsHead {
    font-size: 22px;
    text-shadow:
        -1px -1px 2px rgb(128, 11, 166),
        1px 1px 2px rgb(128, 11, 166),
        -1px 1px 2px rgb(128, 11, 166),
        1px -1px 2px rgb(128, 11, 166);
    letter-spacing: 1px;
}

#instructionsBody {
    font-size: 12px;
    line-height: 1.3;
    padding: 10px;
}

#gameSettings {
    display: flex;
    justify-content: center;
    text-align: justify;
    margin: 0 auto;
    padding: 15px 0;
}

.gameSetting {
    display: flex;
    flex-direction: column;
    height: 40px;
    justify-content: space-between;
    object-position: center;
    align-items: center;
    margin: 0 auto;
}

.gameSetting > p {
    text-shadow:
        -1px -1px 2px rgb(128, 11, 166),
        1px 1px 2px rgb(128, 11, 166),
        -1px 1px 2px rgb(128, 11, 166),
        1px -1px 2px rgb(128, 11, 166);
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 5px;
}

.gsLeft {
    margin-right: 15px;
    margin-left: auto;
}

.gsRight {
    margin-left: 15px;
    margin-right: auto;
}

select {
    width: 60px;
    height: 30px;
    background-color: rgb(0, 81, 131);
}

select, button {
    color: white;
    font-weight: 500;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid white;
}

#submitGuess:disabled {
    background-color: rgb(145, 145, 145);
    color: #ccc;
}

h1, h2 {
    text-align: center;
}

#playContainer {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 5fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "inputs"
        "buttons"
        "mysteryBox";
    width: 100vw;
    justify-items: center;
}

#inputContainer, #buttonContainer, #secretCodeContainer, .turnContainer, .guessContainer, .dotContainer, .blackContainer, .whiteContainer {
    display: flex;
}

/* ----- ALL FEEDBACK BOX SIZES BELOW ----- */

input, .turn, .guessPeg, .mysteryPeg {
    height: 50px;
    width: 50px;
    font-size: 26px;
}

/* ----- ALL FEEDBACK BOX SIZES ABOVE ----- */

input[type="text"] {
    text-align: center;
    margin: 1px;
    border: 1px solid #888888;

}

input:focus {
    outline: none;
    border:1px solid rgb(0, 81, 131);
    box-shadow: 0 0 3px 3px rgb(113, 158, 206);
}

input:invalid {
    box-shadow: 0 0 5px 3px red;
}

#inputContainer {
    grid-area: inputs;
    grid-column-start: 2;
    grid-column-end: 3;
}

#buttonContainer {
    grid-area: buttons;
    width: 224px;
    justify-content: space-around;
    grid-column-start: 2;
    grid-column-end: 3;
    padding: 15px 0;
}

#resetGame {
    background-color: rgb(117, 0, 0)
}

#submitGuess {
    background-color: rgb(0, 90, 5)
}

#secretCodeContainer {
    grid-area: mysteryBox;
    grid-column-start: 2;
    grid-column-end: 3;
}

.guessPeg, .mysteryPeg {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
    border: 1px #999999 solid;
    margin: 1px;
    text-shadow:
		-1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000,
		1px 1px 0 #000;
}

#feedbackContainer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100vw;
    justify-items: center;
}

.turnContainer {
    grid-column-start: 1;
    grid-column-end: 2;
    justify-self: right;
    align-items: center;
    margin-right: 5px;
}

.turn {
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
    font-weight: 800;
    text-shadow:
    -1px -1px 2px rgb(128, 11, 166),
    1px 1px 2px rgb(128, 11, 166),
    -1px 1px 2px rgb(128, 11, 166),
    1px -1px 2px rgb(128, 11, 166);
}

.guessContainer {
    grid-column-start: 2;
    grid-column-end: 3;
}

.dotContainer {
    flex-direction: column;
    grid-column-start: 3;
    grid-column-end: 4;
    margin-left: 10px;
    justify-content: center;
    justify-self: left;
}

.dot {
    border-radius: 50%;
    margin: 1px;
    height: 15px;
    width: 15px;
}

.white {
    background-color: white;
    border: black solid 1px;
}

.black {
    background-color: rgb(186, 37, 37);
    border: white solid 1px;
}

.guessPeg1 {
    background-color: rgba(255, 0, 0, .8);
}

.guessPeg2 {
    background-color: rgba(255, 165, 0, .8);
}

.guessPeg3 {
    background-color: rgba(255, 255, 0, .8);
}

.guessPeg4 {
    background-color: rgba(0, 128, 0, .8);
}

.guessPeg5 {
    background-color: rgba(0, 0, 255, .8);
}

.guessPeg6 {
    background-color: rgba(75, 0, 130, .8);
}

.guessPeg7 {
    background-color: rgba(128, 0, 128, .8);
}

.guessPeg8 {
    background-color: rgba(98, 98, 98, 0.8);
}

.guessPeg9 {
    background-color: rgba(39, 29, 22, 0.8);
}

.mysteryPeg {
    background-color: rgba(0, 0, 0, .5);
}

#victoryModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto;
    background-color: rgba(56, 141, 221, 0.4);
}

.modal {
    background-color: rgba(7, 58, 95, .9);
    color: white;
    margin: 45% auto;
    padding: 20px;
    width: 80%;
    font-size: 16px;
    text-align: center;
}

h3 {
    font-size: 30px;
}

@media only screen and (min-width: 500px) {
    #textContainer > div {
        width: 70%;
    }

    #gameTitle {
        padding-top: 10px;
        font-size: 60px;
    }
    
    #instructionsHead {
        font-size: 30px;
    }

    #instructionsBody {
        font-size: 14px;
        line-height: 1.3;
        border-radius: 3px;
    }

    #gameSettings {
        padding: 25px;
    }

    .gameSetting {
        height: 50px;
    }
    
    .gsLeft {
        margin-right: 17px;
        margin-left: auto;
    }
    
    .gsRight {
        margin-left: 17px;
        margin-right: auto;
    }
    
    select, button {
        font-size: 16px;
    }

    input[type="text"] {
        margin: 2px;
    }

    #buttonContainer {
        padding: 10px 0;
        margin: 5px; 
    }

    .mysteryPeg, .guessPeg {
        margin: 2px;
    }

    .modal {
        background-color: rgba(7, 58, 95, .9);
        color: white;
        margin: 15% auto;
        width: 40%;
        font-size: 20px;
    }
}

@media only screen and (min-width: 768px) {
    #textContainer > div {
        width: 60%;
    }
    
    #instructionsBody {
        font-size: 16px;
        line-height: 1.3;
    }
}