
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border are included in the element's size */
}

.centered {
    text-align: center;
    color: rgb(237, 244, 255);
    font-family: 'BebasRegular', sans-serif;
    letter-spacing: 3px;
    font-size: 60px;
}

.centered-block {
    display: block;
    width: 140px;
    height: 40px;
    margin: 0 auto;
    background-color: lightpink;
}

html, body {
    width: 100%;
    height: 100%;
}

.static-background {
    width: 100%;
    min-height: 100vh; /* Adjust height if needed */ 
    margin: 0;
    padding: 0;
    background-size: cover; 
    background-image: linear-gradient(to bottom, 
    #121d24 0%,      /* start at top */
    #121d24 40%,     /* hold dark blue/green until 40% down */
    #193f29 100%     /* then fade into the bottom color */
    );
}

.fullscreen-div {
    position: relative;
    background-image: url('assets/mini-forest.jpg'); /* Make sure image.jpg is in the same folder as your HTML file */
    background-size: cover;   /* Makes the image cover the whole screen */
    background-repeat: no-repeat;  /* Prevents the image from repeating */
    background-position: center;   /* Centers the image */
    background-color: darkgreen;
    width: 100%; /* Viewport width */
    height: 100vh; /* Viewport height */
    margin: 0; /* Removes any default margin */
    padding: 0; /* Removes any default padding */
}

.buttons-container {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 100%; /* Optionally stretch the child div's width */
}

.bulletin-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%); /* centers the container */
    display: flex;       /* puts children side-by-side */
    gap: 20px;
    width: 60%;          /* container width */
    height: 40%;         /* container height */
}

.content-box {
    flex: 1;             /* makes each box take 50% */
    display: flex;
    align-items: center; /* center text vertically */
    justify-content: center; /* center text horizontally */
}

.content-card {
    background-color: #ECECBB;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border: 4px solid #1e818a;
    overflow: hidden; /* important to clip inner scroll */
}

.scroll-inner {
    padding: 20px;        /* adds spacing inside */
    overflow-y: auto;     /* scrollable area */
    flex: 1;              /* fills parent height */
    display: flex;
    flex-direction: column;
    gap: 20px;            /* space between cards */
}

/* Make the content box scrollable */
#content-box-1 {
    overflow-y: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Arbutus&display=swap');

/* "Recent Posts" title above the scrolls box */
.content-title {
    margin: 0;
    padding: 10px 20px;
    font-family: "Arbutus", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    letter-spacing: 2px;
    color: #121d24;
    text-align: center;
    background-color: #ECECBB;
    border-bottom: 2px solid #1e818a;
    border-radius: 12px 12px 0 0;

    /* Fancy text effects */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}


/* Standard size for each preview card */
.preview-card {
    display: flex;
    align-items: center;
    background-color: lightgray;
    border: 2px solid black;
    border-radius: 15px; /* match pretty-button rounding */
    padding: 10px;
    min-height: 100px;    /* optional minimum size */
    flex: 0 0 50%;    /* flex-grow:0, flex-shrink:0, flex-basis:33% */
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(40,0,63,0.5);
}

/* Thumbnail image inside card */
.preview-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 10px;
}

.preview-text-container {
  display: flex;
  flex-direction: column;  /* stack children vertically */
  gap: 10px; /* optional: space between text and link */
  width: 100%;
  height: 70%;
}

.preview-text {
  color: black;
}

.article-link {
  cursor: pointer;
  color: #000000;
  text-align: right; /* optional: align text to bottom right */
  transition: 0.3s ease;
  margin-left: 0; /* remove margin if you want it aligned with text */
}

.article-link:hover {
    color: #e254ff; /* highlight color when hovering */
}

.topics-grid {
    display: flex;
    justify-content: center; /* center the columns */
    gap: 46px; /* set the space you want between them */
    padding: 20px;
    flex: 1;
    height: 100%;
}

.topics-column {
    display: flex;
    flex-direction: column;
    gap: 15px; /* spacing between items */
    font-family: 'BebasLight', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #239ca7;
    justify-content: space-evenly; /* spread items evenly */
    text-align: center; /* keeps them aligned in middle of each column */
}

.topics-column p {
    margin: 0;
    cursor: pointer;
    padding: 8px 16px;        /* space inside the rectangle */
    background-color: #c4c4c4; /* simple solid color */
    border-radius: 12px;       /* rounded corners */
    color: #000000;            /* text color */
    text-align: center;
    transition: 0.3s ease;

    /* Fixed size for all boxes */
    width: 200px;      /* same width for all boxes */
    height: 50px;      /* same height for all boxes */
    display: flex;     /* to center text vertically and horizontally */
    justify-content: center;
    align-items: center;
}

.topics-column p:hover {
    color: #e254ff; /* highlight color when hovering */

    background-color: #585858; /* slightly darker on hover */
}

