Spaces:
Running
Running
html { | |
font-family: "Inter", sans-serif; | |
} | |
body { | |
margin: 0; | |
padding: 0; | |
overflow-x: hidden; /* Enable scrolling on the y-axis */ | |
} | |
/* GTA Text */ | |
h1 { | |
font-family: "Satisfy", cursive; | |
text-shadow: 0 0 0.125em rgba(38, 147, 211, 0.5), 0 0 0.45em currentColor; | |
} | |
/* Vice City Text */ | |
h2 { | |
font-family: "Satisfy", cursive; | |
text-shadow: 0 0 0.125em rgb(38, 147, 211, 0.5), 0 0 0.45em currentColor; | |
} | |
@keyframes pulse { | |
0% { | |
box-shadow: 0 0 0 0px rgb(0, 153, 255); | |
} | |
50% { | |
box-shadow: 0 0 0 10px rgba(169, 94, 255, 0); | |
} | |
100% { | |
box-shadow: 0 0 0 0px rgb(0, 162, 255); | |
} | |
} | |
#backgroundVideo { | |
top: 0; | |
left: 0; | |
width: 100%; | |
object-fit: cover; | |
z-index: -1; | |
} | |
#placeholder { | |
position: relative; | |
left: 0; | |
width: auto; | |
height: 100dvh; | |
background-position: center; | |
background-repeat: no-repeat; | |
background-size: cover; | |
background-color: black; | |
transition: background-image 0.5s ease-in-out; | |
} | |
div #logo_container::before { | |
z-index: 20; | |
content: ""; | |
width: 100%; | |
height: 100%; | |
top: 157%; | |
left: 0; | |
position: absolute; | |
transform: perspective(1em) rotateX(40deg) scale(1, 0.35); | |
} | |
.container { | |
position: relative; | |
z-index: 20; | |
} | |
#videoElement { | |
opacity: 0; | |
width: 80%; | |
transition: opacity 1s ease-in-out; | |
margin-top: 10px; | |
} | |
#videoElement.fade-in { | |
opacity: 1; | |
} | |
.fade-out { | |
opacity: 0.09; | |
transition: opacity 3s ease-in-out; | |
} | |
#eyeButton { | |
background: none; | |
border: none; | |
position: relative; | |
cursor: pointer; | |
overflow: hidden; /* Clip the shadow outside the button */ | |
border-radius: 50%; /* Make it round, adjust as needed */ | |
width: 32px; /* Set your eye image width */; | |
height: 32px;/* Set your eye image height */; | |
animation: pulse 2s infinite; /* Adjust the duration as needed */ | |
} | |
#exitButton { | |
background: none; | |
border: none; | |
position: relative; | |
cursor: pointer; | |
overflow: hidden; /* Clip the shadow outside the button */ | |
border-radius: 50%; /* Make it round, adjust as needed */ | |
width: 32px; /* Set your eye image width */; | |
height: 32px;/* Set your eye image height */; | |
} | |
#playPauseBtn { | |
background-color: #b4b4b4fa; | |
opacity: 35; | |
border-radius: 50%; | |
width: 50px; | |
height: 50px; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
transition: background-color 0.2s ease; | |
} | |
#playPauseBtn img { | |
width: 30px; | |
height: 30px; | |
} | |
#playPauseBtn:active { | |
background-color: #b1b1b186; | |
transition: background-color 0.2s ease; | |
} | |
#playPauseBtn:active img { | |
transform: scale(1.2); | |
transition: transform 0.2s ease; | |
} | |
#playPauseBtn:active::after { | |
content: ''; | |
display: block; | |
position: absolute; | |
width: 50px; | |
height: 50px; | |
background-color: rgb(38, 147, 211); | |
border-radius: 50%; | |
animation: ripple 0.4s linear; | |
} | |
#playPauseBtn { | |
background-color: rgb(0, 162, 255);; | |
opacity: 35; | |
border-radius: 50%; | |
width: 50px; | |
animation: floatUpDown 5s ease-in-out infinite; | |
} | |
/* Tooltip */ | |
#playPauseBtn .tooltip-text { | |
visibility: hidden; | |
width: 120px; | |
background-color: rgb(38, 147, 211, 0.5) | |
transition: opacity 0.3s; | |
} | |
#playPauseBtn:hover .tooltip-text { | |
visibility: visible; | |
opacity: 1; | |
} | |
#playPauseBtn .tooltip-text::after { | |
content: ""; | |
position: absolute; | |
top: 100%; | |
height: 20px; | |
} | |
@keyframes ripple { | |
0% { | |
transform: scale(0); | |
opacity: 1; | |
} | |
100% { | |
transform: scale(2.5); | |
opacity: 0; | |
} | |
} | |
/* Add a floating up and down animation */ | |
@keyframes floatUpDown { | |
0% { | |
transform: translateY(0); | |
} | |
50% { | |
transform: translateY(-15px); | |
} | |
100% { | |
transform: translateY(0); | |
} | |
} | |
/* Responsive styles */ | |
@media (max-width: 768px) { | |
#playPauseBtn { | |
width: 40px; | |
height: 40px; | |
} | |
#playPauseBtn img { | |
width: 25px; | |
height: 25px; | |
} | |
} | |
@media (max-width: 480px) { | |
#playPauseBtn { | |
width: 30px; | |
height: 30px; | |
} | |
#playPauseBtn img { | |
width: 20px; | |
height: 20px; | |
} | |
} | |
/* Style the scrollbar */ | |
::-webkit-scrollbar { | |
width: 5px; /* Adjust the width as needed */ | |
height: 12px; /* Adjust the height as needed */ | |
} | |
::-webkit-scrollbar-track { | |
background: transparent; /* Set the background color of the scrollbar track */ | |
border-radius: 10px; /* Adjust the border radius as needed */ | |
} | |
::-webkit-scrollbar-thumb { | |
background: #888888; /* Set the background color of the scrollbar thumb */ | |
border-radius: 12px; /* Adjust the border radius as needed */ | |
} | |