* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	display: grid;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: #090909;
    background: #07141b;
}

body.light {
	background: #d1dae3;
}

/* Clock */
.clock {
	width: 375px;
	height: 375px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: url(../images/clock.png);
	background-size: cover;
	border: 4px;
	box-shadow: 0em -1.2em 1.2em rgba(255, 255, 255, 0.06), 
				inset 0em -1.2em 1.2em rgba(255, 255, 255, 0.06),
				0em 1.2em 1.2em rgba(0, 0, 0, 0.3),
				inset 0em 1.2em 1.2em rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	margin-top: 20%;
	position: relative;
}

body.light .clock {
	box-shadow: 0em -1.2em 1.2em rgba(255, 255, 255, 0.3),
                inset 1em 1em -1em rgba(255, 255, 255, 0.3),
                0em -1.2em -1.2em rgba(0, 0, 0, 0.5),
                inset 1em -1em 1em rgba(0, 0, 0, 0.1);
}

.clock:hover {
	cursor: pointer;
}

@media only screen and (max-width: 400px)
{
	.clock {
		width: 320px;
		height: 320px;
		margin-top: 80px;
	}
}

/* Displays full date and time on hovering */
.hide {
	display: none;
}

.clock:hover + .hide {
	display: block;
	color: #ffffff;
	font-weight: 800;
	font-size: 1rem;
	margin-top: 17px;
	margin-left: 73px;
	align-self: center;
	overflow-x: hidden;
}

@media only screen and (min-width: 400px)
{
	.clock:hover + .hide {
		margin-left: 104px;
	}
}

body.light .clock:hover + .hide {
	color: #000000;
}


/* Small circle in the middle of clock */
.clock:before {
	content: '';
	position: absolute;
	width: 15px;
	height: 15px;
	background: #568c64;
	border-radius: 50%;
	z-index: 15;
}

body.light .clock:before {
	background: #1a74be;
}

/* All clock arms */
.clock .hour, .clock .min, .clock .sec {
	position: absolute;
}

.clock .hour, .hr {
	height: 160px;
	width: 160px;
}

.clock .min, .mn {
	height: 190px;
	width: 190px;
}

.clock .sec, .sc {
	height: 230px;
	width: 230px;
}

.hr, .mn, .sc {
	display: flex;
	justify-content: center;
	position: absolute;
	border-radius: 50%;
}

/* Hour hand */
.hr:before {
	content: '';
	position: absolute;
	width: 7.5px;
	height: 80px;
	background: #f81460;
	z-index: 10;
	border-radius: 2.8px;
}

/* Minute hand */
.mn:before {
	content: '';
	position: absolute;
	width: 3.5px;
	height: 100px;
	background: #ffffff;
	z-index: 11;
	border-radius: 3px;
}

body.light .mn:before {
	background: #091921;
}

/* Second hand */
.sc:before {
	content: '';
	position: absolute;
	width: 2px;
	height: 150px;
	background: #0075fa80;
	z-index: 12;
	border-radius: 3px;
}



/* Stopwatch */

.stopwatch {
	display: grid;
	justify-content: center;
	grid-row-gap: 2rem;
	padding-top: 25px;
}

.circle {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 250px;
	width: 250px;
	border: 2px solid #568c64;
	border-radius: 50%;
}

body.light .circle {
	border: 2px solid #f81460;
}

.time {
	font-family: 'Roboto Mono', monospace;
	font-size: 47px;
	font-weight: 300;
	color: #93a6b1;
}

body.light .time {
	color: #4a555a;
}

.controls {
	display: flex;
	justify-content: space-between;
	width: 190px;
}

button {
	cursor: pointer;
	background: transparent;
	padding: 0;
	border: none;
	margin: 0;
	outline: none;
}

.resetButton {
	fill: #d8ac0c;
}

body.light .playButton {
	filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
	-webkit-filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
	-moz-filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
}

body.light .pauseButton {
	filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
	-webkit-filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
	-moz-filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
}

body.light .resetButton {
	filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
	-webkit-filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
	-moz-filter: invert(34%) sepia(96%) saturate(854%) hue-rotate(176deg) brightness(92%) contrast(88%);
}

#playButton {
	display: block;
	margin-left: 48px;
}

#pauseButton {
	display: none;
	margin-left: 48px;
}




/* Toggle button */
.toggleClass {
	position: absolute;
	top: 35px;
	right: 150px;
	width: 20px;
	margin: 2px;
	height: 20px;
	font-size: 18px;
	border-radius: 50%;
	background: #d1dae3;
	color: #d1dae3;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.toggleClass:before {
	position: absolute;
	content: 'Light Mode';
	white-space: nowrap;
	left: 25px;
}

body.light .toggleClass {
	background: #091921;
    color: #091921;
    content: 'Dark Mode';
}

body.light .toggleClass:before {
	content: 'Dark Mode';
	white-space: nowrap;
}

body {
	overflow-x: hidden;
}

