* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  display: flex;
  height: 100%;
  width: 100%;
  padding: 0;
  background-color: white;
}

button {
  font-family: inherit;
}

header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  width: 100%;
  height: 200px;
  background-color: #0c0723;
  border-bottom: 5px solid #9b59b6;
}

main,
#recipesList {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  align-items: center;
}

#authBody {
  background-color: rgba(0, 0, 0, 0.5);
}

.recipe {
  display: flex;
  flex-direction: row;
  border: 2px solid #9b59b6;
  border-radius: 7px;
  width: 70%;
  margin-top: 30px;
}

.dishImage {
  height: 400px;
  width: 266px;
  margin: 10px;
}

.dishImage img {
  max-height: 400px;
  max-width: 266px;
  object-fit: scale-down;
}

.recipeDescription {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.recipeDetails {
  border-bottom: 1px solid #9b59b6;
  margin: 10px;
  margin-left: 20px;
}

.recipeFooterDiv {
  border-top: 1px solid #9b59b6;
  margin: 10px;
  margin-left: 20px;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

#wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

#tabsDiv {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #0c0723;
  height: 200px;
  align-items: flex-end;
  border-bottom: 3px solid #9b59b6;
}

#sideDiv {
  border: 2px solid black;
  width: 200px;
}

#mainDiv {
  flex-grow: 1;
}

#searchDiv {
  display: flex;
  justify-content: flex-end;
}

#searchForm {
  display: flex;
  width: 100%;
  align-items: center;
  padding-right: 30px;
}


#nav button {
  background-color: transparent;
  color: white;
  padding: 10px 10px;
  border: none;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bolder;
  font-family: inherit;
  height: 40px;
  width: auto;
}

#nav button:hover {
  color: #9b59b6;
}

#searchDiv button {
  background-color: transparent;
  color: white;
  padding-left: 10px;
  border: none;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: inherit;
}

.tabs {
  display: flex;
  background-color: transparent;
  align-items: center;
  color: white;
  padding: 10px 20px;
  border: none;
  text-align: center;
  font-size: 16px;
  margin-left: 2px;

  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bolder;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  border-top: 1px solid #9b59b6;
  border-left: 1px solid #9b59b6;
  border-right: 1px solid #9b59b6;
}

.tabs:hover {
  color: #9b59b6;
  transition: 0.1s;
}

.tabSelected {
  background-color: #9b59b6;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  transition: 0.2s;
}

.tabSelected:hover {
  color: #0c0723;
  transition: 0.1s;
}

#nav #homeButton {
  background-image: url(/COM6011D/public/img/home_icon.png);
  background-size: 17px 17px;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  margin-right: 10px;
}

#homeButton:hover {
  background-image: url(/COM6011D/public/img/icons8-home-26_hover.png);
}

#indexRecipesSearch {
  height: 26px;
  width: 26px;
  background-image: url(/COM6011D/public/img/search_icon.png);
  background-size: 17px 17px;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  position: relative;
}

#indexRecipesSearch:hover {
  background-image: url(/COM6011D/public/img/icons8-search-26_hover.png);
}

#nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  height: 50px;
}

#footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  border-top: 4px solid #9b59b6;
  justify-content: space-between;
  width: 100%;
  min-height: 300px;
  background-color: #0c0723;
  color: white;
  margin-top: 30px;
}

#authFooter,
#adminFooter {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  border-top: 4px solid #9b59b6;
  justify-content: space-between;
  width: 100%;
  background-color: #0c0723;
  color: white;
  margin-top: 30px;
}

#footerDiv a {
  color: white;
  text-decoration: none;
  font-weight: normal;
}

#footerDiv a:hover {
  color: #0056b3;
}

#getInTouchBtn,
.recipeFooterDiv button {
  background: #9b59b6;
  color: #0c0723;
  border: 1px solid #9b59b6;
  border-radius: 7px;
  cursor: pointer;
  padding: 5px;
  margin-top: 30px;
  width: 250px;
}

.recipeFooterDiv button {
  width: 100px;
  font-weight: bolder;
}

#emailContact {
  color: #9b59b6;
  margin-top: 30px;
  margin-bottom: 5px;
}

