﻿*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
}

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

.square{
    position: relative;
    width: 400px;
    height: 320px;
    left:32%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px;
}

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

.1square:hover span:nth-child(1){
    border: none;
    background: rgba(0,0,255, 0.8);
}

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

.1square:hover span:nth-child(2){
    border: none;
    background: rgba(0,0,255,0.8);
}

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

.1square:hover span:nth-child(3){
    border: none;
    background: rgba(0,0,255,0.8);
}

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

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

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

.content img{
    max-width: 150px;
    border-radius: 30%;
}

.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: #000;
}