
.button {
    /*  design the outer circle */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px 0px #888;

    /*  required to position children elements */
    position: relative;

    /*  required to center elements*/
    display: grid;
    place-items: center;
    transition: opacity 1s ease; /* Transition effect for disappearing */
}

.button::before {
    /*  pseudo-elements don't display if content property is not declared */
    content: "";

    /*  design the inner-ring */
    width: 50%;
    height: 50%;
    border: 5px solid #eee;
    border-radius: 50%;
    position: absolute;
}

.light {
    /*  design the vertical light */
    height: 30%;
    width: 10px;
    background: #eee;
    border-radius: 5px;

    /*  position the light correctly */
    position: absolute;
    top: 20px;

    /*  required to give white-space to inner-ring */
    box-shadow: 0 0 0 10px #333333;
}

.button:hover {
    cursor: pointer;
}

.button:active {
    box-shadow: 0 0 10px 0px #888 inset;
}

.button:active .light {
    background: #FFD700;
}

.button:active::before {
    border-color: #FFD700;
}


/*=========================
GENERAL CODE FOR CENTERING ELEMENTS ON THE PAGE.
UNRELATED TO THIS TUTORIAL.
===========================*/

body {
    height: 100vh;
    display: grid;
    place-items: center;
    background-color: #333333; /* Dark modern look */
    margin: 0;
}

/* Transition for fading in the text */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in; /* Smooth fade-in transition */
}

html {
    scroll-behavior: smooth;
  }
  