* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(2, 19, 19);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: darkslategray;
}

.main_header {
  background: url(./lib2.png);
  width: 100%;
  /* max-width: 1000px; */
  height: 8rem;
  margin: 1px 0px 0px 0px;
  letter-spacing: 1.3rem;
}
h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 5.5rem;
  color: firebrick;
  padding-top: 0.2em;
  font-weight: bold;
}

/* Overview */

.overview {
  display: flex;
  background-color: aliceblue;
  color: darkslategray;
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-image: linear-gradient(to left, red, blue) 1;
}

.flag {
  width: 45%;
}
.flag img {
  width: 100%;
  padding: 2rem 2rem 0rem 2rem;
  /* box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.25); */
}
.flag_desc {
  text-align: center;
  text-transform: uppercase;
  padding: 0.5rem;
  font-weight: bold;
}

.details {
  width: 55%;
}

table {
  width: 100%;
  height: 370px;
  padding: auto;
}

table tr td {
  padding-left: 10px;
}
.data_row {
  background-color: aliceblue;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
}
.title {
  text-transform: uppercase;
}
.country_info {
  font-weight: 700;
}
/* Collapsible Bars */
.info {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
}

.info_card {
  background-color: aliceblue;
  margin: 1rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
}
.info_card_header {
  padding: 0.5rem 3rem 0.5rem 1rem;
  min-height: 3.5rem;
  display: flex;
  line-height: 1rem;
  font-weight: 800;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.info_card_header::after {
  content: '\25BE';
  position: absolute;
  right: 1.5rem;
  color: red;
  font-size: 2rem;
  transition: transform 0.2s ease-in-out;
}

.info_card_header.active::after {
  transform: rotate(-180deg);
  color: blue;
}
.card_body_main {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}
.card_body_content {
  padding: 1rem;
  line-height: 1.5rem;
  border-top: 1px solid;
  border-image: linear-gradient(to left, red, blue) 1;
}
footer {
  background-color: aliceblue;
}
.footer {
  background-color: aliceblue;
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  display: flex;
  justify-content: space-between;
}
.footer_info {
  padding-top: 15px;
}
.footer_info ul {
  list-style-type: none;
  display: flex;
  padding-left: 15px;
}
.footer_info ul li {
  padding-left: 10px;
  font-weight: bold;
}

.footer .social ul li a img {
  width: 40px;
  height: 40px;
}
.footer .social ul {
  display: flex;
  list-style-type: none;
}

.footer .social ul li {
  padding: 5px 10px;
}

.footer_text {
  padding: 10px 5px;
  text-align: center;
  text-transform: capitalize;
  color: rgb(59, 5, 5);
}
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  .overview {
    display: block;
  }

  .flag {
    display: inline-block;
    width: 100%;
  }
  .flag img {
    width: 100%;
  }
  .details {
    width: 100%;
    padding: 2px 0px 0px 0px;
  }
  table {
    width: 100%;
  }
  h1 {
    text-align: center;
    text-transform: uppercase;
    font-size: 3rem;
    color: rgb(17, 6, 6);
    padding-top: 0.5em;
    font-weight: bold;
  }
  .footer {
    background-color: aliceblue;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    display: block;
    justify-content: space-between;
  }
  .footer .social ul {
    display: flex;
    list-style-type: none;
    justify-content: space-evenly;
    padding-bottom: 5px;
  }
  .footer_info ul {
    justify-content: space-around;
    padding-bottom: 15px;
  }
}
