@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap');

* { 
    box-sizing: border-box;
}

body {
    background: #224941 url('./bgi.jpg') no-repeat center center/cover;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

h1 {
    text-align: center;
}

nav {
    text-decoration: none;
}

.selection {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

.selection li {
    display: inline-block;
    text-decoration: none;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    background-color: black;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
    border: 2px solid red;
    cursor: pointer;
    outline: none;
    transition: 0.2s all;
}

li:active {
    transform: scale(0.9);
    /* Scaling button to 0.98 to its original size */
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
}

#text {
    position: absolute;
    background-color: black;
}

#active {
    opacity: 1;
}

#inactive {
    opacity: 0;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    height: 300px;
    width: 300px;
    position: relative;
    transform: scale(1);
}

.circle {
    background-color: #010f1c;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}

.gradientCircle {
    background: conic-gradient(
        #4961cf 0%,
        #4961cf 40%,
        #fff 40%,
        #fff 60%,
        #2548e2 60%,
        #2548e2 100%
    );
    height: 320px;
    width: 320px;
    z-index: -2;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: -10px;
}

.pointer {
    background-color: #fff;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    display: block;
}

.pointerContainer {
    position: absolute;
    top: -40px;
    left: 140px;
    width: 20px;
    height: 190px;
    animation: rotate 8s linear forwards infinite;
    transform-origin: bottom center;
}

.bar {
    z-index: -4;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: red;
    position: relative;
    animation: slide 8s infinite;
    animation-direction: alternate;
}

@keyframes slide {
    0%   {background: red; left: -600px; top: 0px;}
    50%  {background: blue; left: 600px; top: 0px;}
    100% {background: red; left: -600px; top: 0px;}
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Growing and shrinking effect */
.container.grow {
    animation: grow 3s linear forwards;
}

@keyframes grow {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.5);
    }
}

.container.shrink {
    animation: shrink 3s linear forwards;
}

@keyframes shrink {
    from {
        transform: scale(1.5);
    }
    to {
        transform: scale(1);
    }
}

.img {
    position: absolute;
    transform: scale(0.7);
    z-index: -3;
}

.hidden {
    visibility: hidden;
}

