mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2025-12-16 14:07:49 +01:00
114 lines
1.7 KiB
CSS
114 lines
1.7 KiB
CSS
/* General styles */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
color: #ffffff;
|
|
background-color: #000000;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100vh;
|
|
}
|
|
|
|
label {
|
|
margin: 10px 0 5px;
|
|
}
|
|
|
|
input {
|
|
padding: 10px;
|
|
margin: 5px 0 20px;
|
|
width: 200px;
|
|
}
|
|
|
|
button {
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#game1 {
|
|
width: 810px;
|
|
height: 500px;
|
|
position: relative;
|
|
background-color: #000;
|
|
overflow: hidden;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.game-code {
|
|
font-size: 24px;
|
|
position: absolute;
|
|
top: 10px;
|
|
}
|
|
|
|
#gameCode {
|
|
left: 10px;
|
|
}
|
|
|
|
.name {
|
|
font-size: 24px;
|
|
position: absolute;
|
|
top: 30px;
|
|
}
|
|
|
|
#player1-name {
|
|
left: 10px; /* Adjust player score position */
|
|
}
|
|
|
|
#player2-name {
|
|
right: 10px; /* Adjust bot score position */
|
|
}
|
|
|
|
#game2 {
|
|
top: 60px;
|
|
width: 800px;
|
|
height: 400px;
|
|
position: absolute;
|
|
background-color: #000;
|
|
overflow: hidden;
|
|
border: 2px solid red; /* Add red border */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.score {
|
|
font-size: 24px;
|
|
position: absolute;
|
|
top: 10px;
|
|
}
|
|
|
|
#player1-score {
|
|
left: 50px; /* Adjust player score position */
|
|
}
|
|
|
|
#player2-score {
|
|
right: 50px; /* Adjust bot score position */
|
|
}
|
|
|
|
.pad {
|
|
width: 10px;
|
|
height: 100px;
|
|
background-color: #ffffff;
|
|
position: absolute;
|
|
}
|
|
|
|
#player1-pad {
|
|
left: 10px;
|
|
}
|
|
|
|
#player2-pad {
|
|
right: 10px;
|
|
}
|
|
|
|
#ball {
|
|
width: 20px;
|
|
height: 20px;
|
|
background-color: #ff0000;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
}
|