* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    height: 100%;

    --colour: rgb(255, 99, 71);
    --lightColour: rgb(255, 108, 82);
    --lighterColour: rgb(255, 120, 106);
    --lightestColour: rgba(255, 119, 95, 0.267);
}


body {
    font-family: "Segoe UI", sans-serif;
    background-color: #161616;
    color: #f2f2f2;
    display: flex;
    justify-content: center;
    height: 100%;
    position: relative;
    /* border: 2px solid green; */
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 500px;
    /* border: 2px solid blue; */
    overflow: visible;
}

.app {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4.5rem;
    position: relative;
    /* border: 2px solid secondaryColour; */
    height: 100%;

    overflow: visible;
}

/* Mantra text */
.mantra-text {
    margin-top: 4rem;
    font-size: 2.5rem;
    color: var(--colour);
    /* Soft spiritual purple */
    text-align: center;
}

/* Tap Counter Circle */
.counter-circle {
    margin-top: 6.5rem;
    width: 150px;
    height: 150px;
    background-color: #1f1f1f;
    /* background-color: #2c2c2c; */
    border-radius: 50%;
    box-shadow: 0 0 40px var(--lightestColour);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
    user-select: none;
}


.count {
    font-size: 5rem;
    font-weight: bold;
    color: var(--lightColour);

}


/* Base ripple style */
.ripple-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: var(--lightestColour);

    transform: scale(1.01);
    /* just beyond the border */
    pointer-events: none;
    animation: rippleFromEdge 1s ease-out forwards;
    z-index: 0;
}

@keyframes rippleFromEdge {
    0% {
        transform: scale(1.01);
        opacity: 0.4;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Ensure the ripple is behind the text */
.counter-circle {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.counter-circle .count {
    position: relative;
    z-index: 2;
}





/* Progress Section */
.goal-progress {
    margin-top: 10rem;
    width: 80%;
    text-align: center;
}

#progressText {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
}

#progressBar {
    width: 100%;
    height: 8px;
    appearance: none;
    border-radius: 10px;
    overflow: hidden;
}

#progressBar::-webkit-progress-bar {
    background-color: #2c2c2c;
}

#progressBar::-webkit-progress-value {
    background-color: var(--lightColour);
}

#progressBar::-moz-progress-bar {
    background-color: var(--lightColour);
}

/* tap area */
.tapArea {
    /* border: 1px solid red; */
    width: 100%;
    flex-grow: 1;
    margin-bottom: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tapArea h3 {
    font-size: 7rem;
    color: #212121;
    /* color: #2020208e; */
    user-select: none;
}



/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;

    background-color: rgba(26, 26, 26, 0.5);
    /* semi-transparent */
    backdrop-filter: blur(12px);
    /* frosted glass */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */

    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);

    display: flex;
    justify-content: space-around;
    padding: 1.2rem 0.5rem;
    z-index: 1000;
}

.bottom-nav button {
    background: none;
    border: none;
    color: #f2f2f2;
    font-size: 2rem;
    /* flex: 1; */
    padding: 0 1rem;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
    /* border: 1px solid red; */
}

.bottom-nav button i{
    color: #cdcdcd;
    color: #bababa;

}


.bottom-nav button:hover i {
    color: var(--lighterColour);
}

.bottom-nav button:active i {
    transform: scale(1.2);
}

.bottom-nav span {
    font-size: 1.1rem;
    letter-spacing: 0.05rem;
    display: block;
    margin-top: 0.5rem;
    transition: all 0.2s ease-in-out;
}





/* custom goal popup*/
.goalContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    background: rgba(28, 28, 28, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
    /* display: none; */
}

.goalContainer form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#goalInput {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    border-radius: 8px;
    border: 1px solid #2c2c2c;
    background-color: rgba(255, 255, 255, 0.07);
    color: #f2f2f2;
    outline: none;
    width: 100%;
}

#goalInput::placeholder {
    color: #aaa;
}

.goalButtons {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.goalOkBtn,
.goalCancelBtn {
    flex: 1;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--lightColour);
    color: #121212;
    transition: background 0.2s ease;
    transform: scale(1);
}

.goalCancelBtn {
    background-color: #444;
    color: #f2f2f2;
}

.goalButtons button:active {
    transform: scale(1.05);
}

.goalOkBtn:hover {
    background-color: var(--colour);
}

.goalCancelBtn:hover {
    background-color: #555;
}




/* setting popup */
.settingContainer {
    background-color: #151515;

    background: rgba(50, 50, 50, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    padding: 3rem 2rem;
    /* padding: 3rem 15rem 3rem 3rem; */
    width: 70%;
    height: 100%;
    position: absolute;
    bottom: 0rem;
    right: 0;
    z-index: 200;
}

.settingContainer h2 {
    font-size: 2rem;
    padding: 1rem 1.5rem;
    letter-spacing: 0.12rem;
    color: var(--lightColour);
    margin-bottom: 3.5rem;
    border-bottom: 2px solid var(--lightestColour);
}

.settingContainer .settingList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.settingContainer ul li {
    /* border: 1px solid blue; */
    overflow: hidden;
    width: 80%;
}

.settingContainer ul li a {
    display: block;
    text-decoration: none;
    color: rgb(190, 190, 190);
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    border: 2px solid transparent;
    border-radius: 0.7rem;

    /* border: 2px solid red; */
}

.settingContainer ul li a i {
    margin-right: 0.5rem;

}

.settingContainer ul li a:hover {
    /* border: 2px solid rgba(231, 213, 109, 0.5); */
    border: 2px solid #bda6f569;
    border: 2px solid var(--lightestColour);
    color: rgb(231, 231, 231);
}

.settingContainer ul li a:hover i.fa-bookmark {
    color: dodgerblue;

}

.settingContainer ul li a:hover i.fa-code {
    color: secondaryColour;

}

.settingContainer ul li a:hover i.fa-user-ninja {
    color: lightseagreen;

}

/* theme switch */
.theme-switcher {
    position: relative;
    font-size: 1.6rem;
    color: rgb(190, 190, 190);
    cursor: pointer;
    padding: 1rem 1.5rem;
    border-radius: 0.7rem;

}

.theme-switcher .theme-options {
    display: none;
    flex-direction: column;
    gap: 1.5rem;

    margin: 2rem 0;
    padding: 1.5rem 0 1.5rem 1rem;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.7rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);


}

.theme-options .theme {
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 1.5rem;
    margin: 0 !important;
    color: rgb(190, 190, 190);
    border-radius: 5px;
    transition: background 0.2s;
}

.theme-options .theme i{
    margin-right: 0.2rem;
}

.theme-options .theme i.colour {
    color: colour;
}

.theme-options .theme i.purple {
    color: violet;
}

.theme-options .theme i.amber {
    color: #ffc71f;
}

.theme-options .theme i.lotus {
    color: #ffb7c5;    
}

.theme-options .theme i.ocean {
    color: #7fbcff;
}

.theme-options .theme i.moss {
    color: #88cc99;
}

.theme-options .theme:hover {
    color: rgb(231, 231, 231);
}

.theme-switcher:hover i{
    color: deeppink;

}

.theme-switcher:hover{
    color: rgb(231, 231, 231);
    border: 2px solid var(--lightestColour);

}

.theme-switcher:hover .theme-options {
    display: flex;
}







@media screen and (max-width: 400px) {
    .tapArea h3 {
        font-size: 6rem;
        /* border: 2px solid red; */
    }
}

@media screen and (max-width: 350px) {
    .tapArea h3 {
        font-size: 5.5rem;
        /* border: 2px solid red; */
    }
}