/* --------------------------  Desktop Responsive Design  -------------------------- */
@media (min-width: 396px) {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Quicksand;
  }

  body {
    background-color: #fff;
  }

  .bgimg {
    z-index: -1;
    position: fixed;
    width: 100vw;
  }

  header {
    display: flex;
    padding: 30px 30px 0px 30px;
    justify-content: space-between;
    background-color: #008af4;
  }

  .logo a {
    text-decoration: none;
  }

  .logo a i {
    display: flex;
    margin-left: 30px;
    margin-top: 0%;
    color: #fff;
    font-size: 45px;
  }

  .logo a i h5 {
    padding: 4px 0;
  }

  .openbtn {
    display: none;
  }

  .closebtn {
    display: none;
  }

  .nav ul {
    list-style-type: none;
    margin-bottom: 10px;
  }

  .nav ul li {
    display: flex;
    padding-top: 3px;
    padding-right: 10px;
  }

  .nav ul li a {
    text-decoration: none;
    text-align: center;
    padding: 5px 25px 5px 25px;
    margin: 0px 15px;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    transition: 0.2s ease-in-out;
  }

  .nav ul li a:hover {
    border-radius: 0px 55px 10px 35px;
    background-color: #fff;
    color: #000;
  }

  .nav ul li a.active {
    border-radius: 0px 55px 10px 35px;
    background-color: #fff;
    color: #000;
  }

  .search-country {
    display: flex;
    justify-content: center;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 6px 0;
    top: 0;
    position: sticky;
    position: -webkit-sticky;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
    background-color: #008af4;
  }

  .country-flag {
    display: flex;
    flex-direction: column;
    vertical-align: middle;
    height: 35px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
  }

  .search-box input {
    vertical-align: middle;
    text-align: center;
    margin: 10px 15px;
    padding-top: 17px;
    outline-style: none;
    border-style: none;
    border-radius: 50px;
    padding: 10px 100px;
    color: #000;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
  }

  .search-box button {
    vertical-align: middle;
    padding: 10px;
    border-radius: 50px;
    outline-style: none;
    border-style: none;
    background: url("/assets/coivd.png");
    background-color: #fff;
    width: 40px;
    height: 40px;
    color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }

  .card-holder {
    display: flex;
    justify-content: space-evenly;
    margin: 35px 0px;
  }

  .card0,
  .card1,
  .card2,
  .card3 {
    padding: 25px 60px;
    border-radius: 8px;
    text-align: center;
    letter-spacing: 0.4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
      0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),
      0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);
    background-color: #fff;
  }

  .card0,
  .card1,
  .card2,
  .card3 h2 {
    font-weight: bolder;
    text-shadow: 0px 0px 1.5px rgba(80, 80, 80, 0.7);
  }

  .card0 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }
  .card1 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }
  .card2 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }
  .card3 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }

  #active {
    color: #0f1ddd;
    padding-bottom: 10px;
  }
  #case {
    color: #f3f306;
    padding-bottom: 10px;
  }

  #recovery {
    color: #008000;
    padding-bottom: 10px;
  }

  #death {
    color: #ff0000;
    padding-bottom: 10px;
  }

  #tcase,
  #trecovery,
  #tdeath {
    padding-bottom: 10px;
  }

  .graph {
    margin: 0;
    padding: 0;
    width: 90vw;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }

  #countryChart {
    margin: 50px 0;
    display: none;
    padding-right: 5%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
      0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),
      0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);
  }

  #mainChart {
    margin: 50px 0;
    padding-right: 5%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
      0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),
      0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);
  }

  footer {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background-color: #00297e;
  }

  footer p {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1.2px;
  }
}

