@font-face {
  font-family: 'ChemFont';
  src: url(fonts/ChemFont.ttf);
}

@font-face {
  font-family: 'ChalkFont';
  src: url(fonts/ChalkFont.ttf);
}

/*stores variable for colours*/
:root{
  --light: #f7faf9;
  --black: #314455;
  --dark: #3c423e;
  --contrast: #fcb04c;
  --blue: #38b0f5;
  --green: #31f791;
  --mint: #cdf7e2;
  --dark-mint: #a1e6c5;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;

}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
    background: var(--light);
}

canvas {
  margin: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
}

.logo{
  left: 50px;
}


/*CSS for NavBar*/
.navbar-brand{
  color: var(--dark);

  font-weight: 600;
  font-size: 40px;
}

.navbar-brand:hover{
  color: var(--dark);
}

.navbar{
  padding: 0px;
  font-family: 'Montserrat', sans-serif;
  background-image: linear-gradient(to right, var(--green), var(--blue));
}

.navbar-toggler:focus{
  box-shadow: none;
}

.nav-item a{
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.4s;
  padding: 8px 16px;
  border-radius: 99px;
  right: 50px;
}

.nav-item a.is-active, .nav-item a:hover{
  background-color: white;
}

/*CSS for the footer of the pages*/
footer {
  background: linear-gradient(0deg, var(--blue), var(--green));
  height: auto;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  padding: 10px;
}

.footer-content{
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.footer-content p{
  max-width: 80%;
  margin: 10px auto;
  font-size: 14px;
}

/*The link to the github*/
.socials{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials li{
  margin-left: -30px;
  font-size: 40px;
}

.socials a{
  text-decoration: none;
  color: var(--red);
}

.socials a i{
  font-size: 1.7rem;
  color: #4a4a4a;
  transition: .6s ease;
}

.socials a:hover i{
  color: black;
  transition: .6s ease;
}


/*The different webpages offered by ChemSim*/
.module-list{
  height:80%;
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 2%;
  padding: 2% 5% 2% 10%;
  background-color: var(--green);
}

.module{
  display: grid;
  width: 23vw;
  height: 45vh;
  grid-template-rows: 2fr 1fr;
  background-color: var(--mint);
  text-align: center;
  border-radius: 25px;
  transition: .6s ease;
}



.module-text {
    text-decoration: underline var(--mint);
    color: black;
    font-size: 4.3vh;
    transition: .6s ease;
}


.module-image img{
  width: 23vw;
  height: 33vh;
  border-radius: 25px 25px 0px 0px;
  transition: .6s ease;
}

.intro-text{
  font-family: 'ChemFont';
  text-align: center;
  font-size: 8vw;
  line-height: 80%;
  padding: 5%;
  margin-left: 20%;
  margin-right: 20%;
  border-radius: 5vw;
  width: auto;

  background: var(--green);
  color: yellow;
}


.module:hover{
  background: var(--dark-mint);
  transition: .6s ease;
}

.module:hover .module-text{
  text-decoration: underline var(--dark-mint);
  transition: .6s ease;
}

.module:hover .module-image{
  filter: brightness(0.9);
  transition: .6s ease;
}


/*CSS for the about page*/
#about-content {
  height: auto;
  color: black;
  margin: 5px;
  margin-top: 100px;
  text-align: center;
  padding-bottom: 50px;
  padding-top: 0%;
}

.team-content{
  text-align: center;
  border-radius: 50px;
  background: #aceffc;
  margin-left: auto;
  margin-right: auto;
  padding: 50px 0px 50px 0px;
  width: 1000px;
  justify-content: center;
}


#about-title {
  margin-top: 0;
}

#about-text {
  width: 650px;
  display: inline-block;
  font-size: 20px;
  padding-top: 20px;
}

#about-logo{
  justify-content: center;
  font-size: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500px;
  margin-left: -5%;
}

.profile {
    border-color: var(--blue);
    border-style: solid;
    border-width: 20px;
    overflow: hidden;
    height: 250px;
    width: 250px;
    border-radius: 50%;
    margin-top: 30px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    transition-duration: .3s;
  }

.profile:hover {
  height: 260px;
  width: 260px;
}

.profile-pic {
  height: 100%;
  width: 100%;
}

.team-grid-container {
  display: inline-grid;
  grid-template-columns: 400px 400px;
}

.bio {
  text-align: center;
  border-radius: 50px;
  background: var(--blue);
  margin-left: auto;
  margin-right: auto;
  padding: 20px 20px 20px 20px;
  width: 300px;
}

/*CSS for the lab safety page, for the table and images*/
.table-bordered {
  margin-top: 50px;
  border: 1px solid black;
  width: 60%;
  height: 800px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 50px;
}
.table-bordered td {
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  width: 50%;
  padding: 20px 20px 20px 20px;
}

.table-bordered tr:last-child td {
  border-bottom: none;
}

.table-bordered p {
  font-size: 20px;

}

.whmis-title h1{
  justify-content: center;
  text-align: center;
  font-size: 50px;
  font-weight: 700;
  padding: 50px 50px 50px 50px;
}

/*Author: Diyorbek Olimov, Copied code for bubble animation in index*/
.wrapper {
  margin: auto;
  padding: 5%;
  background: linear-gradient(180deg, #04fafd, 5%, #2cc4f2, 50%,  #058cfa);
}

.bubble{
  height: 60px;
  width: 60px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  position: absolute;
  top: 10%;
  left: 10%;
  animation: 4s linear infinite;
}
div .dot {
  height: 10px;
  width: 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 20%;
  right: 20%;
}

.wrapper div:nth-child(2) {
  top: 60%;
  left: 85%;
  animation: animate 10s linear infinite;
}
.wrapper div:nth-child(3) {
  top: 35%;
  left: 95%;
  animation: animate 3s linear infinite;
}
.wrapper div:nth-child(4) {
  top: 66%;
  left: 30%;
  animation: animate 7s linear infinite;
}
.wrapper div:nth-child(5) {
  top: 30%;
  left: 10%;
  animation: animate 9s linear infinite;
}
.wrapper div:nth-child(6) {
  top: 30%;
  left: 60%;
  animation: animate 5s linear infinite;
}
.wrapper div:nth-child(7) {
  top: 60%;
  left: 20%;
  animation: animate 8s linear infinite;
}
.wrapper div:nth-child(8) {
  top: 60%;
  left: 60%;
  animation: animate 10s linear infinite;
}
.wrapper div:nth-child(9) {
  top: 50%;
  right: 50%;
  animation: animate 6s linear infinite;
}
.wrapper div:nth-child(10) {
  top: 45%;
  left: 75%;
  animation: animate 10s linear infinite;
}
.wrapper div:nth-child(11) {
  top: 60%;
  left: 90%;
  animation: animate 5s linear infinite;
}
.wrapper div:nth-child(12) {
  top: 50%;
  left: 80%;
  animation: animate 7s linear infinite;
}
.wrapper div:nth-child(13) {
  top: 30%;
  left: 25%;
  animation: animate 8s linear infinite;
}
.wrapper div:nth-child(14) {
  top: 60%;
  left: 5%;
  animation: animate 6s linear infinite;
}
.wrapper div:nth-child(15) {
  top: 64%;
  left: 50%;
  animation: animate 9s linear infinite;
}

@keyframes animate {
  0% {
    transform: scale(0) translateY(0) rotate(70deg);
  }
  100% {
    transform: scale(1.3) translateY(-100px) rotate(360deg);
  }
}
