:root {
    --primary-color: #F6F5F2;
    --bg-color: #17153B;
    --invert-filter-value: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lexend Tera", sans-serif;
    transition: 0.3s;
}

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

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.title {
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
}

/* Clock image */
.clock-image {
    min-width: 300px;
    width: 500px;
    max-width: 700px;
    min-height: 300px;
    height: 500px;
    max-height: 700px;
    position: relative;
}

.clock-image img {
    width: 100%;
    height: 100%;
    position: absolute;
    filter: invert(var(--invert-filter-value));
}

/* Clock hands */
.clock-image .clock-hands {
    width: 100%;
    height: 100%;
    position: absolute;
}

.clock-hands::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.clock-hands .hour-hand {
    width: 5px;
    height: 20%;
    background: var(--primary-color);
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.clock-hands .hour-hand::before {
    content: '';
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

.clock-hands .minute-hand {
    width: 4px;
    height: 30%;
    background: var(--primary-color);
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.clock-hands .minute-hand::before {
    content: '';
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

.clock-hands .second-hand {
    width: 3px;
    height: 35%;
    background: var(--primary-color);
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.clock-hands .second-hand::before {
    content: '';
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

/* Dark Light Mode Toggle Button */
.dark-mode-toggle {
    width: 100%;
    height: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.dark-mode-toggle>p {
    color: var(--primary-color);
}

.dark-mode-toggle .toggle-button-area {
    width: 80px;
    height: 100%;
    cursor: pointer;
}

.dark-mode-toggle .toggle-button-area .outer-area {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.dark-mode-toggle .toggle-button-area .outer-area .circle {
    width: 35px;
    height: 35px;
    background: #8a8a8a;
    border-radius: 50%;
    position: absolute;
    left: 0px;
    transform: translate(-3px, -3px);
}

.dark-mode-toggle .toggle-button-area .outer-area .dark-active {
    left: 53px;
    background: #192a56;
}


/* Responsive */
@media (max-width: 550px) {
    .clock-image {
        min-width: 300px;
        max-width: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .toggle-button-area {
        scale: 0.6;
    }

}