* {box-sizing: border-box}

/* Style the tab */
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: #ffdeda;
  width: 30%;
  height: 300px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  display: block;
  background-color: inherit;
  color: black;
  padding: 22px 16px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #2a2a2a;
  color: white;
}

/* Create an active/current "tab button" class */
.tab button.active {
  background-color: #000000;
  color:white;
}

/* Style the tab content */
.tabcontent {
  float: left;
  padding: 0px 5px;
  border: 1px solid #ccc;
  width: 70%;
  border-left: none;
  height: 300px;
  background-color: #ffffffbc;
  font-size: larger;
  font-family: "Jersey 15", sans-serif;
}

.template {
  /* layout: image left, text right; image will match tab height */
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
}

/* Make images inside template take the full template height */
.template img {
  height: 100%;
  width: auto;
  object-fit: cover; /* cover crops if needed while keeping aspect */
  flex: 0 0 auto;
  display: block;
}

/* Paragraph/text sits to the right of the image and fills remaining space */
.template p {
  margin: 0;
  padding: 12px 0;
  flex: 1 1 auto;
  overflow: auto;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 700px) {
  .tab, .tabcontent {
    width: 100%;
    float: none;
    height: auto;
  }
  .tabcontent {
    flex-direction: column;
  }
  .template img {
    width: 100%;
    height: auto;
  }
}

footer {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    font-family: "Jersey 15", sans-serif;
    font-size: x-large;
    width: auto;
    text-align: start;
    padding: 1rem;
    margin-top: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}
footer p {
    margin: 0.5rem 0;
    text-decoration: none;
}
footer img{
    width:180px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}