/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fafafa;
  background-repeat: no-repeat;
  background-position: 100% 0;
  overflow-y: scroll;
}

img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* ==========================================================================
   2. Layout Wrapper
   ========================================================================== */
#wrapper {
  display: flex;
  flex-direction: column;
  flex: 1; /* Pushes the footer down naturally */
}

/* ==========================================================================
   3. Main Content Components
   ========================================================================== */
#introbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding-top: 122px;
  padding-bottom: 0;
}

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

/* ==========================================================================
   4. Cards / Grid Items
   ========================================================================== */
#boxmain {
  position: relative;
  display: inline-block;
  min-width: 300px;
  max-width: 300px;
  min-height: 377px;
  max-height: 377px;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 40px;
  padding: 0;
  background: #fafafa;
  box-shadow: 2px 2px 4px 0px #7f7f7f;
  transition: 0.3s;
}

#boxmain img {
  width: 100%;
  height: 377px;
  object-fit: cover;
}

/* Centered Button Overlay */
.boxtext {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 242px;
  height: 98px;
  background-color: lightpink;
  border: 2px solid #1c1c1c;
  border-radius: 0px;
  box-shadow: 3px 3px 0px 0px #1c1c1c;
  white-space: nowrap;
  transition: 0.3s;
}

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

/* ==========================================================================
   5. Footer
   ========================================================================== */
.footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #404040;
  margin-bottom: 0;
  padding-top: 40px;
  padding-bottom: 16px;
}

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

.footer-text {
  display: flex;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   6. Media Queries
   ========================================================================== */
@media screen and (max-width: 1142px) {
  #introbox {
    padding-top: 162px;
  }
}