#getInTouchBtn:hover,
#loginBtn:hover,
#registerBtn:hover,
.recipeFooterDiv button:hover,
#adminRecipesFilter:hover,
#adminRecipesSearch:hover,
#adminMessagesSearch:hover,
#adminMessagesShowAll:hover,
#adminMessagesFilter:hover,
#adminUsersSearch:hover,
#adminUsersFilter:hover,
#adminRecipesClearFilters:hover,
#showAllUsers:hover,
#adminUsersSearch:hover {
  background: #0c0723;
  color: #9b59b6;
}

.contactFormDiv {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
  transition: 200ms ease-in-out;
  color: #0c0723;
  border: 2px solid #9b59b6;
  border-radius: 7px;
  z-index: 10;
  background-color: white;
  width: 500px;
  max-width: 80%;
}

.authDiv {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 200ms ease-in-out;
  color: #0c0723;
  border: 2px solid #9b59b6;
  border-radius: 7px;
  background-color: white;
  width: 500px;
  max-width: 80%;
}

.contactFormDiv.active {
  transform: translate(-50%, -50%);
  visibility: visible;
}

.contactFormHeader {
  padding-right: 10px;
  padding-left: 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #9b59b6;
}

.contactFormHeader h2 {
  font-weight: bold;
}

.closeButton {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 30px;
  font-weight: bold;
  color: #0c0723;
}

#overlay {
  position: fixed;
  transition: 200ms ease-in-out;
  opacity: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 9;
}

#overlay.active {
  pointer-events: all;
  opacity: 1;
}

.contactForm form,
#loginForm,
#registerForm {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.contactForm label {
  margin-bottom: 5px;
  font-weight: bold;
}

.contactForm input[type="text"],
.contactForm input[type="email"],
.contactForm textarea {
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contactForm button.sendButton {
  padding: 10px 20px;
  background-color: #9b59b6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}


.contactForm button.sendButton:hover {
  background-color: #0c0723;
}

.tabsDiv {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #0c0723;
  height: 50px;
  align-items: flex-end;
  border-bottom: 3px solid #9b59b6;
}

table {
  width: 80%;
  border-spacing: 5px;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  border: 1px solid #9b59b6;
  padding: 10px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

th {
  background-color: #9b59b6;
  color: white;
}

td {
  vertical-align: middle;
}


td img {
  max-width: 100px;
  border-radius: 5px;
}

.actions {
  white-space: nowrap;
  gap: 10px;
  text-align: center;
  overflow: visible;
}

#actionsTh {
  padding: 10px;
  text-align: left;
  width: auto;
  white-space: nowrap;
}

.actions button,
#adminRecipesFilter,
#adminRecipesSearch,
#adminMessagesSearch,
#adminMessagesShowAll,
#adminMessagesFilter,
#adminUsersSearch,
#adminUsersFilter,
#adminRecipesClearFilters,
#showAllUsers {
  background-color: #9b59b6;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.actions button:hover {
  background-color: #0c0723;
  color: #9b59b6;
}

.container {
  padding-top: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.contentSection {
  width: 100%;
}

.contentSection h2 {
  margin-bottom: 20px;
}

.contentSection .button {
  margin-bottom: 20px;
  align-self: start;
  margin-left: 10%;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group input[type="file"] {
  padding: 3px;
}

.addRecipe {
  width: 80%;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgb(0 0 0 / 42%);
  align-self: start;
  margin-left: 10%;
}

.addRecipe h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #9b59b6;
}

.button {
  background-color: #9b59b6;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}

.button:hover {
  background-color: #0c0723;
  color: #9b59b6;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  visibility: hidden;
  transition: 200ms ease-in-out;
  color: #0c0723;
  border: 2px solid #9b59b6;
  border-radius: 7px;
  z-index: 10;
  background-color: white;
  width: 80%;
  max-height: 100%;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#confirmActionPopup {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  width: 40%;
}

#editRecipePopup,
#editUserPopup {
  max-height: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
}

#editUserPopup {
  width: 50%;
}

#closeEditPopup {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#editRecipeContent {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.popup.active {
  visibility: visible;
}

.popupHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #9b59b6;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.popupHeader h2 {
  font-weight: bold;
  margin: 0;
}

.popupHeader .closeButton {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 30px;
  font-weight: bold;
  color: #0c0723;
}

