html,
body {
  margin: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
}

.header-top {
  background-color: #F2F2F2; 
  padding: 5px 20px;
  display: flex;
  justify-content: flex-end;
}

.header-bottom {
  background-color: #00a19a; 
  padding: 5px 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  position: relative;
}

.logo-container a {
  text-decoration: none;
}

.logo {
  width: 80px;
  height: auto;
  position: absolute;
  top: -40px; 
  margin-left: 200px;
}

.logo-container img:hover{
  height: auto;
  animation: swingRotate 5s ease-in-out infinite; 
  transform-origin: center; 
}

@keyframes swingRotate {
  0% { transform: rotateZ(0deg); }       
  25% { transform: rotateZ(-5deg); }   
  50% { transform: rotateZ(5deg); }    
  75% { transform: rotateZ(-5deg); }  
  100% { transform: rotateZ(0deg); }
}

.site-name {
  margin-left: 290px; 
  color: black;
  font-family: 'boogaloo';
  font-size: 30px;
}

nav ul {
  list-style: none;
  display: flex;
  margin-right: 200px;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: #003634 ;
  font-weight: bold;
}

nav ul li a.highlight {
  background-color: #A7B949;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
}

nav ul li a.highlight:hover{
  background-color: #8e9f37; 
}

.login a {
  text-decoration: none;
  color: black;
}

.login-button {
  width: 20px;
  height: auto;
  margin-left: 7px;
  margin-right: 220px;
}

.dropdown a:hover {
  color: white;
}

.dropdown-content a:hover {
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
  border-radius: 5px;
}

.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: black;
  font-family: 'lato';
  font-size: 12px;
}

.dropdown-content a:hover {
  background-color: #A7B949;
  border-radius: 5px;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu:hover .dropdown-content {
  visibility: visible;
    opacity: 1;
  left: 100%; 
  top: 0;
}

.dropdown-submenu .dropdown-content {
  visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: white;
    min-width: 160px;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}

.world-cuisine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:url(../afbeeldingen/patroon_achtergrond.png);
  animation: moveBackground 50s linear infinite;
  padding-bottom: 70px;
  
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.text-block {
  max-width: 50%;
  margin-left: 230px;
  padding-top: 100px;
  font-family: 'lato bold';
}

.text-block h1 {
  font-family: 'boogaloo';
  font-size: 50px;
}

.text-block p {
  font-family: 'lato black';
  color:#00a19a;
  margin-top: -40px;
}

.image-block img {
  width: 400px;
  height: auto;
  margin-right: 220px;
  margin-top: 100px;
}

.image-block:hover{
  transform: scale(1.02); 
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 10px;
  padding-right: 0px;
}

.search-bar input {
  border: none;
  padding: 15px;
  flex: 1;
  outline: none;
}

.search-bar button {
  background-color: white;
  border: none;
  padding-top: 9px;
  padding-bottom: 7px;
  padding-right: 20px;
  cursor: pointer;
}

.search-bar button img {
  width: 30px;
  height: auto;
}

.recipes, .about, .events {
  padding: 20px;
  text-align: center;
}

.recipes p {
  font-family: 'lato black';
  color:#00a19a;
  margin-bottom: -40px;
}

.recipes h2 {
  font-family: 'boogaloo';
  font-size: 50px;
  margin-bottom: -10px;
}

.recipes h3{
  font-family: 'lato light';
  font-size: 13px;
  margin-bottom: 30px;
}

.recipe-grid, .event-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.recipe-item, .event-item {
  width: 200px;
  height: auto;
  padding: 0px;
  border-radius: 10px;
}

.recipe-item p{
  background-color: #D33F30;
  color:white;
  font-size: 15px;
  margin-top: -15px;
  border-radius: 10px;
  width: 50%;
  margin-left: 25%;
}

.recipe-item h3{
  margin-top: 10px;
  font-family: 'boogaloo';
  font-size: 17px;
  text-align: center;
}

.recipe-item img {
  width: 100%;
  border-radius: 10px;
}

.tag {
  display:inline-block;
  position: absolute;
    margin-top: 250px;
    margin-left: -125px;
    padding: 5px 10px;
    background-color: #e74c3c;
    color: white;
    border-radius: 15px;
    font-size: 12px;
}

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #E6E6E6; 
  padding-bottom: 70px;
}

