/* Homepage Main Styles */

body {
  font-family: "proxima-nova","Open Sans", sans-serif;
}

.header_fr {
  font-family: 'Raleway', sans-serif;
  margin-top: 2rem;
  font-size: 48px;
  letter-spacing: 0.02em;
  font-size: 50px;
  line-height: 54px;
  font-weight: 700;
}

.text_l
{color: black; padding: 100px 0px 20px 0px; font-family: "proxima-nova","Open Sans", sans-serif;font-size: 28px;letter-spacing: 0;line-height: 29px;font-weight: 500;}
.text_m
{font-family: "proxima-nova","Open Sans", sans-serif;font-size: 21px;letter-spacing: 0;line-height: 25px;font-weight: 300;}


.navbar-fixed-top
{
  min-height: 115px;
}

.nav>li>a {
  height: 35px;
  padding-bottom: 0px;
  width: 100%;
}

/* Adjust title to match changing navbar size */
#building-blocks-title {
  display: table;
  height: 200px;
  width: 100%;
  font-size: 3rem;
  margin-top: 80px;
  background-size: cover;
  color: white;
}

 @media (max-width: 1365px) {
  #building-blocks-title
  {
    display: table;
    height: 200px;
    width: 100%; 
    margin-top: 125px;
    background-size: cover;
    color: white;
  }
} 

@media (max-width: 1100px) {
  #building-blocks-title
  {
    display: table;
    height: 200px;
    width: 100%;
    margin-top: 80px;
    background-size: cover;
    color: white;
  }

  #navbar {
    float: right;
  }

  .header_fr {
    margin-top: 4rem;
  }
} 

#intro {
  margin: 6rem 3rem 1.5rem 3rem;
}

#intro-title {
  font-size: 2.8rem;
  line-height: 1.2rem;
  margin: 4rem 0rem 1.5rem 0rem;
}

#intro-title2 {
  font-size: 2.4rem;
  line-height: 1.2rem;
  margin: 4rem 0rem 1.5rem 0rem;
}

#building-blocks-description p {
  font-size: 2rem;
  font-weight: lighter;
  line-height: 1.2;
  margin: 0rem 4rem 1rem 0rem;
  text-align: justify;
}

#line-break {
  width: 95%;
  height: 0.8px;
  margin: 1rem 0rem 3rem 0rem;
  background-color: black;
}

#line-break2 {
  width: 95%;
  height: 0.5px;
  margin: 1.5rem 0rem 0rem 0rem;
  background-color: black;
}

#description-break {
  height: 10px;
}

#download-container {
    width: 95%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    margin: 0rem 0rem 0rem 0rem;
}

.download-text {
  color: #CA2222;
  font-size: 2rem;
  display: inline;
}

#sdf-modal {
  /* background-color: lightgray; */
}

#modal-body {
  background-color: #cb373cc0;;
}

#modal-header {
  padding: 5px;
}

#modal-text {
  color: white;
  font-size: 2rem;
}

#close-modal {
  color: white;
  font-size: 30px;
  margin: 1rem;
}

#chemotypes-title {
  font-size: 1.8rem;
  margin: 3rem 0rem 1.5rem 0rem;
}

#container-container {
  margin: 0rem 2rem 0rem 2rem;
}

#molecule-container {
  display: grid; 
  margin: 0rem 2rem 2rem 2rem;
  padding: 0rem 2rem 2rem 2rem;
  justify-items: center;
  align-content: space-between;
  grid-row-gap: 10px;
}

.molecule-box {
  display: grid;
  text-align: center;
  font-size: 18px;
  width: 200px;
  height: 200px;
  padding: 1rem 0rem 0rem 0rem;
}

.molecule-box-img {
  height: auto;
  margin: 1rem 0rem 0rem 0rem;
  padding: 0rem 0rem 0rem 0rem;
  align-self: flex-end;
}

.molecule-box img {
  max-height: 110px;
}

#quinoline-img {
  align-self: end;
}

.molecule-box-text {
  text-decoration: none;
  color: #CB373C;
  font-size: 2.4rem;
  align-self: end;
}

#bottom-section {
  margin: 3rem 0rem 0rem 8rem;
  text-align: left;
  width: 90%;
  justify-items: start;
}

#search-container {
  justify-items: start;
}

#search-title {
  white-space: nowrap;
  font-size: 3rem;
  margin: 2rem 0rem 0rem 1rem;
}

#line-break3 {
  width: 95%;
  height: 0.5px;
  margin: -0.5rem 0rem 1rem 0rem;
  background-color: black;
}

#search-by-name {
  width: 100%;
  margin: 0rem 0rem 0rem 0rem;
}

#search-by-structure-title {
  white-space: nowrap;
  font-size: 2.4rem;
  line-height: 1.2rem;
  margin: 2rem 0rem 1.5rem 0rem;
}

#sub-search {
  font-size: 1.6rem;
}

#sub-search input {
  margin: 0rem 0.5rem 2rem 0rem;
}

#cas-search {
  display: block; 
  width: 95%;
  font-size: 1.7rem;
  margin: 2rem 0rem 0rem 0rem;
  /* padding: 0rem 0rem 0rem 3rem;  */
  border: 1px solid #C8CED3; 
  background-color: #F8F8F8;
}

#editor_div {
  display: block; 
  width: 95%;  
  padding: 15px; 
  border: 1px solid #C8CED3; 
  background-color: #F8F8F8;
}

#instance1 {
  margin: 0rem 0rem 0rem 1rem;
  background-color: white; 
  width: 552px; 
  height: 302px;
}

#search-by {
  font-size: 2rem;
  margin: 1.5rem 0.5rem 0rem 1rem;
  padding-top: 3rem;
}

