/* Level 3 */

@media (max-width: 1024px) {
body {
margin: 0;
padding: 0;
overflow: hidden;
background: url("../img/level3.png");
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed; /* pour empêcher le défilement de l'arrière-plan avec le contenu */
background-color: #41010F;
}
    
a {
    color: white;
    text-decoration: none;
}
    
#overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-family: Jura;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}


#bosslifeview {
margin-top: 10px;
margin-left: 75px;
width: 100px;
font-weight: bold;
font-family: Jura;
color: white;
position: absolute;
z-index: 999;
}


div.platform-container {
max-width: 90%;
height: 60vh;
position: absolute;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
}

.platform {
width: 30%;
height: 20px;
background-color: #B37259;
position: absolute;
border: 2px solid #350200;
bottom: 0;
}


.platform:nth-child(1) {
right: 0%;
bottom:0;
}


.platform:nth-child(3) {
left: 50%;
transform: translateX(-50%);
top: 75%
}


.hole {
width: 100px;
height: 100px;
position: absolute;
background-color: transparent;
bottom: 0;
}

.character {
width: 30px;
height: 30px;
position: absolute;
bottom: 20px;
left: 10px;
}

#chanceview {
margin-top: 10px;
margin-left: 30px;
width: 150px;
font-weight: bold;
font-family: Jura;
color: white;
position: absolute;
z-index: 999;
}

#cosmonaut {
position: absolute;
left: 5px;
width:50px
}

.enemy {
width: 100px;
height: 100px;
position: absolute;
left: 90%;
    display: none;
}

.info-box {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 60px;
color: #dddddd;
text-align: center;
line-height: 60px;
font-family: Jura;
font-size: 10px;
}

div.gameover {
opacity: 0.5;
background: black;
height: 140px;
top: 20%;
width: 100%;
position: absolute;
z-index: 999;
display: none;
}
div.gameover p {
color: white;
text-align: center;
font-family: Jura;
margin-top: 50px;
font-size: 25px;
}
div.gameover div {
color: white;
text-align: center;
font-family: Jura;
font-size: 12px;
margin-bottom: 10px;
}

#boss {
position: absolute;
left: 5px;
width:100px;
}

.bullet {
width: 5px;
height: 5px;
background-color: yellow; /* Couleur jaune par exemple */
position: absolute;
top: 1;
border-radius: 50%;
}

.bulletcosmonaut {
width: 10px;
height: 3px;
background-color: red; /* Couleur jaune par exemple */
position: absolute;
top: 1
}

#compteur {
font-weight: bold;
font-family: Jura;
color: white;
width: 97%;
position: absolute;
text-align: right;
margin-top: 10px;
z-index: 999;
}

div.startgame {
	opacity: 0.5;
	background: black;
	height: 170px;
	top: 20%;
	width: 100%;
	position: absolute;
	z-index: 999;
	display : block;
}
div.startgame p {
	color: white;
	text-align: center;
	font-family: Jura;
	margin-top: 20px;
	font-size: 25px;
}
div.startgame div {
	color: white;
	text-align: center;
	font-family: Jura;
	font-size: 12px;
	margin-bottom: 10px;
}
div.startgame button {
	background-color: #4CAF50; 
	border: none;
	color: white;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	top: 350px;
}

div.win {
	opacity: 0.5;
	background: black;
	height: 170px;
	top: 20%;
	width: 100%;
	position: absolute;
	z-index: 999;
	display : none;
}
div.win p {
	color: white;
	text-align: center;
	font-family: Jura;
	margin-top: 20px;
	font-size: 25px;
}
div.win div {
	color: white;
	text-align: center;
	font-family: Jura;
	font-size: 12px;
	margin-bottom: 10px;
}
div.win button {
	background-color: #4CAF50; 
	border: none;
	color: white;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	top: 350px;
}
    
.joystick-container {
	position: absolute;
	top: 80%;
	left: 35px; /* Aligner l'étoile à gauche */
	transform: translateY(-50%); /* Centrer verticalement */
	display: flex;
	flex-direction: column;
    z-index: 999;
}

#joystick {
    width: 150px;
    height: 150px;
    background-color: #3498db;
    border-radius: 50%;
    position: relative;
    opacity : 0.4;
    z-index: 999;
}

#joystick .stick {
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity : 1;
    z-index: 999;
}

