:root {
    --primary-light: #8abdff;
    --primary: #6d5dfc;
    --primary-dark: #5b0eeb;
    --white: #FFFFFF;
    --greyLight-1: #E4EBF5;
    --greyLight-2: #c8d0e7;
    --greyLight-3: #bec8e4;
    --greyDark: #9baacf;
}

#audio-player {
    position: absolute;
    opacity: 0;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    overflow-y: scroll;
    background: var(--greyLight-1);
}
@media screen and (min-width: 900px) {
    html {
        font-size: 75%;
    }
}

.container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Poppins", sans-serif;
    background: var(--greyLight-1);
}

.components {
    width: 90%;
    height: 90vh;
    display: flex;
    border-radius: 3rem;
    box-shadow: 0.8rem 0.8rem 1.4rem var(--greyLight-2), -0.2rem -0.2rem 1.8rem var(--white);
    padding: 4rem;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

/*  SWITCH  */
.switch {
    grid-column: 1/2;
    display: grid;
    grid-template-columns: repeat(2, min-content);
    grid-gap: 3rem;
    justify-self: center;
}
.switch input {
    display: none;
}
.switch__1, .switch__2 {
    width: 6rem;
}
.switch__1 label, .switch__2 label {
    display: flex;
    align-items: center;
    width: 100%;
    height: 3rem;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    background: rgba(255, 255, 255, 0);
    position: relative;
    cursor: pointer;
    border-radius: 1.6rem;
}
.switch__1 label::after, .switch__2 label::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--greyDark);
    transition: all 0.4s ease;
}
.switch__1 label::before, .switch__2 label::before {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(330deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    opacity: 0;
    transition: all 0.4s ease;
}
.switch input:checked ~ label::before {
    opacity: 1;
}
.switch input:checked ~ label::after {
    left: 57%;
    background: var(--greyLight-1);
}

/*  CHECKBOX  */
.checkbox {
    grid-column: 1/2;
    display: grid;
    grid-template-columns: repeat(2, 6rem);
    grid-gap: 3rem;
    justify-content: center;
}
.checkbox input {
    display: none;
}
.checkbox__1, .checkbox__2 {
    width: 6rem;
    display: flex;
    justify-content: center;
}
.checkbox__1 label, .checkbox__2 label {
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    width: 2.8rem;
    height: 2.8rem;
}
.checkbox__1 label:hover i, .checkbox__2 label:hover i {
    color: var(--primary);
}
.checkbox__1 label i, .checkbox__2 label i {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--greyDark);
    transition: 0.3s ease;
}
.checkbox__1 input:checked ~ label, .checkbox__2 input:checked ~ label {
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
}
.checkbox__1 input:checked ~ label i, .checkbox__2 input:checked ~ label i {
    color: var(--primary);
}

