280 lines
4.7 KiB
CSS
280 lines
4.7 KiB
CSS
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*{
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
body{
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.menu {
|
|
overflow: hidden;
|
|
z-index: 99 !important;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 8rem;
|
|
background: transparent;
|
|
padding-right: 1.25rem;
|
|
padding-left: 1.25rem;
|
|
}
|
|
|
|
.menu a{
|
|
float: left;
|
|
height: 50%;
|
|
display: block;
|
|
color: #f2f2f2;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
transition: ease 0.3s;
|
|
}
|
|
.menu p{
|
|
position: fixed;
|
|
top: 25px;
|
|
right: 100px;
|
|
color: #f2f2f2;
|
|
}
|
|
|
|
.btn-right {
|
|
float: right;
|
|
}
|
|
|
|
.btn-left {
|
|
float: left;
|
|
}
|
|
|
|
/* Neon Knöpfe > Menü */
|
|
.neon-button {
|
|
font-size: 1rem;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
color: #fff;
|
|
border: rgb(138,43,226) 0.125em solid;
|
|
padding: 0.125em 0.5em;
|
|
margin-left: 0.425em;
|
|
margin-right: 0.425em;
|
|
margin-top: 0.25em;
|
|
border-radius: 0.25em;
|
|
text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em currentColor;
|
|
box-shadow: inset 0 0 0.5em 0 rgb(138,43,226), 0 0 0.5em 0 rgb(138,43,226);
|
|
}
|
|
.neon-button::before {
|
|
pointer-events: none;
|
|
content: "";
|
|
position: absolute;
|
|
top: 120%;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.neon-button:hover,
|
|
.neon-button:focus {
|
|
color: #fff;
|
|
text-shadow: none;
|
|
box-shadow: 0 0 2em 0.5em rgb(138,43,226);
|
|
background-color: rgb(138,43,226);
|
|
transition: opacity 100ms linear;
|
|
}
|
|
.neon-button:hover::before,
|
|
.neon-button:focus::before {
|
|
opacity: 1;
|
|
}
|
|
.neon-button:hover::after,
|
|
.neon-button:focus::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Logo im Menü */
|
|
#logo {
|
|
position: absolute;
|
|
top: 45%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
height: 100%;
|
|
width: fit-content;
|
|
|
|
}
|
|
|
|
/* Hauptseite */
|
|
.seite {
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 80px 20px;
|
|
transition: .4s ease;
|
|
background-image: url(./bilder/background.png);
|
|
background-size: 100%;
|
|
}
|
|
|
|
/* Animierte Sterne */
|
|
.seite section {
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
animation: animateBg 50s linear infinite;
|
|
}
|
|
|
|
@keyframes animateBg {
|
|
0%,100%
|
|
{
|
|
transform: scale(1);
|
|
}
|
|
50%
|
|
{
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
|
|
.seite section span {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 7px;
|
|
height: 4px;
|
|
background: #fff;
|
|
border-radius: 35%;
|
|
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
|
|
0 0 0 8px rgba(255, 255, 255, 0.1),
|
|
0 0 20px rgba(255, 255, 255, 1);
|
|
animation: animate 5s linear infinite;
|
|
}
|
|
|
|
@keyframes animate {
|
|
0%
|
|
{
|
|
transform: rotate(315deg) translateX(0);
|
|
opacity: 1;
|
|
}
|
|
70%
|
|
{
|
|
opacity: 1;
|
|
}
|
|
100%
|
|
{
|
|
transform: rotate(315deg) translateX(-1000px);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.seite section span::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 300px;
|
|
height: 1px;
|
|
background: linear-gradient(90deg,#fff,transparent);
|
|
}
|
|
|
|
.seite section span:nth-child(1)
|
|
{
|
|
top: 0;
|
|
right: 0;
|
|
left: initial;
|
|
animation-delay: 0;
|
|
animation-duration: 1s;
|
|
}
|
|
.seite section span:nth-child(2)
|
|
{
|
|
top: 0;
|
|
right: 80px;
|
|
left: initial;
|
|
animation-delay: 0.2s;
|
|
animation-duration: 3s;
|
|
}
|
|
.seite section span:nth-child(3)
|
|
{
|
|
top: 80px;
|
|
right: 0px;
|
|
left: initial;
|
|
animation-delay: 0.4s;
|
|
animation-duration: 2s;
|
|
}
|
|
.seite section span:nth-child(4)
|
|
{
|
|
top: 0px;
|
|
right: 180px;
|
|
left: initial;
|
|
animation-delay: 0.6s;
|
|
animation-duration: 1.5s;
|
|
}
|
|
.seite section span:nth-child(5)
|
|
{
|
|
top: 0px;
|
|
right: 400px;
|
|
left: initial;
|
|
animation-delay: 0.8s;
|
|
animation-duration: 2.5s;
|
|
}
|
|
.seite section span:nth-child(6)
|
|
{
|
|
top: 0px;
|
|
right: 600px;
|
|
left: initial;
|
|
animation-delay: 1s;
|
|
animation-duration: 3s;
|
|
}
|
|
.seite section span:nth-child(7)
|
|
{
|
|
top: 300px;
|
|
right: 0px;
|
|
left: initial;
|
|
animation-delay: 1.2s;
|
|
animation-duration: 1.75s;
|
|
}
|
|
.seite section span:nth-child(8)
|
|
{
|
|
top: 0px;
|
|
right: 700px;
|
|
left: initial;
|
|
animation-delay: 1.2s;
|
|
animation-duration: 1.25s;
|
|
}
|
|
.seite section span:nth-child(9)
|
|
{
|
|
top: 0px;
|
|
right: 1000px;
|
|
left: initial;
|
|
animation-delay: 0.75s;
|
|
animation-duration: 2.25s;
|
|
}
|
|
.seite section span:nth-child(10)
|
|
{
|
|
top: 0px;
|
|
right: 450px;
|
|
left: initial;
|
|
animation-delay: 2.75s;
|
|
animation-duration: 1.75s;
|
|
}
|
|
/* Animation Ende */
|
|
|
|
/* Text Formatierung */
|
|
.seite h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
.seite p {
|
|
padding: 30px 0;
|
|
}
|
|
|
|
|
|
/* An hier Mika */
|