* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

header img {
  width: 200px;
}

h1 {
  margin: 0 auto;
  font-size: 1rem;
  text-align: center;
  padding: 30px 5px 15px 5px;
  width: 90%;
}

/* spinner */
.loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  background: rgba(227, 227, 227, 0.7);
}
.loader > * {
  margin-top: 20vh;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.spinner::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid;
  border-color: #ff3d00 transparent;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* end spinner */

/* header */

/* end header */

/*** main ***/

/* search */
.search-data-section {
  height: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.form-search-country {
  height: 2rem;
}
#form-search-country input {
  height: 2rem;
}
#form-search-country input,
.country-list {
  width: 70vw;
}
.country-list > *:hover {
  cursor: pointer;
  text-shadow: #d3d3d3 1px 0 2px;
}
#form-search-country button {
  position: absolute;
  padding: 0;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
}
.not-found,
.invalid-input,
.country-list {
  top: 2.5rem;

  position: absolute;
}
.country-list {
  padding: 0 1rem;
  background: white;
  z-index: 100;
  max-height: 150px;
  overflow: hidden;
  overflow-y: scroll;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  list-style: none;
}
.country-list > * {
  border-bottom: 1px solid #d2d2d2;
}
.country-list > *:last-child {
  border-bottom: none;
}
::-webkit-scrollbar {
  width: 0.3em;
  height: 0.3em;
}
::-webkit-scrollbar-thumb {
  background: #d2d2d2;
}
/* end search */

.country-info-section {
  background-color: #e9e9e9;
}
.flex-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 600px;
}
.country-name {
  text-align: center;
  margin: 2rem 0;
}
.country-name div {
  max-width: 300px;
}
.country-name img {
  width: 100%;
}
.flex-item {
  display: flex;
  flex-flow: row wrap;
  border-bottom: solid 1px #70706f;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.75rem;
}
.flex-item:first-child {
  border: none;
  display: flex;
  flex-direction: column;
}
.country-maps img {
  width: 80px;
  height: 45px;
}
/*** end main ***/

/*** weather ***/
.weather {
  text-align: center;
  padding: 2rem 0;
}
/*** end weather ***/

/*** footer ***/
footer {
  background-color: #343434;
  color: white;
  text-align: center;
  padding: 20px;
}
footer span {
  display: block;
}

.about-link {
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;
  color: red;
}
/*** end footer ***/

/**/

.about-section {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.about-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about-page main {
  flex: 1;
}

@media screen and (min-width: 600px) {
  #form-search-country input,
  .country-list {
    width: 40vw;
  }
}
