/* interactables.css */

/* Basic styles for the whole page */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    min-height: 100vh; /* Ensure body takes full viewport height */
}

/* Main background */
.full-page-background {
    background: url(website_background.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: white;
    padding: 30px 15px;
    box-sizing: border-box;
    position: relative; /* Needed for overlay positioning */
}

/* Transparent overlay behind content */
.transparent-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(104, 101, 101, 0.5); /* 20% opacity */
    border-radius: 20px;
    z-index: 1;
    width: 90%; /* Start with a percentage for better small-screen fit */
    max-width: 1700px; /* Maximum width for very large screens */
    height: calc(100% - 200px);
    min-height: 400px;
}

/* Logo at the top */
.bethel-logo {
    max-width: 120px; /* Adjusted for smaller screens first */
    height: auto;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

/* Main title */
h1 {
    font-size: 1.6rem; /* Adjusted for smaller screens first */
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    padding: 0 10px;
    max-width: 90%;
    text-align: center;
    z-index: 2;
    position: relative;
    line-height: 1.2; /* Improve readability for multi-line titles */
}

/* Row of buttons at the top */
.button-row-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* As per your original intention */
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: auto; /* Pushes content to the bottom */
    width: 100%;
    max-width: 1300px;
    padding: 0 5px;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
    text-decoration: none;
}

/* Each button section */
.update-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 1; /* Allows items to shrink */
    flex-grow: 1; /* Allows items to grow */
    flex-basis: 0; /* Distributes space more evenly when growing/shrinking */
    min-width: 120px; /* A more absolute minimum width for very small screens */
    box-sizing: border-box;
    padding: 5px;
}

/* Icon above each button */
.icon {
    max-width: 70px; /* Adjusted for smaller screens first */
    height: auto;
    display: block;
    margin-bottom: 5px;
}

/* Button styles */
.btn {
    position: relative;
    width: 8rem; /* Adjusted for smaller screens first */
    height: 2.5rem; /* Adjusted for smaller screens first */
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    background-color: white;
    font-size: 0.85rem; /* Adjusted for smaller screens first */
    font-weight: 600;
    color: white; /* Changed to white as per your new style */
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    background: transparent;
    border: 2px solid rgb(197, 0, 79);
    display: flex; /* Use flex to center text vertically if needed */
    justify-content: center;
    align-items: center;
    text-decoration: none; /*no underline*/
}

.btn::before {
    content: none; /* Keep this if you don't use pseudo-elements for effects */

}

/* Button hover effect */
.btn:hover {
    background-color: rgb(197, 0, 79); /* Use the border color for hover background */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    color: white; /* Keep text white on hover */
}

/* Text under each button */
.subtext {
    font-size: 0.7rem; /* Adjusted for smaller screens first */
    line-height: 1.4;
    color: white;
    margin-top: 5px;
    min-height: 60px; /* Adjusted for smaller screens first */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    text-align: center;
}

