@font-face {
	font-family: "Gill Sans MT";
	src: url("Gill Sans MT.ttf") format("ttf"), url("gillsansregular.woff") format("woff");
	/*src: url("Gill Sans MT.ttf") format("ttf");*/
}

* {
	font-family: "Gill Sans MT", sans-serif;
	border:none;
	background: transparent;
	margin: 0px;
	margin-block-start: 0px;
	margin-block-end: 0px;
	margin-inline-start: 0px;
	margin-inline-end: 0px;
}

*::before, *::after {
	box-sizing: border-box;
}
/*
*:focus, .receiver:focus {
	outline: 2px solid crimson;
}*/

*:not([data-focus="true"]):focus {
	outline: none;
}

*[data-focus="true"], .receiver[data-focus="true"], section:nth-child(3) [data-gmi][data-focus="true"]  {
	outline: 2px solid crimson;
}

body:focus {
	outline: none;
}

main {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0 auto;
}

main, section, #cover {
	width: 700px;
	height: 500px;
	/*background-color: mediumseagreen;*/
	background-color: rgb(32,180,113);
} 

main[data-modal-active="true"] section:nth-of-type(3){
	filter: brightness(0.6);
}

section {
	position: absolute;
	top: 0px;
	left: 0px;
	display: block;
	overflow: hidden;
}

section:nth-child(1) {
	z-index: 1;
	text-align: center;
	
}

section:nth-child(2) {
	padding-top:40px;
	z-index: 0;
	text-align: center;
	color: white;
}

section:nth-child(3) {
	z-index: 0;
    background-image: linear-gradient(90deg, rgb(153,184,224) 50%, rgb(48,95,158) 50%);
    position: relative;
    text-align: center;
}

[data-hidden] {
	display: none;
}

button {
	/*background-image: linear-gradient(white, rgba(255,255,255,0.4));
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#66ffffff',GradientType=0 );*/
	text-transform: capitalize;
	height: 34px;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
}

button {
	position: relative;
	padding: 8px;
	border-radius: 3px;
	background: linear-gradient(#d8e3f3, #a1b6d5) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#b6b9bb, #596064) 0 0 / 100% 100% no-repeat;
    /*background:linear-gradient(#d8e3f3, #a1b6d5) 0px 0px / calc(100% - 2px) calc(100% - 1px) no-repeat,
        linear-gradient(#b6b9bb, #596064) 0 0 / 100% 100% no-repeat;*/
    cursor: pointer;
    border: none;
    -webkit-appearance:none;
    -moz-appearance:none;
    -ms-appearance:none;
    appearance: none;
}

button:hover {
	background: linear-gradient(#d8e3f3, #a1b6d5) 2px 1px / calc(100% - 4px) calc(100% - 2px) no-repeat, linear-gradient(#009dff, #009dff) 0 0 / 100% 100% no-repeat;
}


[data-move] {
	/*animation: 2s moveRight linear;*/
	animation: 0.5s moveRight linear;
}

h1 {
	font-weight: 500;
	margin-top: 90px;
    font-size: 42px;
    margin-left: auto;
    margin-right: auto;
    width: 530px;
    padding: 3px;
}

cite {
	display: block;
	color: white;
	margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    width: 530px;
    padding: 3px;
    font-size: 16px;

}

h1, cite, p:not(#congratulations) {
    /*color: rgb(213,239,252);
    for accessibility */
    color: #112b38;
} 


section:nth-child(2) p {
	text-align: left;
	/*margin-left: 100px;*/
	margin-left: auto;
	margin-right: auto;
	text-indent: 30px;
	font-size: 18px;
	margin-bottom: 20px;
	width: 77%;
	padding: 10px;
}

.receiver, section:nth-child(3) [data-gmi] {
    width: 135px;
    height: 100px;
    background-size:135px 100px;
}

.receiver, .receiver:focus {
	position: absolute;
	background-color: rgb(169,165,172);
	border-radius: 4px;
	z-index: -1;
}

.receiver, .receiver:not([data-focus="true"]):focus {
	outline: 1px solid black;
}

section:nth-child(3) .receiver [data-gmi] {
	position: static;
}

section:nth-child(3) [data-gmi] {
    position: absolute;
    left: calc(50% - 60px);
    border:none;
    outline: 10px solid rgba(0,0,0,0.001);
}

section:nth-child(3) [data-gmi]:not([data-focus="true"]):focus {
    outline: 10px solid rgba(0,0,0,0.001);
}

section:nth-child(3) [data-gmi][data-pick="true"] {
    position: absolute;
    left: calc(50% - 60px);
    z-index: 99;
}

section:nth-child(3) [data-gmi][data-copied], section:nth-child(3) [data-gmi][data-copied]:hover {
	outline: 3px solid chartreuse;
}

section:nth-child(3) h2 {
	font-weight: 200;
}

#photosynthesis, #respiration {
	position: absolute;
	top: 3px;
	text-transform: capitalize;
}


#photosynthesis {
	left: 20px;
}