.popup .form-group {
  margin-bottom: 15px;
}

.popup .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.popup .form-group input,
.popup .form-group textarea,
.popup .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transform: translateZ(0);
}

.popup .form-group textarea {
  resize: vertical;
}

.popup .button {
  margin-top: 20px;
}

.search-filter {
  display: flex;
  justify-content: space-between;
  width: 80%;
  align-items: center;
  margin-bottom: 20px;
  flex-direction: row;
  align-content: space-between;
}

.search-filter input[type="text"] {
  width: 70%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.search-filter select {
  width: 25%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.search-filter .filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-filter .filter-group select {
  margin-top: 10px;
  width: auto;
}

.flagged-indicator {
  width: 20px;
  height: 20px;
  background-color: red;
  border-radius: 50%;
  margin: auto;
}

.tabs img {
  height: 20px;
  width: auto;
  margin-right: 5px;
}

#headerLogo {
  height: 125px;
  width: auto;
  margin: 25px;
}

#footerLogo {
  height: 50px;
  width: auto;
}

.recipeHeadDiv {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.recipeDetails button {
  height: 30px;
  width: 30px;
  background-color: transparent;
  background-image: url(/COM6011D/public/img/icons8-favourite-60.png);
  background-size: 30px 30px;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding-bottom: 2px;
  border: none;
}

.recipeDetails button:hover {
  background-image: url(/COM6011D/public/img/icons8-favourite-60-hover.png);
  cursor: pointer;
}

.recipe h3 {
  font-size: 16px;
}

.recipe h4 {
  color: #9b59b6;
  font-size: 14px;
}

.recipeFooterInfoDiv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding-right: 30px;
  padding-top: 5px;

}

.recipeParagraphDiv {
  height: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 10px;
  margin-left: 20px;
  transition: height 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 13;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.recipeParagraphDiv p,
span {
  text-align: justify;
  display: block;
}

.recipeParagraphDiv.expanded {
  height: auto;
  -webkit-line-clamp: unset;
  transition: height 0.3s ease;
}

.recipeParagraphDiv ol,
ul {
  padding-left: 5%;
}

.recipe h2 {
  color: #9b59b6;
}

.ratingStars {
  width: 17px;
  height: 17px;
}

.non-vegetarian {
  color: #ff652f;
}

.vegetarian {
  color: #14a76c;
}

.recipeParagraphDiv h3 {
  color: #9b59b6;
  padding-top: 15px;
}

#year {
  display: inline;
}

.fixed-cell {
  width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.recipe-expanded-row,
.message-expanded-row {
  background-color: #f9f9f9;
}

.expanded-content {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  display: block;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.expanded-content h3 {
  margin: 20px;
}

.expanded-content p {
  margin-left: 20px;
  margin-right: 20px;
  text-align: justify;
}

.expanded-content ol {
  padding-left: 5%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.flag-button {
  border: none;
  background-color: transparent;
}

.flag-button img {
  width: 20px;
}

.flag-button:hover {
  cursor: pointer;
}

.flag-pink {
  background-image: url(/COM6011D/public/img/icons8-flag-pink.png);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
}

.flag-grey {
  background-image: url(/COM6011D/public/img/icons8-flag-grey.png);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
}

.flag-purple {
  background-image: url(/COM6011D/public/img/icons8-flag-purple.png);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
}

.unread-message-row {
  background-color: #eeebed;
  font-weight: bolder;
}

.adminSearchShowBtnDiv {
  display: flex;
  flex-direction: row;
}

#adminMessagesShowAll,
#adminMessagesSearch,
#adminRecipesSearch,
#adminRecipesClearFilters,
#showAllUsers,
#adminUsersSearch {
  margin: 10px;
}

.noResultsFound {
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  color: #0c0723;
  padding: 20px;
  border: none;
  margin-top: 100px;
}

.noResultsRow {
  height: 300px;
}

#messageSearchBox,
#recipeSearchBox,
#userSearchBox {
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  height: 35px;
  border-radius: 5px;
  appearance: none;
  width: 70%;
  padding: 10px;
}

#indexRecipeSearchBox {
  flex-grow: 1;
  padding: 0px 10px;
  border: none;
  font-size: 16px;
  outline: none;
  height: 25px;
  border-radius: 5px;
}