/* Bottom section (footer) */
.bottom-section {
    margin-top: auto; /* Pushes content to the bottom */
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Remove underline from links inside button row */
.button-row-top a {
    text-decoration: none;
}

/* Small emblem/logo in footer */
.emblem {
    max-width: 20px; /* Adjusted for smaller screens first */
    height: auto;
}

.bottom-section p {
    font-size: 0.75rem; /* Adjusted for smaller screens first */
    color: white;
    margin: 0;
    text-align: center;
    padding: 0 10px;
}

/* Responsive styles for different screen sizes */

/* Small tablets and large phones (>= 576px) */
/* Mobile phones (less than 576px wide) */
@media (max-width: 575.98px) {
  .transparent-overlay {
    height: 1400px;
    width: 95%;
    padding: 20px 15px;
    margin: 0 auto;
  }

  .bethel-logo {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .button-row-top {
    display: flex;
    flex-direction: column; /* fixed typo here */
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .update-section {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .icon {
    max-width: 230px;
    margin-bottom: 0.5rem;
  }

  .btn {
    width: 100%;
    max-width:5 250px;
    height: 2.5rem;
    font-size: 0.9rem;
    border-radius: 19px;
  }

  .emblem {
    max-width: 70px;
    display: block;
    margin: 1rem auto;
  }

  .bottom-section p {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.3;
    padding: 0 10px;

}
}



/* Medium devices (tablets, >= 768px) */
@media (min-width: 768px) {
    .full-page-background { padding: 40px 20px; }
    .transparent-overlay {
        height: calc(100% - 150px);
        width: 90%; /* Adjust width for medium screens */
    }
    .bethel-logo { 
        max-width: 180px;
     }

    h1 { 
        font-size: 2.4rem; 
        margin-bottom: 40px;
     }
    .button-row-top {
         gap: 20px;
          padding: 0 20px;
         }
    .update-section { 
        min-width: 160px; 
    }


    .icon {
        
        max-width: 160px; 
    }
    .btn { 
        width: 10.5rem;
         height: 3.2rem;
          font-size: 1rem; 
        }

    .subtext { 
        font-size: 0.8rem;
         min-height: 80px;
         }
    .emblem { 
        max-width: 70px;
     }
    .bottom-section p {
         font-size: 0.85rem;
         }
}

/* Large devices (desktops, >= 992px) */
@media (min-width: 992px) {
    .full-page-background { padding: 50px 30px; }
    .transparent-overlay {
        height: calc(100% - 120px);
        width: 80%; /* Adjust width for large screens */
        max-width: 1500px; /* Allows it to grow up to a large max-width */
    }
    .bethel-logo { 
        max-width: 200px; 
    }

    h1 { 
        font-size: 2.8rem; 
        margin-bottom: 50px;
     }

    .button-row-top {
         gap: 30px; 
         padding: 0 30px; 
        }
    .update-section {
         min-width: 180px;
         }

    .icon { 
        max-width: 110px;
     }


    .btn { 
        width: 11.5rem; 
        height: 3.5rem; 
        font-size: 1.1rem;
     }
    .subtext {
         font-size: 0.85rem; 
         min-height: 90px;
         }

    .emblem {
         max-width: 80px;
         }

    .bottom-section p { 
        font-size: 0.9rem; 
    }
}

/* Extra large devices (large desktops, >= 1200px) */
@media (min-width: 1200px) {
    .full-page-background { padding: 60px 40px; }
    .transparent-overlay {
        height: calc(100% - 100px);
        width: 1500px; /* Fixed width as per your original, within max-width */
    }

    .bethel-logo {
         max-width: 220px; 
        }
    h1 {
         font-size: 3.2rem;
          margin-bottom: 60px;
         }

    .button-row-top { 
        
        
        gap: 40px; 
        padding: 0 40px; 
    }
    .update-section {
         min-width: 200px; 
        }

    .icon { 
        max-width: 120px; 
    }

    .btn { 
        width: 12.5rem; 
        height: 3.8rem; 
        font-size: 1.2rem; 
    
    }

    .subtext { 
        font-size: 0.9rem;
         min-height: 100px;
         }

    .emblem {
         max-width: 90px;
         }
    .bottom-section p {
         font-size: 0.95rem;
         }
}

/* Even larger screens if needed (e.g., 1400px or 1600px) */
@media (min-width: 1400px) {
    .bethel-logo { max-width: 250px; }
    h1 { font-size: 3.5rem; }
    .button-row-top { 
        max-width: 1500px; 
    } /* Allow button row to stretch more */
    .update-section {
         min-width: 230px;
         }

    .icon { 
        max-width: 170px;
     }
    .btn { 
        width: 13rem;
         height: 4rem; 
         font-size: 1.3rem;
         }
    .subtext { 
        font-size: 1rem;
         min-height: 110px;
         }
    .emblem {
         max-width: 100px;
         }
    .bottom-section p {
         font-size: 1rem; 
        }
}

