style.css (5544B)
1 *{ 2 -webkit-box-sizing: border-box; 3 box-sizing: border-box; 4 } 5 html, body{ 6 height: 100%; 7 margin: 0; 8 padding: 0; 9 overflow: hidden; 10 } 11 12 @font-face { 13 font-family: krublight; 14 src: url('fonts/Krublight.ttf'); 15 } 16 17 canvas{ 18 background-color: #fcfcfc; 19 z-index: 0; 20 top: 0; 21 } 22 23 .noselect { 24 -webkit-touch-callout: none; /* iOS Safari */ 25 -webkit-user-select: none; /* Safari */ 26 -khtml-user-select: none; /* Konqueror HTML */ 27 -moz-user-select: none; /* Old versions of Firefox */ 28 -ms-user-select: none; /* Internet Explorer/Edge */ 29 user-select: none; /* Non-prefixed version, currently 30 supported by Chrome, Edge, Opera and Firefox */ 31 } 32 33 /* Rubrik */ 34 .headline { 35 color: #3F617C; 36 font-size: 2.3em; 37 letter-spacing: 0.3em; 38 font-family: krublight; 39 margin-top: 2%; 40 position: fixed; 41 font-weight: bold; 42 top: 0; 43 text-align: center; 44 left: 50%; 45 right: 0; 46 width: fit-content; 47 transform: translate(-50%, 0); 48 } 49 50 /* Fakta */ 51 #fact_text { 52 margin: auto; 53 position: absolute; 54 top: 0; 55 bottom: 0; 56 left: 0; 57 right: 0; 58 width: fit-content; 59 max-width: 70%; 60 height: fit-content; 61 text-align: center; 62 margin-top: 57vh; 63 display: none; 64 opacity: 0; 65 animation: appear 2s linear; 66 font-size: 1.8em; 67 font-family: krublight; 68 z-index: 10; 69 border-radius: 5px; 70 transition: background-color 1s, box-shadow 1s; 71 overflow: scroll; 72 height: fit-content; 73 max-height: 30vh; 74 overflow-x: hidden; 75 } 76 77 #fact_text::-webkit-scrollbar { 78 width: 8px; 79 height: 8px; 80 } 81 #fact_text::-webkit-scrollbar-track { 82 display: none; 83 } 84 #fact_text::-webkit-scrollbar-thumb { 85 border-radius: 10px; 86 background-color: rgba(63, 97, 124, 0.75); 87 } 88 89 #fact_text:hover { 90 background-color: rgba(242, 242, 242, 0.7); 91 box-shadow: 0 0 20px rgba(242, 242, 242, 0.9); 92 } 93 94 @keyframes appear { 95 0% { opacity: 0; } 96 100% { opacity: 1; } 97 } 98 99 /* Footer */ 100 footer{ 101 color: #3F617C; 102 text-align: center; 103 margin-bottom: 1%; 104 font-size: 1em; 105 position: fixed; 106 bottom: 0; 107 left: 50%; 108 right: 0; 109 width: fit-content; 110 font-family: krublight; 111 transform: translate(-50%, 0); 112 } 113 114 /* Knappen */ 115 #button { 116 width: 15vh; 117 height: 15vh; 118 border: 2px solid #3F617C; 119 background-color: #3F617C; 120 opacity: 0.75; 121 position: fixed; 122 top:0; bottom:0; left:0;right:0; 123 margin: auto; 124 border-radius: 50%; 125 transition: 0.7s; 126 z-index: 2; 127 cursor: pointer; 128 -webkit-tap-highlight-color: transparent; 129 } 130 131 #button:before { 132 content: ''; 133 background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); 134 position: absolute; 135 top: -3px; 136 left:-3px; 137 background-size: 500%; 138 z-index: -1; 139 filter: blur(7px); 140 width: calc(100% + 6px); 141 height: calc(100% + 6px); 142 animation: glowing 20s linear infinite; 143 transition: opacity .3s ease-in-out; 144 border-radius: 50%; 145 opacity: 0; 146 } 147 148 #button:focus { 149 outline: none; 150 } 151 152 #button:focus:before { 153 opacity: 0.95; 154 } 155 156 #button:active:after { 157 background: #3F617C; 158 } 159 160 #button:hover { 161 opacity: 0.95; 162 } 163 164 #button:hover:before { 165 opacity: 0.95; 166 } 167 168 #button:after { 169 z-index: -1; 170 content: ''; 171 position: absolute; 172 width: 100%; 173 height: 100%; 174 background: #3F617C; 175 left: 0; 176 top: 0; 177 border-radius: 50%; 178 opacity: 1; 179 } 180 181 @keyframes glowing { 182 0% { background-position: 0 0; } 183 50% { background-position: 500% 0; } 184 100% { background-position: 0 0; } 185 } 186 187 /*Banner ad*/ 188 #banner-ad { 189 z-index: 9; 190 position: absolute; 191 top: 50%; 192 transform: translate(0, -50%); 193 } 194 195 @media only screen 196 and (max-width: 800px) { 197 #banner-ad { 198 display: none; 199 } 200 } 201 202 /*Scrollbar styling*/ 203 ::-webkit-scrollbar-thumb { 204 background: #888; 205 } 206 207 /* Contact */ 208 .popup { 209 position: relative; 210 display: inline-block; 211 -webkit-user-select: none; 212 -moz-user-select: none; 213 -ms-user-select: none; 214 user-select: none; 215 opacity: 0.9; 216 cursor: pointer; 217 -webkit-tap-highlight-color: transparent; 218 } 219 220 .popup .popuptext { 221 visibility: hidden; 222 width: 20vw; 223 background-color: #3F617C; 224 opacity: 0.9; 225 color: #fff; 226 text-align: center; 227 border-radius: 6px; 228 padding: 8px 0; 229 position: absolute; 230 z-index: 1; 231 bottom: 125%; 232 left: 50%; 233 margin-left: -10vw; 234 } 235 236 .popup .popuptext::after { 237 content: ""; 238 position: absolute; 239 opacity: 0.9; 240 top: 100%; 241 left: 50%; 242 margin-left: -5px; 243 border-width: 5px; 244 border-style: solid; 245 border-color: #3F617C transparent transparent transparent; 246 } 247 248 .popup .show { 249 visibility: visible; 250 -webkit-animation: fadeIn 1s; 251 animation: fadeIn 1s; 252 opacity: 0.9; 253 } 254 255 @-webkit-keyframes fadeIn { 256 from {opacity: 0;} 257 to {opacity: 1;} 258 } 259 260 @keyframes fadeIn { 261 from {opacity: 0;} 262 to {opacity:1 ;} 263 } 264 265 /* Ändringar för mobil */ 266 @media only screen 267 and (max-width: 1300px) { 268 .headline { 269 font-size: 1.5em; 270 margin-top: 3%; 271 } 272 #fact_text{ 273 font-size: 1.4em; 274 margin-top: 50vh; 275 max-width: 90%; 276 max-height: 20vh; 277 } 278 } 279 280 @media only screen 281 and (max-width: 800px) { 282 .popup .popuptext { 283 width: 90vw; 284 background-color: #3F617C; 285 opacity: 1; 286 color: #fff; 287 text-align: center; 288 border-radius: 6px; 289 padding: 8px 0; 290 z-index: 1; 291 bottom: 125%; 292 margin-left: -45vw; 293 } 294 .popup { 295 width: 100%; 296 display: flex; 297 justify-content: center; 298 padding: 8px 0; 299 } 300 .popuptext { 301 margin-bottom: 5%; 302 } 303 .popuptext::after { 304 visibility: hidden; 305 } 306 }