#jumpButton {
position: absolute;
top: 80%; /* Position du haut à 400px */
background-color: #3498db;
color: #fff;
font-size: 16px;
padding: 10px 20px;
cursor: pointer;
border: none;
border-radius: 5px;
opacity : 0.4;
width : 100px;
z-index: 999;
right: 5%;
}
    
}
@media only screen and (min-width: 1024px) {
body {
margin: 0;
padding: 0;
overflow: hidden;
background: url("../img/level3.png");
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed; /* pour empêcher le défilement de l'arrière-plan avec le contenu */
background-color: #41010F;   
}

a {
    color: white;
    text-decoration: none;
}
    
#overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-family: Jura;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#bosslifeview {
margin-top: 10px;
margin-left: 150px;
width: 100px;
font-weight: bold;
font-family: Jura;
color: white;
position: absolute;
z-index: 999;
}

   .joystick-container {
	position: absolute;
	top: 80%;
	left: 35px; /* Aligner l'étoile à gauche */
	transform: translateY(-50%); /* Centrer verticalement */
	display: flex;
	flex-direction: column;
    z-index: 999;
}

#joystick {
    width: 150px;
    height: 150px;
    background-color: #3498db;
    border-radius: 50%;
    position: relative;
    opacity : 0.4;
    z-index: 999;
}

#joystick .stick {
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity : 1;
    z-index: 999;
}


#jumpButton {
position: absolute;
top: 80%; /* Position du haut à 400px */
background-color: #3498db;
color: #fff;
font-size: 16px;
padding: 10px 20px;
cursor: pointer;
border: none;
border-radius: 5px;
opacity : 0.4;
width : 100px;
z-index: 999;
right: 5%;

}

div.platform-container {
max-width: 90%;
height: 70vh;
position: absolute;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
}

.platform {
width: 20%;
height: 20px;
background-color: #B37259;
position: absolute;
border: 2px solid #350200;
bottom: 0;
}


.platform:nth-child(1) {
right: 0%;
bottom:0;
}


.platform:nth-child(3) {

    left: 50%;
    transform: translateX(-50%);
 top: 75%
}



.hole {
width: 100px;
height: 100px;
position: absolute;
background-color: transparent;
bottom: 0;
}

.character {
width: 30px;
height: 30px;
position: absolute;
bottom: 20px;
left: 10px;
}

#chanceview {
margin-top: 10px;
margin-left: 100px;
width: 150px;
font-weight: bold;
font-family: Jura;
color: white;
position: absolute;
z-index: 999;
}

#cosmonaut {
position: absolute;
left: 5px;
width:50px
}

.enemy {
width: 200px;
height: 200px;
position: absolute;
left: 90%;
    display: none;
}

.info-box {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 60px;
color: #dddddd;
text-align: center;
line-height: 60px;
font-family: Jura;
font-size: 10px;
}

div.gameover {
opacity: 0.5;
background: black;
height: 140px;
top: 20%;
width: 100%;
position: absolute;
z-index: 999;
display: none;
}
div.gameover p {
color: white;
text-align: center;
font-family: Jura;
margin-top: 50px;
font-size: 25px;
}
div.gameover div {
color: white;
text-align: center;
font-family: Jura;
font-size: 12px;
margin-bottom: 10px;
}

#boss {
position: absolute;
left: 5px;
width:200px;
}

.bullet {
width: 5px;
height: 5px;
background-color: yellow; /* Couleur jaune par exemple */
position: absolute;
top: 1;
border-radius: 50%;
}

.bulletcosmonaut {
width: 10px;
height: 3px;
background-color: red; /* Couleur jaune par exemple */
position: absolute;
top: 1
}

#compteur {
font-weight: bold;
font-family: Jura;
color: white;
width: 97%;
position: absolute;
text-align: right;
margin-top: 10px;
z-index: 999;
}

div.startgame {
	opacity: 0.5;
	background: black;
	height: 170px;
	top: 20%;
	width: 100%;
	position: absolute;
	z-index: 999;
	display : block;
}
div.startgame p {
	color: white;
	text-align: center;
	font-family: Jura;
	margin-top: 20px;
	font-size: 25px;
}
div.startgame div {
	color: white;
	text-align: center;
	font-family: Jura;
	font-size: 12px;
	margin-bottom: 10px;
}
div.startgame button {
	background-color: #4CAF50; 
	border: none;
	color: white;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	top: 350px;
}

div.win {
	opacity: 0.5;
	background: black;
	height: 170px;
	top: 20%;
	width: 100%;
	position: absolute;
	z-index: 999;
	display : none;
}
div.win p {
	color: white;
	text-align: center;
	font-family: Jura;
	margin-top: 20px;
	font-size: 25px;
}
div.win div {
	color: white;
	text-align: center;
	font-family: Jura;
	font-size: 12px;
	margin-bottom: 10px;
}
div.win button {
	background-color: #4CAF50; 
	border: none;
	color: white;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	top: 350px;
} 
    
#jumpButton {

}
        
}