/* 1. RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* ~~~~~~~~~~ TAG ~~~~~~~~~~ */
html, body {
  background-color: #707070;
  font-size: 16px;
  height: auto;
  min-height: 100%;
  margin: 0;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header, footer {
  flex: 0 0 auto;
}

header {
  align-items: center;
  background-color: #964B;
  width: 100%;
}

main {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  justify-content: space-evenly;
  min-height: 0;
  padding: 4px;
}

section {
  border: 1px solid black;
}

img .frame {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

footer{
  background-color: rgb(22, 121, 125);
  display: flex;
  left: 0;
  margin-top: auto;
  width: 100%;
}

/* ~~~~~~~~~~ CLASS ~~~~~~~~~~ */
/* ---------- HEADER ---------- */
.frame {
  aspect-ratio: 4 / 3;
  max-width: 300px;
  overflow: hidden;
  width: 100%;
}

.header-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
}

.header-left-container {
  display: flex;
  flex: 1;
  justify-content: flex-start;
}

.logo {
  height: 8vh;
}

.footer-container {
  display: flex;
  flex: 1;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.menu-button {
  color: white;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
  padding: 12px 16px;
  text-decoration: none;
}

.menu-button:hover{
  background-color: #521F;
}

.header-right-container {
  flex: 1;
}

/* ---------- MAIN ---------- */
/* ---------- JOE ---------- */
.joe-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.joe-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.joe-bio {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-evenly;
  line-height: 1.5;
  font-size: clamp(1rem, 2vw, 2rem);
  min-height: 100%;
  height: 100%;
  text-align: center;
}

.joe-container-bio {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  text-align: center;
}

.joe-header {
  margin-left: auto;
  margin-right: auto;
}

.joe-resume-header {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-evenly;
}

.joe-text {
  justify-content: space-around;
  padding: 8px 0px 0px 8px;
  width: 100%;
}

.joe-image {
  height: 160px;
  object-fit: cover;
  width: 160px;
}

.joe-main {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: clamp(1rem, 2vw, 1.5rem);
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.pro-skill, .edu-skill {
  padding: 5px; 2px;
}

.programming-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.professional-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.educational-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* ---------- LAB ---------- */
.lab-main {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  min-height: 100%;
}

.lab-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-height: 100%;
  height: 100%;
}

.lab-header {
  text-align: center;
}

.lab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 20px;
}

.tile-link {
  display: flex;
  flex-direction: column;
  padding: 25px;
  text-align: center;
}

.tile-image {
  max-width: 100%;
}

/* ---------- LINK ---------- */
.link-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}


.link-header {
  text-align: center;
}

.link-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 20px;
}

.brand-link {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
}

.brand-image {
  max-width: 50%;
}

/* ---------- FOOTER ---------- */
.footer-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
}

.footer-left-container {
  display: flex;
  flex: 1;
  justify-content: flex-start;
}


.footer-right-container {
  display: flex;
  flex: 1;
  justify-content: flex-start;
}


.button{
  background-color: #007bFF;
  color: white;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
  padding: 12px 16px;
  text-decoration: none;
}

.button:hover{
  background-color: #0056b3;
}

.tag-container {
  display: flex;
  width: 100%;
}

.wing {
  padding: 8px 8px 8px 8px;
}

/* ~~~~~~~~~~ ID ~~~~~~~~~~ */
#lnkBug {
  background-color: #FF2233;
  margin: 20px;
}

#lnkBug:hover {
  background-color: #CF0203;
}

#pTagline {
  flex: 1;
  margin: 0;
  text-align: center;
}

#lnkPSNProfile {
  align-items: center;
  display: flex;
  flex: 2;
  justify-content: center;
}

@media (max-height: 600px), (max-width: 850px) {
  main {
    /* display: block; */
    grid-template-rows: auto auto auto;
  }
}
