:root {
  --theme-color: #e92d28;
  --dark-background: #101828;
  --dark-color: #EEEEEE;
  --bg-color-light: rgb(229, 229, 231)
  ;
}
html{
  scroll-behavior: smooth;
}
* {
  font-family: "Fira Sans", serif;
}
.html-dark-theme{
  background-color: var(--dark-background) !important;
  color: var(--dark-color) !important;
}
.nav-dark{
  color: #ffffff !important;
  background-color: #1e2939 !important;
}
.html-pseudo-dark{
  color: var(--dark-background) !important;
}
/* Animations */
@keyframes scale {
  from{
    opacity: 0;
    scale: 0.5;
  }
  to{
    opacity: 1;
    scale: 1;
  }
}
@keyframes slideInLeft {
  from{
    opacity: 0;
    transform: translateX(-100px);
  }
  to{
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes slideInRight {
  from{
    opacity: 0;
    transform: translateX(100px);
  }
  to{
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes rotate360 {
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(360deg);
  }
}
@keyframes expandTop {
  from{
    opacity: 0;
    transform: translateY(-100%);
  }
  to{
    opacity: 1;
    transform: translateY(0%);
  }
}


/* Utility Classes */
.align-self{
  align-self: start !important;
  padding: 0 !important;
}
.slideInLeft{
  animation: slideInLeft linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
.slideInRight{
  animation: slideInRight linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
.scale{
  animation: scale linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
.flex-direction-col{
  display: flex !important;
  flex-direction: column !important;
  align-items: start !important;
}
.visibility{
  display: flex !important;
}
.expand-top{
  animation: expandTop 2s ease both;
}

a {
  text-decoration: none;
}
a:visited,
a:link {
  color: inherit;
}
body {
  background-color: rgb(243,243,243);
  box-sizing: border-box;
  overflow-x: hidden;
  margin: 0;
}
.nav, .innernav, .logonav {
  padding: 20px 0px 20px 70px;
  display: flex;
  font-weight: 550;
  justify-content: flex-start;
  gap: 3vw;
  align-items: center;
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: rgb(243,243,243);
  width: 100%;
}
.innernav, .logonav{
  padding: 0;
  width: auto;
}
.logonav{
  gap: 4vw;
}
.hamburger-logo{
  display: flex;
  align-items: center;
  cursor: pointer;
  display: none;
}
.hamburger-logo svg{
  margin-top: auto;
}
.rotate{
  animation: rotate360 2s;
}
.title {
  color: var(--theme-color);
  font-size: 30px;
  cursor: pointer;
  font-weight: 550;
}
.nav-child {
  min-width: 30px;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: all 0.05s;
}
.nav-child:hover{
  transform: translateY(-2px);
  color: var(--theme-color);
}
.sun:hover, .moon:hover{
  fill: var(--theme-color);
}
.sun{
  display: none;
}
.theme-switch{
  align-self: center;
  cursor: pointer;
  padding-left: 50px;
}
.nav-dark .moon{
  display: none;
}
.nav-dark .sun{
  display: inline;
}
.nav-dark .hamburger-logo svg{
  fill: white;
}
.nav-child > svg {
  color: black;
  min-width: 16px;
}
.hero {
  position: relative;
  z-index: 1;
  width: 90vw;
  height: 100vh;
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 20px;
  margin: 5vh auto;
  background-image: url("https://demo.gloriathemes.com/platea/demo/wp-content/uploads/2025/01/search-hero-2.jpg");
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  z-index: 2;
}

#hero-text {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  margin: 0px 0px 0px 70px;
  width: 50vw;
  color: white;
  position: relative;
  z-index: 3;
  opacity: 1;
  align-items: start;
}
#hero-text > * {
  font-size: 19px;
}
#main-text {
  font-size: 60px;
  font-weight: 550;
}
#search {
  border: 0;
  background-color: white;
  height: 60px;
  width: 90%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
#search input {
  color: black;
  border: 0;
  width: 77%;
  font-size: 16px;
}
#search input::placeholder {
  font-size: 16px;
}
input:focus {
  outline: none;
}
#search svg:first-child {
  padding: 0px 0px 7px 20px;
}
#search-button {
  padding: 0px 20px 0px 0px;
  cursor: pointer;
}
.recipes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 450;
  width: 90vw;
  margin: 50px auto;
}
.recipes hr {
  height: 0.5px;
  background-color: black;
}
#latest {
  margin: 25px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  justify-items: center;
  justify-content: center;
  align-items: start;
}
.grid hr {
  display: none;
}
.grid-elements {
  cursor: pointer;
}
.grid img {
  width: 100%;
  /* height: 261.164px; */
  border-radius: 15px;
}
.menu-type {
  color: var(--theme-color);
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0px;
}
.caption {
  font-size: 22px;
  font-weight: 600;
  margin: 10px 0px 5px 0px;
}
.caption:hover,
.tags:hover {
  cursor: pointer;
  color: var(--theme-color);
}
.tags {
  font-size: 14px;
  font-weight: 300;
}
.features {
  height: 90vh;
  width: 90vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin: 50px auto;
}
.first-feature,
.second-feature {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  display: flex;
  align-items: center;
}
.first-feature {
  color: white;
  background-image: url("https://demo.gloriathemes.com/platea/demo/wp-content/uploads/2024/12/section-bg-02.jpg");
}
.second-feature {
  background-image: url("https://demo.gloriathemes.com/platea/demo/wp-content/uploads/2024/12/section-bg-03.jpg");
}
.feature-data {
  padding: 3vw;
  width: 60%;
}
.heading-feature {
  font-size: 35px;
  font-weight: 600;
  margin: 30px 0px;
}
.describe-feature {
  line-height: 0.7cm;
  margin: 30px 0px;
}
.feature-button {
  background-color: var(--theme-color);
  width: 40%;
  text-align: center;
  height: 40px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: white;
}
.feature-button:hover {
  background-color: transparent;
  cursor: pointer;
}
.popular-tags {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color-light);
  margin: 10vh auto;
  max-width: 90vw;
  border-radius: 20px;
}
.head-tags {
  margin-top: 40px;
  font-size: 42px;
  font-weight: 500;
  text-align: center;
}
.text-tags {
  font-weight: 300;
  font-size: 16px;
  text-align: center;
  padding: 2px;
}
.actual-tags {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-top: 30px;
  column-gap: 10px;
  margin-bottom: 40px;
  width: 80%;
}
.tag-element {
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  padding: 10px;
  margin: 10px 0;
  background-color: white;
  text-transform: uppercase;
  transition: all 0.2s;
}
.tag-element-js{
  background-color: #99a1af8b !important;
}
.tag-element:hover {
  background-color: var(--theme-color);
  color: white;
  cursor: pointer;
  transform: translateY(-2px);
}
.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.socials {
  margin: 15px 0px;
  display: flex;
  gap: 16px;
  transition: all 0.3s;
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 15px 0px;
  gap: 16px;
  font-weight: 400;
}
.footer-bar div:hover,
.socials div:hover {
  cursor: pointer;
  color: var(--theme-color);
}
.socials div:hover{
  transform: translateY(-5px);
}
.footer hr {
  width: 60%;
  height: 0.25;
  background-color: black;
}
.final-icon {
  color: var(--theme-color);
  font-size: 30px;
  cursor: pointer;
  font-weight: 550;
  margin: 20px 0;
}
@media screen and (max-width: 750px) {
  .nav {
    padding: 15px 0px 15px 27px !important;
  }
  .hamburger-logo{
    display: flex;
  }
  .nav-child {
    display: none;
    font-size: 18px;
  }
  .nav-child > svg:not(.sun,.moon) {
    display: none;
  }
  .hero {
    background-image: url("https://demo.gloriathemes.com/platea/demo/wp-content/uploads/2024/12/recipe-6-630x785.jpg");
    background-position: center;
    min-height: 60vw;
  }
  #hero-text {
    width: 80%;
    margin-left: 10%;
    padding: 0;
    text-align: center;
    align-items: center;
  }
  .hero {
    height: 80vh;
  }
  #hero-text > * {
    font-size: 16px;
  }
  #main-text {
    font-size: 40px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 450px) {
  #main-text {
    font-size: 30px;
  }
  #search {
    height: 50px;
  }
  #search svg {
    width: 22px;
  }
  #search svg:first-child {
    padding: 0px 0px 5px 10px;
  }
  .feature-data {
    width: 70% !important;
  }
  .features {
    grid-template-columns: 1fr;
    height: 150vh;
  }
  .grid {
    grid-template-columns: 1fr !important;
  }
  .heading-feature {
    font-size: 30px;
    margin: 20px auto;
  }
  .describe-feature {
    margin: 20px auto;
  }
  .feature-button {
    height: 35px;
  }
  .head-tags {
    font-size: 38px;
  }
  .grid hr {
    display: block;
    width: 80%;
    margin: 30px auto;
  }
}
@media screen and ((min-width: 450px) and (max-width: 550px)) {
  .grid {
    grid-template-columns: repeat(1, 1fr) !important;
    width: 80vw;
    /* height: 120vh; */
  }
  .heading-feature,
  .describe-feature {
    margin: 10px auto;
  }
  .feature-button {
    width: 40%;
  }
  .grid hr {
    display: block;
    width: 80%;
    margin: 30px auto;
  }
}
@media screen and ((min-width: 750px) and (max-width:1000px)) {
  .nav {
    padding-left: 50px;
  }
  .nav-child > svg:not(.sun,.moon) {
    display: none;
  }
  #hero-text > * {
    font-size: 17px;
  }
  #main-text {
    font-size: 50px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .feature-data {
    padding: 2vw;
  }
  .heading-feature,
  .describe-feature {
    margin: 20px auto;
  }
  .feature-button {
    width: 30%;
  }
}
@media screen and ((min-width: 1000px) and (max-width:1400px)) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media screen and (max-width: 1000px) {
  .features {
    grid-template-columns: 1fr;
    height: 150vh;
  }
  .first-feature {
    background-position: top center;
  }
  .second-feature {
    background-position: top;
  }
  .feature-data {
    width: 70%;
  }
  .feature-data {
    width: 60%;
  }
}