/* --------------------------  Mobile Responsive Design  -------------------------- */
@media (max-width: 395px) {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Quicksand;
  }

  body {
    background-color: #fff;
  }

  .bgimg {
    z-index: -1;
    position: fixed;
    width: 100vw;
  }

  header {
    display: flex;
    padding: 2% 1%;
    justify-content: space-between;
    background-color: #008af4;
  }

  .logo a {
    text-decoration: none;
    cursor: pointer;
  }

  .logo a i {
    display: flex;
    margin-left: 30px;
    margin-top: 8%;
    color: #fff;
  }

  .logo a i h5 {
    padding: 4px 0;
  }

  .nav-main {
    position: relative;
    margin-left: 31.5%;
    padding: 5px 15px;
  }

  .openbtn {
    width: 40px;
    outline-style: none;
    border-style: none;
    background: none;
    font-size: 35px;
    font-weight: 900;
    color: #fff;
  }

  #closebtn {
    position: absolute;
    top: -1.8%;
    right: 12.5%;
    font-size: 70px;
    color: #142fa7e6;
  }

  .closebtn {
    font-size: 60px;
    text-decoration: none;
    color: #000;
    position: relative;
    top: 0;
    right: 20px;
  }

  .sidebar {
    height: 100%;
    width: 0%;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    overflow-x: hidden;
    background-color: #fff;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding-top: 60px;
    transition: 0.5s;
  }
  .sidebar ul li {
    padding-top: 60px;
  }

  .sidebar ul li a {
    padding: 10px 0px 15px 0px;
    text-align: center;
    text-decoration: none;
    font-size: 25px;
    font-weight: 900;
    color: #142fa7e6;
    display: block;
    transition: 0.5s;
    letter-spacing: 0.5px;
  }

  .sidebar a.active {
    color: #fff;
    background-color: rgba(20, 47, 167, 0.9);
  }

  .search-country {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 2% 0;
    top: 0;
    position: sticky;
    position: -webkit-sticky;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
    background-color: #008af4;
  }

  .country-flag {
    display: flex;
    flex-direction: column;
    vertical-align: middle;
    height: 35px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
  }

  .search-box input {
    vertical-align: middle;
    margin: 10px 15px;
    padding-top: 17px;
    outline-style: none;
    border-style: none;
    border-radius: 50px;
    padding: 10px 35px;
    color: #000;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
  }

  .search-box button {
    vertical-align: middle;
    padding: 10px;
    border-radius: 50px;
    outline-style: none;
    border-style: none;
    background: url("/assets/coivd.png");
    background-color: #fff;
    width: 40px;
    height: 40px;
    color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 1px 2px 2px rgba(0, 0, 0, 0.12),
      2px 4px 4px rgba(0, 0, 0, 0.12);
  }

  .card-holder {
    display: flex;
    flex-direction: column;
    margin: 2% 0;
    overflow-x: hidden;
  }

  .card0,
  .card1,
  .card2,
  .card3 {
    margin: 4% 4%;
    padding: 25px 60px;
    border-radius: 8px;
    text-align: center;
    letter-spacing: 0.4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
      0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07);
    background-color: #fff;
  }

  .card0,
  .card1,
  .card2,
  .card3 h2 {
    font-weight: bolder;
    text-shadow: 0px 0px 1.5px rgba(80, 80, 80, 0.7);
  }

  .card0 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }
  .card1 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }
  .card2 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }
  .card3 h3 {
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 1px 1px 1px rgba(80, 80, 80, 0.7);
  }

  #active {
    color: #0f1ddd;
    padding-bottom: 10px;
  }
  #case {
    color: #f3f306;
    padding-bottom: 10px;
  }

  #recovery {
    color: #008000;
    padding-bottom: 10px;
  }

  #death {
    color: #ff0000;
    padding-bottom: 10px;
  }

  #tcase,
  #trecovery,
  #tdeath {
    padding-bottom: 10px;
  }

  .graph {
    display: none;
  }

  #countryChart {
    display: none;
  }

  #mainChart {
    display: none;
  }

  footer {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background-color: #00297e;
  }

  footer p {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1.2px;
  }
}

/* -------------------------- Small Mobile Responsive Design  -------------------------- */
@media (max-width: 375px) {
  .search-box input {
    vertical-align: middle;
    margin: 10px 15px;
    padding-top: 17px;
    outline-style: none;
    border-style: none;
    border-radius: 50px;
    padding: 10px 30px;
    color: #000;
    box-shadow: 1px 1px 4px 0px #242424;
  }
}
