@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700');

/* Only works well in Desktop Chrome 61, Firefox 36 
   TODO: http://jsfiddle.net/YYPKM/3/*/
html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  color: #222;
}

.navbar {
  padding: .8rem;
  position: fixed;
  width: 100%;
  opacity: 0.95;
}

.navbar-nav li {
  padding-right: 20px;
}

.nav-link {
  font-size: 1.1em !important;
}

.navbar-brand img {
  height: 49px;
}

.footer-nav-link {

}

img.footer-logo {
  height: 54px;
}

.footer-nav-link:hover,
.footer-nav-link:focus {
  text-decoration: none;
  color: #959595;
}

div.slide {
  margin-bottom: 100px;
}

.carousel-inner-slider {
  /* TODO: mobile resize */
  padding: 0px 1rem;
}
.carousel-inner img {
  /* TODO: mobile resize */
  width: 100%;
  height: 100%;
  max-height: 800px;
}

.company-slider img {
  width: 40%;
  margin: 2rem;

  /*TODO: set width height. Square img?*/
  width: 200px;
  max-height: 144px;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-caption h1 {
  font-size: 500%;
  text-transform: uppercase;
  text-shadow: 1px 1px 15px #000;
}

.carousel-caption h3 {
  font-size: 200%;
  font-weight: 500;
  text-shadow: 1px 1px 10px #000;
  padding-bottom: 1rem;
}

.btn-primary {
  background-color: #6648b1;
  border: 1px solid #6648b1;
}

.btn-primary:hover {
  background-color: #563d7c;
  border: 1px solid #563d7c;
}

.jumbotron {
  padding: 1rem;
  border-radius: 0;
}

.padding {
  padding-bottom: 2rem;
}

.welcome {
/*  width: 75%;
  margin: 0 auto;*/
  padding-top: 2rem;
}

.welcome hr {
  border-top: 2px solid #b4b4b4;
  width: 95%;
  margin-top: .3rem;
  margin-bottom: 2rem;
}

.fa-code {
  color: #e54d26;
}

.fa-bold {
  color: #563d7c;
}

.fa-css3 {
  color: #2163af;
}

.fa-code, .fa-bold, .fa-css3 {
  font-size: 4em;
  margin: 1rem;
}


/* Social */
.social a {
  font-size: 4.5em;
  margin: 3rem;
  text-decoration: none;
}

.blogger-icon {
  max-width: 80px;
  padding-bottom: 10px;
}

.fa-facebook {
  color: #3b5998;
}

.fa-weibo {
  color: #fed24e;
}

.fa-google-plus-g {
  color: #dd4b39;
}

.fa-instagram {
  color: #517fa4;
}

.fa-youtube {
  color: #bb0000;
}

.blogger-icon:hover {
  filter: grayscale(100%);
}

.fa-facebook:hover,
.fa-weibo:hover,
.fa-google-plus-g:hover,
.fa-instagram:hover,
.fa-youtube:hover {
  color: #d5d5d5;
}

footer {
  background-color: #3f3f3f;
  color: #d5d5d5;
  padding-top: 1rem;
}

hr.light {
  border-top: 1px solid #d5d5d5;
  width: 75%;
  margin-top: .8rem;
  margin-bottom: 1rem;
}

footer a {
  color: #d5d5d5;
}

footer div.col-md-4 {
  padding-bottom: 0px;
}

hr.light-100 {
  border-top: 1px solid #d5d5d5;
  width: 100%;
  margin-top: .8rem;
  margin-bottom: 1rem;
}

.cover-page-reserve {
  position: absolute;
  bottom: 35%;
  right: 9%;
}

.cover-page-read {
  position: absolute;
  bottom: 57%;
  right: 15%;
}

.cover-page-reserve-btn {
  padding: .5rem 5rem;
  background-color: #93c347;
  border: 1px solid #93c347;
  color: #fff;
}

.cover-page-reserve-btn:hover {
  background-color: #749a37;
  border: 1px solid #749a37;
  color: #fff;
}

.cover-page-reserve-btn:focus {
  box-shadow: 0 0 0 0.2rem #b4d283;
}

/*---Media Queries --*/
@media (max-width: 992px) {
  .social a {
    font-size: 4em;
    margin: 2rem;
  }
  /*
  .cover-page-reserve {
    right: 2%;
  }
  */

  .cover-page-reserve-btn {
    padding: .5rem 3rem;
  }

  .cover-page-read {
    bottom: 55%;
  }
}

/* tablet - iPad device width */
@media (max-width: 768px) {
  a.nav-link {
    font-size: 1em !important;
  }
  .carousel-caption {
    top: 45%;
  }

  .carousel-caption h1 {
    font-size: 350%;
  }

  .carousel-caption h3 {
    font-size: 140%;
    font-weight: 400;
    padding-bottom: .2rem;
  }

  .carousel-caption .btn {
    font-size: 95%;
    padding: 8px 14px;
  }

  .display-4 {
    font-size: 200%;
  }

  .social a {
    font-size: 2.5em;
    margin: 1.2rem;
  }

  .blogger-icon {
    max-width: 40px;
    padding-bottom: 8px;
  }

  .cover-page-reserve {
    right: 10%;
  }

  .cover-page-reserve-btn {
    padding: .5rem 1rem;
    font-size: 1rem;
  }

  .cover-page-read {
    bottom: 50%;
  }

  .company-slider img {
    width: 30%;
    margin: 1rem;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    top: 40%;
  }

  .carousel-caption h1 {
    font-size: 250%;
  }

  .carousel-caption h3 {
    font-size: 110%;
  }

  .carousel-caption .btn {
    font-size: 90%;
    padding: 4px 8px;
  }

  .carousel-indicators {
    display: none;
  }

  .display-4 {
    font-size: 160%;
  }

  .social a {
    font-size: 2em;
    margin: .7rem;
  }

  .blogger-icon {
    max-width: 35px;
    padding-bottom: 5px;
  }

  .cover-page-reserve {
    bottom: 30%;
  }

  .cover-page-reserve-btn {
    padding: .5rem .5rem;
    font-size: .8rem;
  }
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

.centered h3 {
  white-space: nowrap;
}

.logo-center {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-grid div {
  padding: 2rem;
}

.logo-grid div div {
  padding: 0;
}


/*--- Firefox Bug Fix --*/
/* TODO: original .5*/
.carousel-item {
  transition: -webkit-transform .5s ease;
  transition: transform .5s ease;
  transition: transform .5s ease, -webkit-transform .5s ease;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;

  /* Added text align center so img will align center horizontally */
  text-align: center;
}
/*--- Fixed Background Image --*/
figure {
  position: relative;
  width: 100%;
  height: 90%;
  margin: 0!important;
}
.fixed-wrap {
  clip: rect(0, auto, auto, 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#fixed {
  background-image: url('img/starsCollage.jpg');
  position: fixed;
  display: block;
  top: 50px;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}
/*--- Bootstrap Padding Fix --*/
[class*="col-"] {
    padding: 1rem;
}


/*
Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
*/

/* Feedback */
.feedback h4 {
  padding-bottom: 15px;
}

.menu-item,
.feedback,
.article,
.partner,
.contact {
  position: relative;
}

.anchor-header-menu,
.anchor-header-contact {
  position: absolute;
  top: -115px;
}

.anchor-header-feedback,
.anchor-header-article,
.anchor-header-partner {
  position: absolute;
  top: -55px;
}

.menu-item div img:hover {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  transition: all 1s;
}

.grid {
  padding-left: 80px;
  padding-right: 80px;
}

.first-div {
  padding-top: 85px;
}

.about-instrument {
  margin-top: 70px;
}

a.carousel-control-prev,
a.carousel-control-next {
  width: auto;
  height: 20px;
  top: 50%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' opacity='0.5' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' opacity='0.5' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover {
  opacity: 0.5;
}

/* Modal */
.modal-img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: calc(.25rem - 1px);
}

/* production */

.table {
  margin-top: 30px;
  margin-bottom: 20px;
}

.table-first-div {
  padding-top: 85px;
  padding-bottom: 120px;
}

.table td,
.table th {
  text-align: center;
  vertical-align: middle;
}

.table-description {
  padding-inline-start: 20px;
}

table caption {
  caption-side: top;
  text-align: center;
  font-size: 2rem;
}

p.card-text {
  margin-bottom: 1rem !important;
}

.main-description {
  margin-top: 50px;
  padding-left: 90px;
  text-align: left !important;
}

.main-description h2 {
  margin-bottom: 1.5rem;
}

.main-description h2 .btn {
  font-size: 1.5rem;
  margin: 0px 200px;
}

.main-description ul p {
  margin-bottom: 0px;
}

/* instrument */
.instrument-div {
  padding-left: 120px;
  padding-right: 120px;
  text-align: center;
}

.course-menu {
  white-space: nowrap;
}

.report-list div {
  padding-top: 0px;
  white-space: nowrap;
}

.instrument-content {
  text-align: left;
}

.reserve-course-btn {
  margin-top: 10px;
  padding: 10px 80px;
}

.instrument-content .footer-reserve {
  text-align: center;
}

.instrument-image-container {
  padding-left: 0px;
  padding-right: 0px;
  text-align: center;
}

/* Report-list collapse width */
@media (max-width: 1000px) {
  .report-list-wrap {
    white-space: normal;
  }
}

/* tablet - iPad device width */
@media (max-width: 768px) {
  .instrument-div {
    padding-left: 90px;
    padding-right: 90px;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .grid {
    padding-left: 50px;
    padding-right: 50px;
  }

  .instrument-div {
    padding-left: 50px;
    padding-right: 50px;
  }

  .instrument-div .welcome {
    padding-top: 1rem;
  }

  div.slide {
    margin-bottom: 50px;
  }
}

/* iPhone 6 7 8 plus */
@media (max-width: 414px) {
  .table-first-div {
    padding-left: 10px;
    padding-right: 10px;
  }

  table tbody th.nowrap {
    white-space: nowrap;
  }

  .company-slider img {
    width: 45%;
    margin: 0px;
  }
}

/* iPhone 5/SE device width */
@media (max-width: 320px) {
  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .grid {
    padding-left: 40px;
    padding-right: 40px;
  }

  .table-first-div {
    padding-left: 0px;
    padding-right: 0px;
    overflow-x: hidden;
  }

  table caption {
    font-size: 1.5rem;
  }
}

/* Reserve */
.reserve-div {
  padding-top: 20px;
}

.reserve-div h2 {
  padding-bottom: 20px;
  color: rgba(0,0,0,.5);
}

.reserve-div h4 {
  padding-top: 10px;
}

.main-button-theme {
  padding: 5px 10px;
  background-color: #93c347;
  border: 1px solid #93c347;
  border-radius: 0.5rem;
  color: #fff;
}

ol.class-reminder-list {
  padding-left: 1rem;
}

ol.class-reminder-list li {
  margin-bottom: 8px;
}

.form-group-question-textbox {
  margin-top: 1.75rem;
}

.form-group-question-textbox .label-question-textbox {
  margin-bottom: 0px;
}

.form-group-question-textbox .small-label-question-textbox {
  margin-top: 0px;
}

/* Redirect */
.redirect-center-div {
  text-align: center;
}

.redirect-center-div p {
  color: #000;
}

.redirect-logo {
  width: 80%;
  margin: 20px;
}

@media (max-width: 768px) {
  .redirect-logo {
    width: 90%;
  }
}