@import url('https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap');

* {
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 20px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
}


/*солнце*/
.square {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: #000;
    
}

.square span:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    transition: 0.5s;
    animation: anim 6s linear infinite;
    background: #000;
}

.square:hover span:nth-child(1) {
    border: none;
    background: #FFDC33;
    box-shadow: inset #FFDC33 0 0 40px 10px,
	                  #FFDC33 0 0 80px 40px;
}

.square span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    transition: 0.5s;
    animation: anim 4s linear infinite;

}

.square:hover span:nth-child(2) {
    border: none;
    background: #FFF44F;
    box-shadow: inset #FFF44F 0 0 40px 10px,
                      #FFF44F 0 0 24px 12px;
    opacity: 0.6;
}

.square span:nth-child(3) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    transition: 0.5s;
    animation: anim2 10s linear infinite;

}

.square:hover span:nth-child(3) {
    border: none;
    background: #FFF44F;
    box-shadow: inset #FFF44F 0 0 40px 10px,
                      #FFF44F 0 0 24px 12px;
    opacity: 0.75;
}

.square:hover .content{
    color: #000;
}

.square:hover .content a{
    color: #000;
    border-color: #000;
}

@keyframes anim {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}

@keyframes anim2 {
    0%{
        transform: rotate(360deg);
    }
    100%{
        transform: rotate(0deg);
    }
}

.content {
    position: relative;
    padding: 40px 20px 40px 20px;  
    color: #fff;
    text-align: center;
    transition: 0.5s;
    z-index: 200;
}

.content a {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    border: 2px solid #fff;
    padding: 6px 18px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    border-radius: 73% 27% 44% 56% / 49% 44% 56% 51%;
}

.content a:hover {
    background: #fff;
    color: #333;
    
}

.content h2 img {
    width: 350px;
}


/*-------------------------stars----------------------------*/
.stars {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000200;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.star {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    animation: st 8s ease-in-out infinite,
               bgmove 16s linear infinite;
}

.star1 {
    animation-delay: 0s;
    background: url(../images/star1.png);
}

.star2 {
    animation-delay: -1s;
    background: url(../images/star2.png);
}

.star3 {
    animation-delay: -2s;
    background: url(../images/star3.png);
}

.star4 {
    animation-delay: -3s;
    background: url(../images/star4.png);
}

.star5 {
    animation-delay: -4s;
    background: url(../images/star5.png);
}

.star6 {
    animation-delay: -5s;
    background: url(../images/star6.png);
}

.star7 {
    animation-delay: -6s;
    background: url(../images/star7.png);
}

.star8 {
    animation-delay: -7s;
    background: url(../images/star8.png);
}

@keyframes st {
    0%,20%,40%,60%,80%,100% {
        opacity: 0;
    }
    10%,30%,50%,70%,90% {
        opacity: 1;
    }
}

@keyframes bgmove {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(2);
    }
}
