/* General Body Styles */
body {
  font-family: sans-serif;
  margin: 0;
  background-color: #f4f4f4;
}

/* Header Styles */
header {
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: center;
}

/* Food Grid Styles */
#food-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.food-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.food-item:hover {
  transform: scale(1.05);
}

.food-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.food-item h3 {
  text-align: center;
  padding: 0.5rem;
  margin: 0;
}


/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  padding-top: 60px;
}

.modal-content-container {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
}


#modal-content img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.details,
.votes {
  margin-top: 1rem;
}

.votes button {
  padding: 8px 12px;
  margin-right: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.like-btn {
  background-color: #4CAF50; /* Green */
  color: white;
}

.dislike-btn {
  background-color: #f44336; /* Red */
  color: white;
}

/* Video Container */
.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin-top: 1rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
