/* Reset */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ----- NavBar -----*/

li,
a,
button {
  font-weight: 500;
  font-size: 16px;
  color: black;
  text-decoration: none;
}

header {
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  border-radius: 18px;
  margin: 15px 15%;
  width: 70%;
  padding: 0px 15%;
  z-index: 2;
}

.logo, .shortcutLogo {
  cursor: pointer;
  padding-top: 8px;
  padding-bottom: 8px;
  height: 72px;
}

ul {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav_links {
  list-style: none;
}

.nav_links li {
  display: inline-block;
  padding: 0px 20px;
}

.nav_links li a {
  transition: all 0.3s ease 0s;
  color: rgba(255, 255, 255, 0.959);
  font-weight: 700;
}

.nav_links li a:hover {
  color: rgba(254, 238, 0, 1);;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 10px;
  background-color: rgba(254, 238, 0, 1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.1s ease 0s;
}

.nav-btn:hover {
  background-color: rgba(197, 184, 0, 0.8);
}

.delivery-logo {
  height: 32px;
  margin: 2px;
  translate: 5px -3px;
}

.deliver-logo:hover {
  transform: scale(1.1);
  transition: ease-in-out 0.2s;
}

/* ----- Chinese Menu -----*/

section {
  display: flex;
  align-items: center;
  justify-content: center;
}

h1,
h2,
h3 {
  font-size: 2.5em;
  margin-bottom: 32px;
}

h2 {
  font-weight: 600;
}

h3 {
  font-weight: 500;
}

.wrapper {
  padding-top: 70px;
  max-width: 40%;
  margin: 30px;
}

.foodType {
  margin-bottom: 36px;
}

.foodTypeCombo p {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.menuItem {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.dishName {
  font-size: 1.5em;
  margin-bottom: 12px;
}

.dishPrice {
  font-size: 1.5em;
  display: inline;
  min-width: fit-content;
  margin: 10px;
}

.dishAllergens {
  display: inline;
  margin: 10px;
}

.dishName img {
  height: 30px;
}

.dishName p {
  display: inline;
}

/* Allergies Caption */

#toggle-button {
  height: 100px;
  position: fixed;
  bottom: 16px;
  left: 16px;
  cursor: pointer;
  transition-duration: 400ms;
}

#toggle-button:hover {
  transform: scale(1.2, 1.2);
}

#caption {
  display: none;
  position: fixed;
  bottom: 13%;
  left: 6%;
  padding: 10px;
  border-radius: 20px;
  background: #fefefe;
  box-shadow: -13px -13px 26px #9f9f9f, 13px 13px 26px #ffffff;
  transition: 400ms ease-in-out;
}

.allergens-caption-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.allergens-caption-item img {
  margin: 5px;
  display: inline;
  width: 42px;
}

.allergens-caption-item p {
  display: inline;
  align-items: center;
  margin: 10px;
}

/*Menu Shortcut */

#shortcut-menu {
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 18px;
  z-index: 1;
  position: fixed;
  bottom: 15px;
}

#shortcut-menu a {
  padding: 8px;
}

#shortcut-menu a p{
  padding: 6px;
  color: rgba(255, 255, 0, 1);
  font-weight: 600;
}

#shortcut-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu-form */

.form-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  background-color: #2ecc71;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  border: none;
  color: #fff;
  transition: 0.3s;
  margin-bottom: 150px;
}

button:hover {
  background-color: #27ae60;
}

.field {
  width: 100%;
  padding: 0.5rem 1rem;
  outline: none;
  border: 2px solid rgba(0, 0, 0, 0);
  background-color: rgba(230, 230, 230, 0.6);
  font-size: 1.1rem;
  margin-bottom: 32px;
  border-radius: 24px;
  transition: 0.3s;
}

.field:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.field:focus {
  background-color: #fff;
  border: 2px solid rgba(30, 85, 250, 0.47);
}

.area {
  min-height: 150px;
}


/* Responsive Design */
@media only Screen and ( min-width: 768px ) and (max-width: 1023px){
  #toggle-button {
    bottom: 80px;
  }

	.wrapper {
		padding-top: 70px;
		max-width: 85%;
		margin: 30px;
	}
}

@media only screen and ( max-width: 767px ) {
	header {
		margin: 5%;
    width: 92dvw;
	} 

	#caption {
		bottom: 23%;
		left: 14%;
		padding: 10px;
		border-radius: 20px;
		background: #fefefe;
		box-shadow: -13px -13px 26px #9f9f9f, 13px 13px 26px #ffffff;
		transition: 400ms ease-in-out;
	}

	.wrapper {
		padding-top: 70px;
		max-width: 90%;
		margin: 30px;
	}

	#toggle-button {
		height: 80px;
		bottom:110px;
		left: 312px;
	}

	#shortcut-menu {
		width: 90vw;
    padding-left: 7px;
    padding-right: 7px;
	}

  #shortcut-menu a p{
    font-size: 10px;
    padding: 0px;
    color: rgba(255, 255, 0, 1);
    font-weight: 600;
  }

	.shortcutLogo {
		cursor: pointer;
		height: 48px;
	}
	

	.form-btn {
    margin-bottom: 88px;
	}
}


@media only Screen and ( max-width: 414px ) {
  header {
    margin: 5%;
    width: 92dvw;
    padding: 0 2%;
  }

  .nav_links li {
    display: block;
  }

	#caption {
		bottom: 23%;
		left: 14%;
		padding: 10px;
		border-radius: 20px;
		background: #fefefe;
		box-shadow: -13px -13px 26px #9f9f9f, 13px 13px 26px #ffffff;
		transition: 400ms ease-in-out;
	}

  .allergens-caption-item img {
    margin: 5px;
    display: inline;
    width: 24px;
  }

	.wrapper {
		padding-top: 70px;
		max-width: 90%;
		margin: 30px;
	}

	#toggle-button {
		height: 48px;
		bottom:110px;
		left: 312px;
	}

	#shortcut-menu {
		width: 98dvw;
	}

	.shortcutLogo {
		cursor: pointer;
		height: 48px;
	  }
	

	.form-btn {
	margin-bottom: 88px;
	}
	  
}