* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100vh;
    width: 100vw;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg-secondary-color);
    color: var(--primary-font-color);
}

header {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

h1 {
    font-size: 50px;
}

.line {
    height: 2px;
    width: 100%;
    background-color: var(--bg-third-color);
}

.clock,
.stopwatch,
.timer {
    height: 100%;
    width: 100%;
}

.TimerSvg,
.StopwatchSvg,
.clockSvg {
    cursor: pointer;
}

/*CLock style */
.Clock {
    position: absolute;
    width: 450px;
    height: 450px;
    right: 35%;
    left: 35%;
    top: 20%;
    border-radius: 50%;
    margin: 5px 5px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 12px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.Clock::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Hour markers */
.hour-marker {
    position: absolute;
    width: 4px;
    height: 15px;
    background: rgba(255, 255, 255, 0.8);
    top: 4px;
    left: 50%;
    transform-origin: center 210px;
}

.hour-marker:nth-child(3n) {
    height: 30px;
    width: 6px;
    background: rgba(255, 255, 255, 0.95);
}

.hour-marker:nth-child(1) {
    transform: translateX(-50%) rotate(30deg);
}

.hour-marker:nth-child(2) {
    transform: translateX(-50%) rotate(60deg);
}

.hour-marker:nth-child(3) {
    transform: translateX(-50%) rotate(90deg);
}

.hour-marker:nth-child(4) {
    transform: translateX(-50%) rotate(120deg);
}

.hour-marker:nth-child(5) {
    transform: translateX(-50%) rotate(150deg);
}

.hour-marker:nth-child(6) {
    transform: translateX(-50%) rotate(180deg);
}

.hour-marker:nth-child(7) {
    transform: translateX(-50%) rotate(210deg);
}

.hour-marker:nth-child(8) {
    transform: translateX(-50%) rotate(240deg);
}

.hour-marker:nth-child(9) {
    transform: translateX(-50%) rotate(270deg);
}

.hour-marker:nth-child(10) {
    transform: translateX(-50%) rotate(300deg);
}

.hour-marker:nth-child(11) {
    transform: translateX(-50%) rotate(330deg);
}

.hour-marker:nth-child(12) {
    transform: translateX(-50%) rotate(360deg);
}

/* Clock hands - all at 12 o'clock */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%);
    border-radius: 10px;
}

.hour-hand {
    width: 6px;
    height: 100px;
    background: #fff;
    z-index: 3;
    box-shadow: 0 0 10px #00000080;
    margin-left: -2px;
}

.minute-hand {
    width: 3px;
    height: 150px;
    background: #fff;
    z-index: 4;
    box-shadow: 0 0 10px #00000080;
    margin-left: -1.5px;
}

.second-hand {
    width: 2px;
    height: 120px;
    background: #ff4757;
    z-index: 5;
    box-shadow: 0 0 8px #ff4757cc;
    margin-left: -.5px;
}

.Digital_Clock {
    position: absolute;
    bottom: 10%;
    left: 40%;
}

.Digital_Clock .time span {
    font-size: 50px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.Digital_Clock .time .ampm {
    font-size: 30px;
    margin-right: 10px;
}

.date {
    font-size: var(--font-size-md);
}


/*Stop Watch Style*/

.stopwatch .userInputField {
    padding: var(--padding-xl) var(--padding-xl);
    width: 30%;
    display: flex;
    margin: auto;
    border-radius: var(--radius-md);
    justify-content: space-around;
    align-items: center;
    background-color: var(--bg-third-color);
}

.stopwatch .userInputField div {
    display: flex;
    font-size: var(--font-size-xxl);
    flex-direction: column;
    align-items: center;
}

.stopwatch .userInputField div .Num {
    cursor: pointer;
}

.stopwatch .userInputField div span:nth-child(2n) {
    font-size: 20px;
}

.stopwatch .userInputField div .Num:active {
    color: blue;
}

.inputNumbers {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    margin-top: var(--margin-sxl);
    gap: var(--gutter-xl);
    background-color: var(--bg-third-color);
    min-height: 40vh;
    justify-content: center;
    align-items: flex-end;
    padding: var(--padding-lg);
    width: 25%;
    border-radius: var(--radius-md);
}

.inputNumbers button {
    height: 100px;
    width: 100px;
    font-size: var(--font-size-xxl);
    background: linear-gradient(#222, #3e3e3e);
    color: var(--primary-font-color);
    border-radius: 50%;
    outline: none;
    border: none;
    cursor: pointer;
}

.inputNumbers button:last-child svg {
    margin-top: 10px;
    height: 60px;
    width: 60px;
}

.playReset {
    display: flex;
    justify-content: center;
    width: 200px;
    border-radius: var(--radius-sm);
    margin: auto;
    height: 50px;
    margin-top: 10px;
    padding: var(--padding-sm);
    background-color: var(--bg-third-color);
    gap: 30px;
}

.playReset button {
    padding: var(--padding-sm);
    color: var(--primary-font-color);
    cursor: pointer;
    border-radius: 50%;
    background: linear-gradient(#222, #3e3e3e);
    outline: none;
    border: none;
}

.playReset button svg:active {
    background-color: #8a8808;
}

.toast {
    position: fixed;
    bottom: 80%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: var(--third-font-color);
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

.toast.show {
    opacity: 1;
}

.timerContainer {
    height: 400px;
    width: 400px;
    margin: auto;
    margin-top: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    border: 5px solid #0832ec;
}

.timeSection {
    position: relative;
    display: flex;
    gap: 20px;
    font-size: var(--font-size-xxl);
}

.timerRestPlay {
    display: flex;
    margin-top: 100px;
    justify-content: center;
    gap: 20px;
}

.timer .palyPause,
.timer .StopReset {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    border: 1px solid var(--third-font-color);
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.blinking {
    animation: blink 1s infinite;
}