* {
  margin-left: auto;
  margin-right: auto;
  /* background-color: #33333320; */
  /* clear: both; */
}


body {
  position: relative;
 /* background-color:  #333; */

}

h1 {
  text-align: center;
  font-size: 40px;
  position: relative;
  
}
p{
  font-weight: bold;
}


.main-head {
  align-items: center;
color: white;
  padding-top: 20px;
  /* width: 800px; */
  margin: 20px 10px;
  padding-bottom: 10px;
  background-color: #35374B;
  border-radius: 10px;
  height: auto;

}

.logo {
  width: 100px;
  height: auto;
  /* position: ; */
  justify-content: left;
}


@media screen and(min-width:600px) {
 nav{
  display: grid;
justify-content: center;
 }
}
.menu-card:hover{
  
  /* font-size: 20px; */
  background-color: lightgray;
  transition: all 0.4s;
  overflow: visible;
  transform: scale(1.05);
}
.nav{
  display: flex;
  justify-content: center;
}

.nav-list:hover {
 
  font-size: 18px;
  background-color: #78A083;
  transition: all 0.6s;
  overflow: visible;
}


.nav-list {
  /* padding: 5px; */
  color: white;
  font-size: 15px;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: bold;
  text-align: center;
  margin: 0%;
}

.nav-list:link {
  background-color: #344955;
  padding: 15px;
  margin: 20px;
  border-radius: 10px;
  display: inline-block;
}

.main-pic {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;


}

.section2 {
  padding: 5%;
  background-color: hsla(25, 75%, 47%, 0.506);
  display: flex;
  text-align: center;

}

button {
  font-size: 20px;
  padding: 20px;
  cursor: pointer;
  position: relative;
  bottom: 20px;
  left: 0;
}

h1::first-letter {
  font-size: 60px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.row{
  padding-bottom: 40px;
}

.teacher {
  border-radius: 15px;
  height: auto;
  width: auto;
  max-width: 300px;
  /* max-height: 50%; */
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0px 0px 20px 0px black;
}




@media screen and (min-width: 900px) {
  .teacherMain {
  display: grid;
    grid-template-columns: 1fr 1fr   ;

  }
}

.teacherMain h3,
p {
  text-align: center;
  /* text-wrap: wrap; */
  /* width: 500px; */

}
.authority{
  width: 80%;
  padding-bottom: 10px;
}
.authority p{
  line-height: 1;
}
.menu-card{
  border: solid 4px;
   border-radius: 15px;
   box-shadow: 10px 10px 20px 5px #344955;
   padding: 5px;
   /* height: 6rem; */
}
.card-heading{
  color: rgb(230, 230, 240);
   padding: 3%;
    border: solid ; 
   border-radius: 10px;
   text-align: center;
   background-color:#344955 ;
 
}

.messages{
  background-color: #344955;
}

.icon {
  /* height: 200px; */
  width: auto;
  background-color:  #3333333a;

  display: flex;
  flex-wrap: wrap;
  justify-content: center; 

}

.icolor {
  padding: 10px;
  font-size: 70px;
  padding-bottom: 40px;
  /* background-color: #fff; */
  margin: 5px;
  overflow: hidden;

  /* padding-right: px; */


}


.icolor:hover {

  color: #344955;
  transform: scale(1.3);
}

.card {
  height: 400px;
  width: 300px;
  background-color: darkgray;
  padding: 5px;
  grid-area: auto;
}

.card-main {

  display: grid;
  grid-template-columns: auto auto auto auto;
}
.main-body{
  /* background-color: #b0c9b7; */
}

.teacherMain img:hover{
  transition: all 0.6s;
  /* height:220px ; */
  transform: scale(1.1);
  border-radius: 20px;
  box-shadow: 0px 0px 40px 0px black;

}




@keyframes floatWord {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#animatedText span {
  display: inline-block;
  padding-top: 10px;
  padding-bottom: 10px;
  animation:infinite 0.4s infinite ;
  font-weight: bold;
  opacity: 0; /* Initially hide the spans */
}

.logo-head{
float: right;
}

.carousel-control-next {
  right: 0;
  left: auto;
}

/* Positioning the "Previous" button to the left of the screen */
.carousel-control-prev {
  left: 0;
  right: auto;
}
