/* APPLICATION */

html,
body,
h1,
p,
div,
ul,
li,
article {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration: inherit;
  vertical-align: inherit;
  box-sizing: inherit;
  background: transparent;
}

h1 {
  text-align: center;
  font-family: Source Code Pro;
  font-size: 30px;
  margin-bottom: 20px;
  margin-top: 20px;
}

#root {
  margin-top: 20px;
}

/* CLOCK */

.time-container,
.date-container {
  display: flex;
  justify-content: space-evenly;
}

.time-container > span:last-of-type,
.date-container > span:last-of-type,
.time-container > span:first-of-type,
.date-container > span:first-of-type {
  padding: 10px;
  font-family: Source Code Pro;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.parent-container {
  width: 20%;
  margin: 0 auto;
  border: 2px solid black;
  background-color: orange;
}

/* WEATHER */

.weather-container {
  border: 2px solid black;
  width: 30%;
  margin: 0 auto;
  background-color: lightgreen;
  font-family: Source Code Pro;
  font-weight: bolder;
  height: 105px;
  padding-top: 30px;
}

.weather-container div span {
  display: block;
  text-align: center;
  font-size: 30px;
}

.fetching-weather {
  padding-top: 15px;
}

/* AUTOCOMPLETE */

.auto-container {
  border: 2px solid black;
  width: 15%;
  margin: 0 auto;
  background-color: yellow;
  font-family: Source Code Pro;
  font-weight: bolder;
  padding-top: 10px;
}

.name-list {
  text-align: center;
  list-style: none;
  padding-top: 5px;
  padding-bottom: 5px;
}

.name:before {
  content: "■";
  display: inline-block;
}

.auto-search {
  display: block;
  margin: 0 auto;
  border-style: ridge;
}

.auto-enter {
  opacity: 0.01;
  transform: translateY(500%);
}

.auto-enter.auto-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms, transform 500ms;
}

.auto-leave {
  opacity: 1;
  transform: translateY(0);
}

.auto-leave.auto-leave-active {
  opacity: 0.01;
  transform: translateY(500%);
  transition: opacity 500ms, transform 500ms;
}

/* TABS */

.tab-header {
  width: 200px;
  height: 30px;
  margin: 0 20px;
  display: flex;
  justify-content: space-between;
}

.tab-header > li {
  width: 65px;
  border-top: 2px solid black;
  border-left: 1px solid black;
  border-right: 1px solid black;
  border-bottom: 2px solid black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding-top: 4px;
  text-align: center;
  cursor: pointer;
  background-color: lightblue;
  list-style: none;
}

.tab-header > li:first-child {
  border-left: 2px solid black;
}

.tab-header > li:last-child {
  border-right: 2px solid black;
}

.tab-header > li:hover {
  background-color: black;
  color: white;
}

.active {
  font-weight: bold;
}

.tabs {
  width: 240px;
  height: 300px;
  margin: 0 auto;
}

.tab-content {
  font-weight: bold;
  color: #000;
  height: 192px;
  margin: 0 20px;
  border-left: 2px solid black;
  border-bottom: 2px solid black;
  border-right: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: lightblue;
  background-size: cover;
}

.tab-content article {
  text-align: center;
}