button {
    position: absolute;
    width: 180px;
    height: 80px;
}

/* Sets the buttons in the corners */
.top-left {
    top: 20px;
    left: 20px;
}

.top-right {
    top: 20px;
    right: 20px;
}

/* CSS for nice buttons in corner*/
.pretty-button {
  align-items: center;
  background-image: linear-gradient(144deg,#239ca7, #99ce99 50%,#ECECBB);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(253, 74, 74, 0.2) 0 0 30px 3px;
  box-sizing: border-box;
  color: #FFB88C;
  display: flex;
  font-family: Georgia, serif;
  font-size: 20px;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 3px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  transition: color 0.3s ease;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3); /* soft dark shadow */
}

.pretty-button:active,
.pretty-button:hover {
  outline: 0;
  box-shadow: rgba(40, 0, 63, 0.2) 0 0 10px 5px;
  transition: 300ms;
  color: rgb(40, 0, 63);
  text-shadow: 1px 1px rgba(255, 255, 255, 1); /* soft dark shadow */
}

.pretty-button span {
  background-color: #121d24;
  padding: 26px 24px;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.pretty-button:hover span {
  background: none;
}

@media (min-width: 768px) {
  .pretty-button {
    font-size: 24px;
    min-width: 196px;
  }
}

/* Imports the font from assets folder */
@font-face {
  font-family: 'BebasRegular';
  src: url('assets/BebasNeue-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Containers on the static background (the divs) */
.static-div-flex {
  width: 100%;
  height: 21%;
  display: flex;
  justify-content: space-between; /* Adds space between the two containers */
  align-items: center; /* Aligns items vertically */
}


/* Container for the image on static bg */
.image-container {
  width: 49%;
  height: 211.3px;
  text-align: center;
}

/* Resizes and align the image */
.static-image {
  display: block;
  max-width:100%;
  max-height:90%;
  margin: auto;
  border-radius: 20px;
  border: 2px solid silver;
}

/* Container for the graphic on static bg */
.graphic-container {
  width: 49%;
  height: 211.3px;
  text-align: center;
}

/* Resizes and align the image */
.static-graphic {
  width: 600px;
  height: 210px;
  vertical-align: middle;
}

.section-header {
  padding-left: 30%;
  padding-right: 30%;
  padding-top: 10px;
  color: rgb(237, 244, 255);
  font-family: 'BebasRegular', sans-serif;
  letter-spacing: 3px;
  font-size: 20px;
}

.section {
  padding-left: 20%;
  padding-right: 20%;
  padding-top: 10px;
  color: rgb(237, 244, 255);
  font-family: 'BebasLight', sans-serif;
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 20px;
}

.static-div {
  width: 100%;
  height: 21%;
  justify-content: space-between; /* Adds space between the two containers */
  overflow: hidden;
}

/* Imports the font from assets folder */
@font-face {
  font-family: 'BebasLight';
  src: url('assets/BebasNeue-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Background for the title (Phoenixville Blog) */
.blog-title {
    display: inline-block;         /* shrink wrap background to text */
    background: #121d24; /* dark green from image semi-transparent box */
    backdrop-filter: blur(8px);
    padding: 10px 20px;            /* space inside box */
    border-radius: 12px;           /* rounded edges */
    font-size: 48px;               /* your title font size */
    font-weight: bold;
    color: #FFB88C;             /* set the font color for title */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3); /* soft dark shadow */
  }

/* The "About Me" Title Card */
.about-me {
    position: relative;            /* so we can use top offset */
    display: inline-block;         /* shrink wrap background to text */
    background: #239ca756;         /* semi-transparent dark green */
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 48px;
    font-weight: bold;
    color: #ECECBB;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    /* centering + vertical offset */
    left: 50%;                     /* push it halfway across */
    transform: translateX(-50%);   /* pull it back by half its own width (true centering) */
    margin-top: 6vh;              /* 20% of viewport height from the top */
}

.about-me-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    margin: 90px auto;   /* center layout and give space */
    gap: 5%;           /* space between columns */
}

.about-me-column {
    flex: 1;             /* each column takes equal space */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-me-image {
    max-width: 100%;
    height: 400px;       /* fixed "tall" size */
    object-fit: cover;   /* crop to fit nicely */
    border-radius: 12px;
    border: 2px solid silver;
}

.about-me-text {
    flex: 2;             /* center column is wider than the image columns */
    color: rgb(237, 244, 255);
    font-family: 'BebasLight', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    text-align: justify;
}

/* Back to Top button and hover effect*/
.back-to-top {
    position: relative;           /* instead of absolute */
    display: block;
    margin: 40px auto;            /* horizontally centers */
    padding: 12px 28px;
    width: max-content;           /* shrink to fit text */
    background: #239ca756;
    color: #ECECBB;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}