#respiration {
	left: 520px;
}

#stack {
	position: absolute;
	/*full
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	*/
	/*just*/
	top: 39px;
    left: 170px;
    width: 335px;
    height: 420px;
	
	box-sizing: border-box;
}

/*#stack:focus {
	outline: 4px solid crimson;
}*/

#start {
	width: 150px;
	height: 50px;
	margin-top: 180px;
}

#cache {
	display: none;
}

#modal {
	background: transparent;
	filter: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

#modal figure {
	width: 80%;
	height: auto;
}



#modal figure img {
	width: 100%;
	height: auto;
}

button#closeModal {
    background-image: url(../images/hd/close.png);
    width: 25px;
    height: 25px;
    position: absolute;
    top: 55px;
    right: 80px;
    padding: 0px;
}

#skip {
	margin-left: 500px;
	padding: 1px 14px;
}

[data-cat="photosynthesis"] {
	left: 20px;
	position: absolute;
}

[data-cat="respiration"] {
	/*left: 520px;*/
	left: 490px;
	position: absolute;
}

h2 {
	top: 3px;
	text-transform: capitalize;
	position: absolute;
}

h2[data-cat="respiration"] {
	color: white; 
	/* for AAA accessibility */
}

#cover {
	background: transparent;
}

#check {
	/*background: radial-gradient(transparent, white);*/
	position: absolute;
    top: 460px;
    left: 308px;
    font-family: Arial, sans-serif;
}


#victory:not([data-hidden]) {
	display: inline-block;
	font-size: 30px;
	animation: 2s bounce;
	animation-fill-mode: forwards;
}

#restart {
	padding: 3px 24px;
	text-transform: lowercase;
	margin-top: 45px;
	border-radius: 3px;
}

/*main {
	height: 2009px;
}

html::-webkit-scrollbar {
	width: 20px;
}

html::-webkit-scrollbar-thumb {
	background: linear-gradient(red, hotpink);
}

html::-webkit-scrollbar-track {
	background: linear-gradient(black, green);
}*/



@keyframes bounce {
	0% {
		margin-top: -50px;
	}

	40% {
		margin-top: 250px;
	}

	60% {
		margin-top: 150px;
	}

	100% {
		margin-top: 200px;
	}


}

@keyframes moveRight {
	to {
		margin-left: 800px;
	}
}




button:not(#closeModal)::before,
button:not(#closeModal)::after {
    content: "";
    position: absolute;
    display: inline-block;
    top: 1px;
    width: 5px;
    height: calc(100% - 2px);
    background: linear-gradient(#d8e3f3, #a1b6d5) 0 0 / 100% 100% no-repeat;
    border-radius: inherit;
}

button:not(#closeModal):before {
    right: 1px;
}

button:not(#closeModal):after {
    left: 1px;
}

*.disabled,
*[disabled] {
    opacity: 0.5 !important;
    cursor: default !important;
    pointer-events: none;
}

