/* Universal selector applies styling to all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    /* Set the root font size as a fallback if browsers do not support rem units */
    font-size: 16px;
    /* Set the root font size */
    font-size: 1rem;
    /* Enable smooth scrolling for the whole page */
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

html, body {
    /* Ensures the page height is full to push the footer to the bottom of the page */
    height: 100%;
    /* Remove the default margin */
    margin: 0;
    /* Remove the default padding */
    padding: 0;
}

main {
    display: block;
    /* Push the footer tothe bottom of the page */
    flex: 1;
}

.container {
    /* Set the container to take the full width of the page or parent element */
    width: 100%;
    /* Set the maximum width of the container to avoid stetching on large screen sizes */
    max-width: 1240px;
    /* Center align the container horizontally */
    margin: 0 auto;
    /* Add horizontal padding to provide spacing on smaller screen sizes */
    padding: 0 1rem;
}

/* Two column grid layout that spans the page width - used on the index.php homepage */
.page-split {
    display: grid;
    /* Set the grid columns to have a 50/50 split across the page */
    grid-template-columns: 1fr 1fr;
    /* 
    * Replace the use of vh, sets the height of the grid columns to be the full height of the page.
    * Updates dynamically as the browser UI changes.
    */
    min-height: 100dvh;
    /* Vertically center items on the page within the grid */
    align-items: center;
    /* Spacing between the left and right columns */
    gap: 2rem;
}

@media (max-width: 768px) {
    .page-split {
      grid-template-columns: 1fr;     /* single column */
      min-height: auto;               /* let content drive height */
      gap: 0.75rem;
    }
}

.page-split--left {
    background-color: #eb0052;
    height: 100%;
    display: flex;             /* optional - lets you center content */
    align-items: center;       /* vertically center */
    /*justify-content: center;*/   /* horizontally center */
}

.page-split--right {
    display: flex; 
    justify-content: center;
}

.page-split__content {
    padding: 4rem;
    font-size: 30px;
    color: #fff;
    max-width: 80ch;
}

.page-split__logo {
    margin-bottom: 1rem;
}

.page-split-thirds {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 and 2/3 */
    gap: 2rem;
}

@media (max-width: 768px) {
    .page-split-thirds {
        grid-template-columns: 1fr;
    }
}

header {
    background-color: #eb0052;
    margin-bottom: 2rem;
}

footer {
    position: relative;
    /*z-index: 10;*/
    /*bottom: 4rem;*/
    font-size: 14px;
    font-size: 0.875rem;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* matches .page-split */
    z-index: 1000;
    bottom: 70px;
}

@media (max-width: 768px) {
    footer {
        bottom: unset;
        grid-template-columns: unset;
        padding: unset;
    }
}

footer a {
    color: #fff;
}

@media (max-width: 768px) {
    footer a {
        color: #eb0052;
    }
}

footer a:hover {
    text-decoration: none;
}

.footer-content {
    /*display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;*/
    justify-self: end;
    color: #fff;
    padding-right: 1rem;
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        color: #000;
        justify-self: unset;
        padding: 1rem 0;
        display: flex;
        gap: 0.5rem;
        flex-direction: column;
        margin-top: 2rem;
    }
}

.footer-content__links {
    display: flex;
    gap: 1rem;
}

.form-wrapper {
    max-width: 350px;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-items: center;
}

.form-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.form-tab {
    cursor: pointer;
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    transition: 0.3s;
}

.form-tab.active {
    border-bottom: 1px solid #eb0052;
    color: #eb0052;
}

.login-registration-form {
    display: none;
  }

  .login-registration-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }

  input,
  textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
  }

  button {
    width: 100%;
    padding: 10px;
    background: #eb0052;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    border: 1px solid #eb0052;
    border-radius: 20px;
    display: inline-block;
    text-decoration: none;
  }

  button:hover {
    background: #fff;
    color: #eb0052;
    border: 1px solid #eb0052;
  }

  .feed {
    margin-top: 2rem;
  }

  article.post {
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background-color: #eee;
  }

  .meta {
    font-size: 14px;
    color: #eb0052;
  }