:root {
    --light-mode: linear-gradient(
        to right,
        #ffc0cb 0%,
        pink 50%,
        paleturquoise 50%,
        paleturquoise 100%
    );
    --reverse-light-mode: linear-gradient(
        to right,
        paleturquoise 0%,
        paleturquoise 50%,
        pink 50%,
        pink 100%
    );
    --dark-mode: linear-gradient(
        to right,
        #353b48 0%,
        #353b48 50%,
        #718093 50%,
        #718093 100%
    );
    --reverse-dark-mode:linear-gradient(
        to right,
        #718093  0%,
        #718093 50%,
        #353b48 50%,
        #353b48 100%
    );
   
    --primary-color: #34495e;
    --secondary-color: #dfe6e9;
    --accent-color: #81ecec;
    --danger-color: #fab1a0;
    --light-gray: #b2bec3;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
    width: 100%;
    height: 100vh;
    background: var(--light-mode);
    color: var(--primary-color);
}
body {
    font-family: 'Roboto';
    height: 100vh;
}
.position-relative {
    position: relative;
}
.container {
    min-width: 500px;
    margin:100px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.d-flex {
    display: flex;
    gap: 40px;
}

/* ---dark mode--- */
html.dark {
    background: var(--dark-mode);
    color: var(--secondary-color);
}
.sound {
    background-image: url(../image/icons8-sound-100.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 40px;
    width: 50px;
    position: absolute;
    right: 5%;
    top: -38px;
    cursor: pointer;
}
.toggle {
    border: none;
    cursor: pointer;
    background-color: var(--light-gray);
    color: inherit;
    border-radius: 4px;
    padding: 8px 12px;
    margin-block: 15px;
    margin-left: 5%;
} 
.toggle:focus {
    outline: none;
}
.toggle:hover {
    transform: scale(1.1);
}
/* .toggle {
    position: absolute;
    margin-top: 5%;
    top: -100px;
    left: 5%;
    transform: translate(-50%, 0);
    width: 60px;
    height: 34px;
    color: white;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-gray);
    border-radius: 34px;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
    transition: .4s;
}
input:checked+.slider {
    background-color: #718093;
} 
input:focus+.slider {
    box-shadow: 0 0 1px #ffb870;
}
input:checked+.slider::before {
    transform: translateX(26px);
} */


/* --- Plans --- */
.plans {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block: 100px;
    /* -webkit-box-shadow: 0px 0px 15px 10px var(--accent-color); 
    box-shadow: 0px 0px 15px 10px var(--accent-color); */
    position: relative;
    padding: 20px 50px;
    display: block;
    width: 200px;
    overflow: hidden;
    border-radius: 40px;
}
.liquid span {
    color: var(--primary-color);
    font-size: 24px;
    position: relative;
}
.plans .liquid {
    position: absolute;
    top: -80px;
    left: -0.5px;
    width: 202px;
    height: 210px;
    background: var(--accent-color);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, .5);
    transition: .5s;
}
  
.plans .liquid::after,
.plans .liquid::before {
    content: '';
    width: 200%;
    height: 200%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    background: #000;
}

.plans .liquid::before {
    border-radius: 45%;
    background:rgb(151, 224, 224);
    animation: animate 5s linear infinite;
}

.plans .liquid::after {
    border-radius: 40%;
    background:rgba(247, 241, 227,0.5);
    animation: animate 10s linear infinite;
}

.plans:hover .liquid{
    transform: scale(1.1);
    cursor: pointer;
}

@keyframes animate {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}
.link {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    cursor: pointer;
}

/* --- Circle --- */
.circles-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position: absolute;
    overflow: hidden;
    z-index: 1;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background: #dfe6e9;
}
.circles {
    width: 50%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: right center;
}
.circles:nth-child(1){
    background-color: var(--light-gray);
    z-index: 2;
}
.circles:nth-child(2)  {
    background-color: var(--light-gray);
    z-index: 3;
}
.circles:nth-child(3) {
    background: #dfe6e9;
    z-index: 4;
}
.circle-outer {
    width: 390px;
    height: 390px;
    background: var(--reverse-light-mode);
    z-index: 5;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
/* .circles-container:hover .circles:nth-child(1){
    transform: rotate(180deg);
    transition: 1s linear;
}
.circles-container:hover .circles:nth-child(2) {
    transform: rotate(360deg);
    transition: 2s linear;
}
.circles-container:hover .circles:nth-child(3) {
    opacity: 0;
    transition: opacity 0s 1s;
} */


/* --- Timer --- */
.timer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
}
.timer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: 200;
    margin-inline: 20px;
    position: relative;
    z-index: 6;
}

/* --- Performance Btn ---*/
.performance-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 220px;
}
#play,
#reset,
#pause {
    cursor: pointer;
    border: none;
    border-radius: 50px;
    background: var(--accent-color);
    margin-inline: 15px;
    width: 55px;
    height: 55px;
    line-height: 55px;
    transition: all ease 0.1s;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
#play {
    width: 100px
}
#play:hover, #reset:hover, #pause:hover {
    transform: scale(1.2);
}

@media (max-width:768px) {
    .plans {
        width: 100px;
        padding: 20px;
    }
    .liquid span {
        font-size: 18px;
        display: flex;
        justify-content: start;
        align-content: center;
        transform: translateX(20px);
        margin-top: -10px;
    }
}
@media (max-width:499px) {
    .container{
        margin: auto;
    }
    .sound {
        height: 30px;
        width: 40px;
    }
    .plans {
        margin-block: 30px;
        width: 55px;
        height: 55px;
        border-radius: 50px;
    }
    .liquid span {
        overflow: hidden;
        width: 50px;
        font-size: 18px;
        display: flex;
        justify-content: start;
        align-content: center;
        margin-top: 2%;
        margin-left: -9%;
    }
    .circles-container {
        width: 300px;
        height: 300px;
    
    }
   
}