
html, #indexPage {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#indexPage main{
	display: flex;
	width: 100%;
	height: 100%;
	

	background-repeat: no-repeat;
}



#indexPage #mainBox{

	flex: 8;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-image: url("img/bg.png");
	background-size: cover;

	position: relative;
}
#indexPage #gameName{
	margin: auto;
	width: 40%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

}

#indexPage #gameText{
	width: 100%;
}
#indexPage #start{
	width: 60%;
	margin: auto;
	display: block;
}
#indexPage #linkStart{
	margin-bottom: 150px;
}
#indexPage #mainBox #click{
	height: 0;
	width: 0;
	opacity: 0;

}

#indexPage #bottom{
    position: absolute;
    bottom: 10px;
    right: 20px;

    display: flex;
    align-items: center;
    gap: 15px;
}
#indexPage #moreGames{
	float: right;
	width: 10vw;
	height: 5vw;
}
#indexPage #moreGames img{
	width: calc(50px + 5vw);
	height: auto;
    cursor: pointer;
}

#indexPage #settingsBox{
	width: 0;
	height: 0%;
	background-color: hotpink;
	opacity: 0;
	transition: 0.3s;
}

#indexPage #settings svg{
    width: calc(40px + 5vw)
    height: calc(40px + 5vw);
    cursor: pointer;
    fill: white;
}

#indexPage #settings svg:hover,
#indexPage #moreGames img:hover,
#indexPage #linkStart img:hover{
    transform: scale(1.1);
    transition: 0.2s;
}

#indexPage #settings svg:active,
#indexPage #moreGames img:active,
#indexPage #linkStart img:active{
    transform: scale(0.95);
    transition: 0.2s;
}

#indexPage #settings svg,
#indexPage #moreGames img,
#indexPage #linkStart img{
    filter: 
    	drop-shadow(0 4px 24px rgba(0,0,0,0.8))
        drop-shadow(0 0 32px rgba(255, 215, 0, 0.7));
        transition: 0.2s;
}


h1 {
    position: absolute;
    left: -9999px;
}










#gamePage{
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#gamePage main{
	display: flex;
	width: 100%;
	height: 100vh;

	max-width: 100%;
	

	background-repeat: no-repeat;
}


#gamePage #mainBox{

	flex: 8;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-image: url("img/bg.png");
	background-size: cover;
	position: relative;
}
#gamePage #gameName{
	margin: auto;
	margin-top: 0;
	width: 60%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

}

#gamePage #upgradeButton{
	width: 25%;
	margin-left: 75%;
}

#gamePage #counterBox {
	width: 100%;
	background-color: rgba(0,0,0,0.5);
	border-radius: 5vw;
	color: white;
	
	text-align: center;
}

#gamePage #counter{
	font-size: 24px;
}

#gamePage #click{
	width: 80%;
	max-width: 400px;
}

#gamePage #start{
	width: 60%;
	margin: auto;
	display: block;
}
#gamePage #linkStart{
	margin-bottom: 150px;
}

#gamePage #bottom{
    position: absolute;
    bottom: 10px;
    right: 20px;

    display: flex;
    align-items: center;
    gap: 15px;
}
#gamePage #moreGames{
	float: right;
	width: 10vw;
	height: 5vw;
}
#gamePage #moreGames img{
	width: calc(50px + 5vw);
	height: auto;
    cursor: pointer;
}

#gamePage #settingsBox,
#gamePage #upgradesBox{
	width: 0;
	height: 0%;
	opacity: 0;
	transition: 0.3s;
}


#gamePage #upgradeBox{
	display: flex;
	flex-direction: row;
	height: 100%;
}

#gamePage .upgradeBoxes{

	flex: 1;
}

#gamePage .upgrade{
	width: 100%;
}

#gamePage #autoClickButton{
	background-color: red;
	color: white;
}



#gamePage #settings svg{
    width: calc(40px + 5vw)
    height: calc(40px + 5vw);
    cursor: pointer;
    fill: white;
}

#gamePage #settings svg:hover,
#gamePage #moreGames img:hover,
#gamePage #linkStart img:hover,
#gamePage #click:hover{
    transform: scale(1.1);
    transition: 0.2s;
}

