You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Code2C/games.html

73 lines
1.7 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Game Selection</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
padding: 50px;
}
h1 {
font-size: 36px;
color: #333;
margin-bottom: 40px;
}
.game-option {
font-size: 24px;
margin: 20px;
padding: 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
width: 300px;
}
.game-option:hover {
background-color: #45a049;
}
.game-container {
display: flex;
flex-direction: column;
align-items: center;
}
.game-container button {
margin: 10px;
padding: 15px 30px;
font-size: 18px;
cursor: pointer;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
}
.game-container button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<h1>Select Your Game</h1>
<div class="game-container">
<button class="game-option" onclick="window.location.href='math game.html'">Math Battle</button>
<button class="game-option" onclick="window.location.href='hangman.html'">Hangman</button>
<button class="game-option" onclick="window.location.href='guess.html'">Guess it</button>
</div>
</body>
</html>