/*For table:*/

tbody td {
  /* 1. Animate the background-color
      from transparent to white on hover */
  background-color: #ffffff00;
  transition: all 0.2s linear; 
  transition-delay: 0.3s, 0s;
  /* 2. Animate the opacity on hover */
  opacity: 0.6;
}



/* Codepen styling */
* { box-sizing: border-box }

table {
  width: 95%;
  /* margin: 0 10%; */
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15%;
  padding-right: 15%;
  background: rgba(100, 148, 237, 0.655)
}
th, td {
  padding: 0.5em;
}



.posts {
  background-color: White;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  margin: 3% 25% 0% 25%;
  min-height: 39vw;
}

.recent-forum-posts {
  text-align: center;
  margin: 1% 10%;
  border-radius: 8px;
}
.ltopic, .llikes{
  font-weight: bold;
}
.ltopic {
  width: 70%;
  
}


.post {
  background-color: rgba(100, 148, 237, 0.655);
  border-radius: 8px;
  
  margin: 10px 0px;
  max-height: 125px;
}
.post:hover {
  background-color:cornflowerblue;
}

.post a {
  display: flex;

}


.topic {
  width: 70%;
  color: black;
}
.likes{
  width: 30%;
  color: black;
}

.topic .title p{
  padding-left:8%;
  margin-bottom: 0;
}

.topic .author a {
  padding-left:8%;
  font-weight: bold;
  color: red;

}

.likes p{
  min-width: max-content;
  padding-left: 10%;
}

/*search + post*/

.post-search {
  
  display: flex;
  margin: 0% 25%;
  gap: 1%;
  min-height: max-content;
}

.new-post{
  background-color: rgba(100, 148, 237, 0.655);
  border-radius: 8px;
  width: 50%;
  margin-left: 0%;
  min-height: fit-content;
}

.search {
  background-color: rgba(100, 148, 237, 0.655);
  border-radius: 8px;
  width: 50%;
  margin-right: 0%;
  margin-top: 0%;
  height: 100%;
}

.new-post p, .search p{
  padding-left: 0%;
  text-align: center;
}

.search-box {
  margin: 5% 1%;
}

.new-post a {
  color: black;
}
.new-post a:hover {
  color: white;
}

#footer {
  display: flex;
  justify-content: center;
  position: relative;
  bottom: 10px;
  margin: 0% auto;
  width: max-content;
  height: min-content;
  color: rgba(0, 0, 0, 0.522);
}
