@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

*{
    margin: 0;
}

html, body{
    --black: hsl(240, 6%, 13%)
    --grey: hsl(240, 9%, 89%);

    height: 100vh;
    font-family: "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body{
    display: grid;
    place-items: center;
    overflow-x: hidden;
}

main{
    background: url(../img/background.svg) no-repeat center/cover;
    min-height: 812px;
    width: 100vw;
    height: 100vh;
}

.container{
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--grey);
}

.avatar{
    width: 10rem;
    margin: 11.5rem auto 0;
    position: relative;
}

.avatar span{
    position: absolute;
    top: -15px;
    z-index: 1;
    animation: rotation 5s linear infinite;
}

@keyframes rotation {
    from{
        transform: rotate(0deg);
    }

    to{
        transform: rotate(360deg);
    }
}

.avatar > img{
    width: 10rem;
    height: 11.5rem;
    object-fit: cover;

    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

h1{
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

a{
    color: var(--grey);
    text-decoration: none;
    margin-top: 0.25rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    transition: .5s;
}

a:hover{
    transform: translateY(-0.5rem);
}

p{
    margin-top: 2rem;
}

ul{
    margin-top: 4rem;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

@media only screen and (min-width: 400px){
    .avatar{
        width: 10rem;
        margin: 10.5rem auto 0;
    }
}

@media only screen and (min-width: 500px){
    .avatar{
        width: 10rem;
        margin: 8.8rem auto 0;
    }
}

@media only screen and (min-width: 600px){
    .avatar{
        width: 10rem;
        margin: 6.5rem auto 0;
    }
}

@media only screen and (min-width: 700px){
    main{
        background: url(../img/Desktop.svg) no-repeat center/cover;
        width: 100vw;
        height: 100vh;
    }

    .avatar{
        width: 10rem;
        margin: 13rem auto 0;
    }

    ul{
        margin-top: 2rem;
        padding: 0;
    }
}

@media only screen and (min-width: 1440px){
    main{
        background: url(../img/Desktop.svg) no-repeat center/cover;
        width: 100vw;
        height: 100vh;
    }

    .avatar{
        width: 10rem;
        margin: 17rem auto 0;
    }

    ul{
        margin-top: 2rem;
        padding: 0;
    }
}