/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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, 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;
}
/* HTML5 display-role reset for older browsers */
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;
}

/* RESET ENDS */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-image: url("./media/leafbackground.jpg");
    font-family: cursive, sans-serif ;
    text-shadow: 1px 1px 1px grey;
}

#container {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, min-content);
    grid-template-columns: repeat(2, min-content);
    justify-content: center;
    text-align: center;
    grid-gap: 5px;
}

#gameTitle {
    color: rgb(0, 0, 0);
    background-color: rgba(53, 103, 62, 0.8);
    background-size: cover;
    background-image: url(./media/woodsign.jpg);
    padding: 10px;
    font-size: 40px;
    border-radius: 2px;
    margin: 5px;
    grid-column: 1 / 3;
}

#gameboardContainer {
    justify-self: center;
    min-width: fit-content;
    min-height: fit-content;
    outline: solid rgb(70, 38, 21);
    background-color: rgba(73, 54, 23, 0.8);
    display: grid;
    justify-content: center;
    text-align: center;
    grid-template-rows: repeat(8, min-content);
    grid-template-columns: repeat(8, min-content);
}

.gamePiece {
    outline: solid rgb(70, 38, 21) 1px;
    height:100%;
    width: 100%;
    min-height: 30px;
    min-width: 30px;
}

/* LEAF STYLE */

.container {
    background: rgba(0,0,0,0);
    width: 350px;
    height: 350px;
}

.leaf {
    transition: transform 1500ms;
    transform-style: preserve-3d;
    height: 5vh;
    width: 5vw;
    max-width: 30px;
    max-height: 30px;
}

@keyframes fadeOut{
    0%{ opacity: 1; }
    100%{ opacity: 0; }
}

.front,
.back {
    background-color: rgba(0,0,0,0);
    height: 90%;
    width: 90%;
    backface-visibility: hidden;
    display: flex;
    margin-left: 2px;
    margin-top: 1px;
}

.front {
    background-image: url('./media/leaf-front.svg');
    background-size: cover;
    background-repeat: no-repeat
}

.back {
    background-image: url('./media/leaf-back.svg');
    background-size: cover;
    background-repeat: no-repeat;
    transform: rotateY(180deg);
}

.red_bug {
    background-image: url('./media/redbug.svg');
    background-size: cover;
    height: 5vh;
    width: 5vw;
    max-width: 30px;
    max-height: 30px;
    background-repeat: no-repeat
}
/* SCOREBOARD STYLE */

#scoreboard {
    color: black;
    font-weight: bold;
    display: grid;
    justify-content: space-around;
    padding: 5px;
    grid-row: 2;
    background-image: url('./media/woodvertical.jpg');
    background-size: cover;
    width: max-content;
    border-radius: 2px;
    align-items: center;
}
#Reset{
    background-color: red;
    color: white;
    font-size: larger;
    font-weight: bold;
    padding: 0.5em;
    margin: 0.5em;
    width: 35%;
    border-radius: 0.5em;
    transition: background-color ease-in-out 0.25s;
    outline: none;
    border: none;
}
#Reset:hover{
    filter: brightness(1.5);
    transform: scale(1.05);
    color:black;
    transition: 0.1s;
}

#Reset:active {
    transform: scale(0.96);
}