.text-block2 {
  max-width: 50%;
  margin-right: 300px;
  font-family: 'lato bold';
  text-align: left;
  padding-left: 30px;
}

.text-block2 h1 {
  font-family: 'boogaloo';
  font-size: 50px;
}

.text-block2 p {
    font-family: 'lato black';
    color:#00a19a;
    margin-bottom: -40px;
}

.text-block2 h2 {
  font-family: 'lato light';
  font-size: 13px;
  margin-top: -30px;
  width: 400px;
}

.image-block2 img {
  width: 400px;
  height: auto;
  margin-left: 250px;
  margin-right: 10px;
  margin-top: 100px;
}

.events {
  background-color: rgba(64, 158, 154, 0.4);
  padding-bottom: 50px;
}

.events p{
  font-family: 'lato black';
  color:#00a19a;
  margin-bottom: -40px;
}

.events h2{
  font-family: 'boogaloo';
  font-size: 50px;
  margin-bottom: 20px;
}

.groen {
  background-color: #A7B949;
  height: 50px;
}

footer {
  background-color: #003634;
  padding-top: 50px;
  color: white;
  display: flex;
  justify-content:center;
  gap: 250px;
}

footer h3 {
  margin-bottom: -10px;
  font-family: 'boogaloo';
  font-size: 20px;
}

footer ul {
  list-style: none;
  padding: 0;
  padding-bottom: 10px;
}

footer ul li {
  margin-bottom: 5px;
  font-family: 'lato light'
}

footer a{
  text-decoration: none;
  color: white;
}

footer a:hover{
  text-decoration: underline;
  color: white;
}

.donkergroen {
  background-color: #002422;
  height: 20px;
}



@media only screen and (max-width: 600px) {
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
  }

  .logo {
    position: relative;
    top: 0;
    margin-left: 0;
    width: 50px;
  }

  .menu{
    flex-direction:row;
    font-size: 10px;
    gap: 10px;
  }

  header {
    height: 140px;
  }

  .header-bottom {
    height: 100px;
  }

  .header-top{
    height: 25x;
    justify-content: left;
  }

  .site-name {
    margin-left: 0;
    font-size: 20px;
  }

  .top-bar {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    margin-right: 0;
  }

  nav ul li {
    margin: 5px 0;
  }

  .image-block img {
    display:none;
  }

  .text-block {
    margin-left: 25px;
    max-width: 100%;
    padding-top: 20px;
    text-align: center;
  }

  .search-bar {
    flex-direction:initial;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
    padding-right: 0px;
  }
  
  .search-bar input {
    border: none;
    padding: 15px;
    flex: 1;
    outline: none;
  }
  
  .search-bar button {
    background-color: white;
    border: none;
    padding-top: 9px;
    padding-bottom: 7px;
    padding-right: 20px;
    cursor: pointer;
  }
  
  .search-bar button img {
    width: 30px;
    height: auto;
  }

  .recipe-item {
    width: 40%;
  }

  .recipe-item h3{
    margin-top: 20px;
  }

  .tag {
    display:inline-block;
    position: absolute;
      margin-top: 210px;
      margin-left: -110px;
      padding: 5px 10px;
      background-color: #e74c3c;
      color: white;
      border-radius: 15px;
      font-size: 12px;
  }

  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text-block2 {
    margin-right: 0;
    max-width: 100%;
    text-align: center;
    padding-left: 0;
  }

  .image-block2 img {
    width: 80%;
    margin-left: 0;
  }

  footer {
    flex-direction: row;
    gap: 25px;
    padding: 20px;
  }

  footer h3 {
    font-size: 18px;
  }
}






