1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Snake/sources/css/style.css

157 lines
3.1 KiB
CSS
Raw Normal View History

2021-03-11 09:39:52 +01:00
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
2021-03-23 08:21:05 +01:00
html{
height: 100%;
2021-03-23 09:23:37 +01:00
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
2021-03-23 08:21:05 +01:00
}
2021-03-11 09:39:52 +01:00
body{
2021-03-23 08:21:05 +01:00
height: 100%;
2021-03-11 09:39:52 +01:00
width: 100%;
margin: 0;
padding: 0;
2021-03-23 08:21:05 +01:00
background-image: url("../images/51d84548-b50c-4f95-8e9e-d56c646d3ac4.gif");
2021-03-11 09:39:52 +01:00
background-repeat: no-repeat;
2021-03-18 10:29:12 +01:00
background-size: cover;
2021-03-23 08:21:05 +01:00
backdrop-filter: blur(5px);
2021-03-11 09:39:52 +01:00
}
h1{
font-family: 'Press Start 2P', cursive;
text-align: center;
color: yellow;
2021-03-18 10:29:12 +01:00
margin: 0;
2021-03-23 08:21:05 +01:00
padding-top: 80px;
2021-03-18 10:29:12 +01:00
}
2021-03-23 08:21:05 +01:00
#menu{
margin: 0;
margin-top: 150px;
2021-03-23 09:23:37 +01:00
2021-03-18 10:29:12 +01:00
}
2021-03-23 08:21:05 +01:00
#menu>div{
background-color: rgba(0, 0, 0, 0.5);
padding: 50px;
border: 1px solid rgb(0, 255, 200);
}
#menu button{
2021-03-18 10:29:12 +01:00
display: block;
text-align: center;
2021-03-23 08:21:05 +01:00
background-color: rgba(0, 0, 0, 0.5);
2021-03-18 10:29:12 +01:00
border: 3px double #FF4294;
margin-bottom: 10px;
margin-top: 10px;
2021-03-23 08:21:05 +01:00
padding: 15px;
text-shadow: #FFF 0px 0px 5px, #FFF 0px 0px 10px, #FFF 0px 0px 15px, #FF2D95 0px 0px 20px, #FF2D95 0px 0px 30px, #FF2D95 0px 0px 40px, #FF2D95 0px 0px 50px, #FF2D95 0px 0px 75px;
color: black;
font-weight: 900;
border-radius: 10px;
font-size: 25px;
border-left: none;
border-bottom: none;
transition-duration: 0.5s;
cursor: pointer;
2021-03-11 09:39:52 +01:00
}
2021-03-18 10:29:12 +01:00
2021-03-23 08:21:05 +01:00
#menu button:hover{
background-color: rgba(0, 0, 0, 0.8);
}
2021-03-23 09:23:37 +01:00
.linear-wipe {
background: linear-gradient(to right, #FF4294 20%, #d919ff 35%, #3af8ff 40%, #d919ff 65%, #FF4294 80%);
2021-03-23 08:21:05 +01:00
background-size: 200% auto;
2021-03-23 09:23:37 +01:00
2021-03-23 08:21:05 +01:00
background-clip: text;
text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
2021-03-23 09:23:37 +01:00
animation: shine 1.5s linear infinite;
2021-03-23 08:21:05 +01:00
}
@keyframes shine {
to {
background-position: 200% center;
}
}
#menu input{
border: 3px double rgb(0, 255, 200);
color: rgb(0, 255, 200);
text-align: center;
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.5);
border-top: none;
border-right: none;
font-size: 35px;
padding: 10px 0px;
}
::-webkit-input-placeholder, ::placeholder { /* Edge */
color: rgb(0, 255, 200);
text-align: center;
}
2021-03-23 09:23:37 +01:00
.menu-level{
height: 25vh;
overflow-y: auto;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #FF4294;
border: 0px none #ffffff;
border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
background: #FF4294;
}
::-webkit-scrollbar-thumb:active {
background: #a800a3;
}
::-webkit-scrollbar-track {
background: #000000;
border: 0px none #ffffff;
border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
background: #000000;
}
::-webkit-scrollbar-track:active {
background: #000000;
}
::-webkit-scrollbar-corner {
background: transparent;
}
#canvas {
display: block;
margin: 0 auto;
border: 3px double rgb(0, 255, 200);
color: rgb(0, 255, 200);
background-color: rgba(0, 0, 0, 0.5);
}
.invisible{
display: none !important;
}
#game{
height: 75vh;
width: 75vh;
margin: auto;
}