/* Colors
  white: rgba(255, 255, 255, 1);
  darkBlue: rgba(45, 51, 107, 1);
  blue: rgb(74, 79, 140, 1);
  red: rgba(255, 39, 70, 1);
  lightBlue: rgba(110, 249, 242, 1);
  grey: rgb(241, 241, 241);
*/

/*---------------Fonts---------------*/

@font-face {
  font-family: 'TekoMedium';
  src: url(learn_digital_fonts/teko-medium.otf);
}

@font-face {
  font-family: 'RobotoSlab Regular';
  src: url(learn_digital_fonts/RobotoSlab-Regular.ttf);
}

@font-face {
  font-family: 'RobotoSlab Light';
  src: url(learn_digital_fonts/RobotoSlab-Light.ttf);
}

/*---------------Layout---------------*/

a, a:hover, a:visited {
  color: rgba(255, 39, 70, 1);
}

body {
  background-color: rgba(255, 255, 255, 1);
}

h1 {
  font-family: 'TekoMedium', sans-serif;
  font-size: 3.5em;
  margin-bottom: .1em;
}

h2 {
  font-family: 'RobotoSlab Regular', serif;
  font-size: 1.3em;
}

p, a, li {
  font-family: 'RobotoSlab Light', serif;
  font-size: 1em;
}

.title {
  font-size: 80%;
  background-color: rgba(45, 51, 107, 1);
  color: rgba(255, 255, 255, 1);
  padding: 20px;
  text-align: center;
}

.heading {
  font-size: 2.5em;
}

.text {
  color: rgba(45, 51, 107, 1);
  padding: 15px 30px;
}

.center {
  text-align: center;
}

.text li {
  list-style-type: disc;
  margin: 15px auto;
}

.text li li {
  list-style-type: circle;
}

.first_p {
  margin-top: 30px;
}

.last_p {
  margin-bottom: 50px;
}

.red {
  color: rgba(255, 39, 70, 1);
}

.image {
  margin: 15px auto;
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
}

#english, #chinese {
  height: 20px;
  margin: 20px 20px 20px 0;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

#logo_contact {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

a:hover {
  text-decoration-line: none;
}

.btn {
  border: 2px solid rgba(255, 39, 70, 1);
  color: rgba(255, 39, 70, 1);
  width: 180px;
  font-size: 45%;
  display: block;
  margin: 20px auto;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 0px;
}

.btn:hover {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 39, 70, 1);
}

.form_login {
  padding: 20px;
}

.form-group p {
  margin-bottom: 0;
  color: rgba(45, 51, 107, 1);
}

.form-control:focus {
  border-color: rgba(45, 51, 107, 1);
  box-shadow: 0 0 0 .2rem rgb(74, 79, 140, .7);
}

/*---------------hr---------------*/

.small_red {
  height: 3px;
  width: 100px;
  background-color: rgba(255, 39, 70, 1);
  border-radius: 2px;
  margin-left: 30px;
}

hr {
  background-color: rgb(241, 241, 241);
  margin-top: 20px;
  margin-bottom: 15px;
}

footer hr {
  background-color: rgba(255, 39, 70, 1);
}

/*---------------Home Page---------------*/

.home_page {
  padding: 20px;
}

.main {
  width: 100%;
  background: linear-gradient(transparent, rgba(45, 51, 107, 1) 90%), url(img/background_home_page.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 0;
  padding: 40px;
}

/*---------------Rounded corners---------------*/

.border_radius_bottom_right {
  border-bottom-right-radius: 50px;
}

.border_radius_top_left {
  background: rgba(45, 51, 107, 1);
}

.border_radius_top_left .border_radius {
  background-color: rgba(255, 255, 255, 1);
  border-top-left-radius: 50px;
}

.border_radius_bottom_left {
  background-color: rgba(45, 51, 107, 1);
}

.border_radius_bottom_left .border_radius {
  background-color: rgba(255, 255, 255, 1);
  border-bottom-left-radius: 50px;
}

.border_radius_top_right {
  background-color: rgba(45, 51, 107, 1);
  border-top-right-radius: 50px;
}

/*---------------Navigation Bar---------------*/

.navbar {
  background-color: rgba(45, 51, 107, 1);
}

.navbar a {
  color: rgba(255, 255, 255, 1);
}

.navbar li {
  font-size: 100%;
}

.navbar a:hover {
  color: rgba(255, 39, 70, 1);
}

.dropdown-menu {
  font-size: 100%;
  background-color: rgba(45, 51, 107, 1);
  border: none;
  border-radius: 0px;
  padding-top: 0;
  margin-top: 0;
}

.dropdown-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.dropdown-item:last-child {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.dropdown-item {
  color: rgba(255, 255, 255, 1);
  text-align: center;
}

.dropdown-item:focus, .dropdown-item:hover {
  color: rgba(255, 39, 70, 1);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 1);
}

.dropdown-toggle:after {
  vertical-align: .1em;
}

.navbar-toggler {
  color: rgba(0, 0, 0, .5);
  border-color: rgba(0, 0, 0, .0);
}

.navbar-nav {
  text-align: center;
}

.navbar-toggler-icon {
  background-image: none;
  height: 1.3em;
}

#logo_navbar {
  margin-left: 10px;
}

.flag {
  padding-left: 8px;
  padding-right: 8px;
}

/*---------------Footer---------------*/

footer li {
  list-style-type: none;
}

