@import url('https://fonts.googleapis.com/css2?family=Exo+2&display=swap');

body {
  font: 14px;
  font-family: 'Exo 2', sans-serif;
  background: #f0ecfc;
  padding: 0%;
  margin: 0%;
  height: 100vh;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 5px;
  align-items: center;
  padding: 10px;
  font: 14px;
  background-color: #4b526f;
}

.logoNav {
  width: 200px;
  background: transparent;
}

a {
  color: #ac89ae;
}

#onboarding {
  display: grid;
  justify-content: center;
  align-items: center;
}

select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #4b526f;
  width: 100%;
}

select:hover {
  border-color: #c9c7ea;
}

button {
  padding: 10px;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  margin: 10px 0;
}

#showClass {
  display: flex;
  flex-direction: row;
}

#showClass > section {
  margin: 0 30px;
  width: 50%;
}

h1.slogan {
  margin-bottom: 0;
}

h4.slogan {
  margin-top: 0;
}

.classInfo {
  background: white;
  padding: 1px 12px;
  box-shadow: 0 0 5px 2px rgba(172, 137, 174, 0.3);
  border-radius: 5px;
  margin: 19px 0;
}

.classSection h2 {
  width: 60%;
  font-weight: bold;
}

.classInfo .description {
  width: 100%;
}

.reviewbuttons {
  display: flex;
  width: 100%;
  justify-content: space-around;
}

.reviewbuttons button {
  background-color: #ce90ec;
  border: none;
}

#flexy {
  display: flex;
  justify-content: center;
}

.navigationBtn {
  padding: 5px;
  font-size: 20px;
  color: #f0ecfc;
}

.btn {
  padding: 5px;
  text-decoration: none;
  color: #f0ecfc;
  height: 100%;
  font-size: 20px;
}

.btn:hover {
  color: #c9c7ea;
  border-bottom: solid #c9c7ea 2px;
}

footer {
  height: 50px;
  padding-top: 5px;
  text-align: center;
  color: #f2e2c4;
  background-color: #4b526f;
  bottom: -83px;
  position: relative;
  width: 100%;
}

.students h3 {
  color: #4b526f;
  font-size: 25px;
}

.students {
  margin-bottom: 10%;
}

.wrapContent {
  height: 500px;
}

.headerImg {
  background-image: url('../images/mainBoard.png');
  background-repeat: no-repeat;
  background-size: 100%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 50%;
}

.motto {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  font-size: 30px;
  justify-content: center;
  width: 80%;
}

.motto p {
  font-size: 16px;
}

.wrapClasses {
  width: 70%;
}

.gridClasses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.classImg {
  height: auto;
  text-align: center;
}

.classImg > img {
  width: 300px;
  height: auto;
}

/*Class Index page Style*/

ul.class-items {
  padding: 2px 130px;
  list-style: none;
  margin-bottom: 5px;
}

ul.class-items > li.item {
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px 2px rgba(172, 137, 174, 0.3);
}

ul.class-items > li.item > .task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85%;
}

ul.class-items > li.item > .task > .icon,
img {
  background: #bdbdbd;
  width: 60px;
  height: 60px;
  border-radius: 5px;
}

ul.class-items > li.item > .task > .task-content {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  height: auto;
  width: 100%;
}

ul.class-items > li.item > .task > .task-content > .name {
  height: 25px;
  border-radius: 5px * 3;
  margin-bottom: 8px;
  font-weight: bold !important;
  font-size: 20px !important;
  color: #4b526f;
}

ul.class-items > li.item > .task > .description {
  background: #eeeeee; /* or any other desired style */
  width: 40%; /* or adjust as needed */
  height: auto; /* or adjust as needed */
  border-radius: 5px * 3;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow: hidden;
}

ul.class-items > li.item > .viewBtn {
  width: 30px;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 10px;
}

ul.class-items > li.item > .viewBtn > form > .view {
  background-color: #ce90ec;
  color: #ffffff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin-left: 10px;
}

ul.class-items > li.item > .viewBtn > .view:last-child {
  margin-right: 0;
}

