* {
    user-select: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
}

:root {
    --bgColor: #3e3f46;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.mainPage {
    height: 100%;
    width: 100%;
    background-color: var(--bgColor);
    display: flex;
    justify-content: center;
    align-items: center;
}

.clockForm {
    height: 600px;
    width: 500px;
    /* background-color: red; */
}
/* Not Active */
.clockArea {
    height: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: .5s;
}

.clock {
    position: absolute;
    height: 300px;
    width: 300px;
}

.clockTop {
    position: absolute;
    top: -50px;
    left: 0;
    height: 0px;
    width: 0px;
    background-color: transparent;
    transform: translateX(100%);
    transition: .5s;
}

.clockLeft {
    position: absolute;
    top: 0;
    left: -50px;
    height: 0px;
    width: 0px;
    background-color: transparent;
    transform: translateY(-100%);
    transition: .5s;
}

.clockFace {
    height: 0px;
    width: 0px;
    background-color: transparent;
    transform: translateY(100%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.mainFace {
    position: relative;
    height: 90%;
    width: 90%;
    border-radius: 50%;
    opacity: 0;
    background-color: #EEEEEE;
    /* background-image: linear-gradient(to bottom, #EEEEEE, #AAAAAA); */
    box-shadow: 0 -10px 10px white, 0 10px 10px #AAAAAA;
    transition: .5s;
}

.mainNumber {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 90deg));
    transform-origin: center;
    height: 90%;
    width: 90%;
    border-radius: 50%;
}

.mainNumber > p {
    margin: 0 auto;
    font-size: 18px;
    font-weight: bolder;
    width: fit-content;
    transform: rotate(calc(var(--a) * -90deg));
}

.layerCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layerCenter > i {
    height: 10px;
    width: 10px;
    background-color: red;
    border-radius: 50%;
    box-shadow: 0 0 0 2px black;
}

.hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    height: 100%;
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hand > i {
    margin: 0 auto;
    display: block;
    height: 50%;
    width: 6px;
    background-color: black;
    border-radius: 10px;
    transform: translateY(-50%);
}

.hand.minHand > i {
    width: 4px !important;
    background-color: gray !important;
}

.hand.secHand > i {
    width: 2px !important;
    background-color: red !important;
}

/* Base */

.base {
    position: relative;
    height: 20%;
    width: 100%;
}

.baseTop {
    position: absolute;
    top: -50px;
    left: 0;
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: .5s;
}

.date {
    font-size: 36px;
    font-weight: bolder;
    color: white;
    opacity: 0;
    transition: .5s;
}

.baseLeft {
    position: absolute;
    top: 0;
    left: -50px;
    height: 100%;
    width: 50px;
    background-color: transparent;
    transition: .5s;
}

.mainBase {
    height: 100%;
    width: 100%;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 10px 10px 10px #111111;
    border-radius: 10px;
    transition: .5s;
}

.timerBox {
    height: fit-content;
    width: fit-content;
    display: flex;
}

.time {
    font-size: 60px;
    font-weight: bolder;
    color: white;
    letter-spacing: 2px;
    text-shadow: 5px 5px 2px black;
}

.current {
    font-size: 24px;
    color: white;
    opacity: .5;
    margin-right: 30px;
    margin-left: 10px;
}


/* Active------------------------------------------------------------ */
/* Clock */
.clockForm.active .clockArea {
    height: 80%;
    width: 100%;
    /* background-color: white; */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: unset;
}

.clockForm.active .clock {
    position: absolute;
    height: 300px;
    width: 300px;
}

.clockForm.active .clockTop {
    position: absolute;
    top: -50px;
    left: 0;
    height: 50px;
    width: 100%;
    background-color: white;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition-delay: 1s;
}

.clockForm.active .clockLeft {
    position: absolute;
    top: 0;
    left: -50px;
    height: 100%;
    width: 50px;
    background-color: #CCCCCC;
    transform-origin: right;
    transform: skewY(45deg);
    transition-delay: .75s;
}

.clockForm.active .clockFace {
    height: 100%;
    width: 100%;
    background-color: #EEEEEE;
    transform: unset;
    transition-delay: .5s;
}

/* Base */

.clockForm.active .base {
    position: relative;
    height: 20%;
    width: 100%;
}

.clockForm.active .baseTop {
    position: absolute;
    top: -50px;
    left: 0;
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #555555;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition-delay: .5s;
}

.clockForm.active .date {
    font-size: 36px;
    font-weight: bolder;
    color: white;
    opacity: .6;
    transition-delay: .5s;
}

.clockForm.active .baseLeft {
    position: absolute;
    top: 0;
    left: -50px;
    height: 100%;
    width: 50px;
    background-color: #222222;
    transform-origin: right;
    transform: skewY(45deg);
    transition-delay: .5s;
}

.clockForm.active .mainBase {
    height: 100%;
    width: 100%;
    background-color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: unset;
    border-radius: unset;
}

.clockForm.active .timerBox {
    height: fit-content;
    width: fit-content;
    display: flex;
}

.clockForm.active .time {
    font-size: 60px;
    font-weight: bolder;
    color: white;
    letter-spacing: 2px;
    text-shadow: 5px 5px 2px black;
}

.clockForm.active .current {
    font-size: 24px;
    color: white;
    opacity: .5;
    margin-right: 30px;
    margin-left: 10px;
}

.clockForm.active .mainFace {
    opacity: 1;
    transition-delay: 1.75s;
}