* {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
}

.main-content {
  display: flex;
  width: 100%;
}

/* Theme colors */
.main-content {
  --bg-color: #e5f2ff;
  --bg-color-dig: #e5f2ff;
  --border-color: #e5f2ff;
  --color-dig: #747475;
  --hour-color: #FF105E;
  --minute-color: #FFF;
  --second-color: #FFF;
  --shadow-1: -8px -8px 15px rgba(255, 255, 255, 0.05), 20px 20px 20px rgba(0, 0, 0, 0.3),
  inset -8px -8px 15px rgba(255, 255, 255, 0.05), inset 20px 20px 20px rgba(0, 0, 0, 0.3);
  --shadow-2: -5px -5px 20px rgba(0, 0, 0, 0.3), 5px 5px 20px rgba(0, 0, 0, 0.1),
  inset -5px -5px 20px rgba(0, 0, 0, 0.3), inset 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.main-content.light {
  --bg-color: #e5f2ff;
  --bg-color-dig: #E6EAEE;
  --border-color: #CAD3DC;
  --color-dig: #191919;
  --hour-color: #E59017;
  --minute-color: #191919;
  --second-color: #008EFF;
  --shadow-1: -8px -8px 15px rgba(255, 255, 255, 0.5), 10px 10px 10px rgba(0, 0, 0, 0.1),
  inset -8px -8px 15px rgba(255, 255, 255, 0.5), inset 10px 10px 10px rgba(0, 0, 0, 0.1);
  --shadow-2: -5px -5px 20px #FFF, 5px 5px 20px #BABECC, inset -5px -5px 20px #FFF,
  inset 5px 5px 20px #BABECC;
}
/* End theme colors */

.section {
  align-items: center;
  background-color: var(--bg-color-dig);
  /*display: flex;
  flex: 1;
  justify-content: center;*/
  padding: .2rem;
  margin: 0px auto;
  width: 100%;
  text-align: center;
}

.section:last-of-type {
  background-color: var(--bg-color);
}

/* Digital */
.digital-clock {
	border: 0.1rem solid var(--bg-color-dig);
	border-radius: 0.1rem;
	box-shadow: var(--shadow-2);
	padding: .2rem;
	width: 66%;
	margin: 0px auto;
	margin-top: 15px;
    margin-bottom: 15px;
}

.dig-text {
  color: var(--color-dig);
  font-size: 0.45rem;
  font-weight: 400;
  line-height: 1;
}
/* End digital */

/* Analog */
.analog-clock {
  align-items: center;
  background-image: url('/static/image/clock_ttej2k.png');
  background-size: cover;
  border: 0.055rem solid var(--border-color);
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  display: flex;
  height: 4.188rem;
  justify-content: center;
  position: relative;
  width: 4.188rem;
  margin: 0px auto;
}

.analog-clock::before {
  background-color: var(--second-color);
  border-radius: 50%;
  content: '';
  height: 0.15rem;
  width: 0.15rem;
  z-index: 1;
}

.hour,
.minute,
.second {
  border-radius: 0.1rem;
  bottom: 50%;
  position: absolute;
  transform-origin: bottom;
}

.hour {
  background-color: var(--hour-color);
  height: 1rem;
  width: 0.1rem;
}

.minute {
  background-color: var(--minute-color);
  height: 1.1rem;
  width: 0.055rem;
}

.second {
  background-color: var(--second-color);
  height: 1.2rem;
  width: 0.025rem;
}

.second::before {
  background-color: var(--second-color);
  bottom: -0.4rem;
  content: '';
  height: .5rem;
  position: absolute;
  width: 100%;
}
/* End Analog */

/* Checkbox change theme */
.input {
  display: none;
}

.input:checked + .label {
  background: radial-gradient(#FFF 15%, transparent 16%), radial-gradient(#FFF 15%, transparent 16%);
  background-color: #3D4145;
  background-position: 0 0, .3rem .3rem;
  background-size: .5rem .5rem;
  border-color: #1E1E1D;
}

.input:checked + .label::after {
  background-color: #FFF;
  border-color: #E4E6CA;
  transform: translateX(.4rem);
}

.label {
  background: linear-gradient(#FFF 50%, transparent 0) 0 0,
  radial-gradient(circle closest-side, #FFF 53%, transparent 0) 0 0,
  radial-gradient(circle closest-side, #FFF 50%, transparent 0) .7rem 0 #ADE1F8;
  background-repeat: repeat-x;
  background-size: .2rem .4rem;
  border: 0.02rem solid #93C2D5;
  border-radius: .4rem;
  cursor: pointer;
  height: .4rem;
  position: fixed;
  right: .2rem;
  top: .2rem;
  transition: all 290ms cubic-bezier(0.79, 0.01, 0.38, 0.99);
  width: .8rem;
  z-index: 2;
}

.label::after {
  background-color: #FADF7E;
  border: 0.01rem solid #DCC35E;
  border-radius: 50%;
  content: '';
  height: .3rem;
  left: 0.04rem;
  position: absolute;
  top: 0.04rem;
  transform: translateX(0);
  transition: all 290ms cubic-bezier(0.79, 0.01, 0.38, 0.99);
  width: .3rem;
}
/* End checkbox change theme */

@media screen and (max-width: 10rem) {
  .main-content {
    flex-direction: column;
  }
}

.calendar {
	/*position: relative;
	width: 200px;*/
	width: 100%;
	display: block;
	margin: 0px auto;
	margin-bottom: .4rem;
	background: #fff;
	text-align: center;
	border-radius: 8px;
	overflow: hidden;
	/*-webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #000400);*/
}

.calendar #monthName {
  position: relative;
  padding: 5px 10px;
  background: #299ecd;
  color: #fff;
  font-size: 30px;
}

.calendar #dayName {
  margin: 10px;
  font-size: 20px;
  font-weight: 300;
  color: #464646;
}

.calendar #dayNumber {
  margin: 0;
  line-height: 1em;
  font-size: 60px;
  font-weight: 700;
  color: #2c2c2c;
}

.calendar #year {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #999;
}