:root {
    --index-gray: #2c2c2c;
    --index-blue: hsl(236, 46%, 39%);
    --index-green: hsl(132, 65%, 29%);
    --index-light-green: hsl(84, 46%, 50%);
    --index-pink: hsl(329, 71%, 57%);
    --index-yellow: hsl(46, 78%, 58%);
}

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

/* header */
.welcome-box {
    width: 100%;
    height: 80px;
    background-color: var(--index-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.logo-container {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 120px;
    cursor: pointer;
}

/* header Title */
.fade-text {
    font-size: 28px;
    color: var(--index-yellow);
    font-family: var(--font-family-sec, sans-serif);
    font-weight: 500;
}

/* Slim top banner  */
.slim-banner {
    width: 100%;
    background-color: hsla(229, 65%, 29%, 0.475);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 25px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.banner-text {
    font-size: 20px;
    color: white;
    margin: 0;
    white-space: nowrap;
    animation: blink 3s ease-in-out infinite;
}

/* Home button styling */
.home-btn {
    background-color: var(--index-green);
    color: white;
    padding: 5px 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.home-btn:hover {
    background-color: var(--index-blue);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
}





/* Mobile tweaks */
@media (max-width: 450px) {
  .word-box { width: 160px; }
  .footer-links ul { gap: 16px; }
}


h1, .fade-text, .banner-text {
  text-wrap: balance;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* More mobile tweaks */
@media (max-width: 550px) {
  /* Header area */
  .welcome-box {
    min-height: 56px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;            
    justify-content: center;
  }
  .logo-container { position: static; }
  .header-logo { max-height: 36px; height: auto; }

  /* Header title */
  .fade-text {
    font-size: clamp(16px, 4.5vw, 22px);
    line-height: 1.2;
    margin: 0;
    text-align: center;
  }

  /* Slim banner*/
  .slim-banner {
    padding: 4px 6px;
    min-height: auto;
  }
  .banner-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .banner-text {
    font-size: clamp(12px, 3.5vw, 16px);
    white-space: normal;       
    text-align: center;
  }
  .flag { height: 18px; width: auto; }

  /* Hero heading inside <main> */
  main h1 {
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.2;
    margin: 12px 10px 8px;
    padding: 0 6px;          
    text-align: center;
    text-wrap: balance;
  }

  /* Buttons: on small screens */
  .body-container button {
    width: 44vw;
    max-width: 220px;
    height: 56px;
    border-radius: 12px;
    font-size: 16px;
  }

  /* Accomplishments card: no overlap */
  .user-accomplishment {
    position: static;          
    max-width: 100%;
    margin: 16px 10px 0;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .body-container button {
    width: 100%;
    max-width: none;
  }
}

