:root{
	--blocking-layer-zindex: 1;
}

#game-canvas{
	margin-top: 4rem;
    text-align: center;
	background: url(../img/test-lq.webp) center/cover;
	position: relative;
	padding: 5rem;
	border: 10px solid var(--secondary);
	border-radius: 50px;
}

#game-canvas::after{
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(32, 32, 29, 0.822);
	border-radius: 50px;
    z-index: var(--blocking-layer-zindex);
}

#start-button{
	position: absolute;
	top: 42.5%;
	left: 35%;
	width: 20vw;
	height: 15vh;
	text-align: center;
	padding: 1rem 1.5rem;
	z-index: 3;
}

.start-game{
	background: url(../img/play-btn.svg) center/contain no-repeat;
	width: 20vw;
	height: auto;
	border: none;
	transition: all 0.25s ease;
}

.start-game:hover{
	transform: scale(1.15);
	cursor: pointer;
}

#modal-text{
	position: absolute;
	top: 20%;
	left: 18.5%;
	text-align: center;
	z-index: 3;
	width: 40vw;
	height: 15vh;
	word-wrap: break-word;
	pointer-events: none;
}

.hide{
	visibility: hidden;
}

.game-title{
    margin-bottom: 4rem;
}


.holes{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px; 

}

.holes img{
	max-width: 100%;
	height: auto;
	max-height: 150px;
}

#hole0{ grid-area: 1 / 2 / 2 / 3;}
#hole1 { grid-area: 1 / 4 / 2 / 5; }
#hole2 { grid-area: 2 / 1 / 3 / 2; }
#hole3 { grid-area: 2 / 3 / 3 / 4; }
#hole4 { grid-area: 2 / 5 / 3 / 6; } 

#hole0, #hole1, #hole2, #hole3, #hole4 {
    position: relative;
    z-index: 1;
}

.nonclickable{
	pointer-events: all; 
}

#animal0, #animal1, #animal2, #animal3, #animal4{
    opacity: 0;
    position: absolute;
    width: 100%;
    top: -10px;
    z-index: -1;
}

#animal0 img, #animal1 img, #animal2 img, #animal3 img, #animal4 img{
	max-width: 50%;
	height: auto;
}

.textbox{
	position: absolute;
    font-size: 16px;
    text-align: center;
    pointer-events: none;
    top: -50px;
	left: -50px;
	right: -50px;
	background: var(--primary);
	font-size: 0.8rem;
	padding: 0.5rem;
	border: white 2px solid;
	border-radius: 20px;
}

.true-false{
    display: none;
}
.timeoutRef{
    display: none;
}

.goUp{
    animation: upAnim 1.3s linear 0s 1 normal forwards;
}

.goDown{
    animation: downAnim 0.6s linear 1 reverse forwards;
}

@keyframes upAnim {
	0% {
		/* transform: scale3d(1, 1, 1); */
        top: 30px;
	}

	40% {
		/* transform: scale3d(0.75, 1.25, 1); */
        top: 0px;
	}

	65% {
		/* transform: scale3d(0.95, 1.05, 1); */
        top: -30px;
		opacity: 1;
	}

	75% {
		/* transform: scale3d(1.05, 0.95, 1); */
        top: -50px;
		opacity: 1;
	}

	100% {
		/* transform: scale3d(1, 1, 1); */
        top: -50px;
		opacity: 1;

	}
}
@keyframes downAnim {
	0% {
		/* transform: scale3d(1, 1, 1); */
        top: -5px;
		opacity: 0;
	}

	30% {
		/* transform: scale3d(1.25, 0.75, 1); */
        top: -10px;
	}

	40% {
		/* transform: scale3d(0.75, 1.25, 1); */
        top: 0px;
	}

	50% {
		/* transform: scale3d(1.15, 0.85, 1); */
        top: 10px;
	}

	65% {
		/* transform: scale3d(0.95, 1.05, 1); */
        top: -30px;
	}

	75% {
		/* transform: scale3d(1.05, 0.95, 1); */
        top: -50px;
	}

	100% {
		/* transform: scale3d(1, 1, 1); */
        top: -50px;
		opacity: 1;
	}
}



#game-canvas{
    cursor: pointer;
}


@media (max-width: 1024px){
	#game-canvas{
		padding: 5rem 1rem;
	}

	#modal-text{
		position: absolute;
		top: 20%;
		left: 27.5%;
		text-align: center;
		z-index: 3;
		width: 40vw;
		height: 15vh;
		word-wrap: break-word;
		pointer-events: none;
	}
	
	#start-button{
		position: absolute;
		top: 40.5%;
		left: 40%;
		width: 20vw;
		height: 15vh;
		text-align: center;
		padding: 1rem 1.5rem;
	}
	#animal0 img, #animal1 img, #animal2 img, #animal3 img, #animal4 img{
		max-width: 70%;
		height: auto;
	}
	.textbox{
		top: -60px;
		left: -50px;
		right: -50px;
		background: var(--primary);
		font-size: 0.6rem;
		padding: 0.5rem;
		border: white 2px solid;
		border-radius: 20px;
	}
}