body,
html {
	font-family: 'Arial', sans-serif;
	height: 100%;
	display: grid;
}

main {
	width: 600px;
	height: 250px;
	border-radius: 10px;
	border: 1px solid #dedede;
	padding: 0;
	margin: auto;
	text-align: center;
}

header {
	width: 100%;
	height: 50px;
	border-bottom: 1px solid #dedede;
}

footer {
	width: 100%;
	border-top: 1px solid #dedede;
}
.tablinks {
	width: 50%;
	float: left;
	padding: 14px;
	font-size: 18px;
	border: none;
	background-color: #fff;
	border-radius: 20px 20px 0 0;
	text-transform: uppercase;
	color: #757575;
	outline: none;
}

.tablinks.active {
	border-bottom: 2px solid #4c8dee;
}

.timer {
	display: block;
}

.stopwatch {
	display: none;
}

.tabcontent {
	width: 100%;
	height: 150px;
}

.tabcontent p {
	font-size: 64px;
	text-align: left;
	padding: 35px;
	margin: 0;
}

.commands {
	margin: 9px 0;
	float: left;
	padding: 7px 15px;
	text-transform: uppercase;
	font-weight: bold;
	border-radius: 2px;
	border: none;
	outline: none;
}

.commands:first-child {
	background-color: #4c8dee;
	color: white;
	border: 1px solid blue;
	margin-left: 15px;
}

.commands:first-child:hover {
	background-color: #166ae9;
}

.commands:last-child {
	background-color: #dedede;
	color: #656565;
	border: 1px solid #959595;
	margin-left: 15px;
}

.commands:last-child:hover {
	background-color: #c5c5c5;
}

/*Animation*/
#timer {
	position: relative;
}

#animation {
	position: absolute;
	left: 0;
	bottom: 2px;
}

.icon {
	font-size: 16px;
	margin-right: 10px;
}
.hour_stopwatch {
	font-size: 28px;
	margin: 0 5px 0 0;
}

.minute_m {
	font-size: 28px;
	margin-left: -14px;
}

.minute_stopwatch {
	font-size: 28px;
	margin: 0 15px 0 2px;
}
.second_s {
	font-size: 28px;
	margin-left: -14px;
}

.second_stopwatch {
	font-size: 28px;
	margin-left: 5px;
}