#shop-title-home {
  white-space: nowrap;
  font-size: 2.4rem;
  line-height: 1.2rem;
  margin: 5rem 0rem 2rem 0rem;
}

#line-break4 {
  width: 95%;
  height: 0.5px;
  margin: 1.2rem 0rem 1rem 0rem;
  background-color: black;
}

.categories {
  color: #CB373C;
  font-size: 2.2rem;
  line-height: 3rem;
  margin-bottom: 25px;
  padding-bottom: 100px;
}

#line-break5 {
  margin-bottom: 5px;
}

#line-break6 {
  margin-bottom: 30px;
}

#footer {
  width: 100%;
}

/* Responsiveness */
/* Small: One column */
@media (min-width: 400px) {
  #molecule-container {
  width: 80%;
  display: grid;
  grid-template-columns: auto;
  margin: 0rem 0rem 0rem 0rem;
  /* padding: 2rem; */
  }
  
  #intro {
  margin: 2rem 3rem 1.5rem 3rem;
}
}

/* Medium: Two Columns */
@media (min-width: 600px) {
  #molecule-container{
    width: 90%;
    display: grid;
    grid-template-columns: auto auto;
    margin: 0rem 0rem 0rem 0rem;
  } 
  
  #intro {
    margin: 6rem 3rem 1.5rem 10rem;
  }
}

/* Large: Three Columns */
@media (min-width: 800px) {
  #molecule-container{
  width: 95%;
  display: grid;
  grid-template-columns: auto auto auto;
  margin: 0rem 0rem 0rem 0rem;
  }
  
  #intro {
  margin: 6rem 5rem 1.5rem 9rem;
  }  
}

/* Desktop: Four Columns */
@media (min-width: 1000px) {
  #molecule-container {
  width: 95%;
  display: grid;
  grid-template-columns: auto auto auto auto;
  margin: 0rem 0rem 0rem 0rem;
  }

.molecule-box {
  display: grid;
  text-align: center;
  font-size: 18px;
  width: 230px;
  height: 230px;
  padding: 1rem 0rem 0rem 0rem;
}

#intro {
  margin: 2rem 7rem 1.5rem 10rem;
}
}

@media (max-width: 800px) {
  #building-blocks-description p {
  width: 90%;
  margin: 0rem 1rem 0rem 0rem;
  text-align: justify;
  }
  
  #bottom-section {
    margin: 0rem 0rem 0rem 2rem;
  }
  
  #search-by-name {
  width: 100%;
  margin: 0rem 0rem 0rem 1rem;
}
  
  #search-by-structure {
  transform: scale(0.9);
  margin: -2rem 0rem 0rem 0rem;
}
  
  #editor_div {
  display: block; 
  padding: 15px; 
  border: 1px solid #C8CED3; 
  background-color: #F8F8F8;
  width: 650px;  
  margin: 0rem 0rem 0rem -1rem;
}
  
  #cas-search {
  display: block; 
  padding: 15px; 
  border: 1px solid #C8CED3; 
  background-color: #F8F8F8;
  width: 585px;  
  margin: 0rem 0rem 0rem 1rem;
}
}
  
/* Shrink Intro Text Boxes at Two Columns */  
@media (max-width: 600px) {

  #intro {
  margin: 6rem 0rem 1.5rem 3rem;
  justify-items: center;
  width: 100%;
}
  
  #building-blocks-title {
  font-size: 1.5rem;
  }

  #search-by-structure-title {
    white-space: nowrap;
    font-size: 2.4rem;
    line-height: 1.2rem;
    margin: 0rem 0rem 1.5rem 0rem;
  }

  .header_fr {
    font-size: 4rem;
  }

  #intro-title, #intro-title2 {
    font-size: 1.8rem;
    line-height: 2rem;
    margin: 2rem 0rem 1.5rem 0rem;
  }
  
  #chemotypes-title {
  font-size: 1.5rem;
  margin: 0rem 0rem 1rem 0rem;
  }

  #search-title {
    font-size: 2.5rem;
    margin: 2rem 0rem 0rem 1rem;
  }

  #building-blocks-description p {
    font-size: 1.4rem;
  }
  
  .molecule-box {
  display: grid;
  text-align: center;
  font-size: 18px;
  width: 100%;
  width: 230px;
  height: 230px;
  padding: 1rem 0rem 0rem 0rem;
}
  
  #molecule-container {
  display: grid; 
  width: 100%;
  margin: 0rem 2rem 2rem 2rem;
  padding: 0rem 2rem 2rem 2rem;
  justify-items: center;
  align-content: space-between;
  grid-row-gap: 10px;
  }
  
  #line-break {
  width: 95%;
  height: 0.8px;
  margin: 0rem 0rem 1rem 0rem;
  background-color: black;
  }

  #line-break2 {
  width: 95%;
  height: 0.5px;
  background-color: black;
  }
}

@media (max-width: 800px) {
  #container-container {
    margin: 0rem 2rem 0rem 0rem;
  }

  #molecule-container {
    margin: 0rem 2rem 2rem 0rem;
  }

  #search-title {
    font-size: 3rem;
    margin: 2rem 0rem 0rem 2rem;
  }

  #line-break3 {
    width: 95%;
    height: 0.5px;
    margin: 0rem 0rem 1rem 1rem;
    background-color: black;
  }
}

@media (max-width: 400px) {
  #navbar-top {
    /* height: 150px; */
  }

  #intro {
    margin: 10rem 0rem 1.5rem 3rem;
    justify-items: center;
    width: 100%;
  }
}
  
#results {
  margin: 16rem 0rem 0rem 0rem;
}