/* 1. Global & Reset Styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #fafafa;
  background-repeat: no-repeat;
  background-position: 100% 0;
  font-family: sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

/* 2. Layout Wrapper & Containers */
#wrapper {
  display: flex;
  flex-direction: column;
  flex: 1; /* Works beautifully now that parent (body) is flex-column */
  width: 100%;
}

main {
  flex: 1; /* Successfully pushes footer down if content is short */
}

#boxcontainer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: start;
  width: 100%;
  margin: 0;
  padding: 68px 0 48px 0;
  background-color: transparent;
}

/* 3. Component Modules */
#introbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 122px 16px 0 16px; /* Added side padding so text doesn't hit screen edges on mobile */
  text-align: center;
  background-color: transparent;
  box-sizing: border-box;
}

#boxmain {
  position: relative;
  display: inline-block;
  width: 100%;            /* Allows it to shrink on mobile */
  max-width: 400px;       /* Caps it at your ideal desktop size */
  height: 500px;          /* Combined min/max height into a single property */
  margin: 0 20px 40px 20px;
  padding: 0;
  background: #fafafa;
  border: 0px solid #1c1c1c; 
  box-shadow: 2px 2px 4px 0px #7f7f7f;
  transition: 0.3s;
}

/* 4. Images & Media */
img {
  max-width: 100%;
  height: auto;
}

#boxmain img {
  display: block;
  width: 100%;
  height: 100%;          /* Dynamically fills the 500px parent box */
  object-fit: cover;
}

/* 5. UI Elements & Text Overlays */
.boxtext {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 256px;
  height: 110px;
  background-color: lightpink;
  border: 2px solid #1c1c1c;
  box-shadow: 3px 3px 0px 0px #1c1c1c;
  transition: 0.3s;
}

.boxtext:hover {
  background-color: #ec98a5;
}

/* 6. Footer Structure */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  padding: 40px 0 16px 0;
  background-color: #404040;
}

.footer-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.footer-text {
  display: flex;
  justify-content: center; /* Centered footer text horizontally */
  align-items: center;
  color: #ffffff;         /* Added placeholder color for visibility on dark backgrounds */
}