You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

298 lines
6.4KB

  1. /*
  2. VIEW IN FULL SCREEN MODE
  3. FULL SCREEN MODE: http://salehriaz.com/404Page/404.html
  4. DRIBBBLE: https://dribbble.com/shots/4330167-404-Page-Lost-In-Space
  5. */
  6. @import url('https://fonts.googleapis.com/css?family=Dosis:300,400,500');
  7. @-moz-keyframes rocket-movement { 100% {-moz-transform: translate(1200px,-600px);} }
  8. @-webkit-keyframes rocket-movement {100% {-webkit-transform: translate(1200px,-600px); } }
  9. @keyframes rocket-movement { 100% {transform: translate(1200px,-600px);} }
  10. @-moz-keyframes spin-earth { 100% { -moz-transform: rotate(-360deg); transition: transform 20s; } }
  11. @-webkit-keyframes spin-earth { 100% { -webkit-transform: rotate(-360deg); transition: transform 20s; } }
  12. @keyframes spin-earth{ 100% { -webkit-transform: rotate(-360deg); transform:rotate(-360deg); transition: transform 20s; } }
  13. @-moz-keyframes move-astronaut {
  14. 100% { -moz-transform: translate(-160px, -160px);}
  15. }
  16. @-webkit-keyframes move-astronaut {
  17. 100% { -webkit-transform: translate(-160px, -160px);}
  18. }
  19. @keyframes move-astronaut{
  20. 100% { -webkit-transform: translate(-160px, -160px); transform:translate(-160px, -160px); }
  21. }
  22. @-moz-keyframes rotate-astronaut {
  23. 100% { -moz-transform: rotate(-720deg);}
  24. }
  25. @-webkit-keyframes rotate-astronaut {
  26. 100% { -webkit-transform: rotate(-720deg);}
  27. }
  28. @keyframes rotate-astronaut{
  29. 100% { -webkit-transform: rotate(-720deg); transform:rotate(-720deg); }
  30. }
  31. @-moz-keyframes glow-star {
  32. 40% { -moz-opacity: 0.3;}
  33. 90%,100% { -moz-opacity: 1; -moz-transform: scale(1.2);}
  34. }
  35. @-webkit-keyframes glow-star {
  36. 40% { -webkit-opacity: 0.3;}
  37. 90%,100% { -webkit-opacity: 1; -webkit-transform: scale(1.2);}
  38. }
  39. @keyframes glow-star{
  40. 40% { -webkit-opacity: 0.3; opacity: 0.3; }
  41. 90%,100% { -webkit-opacity: 1; opacity: 1; -webkit-transform: scale(1.2); transform: scale(1.2); border-radius: 999999px;}
  42. }
  43. .spin-earth-on-hover{
  44. transition: ease 200s !important;
  45. transform: rotate(-3600deg) !important;
  46. }
  47. html, body{
  48. margin: 0;
  49. width: 100%;
  50. height: 100%;
  51. font-family: 'Dosis', sans-serif;
  52. font-weight: 300;
  53. -webkit-user-select: none; /* Safari 3.1+ */
  54. -moz-user-select: none; /* Firefox 2+ */
  55. -ms-user-select: none; /* IE 10+ */
  56. user-select: none; /* Standard syntax */
  57. }
  58. .bg-purple{
  59. background: url(http://salehriaz.com/404Page/img/bg_purple.jpg);
  60. background-repeat: repeat-x;
  61. background-size: cover;
  62. background-position: left top;
  63. height: 100%;
  64. overflow: hidden;
  65. }
  66. .custom-navbar{
  67. padding-top: 15px;
  68. }
  69. .brand-logo{
  70. margin-left: 25px;
  71. margin-top: 5px;
  72. display: inline-block;
  73. }
  74. .navbar-links{
  75. display: inline-block;
  76. float: right;
  77. margin-right: 15px;
  78. text-transform: uppercase;
  79. }
  80. ul {
  81. list-style-type: none;
  82. margin: 0;
  83. padding: 0;
  84. /* overflow: hidden;*/
  85. display: flex;
  86. align-items: center;
  87. }
  88. li {
  89. float: left;
  90. padding: 0px 15px;
  91. }
  92. li a {
  93. display: block;
  94. color: white;
  95. text-align: center;
  96. text-decoration: none;
  97. letter-spacing : 2px;
  98. font-size: 12px;
  99. -webkit-transition: all 0.3s ease-in;
  100. -moz-transition: all 0.3s ease-in;
  101. -ms-transition: all 0.3s ease-in;
  102. -o-transition: all 0.3s ease-in;
  103. transition: all 0.3s ease-in;
  104. }
  105. li a:hover {
  106. color: #ffcb39;
  107. }
  108. .btn-request{
  109. padding: 10px 25px;
  110. border: 1px solid #FFCB39;
  111. border-radius: 100px;
  112. font-weight: 400;
  113. }
  114. .btn-request:hover{
  115. background-color: #FFCB39;
  116. color: #fff;
  117. transform: scale(1.05);
  118. box-shadow: 0px 20px 20px rgba(0,0,0,0.1);
  119. }
  120. .btn-go-home{
  121. position: relative;
  122. z-index: 200;
  123. margin: 15px auto;
  124. width: 100px;
  125. padding: 10px 15px;
  126. border: 1px solid #FFCB39;
  127. border-radius: 100px;
  128. font-weight: 400;
  129. display: block;
  130. color: white;
  131. text-align: center;
  132. text-decoration: none;
  133. letter-spacing : 2px;
  134. font-size: 11px;
  135. -webkit-transition: all 0.3s ease-in;
  136. -moz-transition: all 0.3s ease-in;
  137. -ms-transition: all 0.3s ease-in;
  138. -o-transition: all 0.3s ease-in;
  139. transition: all 0.3s ease-in;
  140. }
  141. .btn-go-home:hover{
  142. background-color: #FFCB39;
  143. color: #fff;
  144. transform: scale(1.05);
  145. box-shadow: 0px 20px 20px rgba(0,0,0,0.1);
  146. }
  147. .central-body{
  148. /* width: 100%;*/
  149. padding: 17% 5% 10% 5%;
  150. text-align: center;
  151. }
  152. .objects img{
  153. z-index: 90;
  154. pointer-events: none;
  155. }
  156. .object_rocket{
  157. z-index: 95;
  158. position: absolute;
  159. transform: translateX(-50px);
  160. top: 75%;
  161. pointer-events: none;
  162. animation: rocket-movement 200s linear infinite both running;
  163. }
  164. .object_earth{
  165. position: absolute;
  166. top: 20%;
  167. left: 15%;
  168. z-index: 90;
  169. /* animation: spin-earth 100s infinite linear both;*/
  170. }
  171. .object_moon{
  172. position: absolute;
  173. top: 12%;
  174. left: 25%;
  175. /*
  176. transform: rotate(0deg);
  177. transition: transform ease-in 99999999999s;
  178. */
  179. }
  180. .earth-moon{
  181. }
  182. .object_astronaut{
  183. animation: rotate-astronaut 200s infinite linear both alternate;
  184. }
  185. .box_astronaut{
  186. z-index: 110 !important;
  187. position: absolute;
  188. top: 60%;
  189. right: 20%;
  190. will-change: transform;
  191. animation: move-astronaut 50s infinite linear both alternate;
  192. }
  193. .image-404{
  194. position: relative;
  195. z-index: 100;
  196. pointer-events: none;
  197. }
  198. .stars{
  199. background: url(http://salehriaz.com/404Page/img/overlay_stars.svg);
  200. background-repeat: repeat;
  201. background-size: contain;
  202. background-position: left top;
  203. }
  204. .glowing_stars .star{
  205. position: absolute;
  206. border-radius: 100%;
  207. background-color: #fff;
  208. width: 3px;
  209. height: 3px;
  210. opacity: 0.3;
  211. will-change: opacity;
  212. }
  213. .glowing_stars .star:nth-child(1){
  214. top: 80%;
  215. left: 25%;
  216. animation: glow-star 2s infinite ease-in-out alternate 1s;
  217. }
  218. .glowing_stars .star:nth-child(2){
  219. top: 20%;
  220. left: 40%;
  221. animation: glow-star 2s infinite ease-in-out alternate 3s;
  222. }
  223. .glowing_stars .star:nth-child(3){
  224. top: 25%;
  225. left: 25%;
  226. animation: glow-star 2s infinite ease-in-out alternate 5s;
  227. }
  228. .glowing_stars .star:nth-child(4){
  229. top: 75%;
  230. left: 80%;
  231. animation: glow-star 2s infinite ease-in-out alternate 7s;
  232. }
  233. .glowing_stars .star:nth-child(5){
  234. top: 90%;
  235. left: 50%;
  236. animation: glow-star 2s infinite ease-in-out alternate 9s;
  237. }
  238. @media only screen and (max-width: 600px){
  239. .navbar-links{
  240. display: none;
  241. }
  242. .custom-navbar{
  243. text-align: center;
  244. }
  245. .brand-logo img{
  246. width: 120px;
  247. }
  248. .box_astronaut{
  249. top: 70%;
  250. }
  251. .central-body{
  252. padding-top: 25%;
  253. }
  254. }