VOLLYBALL.HTML
<!DOC
TYPE html>
<html lang=”ja”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>バレーボール</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #87CEEB;
}
.court {
position: relative;
width: 600px;
height: 300px;
background-color: #008000;
border: 5px solid white;
}
.net {
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 100%;
background-color: white;
transform: translate(-50%, -50%);
}
.ball {
position: absolute;
width: 50px;
height: 50px;
background-color: yellow;
border-radius: 50%;
top: 20%;
left: 30%;
box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div class=”court”>
<div class=”net”></div>
<div class=”ball”></div>
</div>
</body>
</html>