footer a, footer a:visited {
  color: rgba(255, 255, 255, 1);
}

footer a:hover {
  text-decoration-line: none;
  color: rgba(255, 39, 70, 1);
}

footer ul {
  text-align: center;
  padding: 0;
}

footer .col-lg:first-child {
  margin-top: 30px;
}

footer p {
  color: rgba(255, 255, 255, 1);
  text-align: center;
  padding: 0 30px;
}

#logo_footer {
  margin: 20px auto 30px;
}

/*---------------Very small devices (480px and up)---------------*/
@media (max-width: 480px) {
  body {
    font-size: 85%;
  }
}

/*---------------Small devices (landscape phones, 576px and up)---------------*/

@media (min-width: 576px) {
  /*---------------Layout---------------*/
  body {
    font-size: 120%;
  }
  .lead {
    font-size: 120%;
  }
  .text {
    padding: 20px 30px;
  }
  .first_p {
    margin-top: 50px;
  }
  .last_p {
    margin-bottom: 50px;
  }
  .btn {
    width: 250px;
  }
  /*---------------hr---------------*/
  .small_red {
    width: 150px;
    margin-left: 40px;
  }
  /*---------------Home Page---------------*/
  .main {
    padding: 100px;
  }
  /*---------------Rounded corners---------------*/
  .border_radius_bottom_right {
    border-bottom-right-radius: 80px;
  }
  .border_radius_top_left .border_radius {
    border-top-left-radius: 80px;
  }
  .border_radius_bottom_left .border_radius {
    border-bottom-left-radius: 80px;
  }
  .border_radius_top_right {
    border-top-right-radius: 80px;
  }
}

/*---------------Medium devices (tablets, 768px and up)---------------*/

@media (min-width: 768px) {
  /*---------------Layout---------------*/
  body {
    font-size: 150%;
  }
  .text {
    padding: 20px;
  }
  .first_p {
    margin-top: 60px;
  }
  .last_p {
    margin-bottom: 60px;
  }
  #toggle {
    height: 25px;
  }
  .navbar-toggler {
    padding: .25rem 1.5rem;
  }
  #logo_navbar {
    height: 70px;
  }
  hr {
    margin-top: 40px;
    margin-bottom: 25px;
  }
  .btn {
    width: 300px;
  }
  #english, #chinese {
    height: 30px;
  }
  /*---------------Home Page---------------*/
  .home_page {
    padding: 60px 30px;
  }
  /*---------------Navigation Bar---------------*/
  .navbar .container {
    max-width: 100%;
  }
  .navbar li {
    font-size: 70%;
  }
}

/*---------------Large devices (desktops, 992px and up)---------------*/

@media (min-width: 992px) {
  /*---------------Layout---------------*/
  body {
    font-size: 100%;
  }
  .small_red {
    margin-left: 220px;
    margin-bottom: 20px;
  }
  .image {
    margin: 30px auto;
  }
  /*---------------hr---------------*/
  hr {
    max-width: 80%;
    margin-top: 20px;
    margin-bottom: 25px;
  }
  /*---------------Home Page---------------*/
  .home_page {
    font-size: 130%;
    padding: 100px 30px;
  }
  .home_page .first_p {
    margin-top: 0;
  }
  .title_home_page {
    font-size: 160%;
  }
  #people_working {
    top: -80px;
  }
  #people_smartphones {
    bottom: -80px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }
  /*---------------Navigation Bar (animation on dropdown menu)---------------*/
  .dropdown:hover>.dropdown-menu {
    display: block;
  }
  .dropdown>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .fadeIn {
    animation-name: fadeIn;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  .dropdown-item {
    text-align: left;
  }
  /*---------------Footer---------------*/
  footer ul {
    margin-top: 30px;
  }
  footer .col-lg:first-child, footer .col-lg:last-child {
    margin-top: 0;
  }
  footer p, footer address {
    margin-left: auto;
    margin-right: auto;
  }
}

/*---------------Extra large devices (large desktops, 1200px and up)---------------*/

@media (min-width: 1200px) {
  /*---------------Layout---------------*/
  body {
    font-size: 110%;
  }
  /*---------------Home Page---------------*/
  .main {
    padding: 120px 50px;
  }
  /*---------------Navigation Bar---------------*/
  .navbar li {
    font-size: 85%;
  }
}

/*---------------Extra large devices (large desktops, 1400px and up)---------------*/

@media (min-width: 1400px) {
  /*---------------Layout---------------*/
  body {
    font-size: 120%;
  }
  /*---------------Home Page---------------*/
  .main {
    padding: 180px 50px;
  }
  /*---------------Navigation Bar---------------*/
  .navbar li {
    font-size: 95%;
  }
  /*---------------Rounded corners---------------*/
  .border_radius_bottom_right {
    border-bottom-right-radius: 200px;
  }
  .border_radius_top_left .border_radius {
    border-top-left-radius: 200px;
  }
  .border_radius_bottom_left .border_radius {
    border-bottom-left-radius: 200px;
  }
  .border_radius_top_right {
    border-top-right-radius: 200px;
  }
}

/*---------------Animation on scroll---------------*/

body[data-aos-duration='1'] [data-aos], [data-aos][data-aos][data-aos-duration='1'] {
  transition-duration: 1s;
}

body[data-aos-duration='2'] [data-aos], [data-aos][data-aos][data-aos-duration='2'] {
  transition-duration: 2s;
}