/*  RADIO  */
.radio {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.radio .buttons {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.radio .track {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio .track p {
    font-size: 12px;
    margin-bottom: 10px;
    color: var(--greyDark);
}

.radio input {
    display: none;
    -webkit-tap-highlight-color: transparent;
}
.radio__1 input:checked ~ label, .radio__2 input:checked ~ label {
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
    -webkit-tap-highlight-color: transparent;

}
.radio__1 input:checked ~ label::after, .radio__2 input:checked ~ label::after {
    background: var(--primary);
    -webkit-tap-highlight-color: transparent;

}
.radio__1 label, .radio__2 label {
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
}
.radio__1 label:hover::after, .radio__2 label:hover::after {
    background: var(--primary);
}
.radio__1 label::after, .radio__2 label::after {
    content: "";
    position: absolute;
    width: 1.4rem;
    height: 1.4rem;
    background: var(--greyDark);
    border-radius: 50%;
    transition: 0.3s ease;
}

/*  BUTTONS  */
.btn {
    width: 15rem;
    height: 4rem;
    border-radius: 1rem;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}
.btn__primary {
    grid-column: 1/2;
    grid-row: 4/5;
    background: var(--primary);
    box-shadow: inset 0.2rem 0.2rem 1rem var(--primary-light), inset -0.2rem -0.2rem 1rem var(--primary-dark), 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    color: var(--greyLight-1);
}
.btn__primary:hover {
    color: var(--white);
}
.btn__primary:active {
    box-shadow: inset 0.2rem 0.2rem 1rem var(--primary-dark), inset -0.2rem -0.2rem 1rem var(--primary-light);
}
.btn__secondary {
    grid-column: 1/2;
    grid-row: 5/6;
    color: var(--greyDark);
}
.btn__secondary:hover {
    color: var(--primary);
}
.btn__secondary:active {
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
}
.btn p {
    font-size: 1.6rem;
}

/*  CLOCK  */
.clock {
    grid-column: 2/3;
    grid-row: 1/3;
    width: 12rem;
    height: 12rem;
    justify-self: center;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.clock .hand {
    position: absolute;
    transform-origin: bottom;
    bottom: 6rem;
    border-radius: 0.2rem;
    z-index: 200;
}
.clock .hours {
    width: 0.4rem;
    height: 3.2rem;
    background: var(--greyLight-3);
}
.clock .minutes {
    width: 0.4rem;
    height: 4.6rem;
    background: var(--greyDark);
}
.clock .seconds {
    width: 0.2rem;
    height: 5.2rem;
    background: var(--primary);
}
.clock .point {
    position: absolute;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--primary);
    z-index: 300;
}
.clock .marker {
    width: 95%;
    height: 95%;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
}
.clock .marker::after {
    content: "";
    width: 60%;
    height: 60%;
    position: absolute;
    box-shadow: inset 1px 1px 1px var(--greyLight-2), inset -1px -1px 1px var(--white);
    border-radius: 50%;
    top: 20%;
    left: 20%;
    filter: blur(1px);
}
.clock .marker__1, .clock .marker__2, .clock .marker__3, .clock .marker__4 {
    position: absolute;
    border-radius: 0.1rem;
    box-shadow: inset 1px 1px 1px var(--greyLight-2), inset -1px -1px 1px var(--white);
}
.clock .marker__1, .clock .marker__2 {
    width: 0.2rem;
    height: 0.6rem;
    left: 5.6rem;
}
.clock .marker__3, .clock .marker__4 {
    width: 0.6rem;
    height: 0.2rem;
    top: 5.6rem;
}
.clock .marker__1 {
    top: 2%;
}
.clock .marker__2 {
    top: 98%;
    transform: translateY(-0.6rem);
}
.clock .marker__3 {
    left: 2%;
}
.clock .marker__4 {
    left: 98%;
    transform: translateX(-0.6rem);
}

/*  CHIP  */
.chip {
    width: 140px;
    min-height: 40px;
    border-radius: 1rem;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip.bpm {
    width: 115px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0;
    gap: 10px;
}
.chip.bpm .chip__icon {
    width: 20px;
    height: 20px;
    margin: 0;
}

.chip.bpm span {
    font-size: 9px;
}
.chip__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    margin: 0 0 0 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary);
}
.chip p {
    font-size: 12px;
    color: var(--greyDark);
}
.chip__close {
    width: 1.6rem;
    height: 1.6rem;
    margin: 0 0.5rem;
    display: flex;
    font-size: 1.6rem;
    color: var(--greyLight-3);
    cursor: pointer;
}

/*  PLAY BUTTON  */
.circle {
    grid-column: 2/3;
    grid-row: 4/6;
    width: 9rem;
    height: 9rem;
    justify-self: center;
    border-radius: 1rem;
    display: grid;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
}
.circle__btn {
    -webkit-tap-highlight-color: transparent;
    grid-row: 1/2;
    grid-column: 1/2;
    width: 6rem;
    height: 6rem;
    display: flex;
    margin: 0.6rem;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 3.2rem;
    color: var(--primary);
    z-index: 300;
    background: var(--greyLight-1);
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    cursor: pointer;
    position: relative;
}
.circle__btn.shadow {
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
}
.circle__btn .play {
    position: absolute;
    opacity: 1;
    transition: all 0.2s linear;
}
.circle__btn .play.visibility {
    opacity: 0;
}
.circle__btn .pause {
    position: absolute;
    opacity: 0;
    transition: all 0.2s linear;
}
.circle__btn .pause.visibility {
    opacity: 1;
}
.circle__back-1, .circle__back-2 {
    grid-row: 1/2;
    grid-column: 1/2;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    filter: blur(1px);
    z-index: 100;
}
.circle__back-1 {
    box-shadow: 0.4rem 0.4rem 0.8rem var(--greyLight-2), -0.4rem -0.4rem 0.8rem var(--white);
    background: linear-gradient(to bottom right, var(--greyLight-2) 0%, var(--white) 100%);
    -webkit-animation: waves 4s linear infinite;
    animation: waves 4s linear infinite;
    -webkit-animation-play-state: paused;
    animation-play-state: paused;

}
.circle__back-1.paused {
    -webkit-animation-play-state: running;
    animation-play-state: running;

}
.circle__back-2 {
    box-shadow: 0.4rem 0.4rem 0.8rem var(--greyLight-2), -0.4rem -0.4rem 0.8rem var(--white);
    -webkit-animation: waves 4s linear 2s infinite;
    animation: waves 4s linear 2s infinite;
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}
.circle__back-2.paused {
    -webkit-animation-play-state: running;
    animation-play-state: running;
}

/*  FORM  */
.form {
    grid-column: 3/4;
    grid-row: 3/4;
}
.form__input {
    width: 20.4rem;
    height: 4rem;
    border: none;
    border-radius: 1rem;
    font-size: 1.4rem;
    padding-left: 1.4rem;
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
    background: none;
    font-family: inherit;
    color: var(--greyDark);
}
.form__input::-moz-placeholder {
    color: var(--greyLight-3);
}
.form__input:-ms-input-placeholder {
    color: var(--greyLight-3);
}
.form__input::placeholder {
    color: var(--greyLight-3);
}
.form__input:focus {
    outline: none;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
}

/*  SEARCH  */
.search {
    grid-column: 3/4;
    grid-row: 2/3;
    position: relative;
    display: flex;
    align-items: center;
}
.search__input {
    width: 20.4rem;
    height: 4rem;
    border: none;
    border-radius: 1rem;
    font-size: 1.4rem;
    padding-left: 3.8rem;
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
    background: none;
    font-family: inherit;
    color: var(--greyDark);
}
.search__input::-moz-placeholder {
    color: var(--greyLight-3);
}
.search__input:-ms-input-placeholder {
    color: var(--greyLight-3);
}
.search__input::placeholder {
    color: var(--greyLight-3);
}
.search__input:focus {
    outline: none;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
}
.search__input:focus + .search__icon {
    color: var(--primary);
}
.search__icon {
    height: 2rem;
    position: absolute;
    font-size: 2rem;
    padding: 0 1rem;
    display: flex;
    color: var(--greyDark);
    transition: 0.3s ease;
}

/*  SEGMENTED-CONTROL */
.segmented-control {
    grid-column: 3/4;
    grid-row: 1/2;
    width: 20.4rem;
    height: 4rem;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}
.segmented-control input {
    display: none;
}
.segmented-control > input:checked + label {
    transition: all 0.5s ease;
    color: var(--primary);
}
.segmented-control__1, .segmented-control__2, .segmented-control__3 {
    width: 6.8rem;
    height: 3.6rem;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--greyDark);
    transition: all 0.5s ease;
}
.segmented-control__1:hover, .segmented-control__2:hover, .segmented-control__3:hover {
    color: var(--primary);
}
.segmented-control__color {
    position: absolute;
    height: 3.4rem;
    width: 6.2rem;
    margin-left: 0.3rem;
    border-radius: 0.8rem;
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
    pointer-events: none;
}

#tab-1:checked ~ .segmented-control__color {
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#tab-2:checked ~ .segmented-control__color {
    transform: translateX(6.8rem);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#tab-3:checked ~ .segmented-control__color {
    transform: translateX(13.6rem);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/*  ICONS  */
.icon {
    grid-column: 3/4;
    grid-row: 4/5;
    display: flex;
    justify-content: space-between;
}
.icon__account, .icon__home, .icon__settings {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    color: var(--greyDark);
    transition: all 0.5s ease;
}
.icon__account:active, .icon__home:active, .icon__settings:active {
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--greyLight-2), inset -0.2rem -0.2rem 0.5rem var(--white);
    color: var(--primary);
}
.icon__account:hover, .icon__home:hover, .icon__settings:hover {
    color: var(--primary);
}

