mirror of
https://github.com/MrEidam/PetPet.git
synced 2026-04-17 15:43:31 +00:00
Number Quess 6 Renamed+designe; Dice war Optimilization for smaller screens
This commit is contained in:
128
Games/NumberQuess6/style.css
Normal file
128
Games/NumberQuess6/style.css
Normal file
@@ -0,0 +1,128 @@
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background-color: #333;
|
||||
background-image: url("./pc.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
img{
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 1.25rem;
|
||||
border-radius: 15px;
|
||||
filter: drop-shadow(1.5px 1.5px 6px #aaa);
|
||||
}
|
||||
h1{
|
||||
filter: drop-shadow(1.5px 1.5px 3px #000);
|
||||
}
|
||||
.ques{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.ques p{
|
||||
margin-right: .5rem;
|
||||
filter: drop-shadow(1.5px 1.5px 6px #333);
|
||||
}
|
||||
.ques select{
|
||||
color: #fff;
|
||||
border: none;
|
||||
background: none;
|
||||
border-radius: 7px;
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow:
|
||||
inset 1.5px 1.5px 3px #fff,
|
||||
10px 10px 20px #333;
|
||||
}
|
||||
.ye{
|
||||
background: #333;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
button{
|
||||
text-transform: uppercase;
|
||||
height: 69px;
|
||||
width: 69px;
|
||||
margin-top: 1rem;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
background: none;
|
||||
color: #fff;
|
||||
text-shadow: 2px 2px 2.5px #333;
|
||||
/*filter: drop-shadow(10px 10px 20px #333);*/
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow:
|
||||
inset 2.5px 2.5px 5px #fff,
|
||||
10px 10px 20px #333;
|
||||
}
|
||||
.que{
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.result{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
filter: drop-shadow(1.5px 1.5px 6px #000);
|
||||
text-transform: uppercase;
|
||||
font-size: 100px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.won{
|
||||
color: #0f0;
|
||||
animation: pop 0,5s ease-in-out;
|
||||
transition: .5s;
|
||||
}
|
||||
|
||||
.lost{
|
||||
color: #f00;
|
||||
animation: pop 0,5s ease-in-out;
|
||||
transition: .5s;
|
||||
}
|
||||
|
||||
@keyframes pop{
|
||||
0%{
|
||||
scale: 0.1;
|
||||
}
|
||||
100%{
|
||||
scale: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.gameBack{
|
||||
padding: 1rem;
|
||||
height: 400px;
|
||||
width: 300px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
backdrop-filter: blur(5px);
|
||||
border-radius: 50px;
|
||||
box-shadow:
|
||||
inset 10px 10px 20px #fff,
|
||||
10px 10px 20px #333;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px){
|
||||
body{
|
||||
background-image: url("./mobile.jpg");
|
||||
}
|
||||
.result{
|
||||
font-size: 45px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user