* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e5d4f7 0%, #fce4f6 30%,
            #d4f4fa 70%, #c8f0f2 100%);
}

.controls-button {
    margin: 4rem auto 1rem auto;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-button button,
#reset-button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.controls-button i,
#reset-button i {
    font-size: 1.5rem;
    color: #000000;
}

#sound-button {
    position: relative;
}

.line {
    position: absolute;
    top: 43%;
    left: -15%;
    transform: rotate(40deg);
    width: 40px;
    height: 2px;
    background-color: #000000;
    display: none;
}

.line.show {
    display: block;
}

.container {
    max-width: 500px;
    margin: auto;
    text-align: center;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mode-buttons {
    background-color: #e2a4ef;
    border-radius: 30px;
    max-width: 500px;
    margin-bottom: 1.7rem;
}

.mode-buttons button {
    flex: 1;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.mode-buttons button.active {
    background: #c655c0;
    color: #fff;
    box-shadow: 0 4px 15px rgba(165, 51, 161, 0.4);
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 600;
}

#timer-button,
#save-button {
    margin: 2rem 1.3rem;
    padding: 0.8rem 2.3rem;
    border-radius: 8px;
    border: none;
    background: rgba(231, 61, 226, 0.35);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#reset-button {
    display: none;
}

#reset-button.show {
    display: inline;
}

#settings-form {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.064);
    backdrop-filter: blur(12px);
    padding: 20px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: black;
    font-size: 1rem;
    min-width: 280px;
    z-index: 10;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

#settings-form input {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-top: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    outline: none;
}

form :nth-child(1) {
    display: flex;
    flex-direction: row-reverse;
}

#close-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#close-button i {
    font-size: 1.5rem;
}

#save-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    margin: 0rem;
}

.form-hide {
    display: none;
}

.wrapper {
    width: 160px;
    height: 160px;
    position: relative;
}

.outer {
    height: 160px;
    width: 160px;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 3px 3px 6px -3px rgba(0, 0, 0, 0.5),
        -3px -3px 6px -1px rgba(255, 255, 255, 0.7);
}

.inner {
    height: 140px;
    width: 140px;
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px -1px rgba(0, 0, 0, 0.2),
        inset -2px -2px 4px -1px rgba(255, 255, 255, 0.7),
        -0.5px -0.5px 0px rgba(255, 255, 255, 1),
        0.5px 0.5px 0px rgba(0, 0, 0, 0.15),
        0px 6px 5px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

#progress {
    stroke-dasharray: 471;
    stroke-dashoffset: 471;
    transition: stroke-dashoffset 1s linear;
}

@media (max-width: 600px) {
    .controls-button {
        max-width: 70%;
    }
}

@media (max-width: 500px) {
    .mode-buttons {
        max-width: 100%;
        margin-bottom: 1rem;
        display: block;
    }

    .mode-buttons button {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}