* {
    border: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --hue: 223;
    --white: hsl(var(--hue),10%,100%);
    --gray1: hsl(var(--hue),10%,90%);
    --gray2: hsl(var(--hue),10%,80%);
    --gray7: hsl(var(--hue),10%,30%);
    --gray9: hsl(var(--hue),10%,10%);
    font-size: calc(16px + (48 - 16) * (100vw - 320px) / (1280 - 320));
}
body,
input {
    font: 1em/1.5 sans-serif;
}
body {
    background-color: var(--gray9);
    color: var(--gray1);
    height: 100vh;
    display: grid;
    place-items: center;
}

/* Main styles */
.gr-glow {
    --gradient: linear-gradient(90deg,var(--primary),var(--primary-light) 6em,var(--primary-dark) 12em);
    --percent: 50%;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0.5em 0;
    width: 12em;
    height: 1.5em;
}
.gr-glow:before {
    background-image: var(--gradient);
    border-radius: 0.5em;
    content: "";
    display: block;
    filter: blur(0.6em);
    position: absolute;
    top: 25%;
    left: 0;
    width: var(--percent);
    height: 50%;
    z-index: -1;
}
.gr-input {
    background: var(--gray7) var(--gradient) no-repeat;
    background-size: var(--percent) 100%;
    border-radius: 0.375em;
    width: inherit;
    height: 0.75em;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.gr-input:focus {
    outline: transparent;
}

/* WebKit */
.gr-input::-webkit-slider-thumb {
    background-color: var(--white);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0.0625em var(--gray2) inset;
    width: 1.5em;
    height: 1.5em;
    transition: background-color 0.15s linear;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.gr-input:focus::-webkit-slider-thumb,
.gr-input::-webkit-slider-thumb:hover {
    background-color: var(--gray1);
}

/* Firefox */
.gr-input::-moz-range-thumb {
    background-color: var(--white);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0.0625em var(--gray2) inset;
    width: 1.5em;
    height: 1.5em;
    transition: background-color 0.15s linear;
}
.gr-input:focus::-moz-range-thumb,
.gr-input::-moz-range-thumb:hover {
    background-color: var(--gray1);
}

/* Accessibility */
.sr {
    clip: rect(1px,1px,1px,1px);
    overflow: hidden;
    position: absolute;
    width: 1px;
    height: 1px;
}




@-webkit-keyframes waves {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes waves {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}
.dribbble {
    position: fixed;
    font-size: 2.6rem;
    right: 2rem;
    bottom: 1rem;
    color: #EA4C89;
}

.mobile-paywall {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: black;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1025px) {
.mobile-paywall {
    display: flex;
}

}
