@font-face {
  font-family: "KenyanCoffee";
  src: url("fonts/KenyanCoffee-Regular.woff2") format("woff2"),
       url("fonts/KenyanCoffee-Regular.woff") format("woff"),
       url("fonts/KenyanCoffee-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "BebasNeue";
  src: url("fonts/BebasNeue-Regular.woff2") format("woff2"),
       url("fonts/BebasNeue-Regular.woff") format("woff"),
       url("fonts/BebasNeue-Regular.otf") format("opentype"),
       url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(60deg, #121313 0%, #252727 100%);
}

main {
  flex: 1; /* this pushes footer down */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start; /* so your .info and .ibox align naturally */
}

h3 {
  padding: 10px;
}

.boxnresults-assembly {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50vw;
}

.ingredients input {
  margin: 0;
  text-align: start;
  border-radius: 10px;
}

.ibox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  padding: 0 10px; 
  background: #8096aa;
  margin: 0;
  box-sizing: border-box;
  border-radius: 10px 10px 0 0;
}

.ibox {
  display: grid;
  grid-template-rows: 30px 1fr;
  min-height: 70vh;
  background: #c6d1dc;
  border: 1px solid #222;
  margin-top: 10px;
  border-radius: 10px;
}

.ibox-header h2 {
  margin: 0;      /* removes default margin */
  font-size: 1.5rem; /* shrink text to fit the header */
  color: #000;
}

.ibox-header p {
  font-size: .9rem;
  color: #666;
}

.ibox-header button {
  font-family: "KenyanCoffee", Arial, sans-serif;
  height: 20px;   /* make button fit */
  width: 60px;
  text-justify: inter-character;
  font-size: 1rem;
  line-height: 0.8;
  background: #c8dae3;
  border-radius: 5px;
  align-items: center;
}

.infonads-assembly {
  grid-column: 1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 15vw;
}

.ads {
  justify-self: center;
  margin-top: 10px;
  width: auto;
  height: auto;
  background: #c6d1dc;
  border-radius: 20px;
}

.info {
  font-family: "KenyanCoffee", Arial, sans-serif;
  font-size: 1.5rem;
  color: #333;
  margin-top: 10px;
  width: 100%;
  text-align: left;
  align-self: start;
  justify-self: center;
  gap: 20px;
  background: #c6d1dc;
  border-radius: 20px;
}

.info li::marker {
  color: #000;           /* bullet color */
}

.info li {
  text-align: left;
  margin-top: 10px;
  font-size: 1.2rem;
}

.info p {
  color: #000;
  margin: 20px;
}

.ingredient-row {
  display: flex;
  margin: 5px;
  align-items: center;
  width: auto;
}

.ingredient-row input {
  padding: 5px;
  flex: 1;
}

.ingput {
  border-radius: 5px;
  background: #8096aa;
  margin: 5px;
  width: auto;
}

button {
  cursor: pointer;
  background: #6e859a;
  border: 2px solid #333;
  border-radius: 5px;
  height: 20px; 
  margin: 5px;
  align-content: center;
}
button:hover {
  background: #5d7489;
}

.plus {
  margin: 5px;
}

.footer {
  margin-top: auto; 
  margin-bottom: 0;
  background: #8096aa;
  line-height: 1.5;
  justify-content: center;
  min-height: 30px;
}

.footer-content {
  display: flex;
  font-family: "KenyanCoffee", Arial, sans-serif;
  font-size: 1.1rem;
  align-content: center; 
  justify-content: center;
  gap: 5px;
}

.footer-content p {
  font-family: "KenyanCoffee", Arial, sans-serif;
}

.footer-content a {
  font-family: "KenyanCoffee", Arial, sans-serif;
  color: #000;
  text-decoration: none;
}

#results {
  margin: 20px auto;
  padding: 10px;
  background: #c6d1dc;
  font-family: Arial, sans-serif;
  color: #000;
  border-radius: 10px;
}
#results h3 {
  margin: 0 auto;
  text-align: center;
}

#results table {
  border-collapse: collapse;
  width: 100%;
  overflow: hidden;
}
#results th {
  background: #f3f4f6;
  color: #111827;
  text-align: center;
}
#results td {
  text-align: center;
  padding: 10px;
  border-top: 1px solid #000;
}

#links {
  display: flex;
  flex-direction: column;
  padding: 10px;
  max-width: 15vw;
  background: #c6d1dc;
  grid-column: 3;
  justify-self: center;
  justify-items: center;
  text-align: center;
  margin-top: 10px;
  border-radius: 20px;
  gap: 10px;
}
#links .card {
  display: flex;
  align-content: center;
  text-decoration: none; /* remove underline */
  color: inherit;        /* keep text color normal */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 10px;
  background: #fff;
}
#links .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#links h2 {
  font-size: 1.5rem;
  margin: 10px;
}

#links .card img {
  width: 80px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0; /* prevents image from shrinking */
  object-fit: contain;
}

/* Content area */
#links .card-content {
  margin: 0 10px;
  font-family: "KenyanCoffee", Arial, sans-serif;
}