/* ---------------------------------------------- */
/*                  LOAD FONTS                    */
/* ---------------------------------------------- */
@font-face {
  font-family: 'Gilroy';
  src: url(./Gilroy-Regular.woff) format(woff);
}

/* ---------------------------------------------- */
/*                    GENERAL                     */
/* ---------------------------------------------- */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Gilroy', sans-serif;
}

html {
  font-size: 16px;
}

.hide {
  display: none;
}

.fadeIn {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ---------------------------------------------- */
/*                    HEADER                      */
/* ---------------------------------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  height: 60px;

  margin: 0 auto;
  background-color: #f3f2f2;
}
/* -------- LOGO -------- */
.logo {
  display: flex;
  padding-left: 20px;
}
.logo img {
  width: 60px;
}
.logo p {
  padding: 10px;
  font-weight: bold;
  color: #6a149b;
}
nav ul {
  display: flex;
  align-items: center;
}

nav ul li {
  list-style: none;
}
nav ul li:last-child {
  padding-right: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #6a149b;
  padding: 10px;
}

/* ---------------------------------------------- */
/*                      MAIN                      */
/* ---------------------------------------------- */

main {
  max-width: 1200px;
  margin: 0 auto;
}

.stats {
  width: 100%;

  background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
    url('../img/bg.jpg');
  background-size: cover;
}

/* -------- BG IMAGE -------- */

/* -------- LATEST REPORT -------- */
.latest-report {
  display: flex;
  justify-content: space-between;
  width: 80%;
  color: #fff;
  padding-top: 50px;
  margin: 0 auto;
}

.country,
.total-cases,
.recovered,
.deaths {
  height: 100px;
}

.name {
  color: #be64f1;
  font-size: 2.2em;
  font-weight: bold;
}
.change-country {
  cursor: pointer;
}
.title {
  font-size: 1.3em;
}
.total-cases .value {
  font-size: 2em;
  font-weight: bold;
}
.recovered .value {
  font-size: 2em;
  font-weight: bold;
  color: #009688;
}
.deaths .value {
  font-size: 2em;
  font-weight: bold;
  color: #f44336;
}
.new-value {
  font-size: 1.3em;
}
.chart {
  width: 80%;
  height: 70vh;
  min-height: 500px;

  margin: 0 auto;
  padding: 50px 0;
}

.search-country {
  position: relative;
  top: 10px;
}
.search-box {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 400px;
  height: 30px;
  z-index: 1;
  background-color: #111;
}
.search-box input {
  width: 360px;
  height: 25px;
  border: none;
  background-color: transparent;
  color: #fff;
  padding-left: 15px;
  font-size: 1.1em;
}
.search-box img {
  width: 20px;
  padding-right: 5px;
  cursor: pointer;
}
.country-list {
  display: flex;

  position: absolute;
  top: 30px;
  width: 400px;
  height: 300px;
  background-color: #111;
  opacity: 0.5;
  overflow-y: scroll;
}
.country-list ul {
  width: 100%;
}
.country-list ul li {
  list-style: none;
  cursor: pointer;
  padding: 10px;
  color: #fff;
}
.country-list ul li:hover {
  border-left: 1px solid white;
}
/* -------- CHART -------- */

main .chart-wrap {
  background-color: #ceb7b7;
}

/* -------- SEARCH COUNTRY -------- */

/* SCROLL BAR */

/* ---------------------------------------------- */
/*                    FOOTER                      */
/* ---------------------------------------------- */

/* ---------------------------------------------- */
/*             SCREEN WIDTH < 600px               */
/* ---------------------------------------------- */
