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

* {
    box-sizing: border-box;
}

body {
    background: #303030 url('./beach.jpg') no-repeat center center/cover;
    color: rgb(39, 39, 39);
    font-family: 'Permanent Marker', cursive;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

p {
    padding: 1rem;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    height: 300px;
    width: 300px;
    position: relative;
    transform: scale(1);
}

.circle {
    background-color: rgb(236, 235, 235);
    height: 100%;
    width: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.gradient-circle {
    background: conic-gradient(rgb(65, 65, 65) 0%,
            rgb(94, 94, 94) 40%,
            rgb(209, 209, 209) 40%,
            rgb(228, 228, 228) 60%,
            rgb(158, 158, 158) 60%,
            rgb(200, 200, 200) 100%);
    height: 320px;
    width: 320px;
    z-index: -2;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: -10px;
}

.pointer {
    background-color: rgb(247, 167, 165);
    border-radius: 50%;
    height: 20px;
    width: 20px;
    display: block;
}

.pointer-container {
    position: absolute;
    top: -40px;
    left: 140px;
    width: 20px;
    height: 190px;
    animation: rotate 10s linear forwards infinite;
    transform-origin: bottom center;
}

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

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

.container.grow {
    animation: grow 4s linear forwards;
}

@keyframes grow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

.container.shrink {
    animation: shrink 4s linear forwards;
}

@keyframes shrink {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

@media screen and (max-width: 470px) {
    .container {
        height: 150px;
        width: 150px;
    }

    .gradient-circle {
        height: 160px;
        width: 160px;
        top: -5px;
        left: -5px;
    }

    .pointer {
        height: 10px;
        width: 10px;
    }

    .pointer-container {
        top: -20px;
        left: 70px;
        width: 10px;
        height: 95px;
    }
}