/* Style the tab */
.tab {
  display: flex;
    overflow: hidden;
    border: 1px  #ccc;
    width: 100%;
  }
  
  /* Style the buttons that are used to open the tab content */
  .tab button {
    background-color: white;
    border-radius: 20px;  /* Try between 20px–50px depending on look */
    color: black;
    font-size: x-large;
    float: left;
    border: 1px solid #C6C6C4;
    width: 50%;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    margin: 0.5em;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #C6C6C4;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: #C6C6C4;
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    padding: 6px 12px;
  }

  /* ----- Tablet (≤ 1024px) ----- */
@media (max-width: 1024px) {
  .tab button {
    font-size: 1rem;
    padding: 12px 10px;
  }
}

/* ----- Mobile (≤ 768px) ----- */
@media (max-width: 768px) {
  /* Tabs become stacked buttons */
  .tab {
    flex-direction: column;
  }

  .tab button {
    width: 100%;
    font-size: 1rem;
    margin: 0.3em 0;
  }
}

/* ----- Very Small Phones (≤ 400px) ----- */
@media (max-width: 400px) {
  .tab button {
    font-size: 0.9rem;
    padding: 10px;
  }
}