
*,
*::before,
*::after {
    box-sizing: border-box;
    line-height: 1.5em;
  
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Zabrání posouvání pokud canvas překročí velikost obrazovky */
}

.gameCanvas {
    background: #0ff0; 
    background-image: url("../img/bg.png"); 
    background-size: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
}
.gameCanvas2 {
    background: #0ff0; 
    background-image: url("../img/bg2level.png"); 
    background-size: cover;
    background-position: bottom;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
   
}




.modalLight {
    display: block;
    position: fixed;
    z-index: 1;
    padding-top: 0px;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(253, 255, 255, 0.1);   
}

.modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1;
    padding-top: 40px;
    left: 15%;
    bottom: 10%;
    width: 70%;
    height: 50%;
    overflow: hidden;
    background-color:  rgba(88, 196, 38, 0.4);
    background-image: url("../img/squirrel.png"),  url("../img/acorn.png");
    background-repeat: no-repeat, no-repeat;
    background-position: left, 90% 50%;
    background-size: 30%, 20%;
    animation: ukazkova-animace 3s;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}



@keyframes ukazkova-animace {
    0% {
        width: 1px;
        height: 1px;
    }
    100% {
        width: 70%;
        height: 50%;
    }
} 


  /* The Close Button */
  .close {
    color: #fff;
    position: absolute;
    top: 0px;
    right: 25px;
    font-size:5em;
    margin: 0px;
    font-weight: bold;
    padding-bottom: 0px;
    text-decoration: none;
   
}

.close:hover,
.close:focus {
    color: #8d1e27; 
    text-decoration: none;
    cursor: pointer;
}

.startgame { 
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* border: 1px solid red; */
}

.score {
    font-weight: 700;
    font-size: 5em;
    color: #edf9ff;
}



#show1 {
    display: block;
    width: 100%;
    color: #edf9ff;
    height: 35%;
    background-color: #f69033;
    font-weight: 500;
    font-size: 1.1em;
    padding: 10px;
    margin-bottom: 10px;
    /* border: 1px solid red; */
    overflow-y: scroll;
    scrollbar-width: none; /* pro Firefox */
    -ms-overflow-style: none; /* pro Internet Explorer a Edge */
   

   
}
#show1::-webkit-scrollbar{
    display: none;
  }

#show2 {
    display: none;
    color: #edf9ff;
    width: 100%;

    height: 30%;
    background-color: #f69033;
    font-weight: 500;
    font-size: 1.2em;
    padding: 10px;
    /* border: 1px solid red; */
    overflow-y: scroll;
    scrollbar-width: none; /* pro Firefox */
    -ms-overflow-style: none; /* pro Internet Explorer a Edge */
}
#show2::-webkit-scrollbar{
    display: none;
  }
  
#nextLevel {
    display: none;
}
.myButton {
	box-shadow: 0px 1px 20px 2px #8d1e27;
	background:linear-gradient(to bottom, #c33b01 5%, #f69033 100%);
	background-color:#8d1e27;
	border-radius:10px;
	/* border:1px solid #8d1e27; */
	display:inline-block;
	cursor:pointer;
    color: #edf9ff;
	font-size:2em;
	font-weight:700;
	padding:10px 15px;
	text-decoration:none;
	text-shadow:0px 1px 0px #8d1e27;
    opacity: 1;
 
}

.myButton:hover{
    opacity: 0.85;

}
.reduce{
    font-size:1.1em;
	font-weight:700;
	padding: 10px;
    min-width: 150px;
}


.livescore{
    width: 120px;
    height: 120px;
    /* background-color: #f69033; */
    background-image: url("../img/acorn.png"); 
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: right;
    font-size: 2em;
    font-weight: 700;
    color: #1a2713;
    position: relative;
    top: 2.5%;
    left: 2.5%;
    z-index: 99;
    padding: 50px 30px;
    text-align: right;
}


@media only screen and (min-width: 300px) and (max-width: 800px) { 

    .gameCanvas {
        background: #0ff0; 
        background-image: url("../img/bg.png"); 
        background-size: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
    }
    .modal {
        width: 100%;
        height: 100%;
        padding: 10px;
        left: 0%;
        bottom: 0%;
        animation: ukazkova-animace2 3s;
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -o-transition: all 1s ease;
        transition: all 1s ease;
    }



    @keyframes ukazkova-animace2 {
        0% {
            width: 1px;
            height: 1px;
        }
        100% {
            width: 100%;
            height: 100%;
        }
    } 

    .close {
        font-size: 3em;
    }

    .livescore {
        width: 60px;
        height: 60px;
        padding: 22px 35px;
        font-size: 1.4em;
    }
    #show1 {
        height: 50vh;
    }
}