html {
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}
body {
    background-color: rgb(39, 39, 39);
}
.background {
    position: absolute;
    z-index: -1;
    opacity: 30%;
    height: 99.3%;
    width: 99.5%;
}
.background-color {
    background-color: #b60aff;
    opacity: 6%;
    width: 99.5%;
    height: 99.3%;
    position: absolute;
}

.main-header {
    margin-left: 1vh;
    margin-top: 0.5vh;
}

.main-header nav {
    float: left;
    position: relative;
    margin: -6.5vh auto 0;
    margin-left: 20.2vh;
    width: 60vh;
    height: 3.85vh;
    background-color: rgba(46, 46, 46, 0.5);
    border-radius: 0.6vh;
    font-size: 0;
    box-shadow: 0 0.15vh 0.23vh 0 rgba(0,0,0,.1);
}
.main-header nav a {
    display: inline-block;
    text-align: center;
    z-index: 1;
    position: relative;
    line-height: 3.85vh;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.4vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: rgb(245, 245, 245);
    border-bottom: 0.07vh solid transparent;
}

nav .animation{
    position: absolute;
    height: 0.38vh;
    top: 0;
    z-index: 1;
    background-color: #af07f7;
    transition: all .5s ease 0s;
}

a:nth-child(1){
    width: 8.54vh;
}
nav .start-home,a:nth-child(1):hover~.animation{
    width: 8.54vh;
    left: 0;
}

a:nth-child(2){
    width: 12.43vh;
}
nav .start-penthouse,a:nth-child(2):hover~.animation{
    width: 12.43vh;
    left: 8.54vh;
}

a:nth-child(3){
    width: 10.87vh;
}
nav .start-casino,a:nth-child(3):hover~.animation{
    width: 10.87vh;
    left: 20.97vh;
}

a:nth-child(4){
    width: 14vh;
}
nav .start-casino-shop,a:nth-child(4):hover~.animation{
    width: 14vh;
    left: 31.85vh;
}
a:nth-child(5){
    width: 14vh;
}
nav .start-kontakte,a:nth-child(5):hover~.animation{
    width: 14vh;
    left: 45.82vh;
}


.container2 {
    width: 0.23vh;
    height: 3.88vh;
    margin-top: 35.75vh;
    margin-left: 7.77vh;
    background-color: #7E05B1;
    animation: block 1.5s;
}

.container2 h2 {
    width: 38.85vh;
    height: 3.88vh;
    margin-left: -7.38vh;
    position: absolute;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.55vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    line-height: 1.4vh;
}

h1 {
    width: 38.85vh;
    height: 3.88vh;
    margin-left: 7.77vh;
    margin-top: 1.32vh;
    position: absolute;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 4.27vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    line-height: 4.66vh;
    animation: fadein 2s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

p {
    width: 31vh;
    height: 3.88vh;
    margin-left: 8.15vh;
    margin-top: 21vh;
    position: absolute;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.16vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    line-height: 2.1vh;
    animation: fadein 4s;
}


.ped {
    position: absolute;
    width: 34.5vh;
    height: 75vh;
    right: 10vh;
    top: 16vh;
    animation: ped 3s;
}

.dia {
    position: absolute;
    width: 20.4vh;
    height: 10.75vh;
    left: 38vh;
    top: 75vh;
    transform: rotate(30deg);
    animation: dia 2s;
}

@keyframes dia {
    from { transform: rotate(0deg); }
    to   { transform: rotate(30deg);}
}

@keyframes block {
    from {
        width: 20vh;
        background-color: #7E05B1;
     }
    to {
        width: 0.23vh;
        background-color: #7E05B1;
    }

}
@keyframes block_rechts {
    from {
        width: 20vh;
        background-color: #7E05B1;
     }
    to {
        width: 0.23vh;
        background-color: #7E05B1;
    }

}
@keyframes ped {
    from { opacity: 0.4; }
    to   { opacity: 1; }
}