@font-face {
  font-family: 'font';
  src: url('font/font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  cursor: url('./assets/cursor.png'), auto;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'font', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #272727;
}

header {
  background-color: #f8f8f8;
  position: relative;
  width: 100%;
}

a {
  color: white;
  text-decoration: none;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

textarea#special-requests {
  width: 100%;
  max-width: 500px;
  height: 100px;
  resize: none;
}

.top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 20px;
  max-width: 1024px;
  margin: 0 auto;
}

.logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#header-img {
  height: 170px;
  padding: 0px 8px;
  margin: 24px 0px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  position: absolute;
  right: 0; /* Align actions to the right */
}

.actions button {
  border: none;
  background-color: #f8f8f8;
  color: white;
  border-radius: 100px;
  height: 40px;
}

#language-toggle-btn {
  border: 2px solid #272727;
  padding: 0 16px;
  color: #272727;
  font-family: 'font', sans-serif;
}

#language-toggle-btn:hover {
  background-color: #ddd;
}

#theme-toggle-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

#theme-toggle-btn svg {
  fill: #272727;
  width: 40px;
  height: 40px;
}

#theme-toggle-btn svg:hover {
  fill: #ddd;
}

.name {
  color: #272727;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner {
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  max-height: 480px;
  width: 100%;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  align-items: center;
}

.nav-placeholder {
  height: 80px;
}

.navbar {
  position: relative;
  background-color: #272727;
  height: 48px;
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-placeholder.sticky .navbar {
  position: fixed;
  background-color: #272727;
  height: 60px;
  padding: 0;
  z-index: 100;
  top: 0;
  box-shadow: 0 0 4px 0 #000;
}

.nav-links a {
  margin: 0 15px;
  color: white;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 20px;
}

article {
  border-radius: 4px;
  cursor: pointer;
  padding: 16px 24px;
  width: 1000px;
}

.menu-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px;
  background-color: #f8f8f8;
  max-width: 1000px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

.grid_item {
  padding: 16px;
  border: 1px solid #272727;
  border-radius: 8px;
  width: 492px;
  height: 130px;
  position: relative;
  background-color: #fff;
}

.item-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  width: 100%;
  height: 130px;
}

.item_details {
  flex: 1;
}

.item_description {
  color: #272727;
  font-size: 14px;
}

.item_price {
  color: #272727;
  font-size: 14px;
  font-style: italic;
}

.item_star {
  width: 45px;
  height: 18px;
  position: absolute;
  object-fit: cover;
  z-index: 3;
  right: 0;
  top: calc(50% + 40px);
}

.item_image {
  width: 96px;
  height: 96px;
  position: absolute;
  object-fit: cover;
  z-index: 2;
  right: 0;
}

.item_background {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  position: absolute;
  z-index: 1;
  right: 0;
}

.order-section {
  background-color: #f8f8f8;
  padding: 40px;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.order-section form {
  max-width: 600px;
  margin: 0 auto;
}

input[type="submit"] {
  font-family: 'font', sans-serif;
  background-color: #f8f8f8;
  color: #272727;
  border: 1px solid #272727;
  padding: 12px;
  border-radius: 50px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #ddd;
}

.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.form-group label {
  flex: 1;
  text-align: left;
}

.form-group input {
  flex: 1;
  max-width: 100px;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  justify-content: space-around;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 20px;
}

.checkbox-group input {
  align-self: center; 
  margin: 0;
}

fieldset {
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #272727;
}

legend {
  text-align: left;
}

footer {
  background-color: #272727;
  height: 20px;
  padding: 20px;
  color: white;
  text-align: center;
}

footer p {
  margin: 0;
}