*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body{
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
html {
  height: 100%;
}
main {
  flex: 1; 
}
h1 {
  font-size: clamp(1.3rem, 5vw, 2.2rem);
}
a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}
.profile img {
  width: 200px;
  height: 200px;
  max-width: 100%; /* shrinks below 200px if the screen is smaller */
}
header {
  position: sticky;
  top: 0;
  z-index: 100; /* keeps it above other content */
  background-color: white; /* needs a background or content behind will show through */
}

/* Style the tab */
.tab {
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  display: flex;
  flex-wrap: wrap; /* buttons wrap to new line instead of overflowing */
  gap: 8px;
}

.tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  flex: 0 0 auto; /* buttons share space, shrink together */
  min-width: 100px;
}
/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}





.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;   /* <-- this is the key line */
  margin: 0 auto;     /* centers the whole grid on the page */
  
}
.container div {
  background-color: #f1f1f1;
  overflow: hidden; /* safety net, in case a child is briefly wider */
}


/* profile */
.profile{
  padding: 2rem;
  text-align: center;
}

/* socials */
.socials { padding: 2rem; }
.socials h2 { margin-bottom: 1.5rem; }

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  cursor: pointer;
}
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.social-link:hover {
  transform: translateX(4px);
}

.social-icon img { width: 50%; height: auto; }







/* Slideshow container */
.slideshow-container {
  width: 90%;
  max-width: 500px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;         /* image always fills its container */
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1.1;
  display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}





.active, .dot:hover {
  background-color: #717171;
}


/*footer*/

footer {
  text-align: center;
  padding: 20px;
  background-color: #222;
  color: white;
}

footer a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .container {
    gap: 0.5rem;
  }
  .tab button {
    padding: 10px 12px;
    font-size: 14px;
  }
}