#gamePage #settings svg:active,
#gamePage #moreGames img:active,
#gamePage #linkStart img:active,
#gamePage #click:active{
    transform: scale(0.95);
    transition: 0.2s;
}

#gamePage #settings svg,
#gamePage #moreGames img,
#gamePage #linkStart img,
#gamePage #click{
    filter: 
    	drop-shadow(0 4px 24px rgba(0,0,0,0.8))
        drop-shadow(0 0 32px rgba(255, 215, 0, 0.7));
    transition: 0.2s;
}

@media(max-width:768px){
		.upgradeBoxes{
			display: flex;
			flex-direction: row;		
				
		}
		#indexPage #gameName{
        	width: 65%;
	    }

	    #ads{
	        display: none;
	    }

		#gamePage #click{
			width: calc(max(60%, 250px));
		}

		 .upgradeBoxes{
			width: 100vw;
			height: 50%;


		}
		#upgradeButton{
			width: 40%;
			margin-left: 60%;
		}

		#gamePage main{
			flex-direction: column;
		}
		#gamePage #mainBox{
			height: 80%;
		}

		.upgrade{
			font-size: 10px;
			padding-left: 2px;
			padding-right: 2px;
		}
		#gamePage #moreGames{
			width: calc(50px + 15vw);
		}



	}





#moreGamesPage {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;

    font-family: sans-serif;
    background: #111;
    color: white;
}

#moreGamesPage main{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 40px;
}


#moreGamesPage div{
    width: min(450px, 90%);
    text-align: center;
}

#moreGamesPage div p{
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

#moreGamesPage div img{
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;

    border-radius: 20px;

    box-shadow:0 0 20px rgba(255, 120, 0, 0.25),0 0 40px rgba(0,0,0,0.5);

    transition: 0.2s;
}

#moreGamesPage div img:hover{
    transform: scale(1.03);
}




#moreGamesPage #start img{
    width: 400px;
    max-width: 25vw;

    filter: drop-shadow(0 0 20px rgba(255,140,0,0.4));

    transition: 0.2s;
}

#moreGamesPage #start img:hover{
    transform: scale(1.05);
}


@media (max-width: 768px){
    #moreGamesPage main{
        flex-direction: column;

        overflow: auto;
        padding: 20px;
        gap: 20px;
    }
    #moreGamesPage #start img{
    	max-width: 70vw;
    }
}








#virusPage{
    margin:0;
    height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#111;
    color:white;

    font-family:Arial, sans-serif;
}

#virusPage .popup{
    width:min(700px,90%);
    background:#1d1d1d;

    border:4px solid red;
    border-radius:20px;

    padding:30px;

    box-shadow:0 0 30px red;

    animation: flash 1s infinite;
}

#virusPage h1{
    text-align:center;
    color:red;
}

#virusPage .big{
    font-size:1.5rem;
    text-align:center;
}

#virusPage ul{
    line-height:2;
}

#virusPage button{
    display:block;
    margin:20px auto;

    padding:15px 30px;

    border:none;
    border-radius:10px;

    font-size:1.2rem;
    cursor:pointer;

    background:red;
    color:white;
}

#virusPage button:hover{
    transform:scale(1.05);
}

#virusPage #truth{
    display:none;

    margin-top:20px;
    padding-top:20px;

    border-top:2px solid #555;
}

#virusPage .lesson{
    text-align:center;
    font-size:1.2rem;
    font-weight:bold;
    color:#66ff66;
}

@keyframes flash{
    0%{
        box-shadow:0 0 10px red;
    }
    50%{
        box-shadow:0 0 40px red;
    }
    100%{
        box-shadow:0 0 10px red;
    }
}



#ads{ 
	flex: 2;
	width: 20%;
	height: 100%;
	background-color: lightgray;
}

#adsBox{
    display:flex;
    flex-direction:column;
    gap:15px;
    padding:10px;
}

.ad{
    display:block;
    text-decoration:none;
    background:linear-gradient(45deg,#ff0000,#ff6600);
    color:white;
    padding:15px;
    border-radius:10px;
    font-family:sans-serif;
    transition:0.2s;
}

.ad:hover{
    transform:scale(1.05);
}

.ad h3{
    margin:0;
    font-size:18px;
}

.ad p{
    margin:5px 0 0 0;
    font-size:12px;
    opacity:0.9;
}
