/* for the entire page */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

/* hidden rules for the graph */
.hidden {
  display: none;
}

/* height for the main page */
.home-page {
  min-height: 100vh;
}

/* height and padidng for the page with card and graph */
.after-page {
  height: 100vh;
  padding: 50px;
}

/* body of the page with background img */
body {
  color: white;
  background-image: url("../img/home-background-img.jpg");
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
  font-family: "Lato", sans-serif;
}



/* css rules for the main part including #home and #after */
main {
  color: white;
  margin: 8px;
  text-align: center;
  margin-top: 14vh;
  background-size: auto;
  background-repeat: no-repeat;
}

/* css rules for logo */
.logo {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1em;
  padding-right: 1em;
  background-image: url("../img/logo.png");
  background-position: left;
  background-size: contain;
  background-repeat: no-repeat;
}

/* container that includes intro, global data chart and button */
.flex-container {
  display: flex;
  height: 100%;
  flex-direction: column;
}

/* rules for title and form */
.flex-item {
  flex-direction: column;
  flex-basis: auto;
}

/* hamberger menu style nav bar */
.navbar {
  background: #ff9c2b;
  position: fixed;
}

/* nav bar for bigger screen */
.nav {
  display: none;
}

/* rules for button to select the country */
button {
  overflow: scroll;
  margin-top: 1rem;
}

/* rules for the content inside of the nav bar */
.nav-link {
  color: white;
  color: rgba(255, 255, 255, 0.8);
  border: 0;
}

/* makes the content dark when hover or focus on the content */
.navbar-dark .navbar-nav .nav-link:hover {
  color: black;
}

.navbar-dark .navbar-nav .nav-link:focus {
  color: black;
  outline: 1;
}

/* applies to the button of the hamberger menu */
.navbar-dark .navbar-toggler {
  border-color: #ffffff;
}

.navbar-dark .navbar-toggler:focus {
  background: none;
  outline: 0;
}

.navbar-dark .navbar-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
}

.navbar-dark .navbar-toggler:hover span,
.navbar-dark .navbar-toggler:focus span {
  background: #ccc;
}

/* title of the page */
h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* button for selecting te countries and the buttons to show graphs*/
.dropbtn {
  background-color: #ffa857;
  color: white;
  margin-top: 1em;
  padding: 16px;
  font-size: 16px;
  border: none;
}

/* dropfoen menu for selections of the country */
.dropdown {
  position: relative;
  display: inline-block;
}

/* for two cards that contain graphs */
.container {
  margin-top: 1rem;
}

/* img in the card */
.card-img {
  width: 100%;
  object-fit: cover;
  box-shadow: 10px 10px 10px #ccc;
}

/* the body of the card including words and graph */
.card-body {
 background-color: blanchedalmond;
}

/* paragraph that indicated the graph */
.graph-indicator {
  color: black;
}

/* email address */
address a {
  color: rgb(140, 201, 252);
}

/* graphs */
canvas {
  margin-top: 2em;
  padding: 0.5rem;
  background: white;
  width: 80vh;
  height: 50vw;
}

/* paragraph that only shows on bigger screen 598px */
.bigger-size {
  display: none;
}

/* for screen size bigger than 768px */
.max-size {
  display: none;
}

/* header in about.html */
.aboutHeader {
  font-size: 27px;
  text-align: left;
  margin-bottom: 2rem;
}

/* content in about page (paragraphs) */
.aboutContent {
  margin-top: none;
  padding: 1rem;
  font-size: 16px;
  text-align: left;
  color: black;
  background-color:white;
}

/* footer */
footer {
  height: 150px;
  color: white;
  position: relative;
  display: block;
  padding: 1rem;
  font-size: 1em;
  top: 15em;
  bottom: 0;
  left: 0;
}

/* section in the footer */
#about {
  position: absolute;
}


/* for screen size bigger than 598px */
@media (min-width: 598px) {
  .nav .nav-link {
    color: #fff;
    margin-top: 10px;
  }

  .nav {
    background: #ff9c2b;
    height: 5rem;
    display: block;
    margin: auto;
  }

  nav.nav {
    font-size: 20px;
    color: #fff;
    display: flex;
  }

  .phone-size {
    display: none;
  }

  .bigger-size {
    display: block;
  }

  .navbar {
    display: none;
  }

  footer {
    top: 12em;
  }
}

/* for screen size bigger than 768px */
@media (min-width: 768px) {
  .max-size {
    display: block;
    width: 40%;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
  }

}

/* for screen size bigger than 960px */
@media (min-width: 960px) {
  .after-page {
    height: 60vh;
    padding: 10px;
  }

  footer {
    top: 0;
  }
}

/* for screen size bigger than 1025px */
@media (min-width: 1025px) {
  .after-page {
    height: 60vh;
    padding: 10px;
  }

  footer {
    top: 30em;
  }
}