.myClass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
x .edit {
  background-color: #4b526f !important;
}

.delete {
  background-color: #b05d75 !important;
}

.createLink {
  text-decoration: none;
  color: #ffffff;
  padding: 8px 16px;
  background-color: #ac89ae;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

/*Create class style*/

h2 {
  font-weight: normal;
  font-size: 3em;
  margin: 0 auto;
  width: 500px;
  text-align: center;
  color: #b05d75;
}

#backBtn {
  position: absolute;
  left: 10%;
  text-decoration: none;
}

/* #backBtnReview {
  position: absolute;
  left: 0.5%;
  text-decoration: none;
} */

header {
  height: 80px;
  /*added*/
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
}

#form {
  position: relative;
}

#classForm {
  margin: 0 auto;
  width: 80%;
  padding-top: 20px;
  color: black;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formgroup label,
.formgroup input,
.formgroup select,
.formgroup textarea {
  display: block;
  margin-bottom: 7px;
}

.formgroup label {
  font-size: 1.5em;
  margin-top: 20px;
  padding-left: 12px;
}

.formgroup input,
.formgroup select,
.formgroup textarea {
  width: 100%;
  border: none;
  border-radius: 10px;
  outline: none;
  padding: 10px;
  font-family: 'Sniglet', cursive;
  font-size: 1em;
  color: #676767;
  transition: border 0.5s;
  border: solid 3px rgba(172, 137, 174, 0.3);
  box-sizing: border-box;
  /* box-shadow: 0 0 5px 2px rgba(172, 137, 174, 0.3); */
}

.formgroup input:focus,
.formgroup select:focus,
.formgroup textarea:focus {
  border: solid 3px #b05d75;
}

.formgroup input:hover,
.formgroup select:hover,
.formgroup textarea:hover {
  border: solid 3px #b05d75;
}

#submit,
.editLink {
  background-color: #ce90ec;
  color: #ffffff;
  height: 50px;
  cursor: pointer;
  margin-top: 30px;
  margin-bottom: 70px;
  font-size: 1.29em;
  transition: background-color 0.3s ease-in-out;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px 16px;
  border: none;
}

.editLink {
  text-decoration: none;
  padding: 13px 16px;
  background-color: #3498db;
}

.editLink:hover {
  background-color: #1d70a8;
}

.formgroup {
  width: 100%;
  padding-top: 2px;
}

.date {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.startDate,
.endDate {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-right: 30px;
}
.endDate {
  margin-right: 0;
}

#imgInput {
  background: white;
  height: 70px;
}

.prevImg {
  position: relative;
  display: flex;
}

#imgImage {
  position: absolute;
  right: 30px;
  top: 6px;
}

#reviewForm {
  display: grid;
  width: 80%;
  margin: 0 auto;
}

#reviewForm header h1 {
  text-align: center;
}

#rating {
  display: flex;
  width: 30%;
}

#listReview {
  width: 80%;
  margin: auto;
  text-align: center;
}

#listReview > div {
  border-radius: 5px;
  background-color: white;
  margin: 20px;
  box-shadow: 0 0 5px 2px rgba(172, 137, 174, 0.3);
  padding: 1px;
}

.checked {
  color: orange;
}

/*Show page*/
#className {
  margin: 0;
  margin-top: 0;
  /* width: 0; */
  text-align: left;
}

#postShow {
  margin-top: 0;
  width: 0;
  margin: 0;
}

#desc {
  font-weight: bold;
}

.dateShow {
  display: flex;
  flex-direction: row;
}

hr {
  opacity: 0.5;
}

.postheader {
  display: flex;
  justify-content: space-between;
}

#card-item {
  padding: 0;
}

#card {
  padding: 10px;
}

#trash {
  background: none;
  border: none;
  padding: 0;
}

.description {
  width: 80%;
  word-wrap: break-word !important;
}

.task-content {
  height: auto !important;
}

#listReview a {
  display: block;
  width: 10%;
  height: 70%;
  margin: 0 auto;
}
