:root {
  --mainblue: rgb(75, 156, 210);
  --secondary: rgb(62, 153, 131);
}

body {
  font-family: "verdana", sans-serif;
  margin: 0;
  height: 100%;
}

html {
  height: 100%;
}

#page_container {
  position: relative;
  min-height: 100vh;
  margin: 10px;
  display: flex;
  flex-direction: column;
}

#content_wrap {
  margin: 0px;
  padding: 0px;
  padding-bottom: 40px;
  flex: 1 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

img.zoom {
  width: 100%;
  max-width: none;
  min-width: 0;
  transition: transform 0.2s ease;
}

img.header-img {
  width: 20%;
  float: right;
  margin-top: 10px;
  transform: scaleX(-1);
}

h5 {
  margin-top: -10px;
}


#portrait {
  margin-top: 20px;
  margin-right: 20px;
  width: 200px;
  height: 200px;
}

img.logo {
  width: 70px;
  margin-right: 10px;
  display: inline-block;
}

img.main-img {
  width: 55%;
  height: 55%;
}

img.tall-img {
  max-height: 500px;
  width: auto;
  display: inline-block;
  margin: auto;
  margin-top: 10px;
}

img.content-img {
  width: 100%;
  display: inline-block;
  margin: auto;
  margin-top: 100px;
}

img.art {
	width: 330pt;
	padding: 10px;
	vertical-align: middle;
}

.art-container {
	margin-top: 20px;
}

#header {
  width: 100%;
}

.zoom:hover {
  transform: scale(1.05);
}

a {
  text-decoration: none;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 28px;
  padding: 0px;               /* align with #content_wrap */
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;            /* match #content_wrap so grid is centered */
  margin: 0 auto;               /* center the grid within the page */
  justify-content: center;      /* center columns when there is extra space */
  justify-items: stretch;
  grid-auto-rows: 1fr;
}

.project-container {
  width: 100%;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  margin: 0;
  padding: 0px;
  margin-right: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 420px;
  border-radius: 12px;
}

.project-container img.zoom {
  width: 100%;
  height: 220px;     /* fixed visual height so images line up */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* allow descriptions to take remaining space so layout stays consistent */
.project-container > p,
.project-container .tags {
  margin-top: 8px;
}

/* responsive tweaks so cards scale on smaller screens */
@media (max-width: 900px) {
  /* switch to two columns on medium screens */
  .projects {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
  }
  .project-container { min-height: 380px; }
  .project-container img.zoom { height: 200px; }
}

@media (max-width: 600px) {
  /* single column on small screens */
  .projects {
    grid-template-columns: 1fr;
    padding-left: 12px;
    padding-right: 12px;
    gap: 12px;
  }
  .project-container {
    min-height: 0;
    height: auto;
    max-width: none;
  }
  .project-container img.zoom { height: 160px; }
}

.group-title-inner {
  font-size: 25px;
  text-align: center;
  align-self: center;
  font-weight: bold;
  padding: 20px;
  padding-bottom: 0;
  margin-bottom: 10px;
  color: white;
}

.group-title {
  font-size: 25px;
  text-align: center;
  align-self: center;
  font-weight: bold;
  padding: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  color: white;
  background-color: var(--mainblue);
  border-radius: 15px;
}

.header_link {
  color: gray;
  margin-right: 30px;
}

.contributions {
  background-color: var(--mainblue);
  padding: 20px;
  color: white;
  margin: 10px;
  margin-left: 40px;
  margin-right: 40px;
  border-radius: 15px;
}

.game-desc {
  margin: 20px;
  margin-top: 0px;
}

.game-content {
  display: flex;
  flex-direction: row;
  margin: 40px;
}

.images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  margin-top: 40px;
}

#about-container {
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 40px;
  background-color: var(--mainblue);
  margin-left: 100px;
  margin-right: 100px;
  border-radius: 15px;
  margin-bottom: 20px;
}

#about-content {
  display: flex;
  flex-direction: row;
  color: white;
  padding-bottom: 10px;
}

#email {
  color: white;
  position: fixed;
  right: 30px;
  padding-bottom: 0px;
}

footer {
  position: relative;
  display: block;
  box-sizing: border-box;
  margin-top: 40px;
  background-color: var(--mainblue);
  width: 100%;
  padding-top: 20px;
  padding-bottom: 10px;
  color: white;
}

.copyright {
  text-align: center;
  font-size: 13px;
  padding-top: 0px;
  margin-top: 0px;
}

.fa {
  padding-left: 30px;
  padding-bottom: 0px;
  font-size: 50px;
  text-align: center;
  border-radius: 50%;
  color: white;
}

.fa.fa-github {
  font-size: 30px;
}

.fa.fa-linkedin {
  font-size: 30px;
}

.tag {
  height: 30px;
  width: 75px;
  font-size: 11px;
  background-color: var(--mainblue);
  border-radius: 25px;
  margin-top: 10px;
  text-align: center;
  vertical-align: middle;
  line-height: 30px;
  display: inline-block;
  color: white;
}

/* small screens tweaks */
@media (max-width: 600px) {
  .group-title, .group-title-inner {
    font-size: 18px;
    padding: 12px;
  }

  #about-container {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .projects {
    padding-left: 12px;
    padding-right: 12px;
    gap: 12px;
  }

  /* stack portrait above the about text on small screens */
  #about-content {
    flex-direction: column;
    align-items: center;
  }
  #portrait {
    margin-right: 0;
    margin-bottom: 14px;
  }
  #about-content > div {
    width: 100%;
  }
}