.noResultsIndex {
  padding-top: 200px;
}

#addNewRecipe {
  margin-left: 0;
}

.steptIngredientsButton,
.removeIngredientButton,
.removeStepButton {
  background-color: #9b59b6;
  color: white;
  border: none;
  padding: 5px 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 5px;
  margin-top: 5px;


  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.stepDescription {
  width: 100%;
  height: 6em;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.ingredientDescription,
.inputclass {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.inputclass {
  height: 6em;
}

.steptIngredientsButton:hover,
.removeIngredientButton:hover,
.removeStepButton:hover {
  background: #0c0723;
  color: #9b59b6;
  border-radius: 7px;
  cursor: pointer;
}

.step {
  margin-top: 5px;
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.step p {
  margin-bottom: 5px;
}

.expandedRecipeTd {
  column-span: 8;
}

#greeting {
  color: #f9f9f9;
  padding-right: 50px;
}

#loginRegisterHeader {
  height: 35px;
}

.authDiv {
  box-shadow: 0 0 10px rgb(0 0 0 / 42%);
}

.authDiv button {
  padding: 10px 20px;
  background-color: #9b59b6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

#loginBtn,
#registerBtn {
  background: #9b59b6;
  color: #0c0723;
  border: 1px solid #9b59b6;
  border-radius: 7px;
  cursor: pointer;
  padding: 5px;
  margin-top: 30px;
}

.toggleLoginRegister {
  display: flex;
  flex-direction: row;
  padding: 10px;
  padding-bottom: 20px;
  justify-content: center;
}

.toggleLoginRegister p {
  font-size: 14px;
}

#authRegisterBtn,
#authLoginBtn {
  border: none;
  background-color: transparent;
  color: #9b59b6;
  font-size: 14px;
  font-weight: 900;
  width: 80px;
  padding: unset;
}

#authRegisterBtn:hover,
#authLoginBtn:hover {
  color: #0c0723;
}

.recipeHeadDiv .removeRecipeFavBtn {
  height: auto;
  background-position: center;
  position: relative;
  background: #9b59b6;
  color: #0c0723;
  border: 1px solid #9b59b6;
  border-radius: 7px;
  cursor: pointer;
  padding: 5px;
  width: 100px;
  font-weight: bolder;
  top: 0;
  right: 0;
  margin-bottom: 10px;
}

.recipeHeadDiv .removeRecipeFavBtn:hover {
  background: #0c0723;
  color: #9b59b6;
}

.favDiv {
  position: relative;
  height: 100%;
  display: flex;
  align-content: space-around;
  align-items: baseline;
  flex-direction: row-reverse;
  justify-content: space-evenly;
}

#favHeaderDiv {
  width: 70%;
  margin: 30px;
  margin-top: 40px;
}

.favHeader {
  padding-bottom: 10px;
  font-size: 36px;
  font-weight: 700;
  color: #9b59b6;
  text-align: center;
}

.hideFavHeader,
.hideRemoveRecipeFavBtn,
.hideAddRecipeFavBtn {
  display: none;
}

.favNotification,
.messsageNotification,
.recipeAddedNotification,
.changesSavedNotification {
  display: none;
  position: fixed;
  background-color: #0c0723;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #9b59b6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 150px;
  transform: translate(-50%, -50%);
  transition: all 0.05s ease-in-out;
}

.messsageNotification,
.recipeAddedNotification,
.changesSavedNotification {
  width: 450px;
  height: 150px;
}

.favNotification.show,
.messsageNotification.show,
.recipeAddedNotification.show,
.changesSavedNotification.show {
  display: block;
}

.favNotification p {
  font-size: 12px;
  font-weight: 900;
  color: #9b59b6;
  text-align: center;
}

.messsageNotification h2,
.recipeAddedNotification h2,
.changesSavedNotification {
  padding-top: 40px;
  font-weight: 900;
  color: #9b59b6;
  text-align: center;
}

@media (max-width: 1500px) {
  #popular,
  #indian,
  #moldovan,
  #russian,
  #french,
  #italian,
  #chinese {
      content: "";
      width: 50px;
      color: transparent;
  }

  .tabs {
    padding: 10px 10px;
  }
}