:root {
    /* main colours */
    --blue: #6CA1E1;
    --red: #E15037;
    --yellow: #FBD489;
    --green: #5CE7E6;
    --black: #111111;
    --grey: #d3d3d3;
    --white: #FBFBFB;

    /* global */
    --background: #fffff7;
    --text: var(--black);
    --border: var(--grey);
    --surface: var(--white);
    --button: var(--blue);
    --button-hover: #4D8CD9;
    --button-text: var(--black);
    --text-title: var(--black);

    /* nav */
    --nav-background: #e8e0e0;
    --nav-text: var(--black);
    --nav-hover-background: var(--grey);
    --nav-hover-text: #232323;

    /* interactive elements */
    --link-text: #3275C6;
    --link-hover-text: #004395;
    --focus-outline:  #002f68;

    --border-radius: 6px;
}

/* start dark mode styling */
@media (prefers-color-scheme: dark) {
    :root {


    /* global */
    --background: var(--black);
    --text: var(--white);
    --border: var(--black);
    --surface: var(--black);
    --button: var(--blue);
    --button-hover: #4D8CD9;
    --button-text: var(--black);
    --text-title: var(--white);

    /* nav */
    --nav-background: #e8e0e0;
    --nav-text: var(--white);
    --nav-hover-background: var(--grey);
    --nav-hover-text: #232323;

    /* interactive elements */
    --link-text: var(--blue);
    --link-hover-text: #004395;
    --focus-outline:  #002f68;
         
}


}

/* end dark mode styling */

/* header image */
.custom-header img {
    width: 100%; /* Makes the image span the full width of the container */
    height: auto; /* Maintains the original aspect ratio */
    display: block; /* Removes extra space below the image (default inline-block behavior) */
  }

  /* background color, cursor, general stuff */
  
  body {
    background-color: var(--background);
    cursor: url("/images/cursor_default.png"), default;
    font-family: "pragmatapro-fraktur", sans-serif;
    font-size: 1rem; 
    font-weight: 400;
    line-height: 1.6; 
}

body.custom-bg-page #back-home {
  font-family: "pragmatapro-fraktur", sans-serif;
    color: var(--black) !important;
    display: flex;
    flex-direction: row;
}

html {
    font-size: 100%; /* Default: 16px (browser default) */
}

@media (max-width: 768px) {
    html {
        font-size: 14px; /* Smaller font size for smaller screens */
    }
}

@media (min-width: 769px) {
    html {
        font-size: 16px; /* Larger font size for larger screens */
    }
}

/* Set the custom pointer cursor for links and images */
a, img {
    cursor: url('/images/cursor_grab.png'), pointer;
}

/* start of nav menu */

/* Default state (hidden) */
.dropdown-blue {
    display: none;
}

/* Show the dropdown when the 'active' class is added */
.dropdown-blue.active {
    display: block;
}

/* website title */
.title-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
@media screen and (min-width: 841px) {
    .title-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        top: 0;
        width: 100%;
        gap: 30px;
    }}
.title span {
    font-size: 3rem;
    line-height: 3rem;
    color: var(--text-title);
    -webkit-text-stroke: 1px var(--titlestroke); /* Add a 1px white stroke */
    white-space: nowrap;
    font-family: "p22-elizabethan", sans-serif;
    font-weight: 400;
    font-style: normal;
    cursor: pointer;
}

.title a {
    text-decoration: none;
}

/* container for nav buttons */
.nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}
@media screen and (min-width: 841px) {
    .nav {
        display: flex; /* Align nav items horizontally */
        gap: 10px; /* Spacing between nav items */
        flex-direction: row;
        justify-content: end;
        width: 100%;
      }}

      .nav-item {
    position: relative; /* Ensures dropdown is positioned relative to each nav-item */
    width: 100%;
    height: auto;
    }


    @media screen and (min-width: 841px) {
.nav-item {
    position: relative; /* Ensures dropdown is positioned relative to each nav-item */
    width: 100%;
    }}

/* Show the dropdown when hovering over the button in nav-item */
.nav-item:hover .dropdown {
    display: block;
  }
  
/* Ensure buttons without dropdowns behave normally */
.nav-item:hover {
     /* Makes text italic */
    border-radius: 5px 5px 0 0;
}
.headerNav-1-button {
    display: flex;
    align-items: center;
    background-color: var(--blue);
    color: var(--black);
    padding: 7px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    position: relative;
    font-family: "pragmatapro-fraktur", sans-serif;
    border: none;
    outline: none;
    width: 100%;
}
@media screen and (min-width: 841px) {
      .headerNav-1-button { 
        min-width: 80px;
      }}

 .headerNav-2-button {
        display: flex;
        align-items: center;
        background-color: var(--red);
        color: var(--black);
        border: 1px var(--button-border);
        padding: 7px 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        position: relative;
        font-family: "pragmatapro-fraktur", sans-serif;
        outline: none;
        width: 100%;
 }
        @media screen and (min-width: 841px) {
            .headerNav-2-button { 
        min-width: 80px;
      }}

.headerNav-3-button {
        display: flex;
        align-items: center;
        background-color: var(--yellow);
        color: var(--black);
        border: 1px var(--button-border);
        padding: 7px 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        position: relative;
        font-family: "pragmatapro-fraktur", sans-serif;
        outline: none;
        width: 100%;
       
      }
      @media screen and (min-width: 841px) {
        .headerNav-3-button { 
    min-width: 80px;
  }}

.headerNav-3-button a, .headerNav-3-button a:visited {
    text-decoration: none;
    color: var(--black);
  }

      .headerNav-4-button {
        display: flex;
        align-items: center;
        background-color: var(--green);
        color: var(--black);
        border: 1px var(--button-border);
        padding: 7px 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        position: relative;
        font-family: "pragmatapro-fraktur", sans-serif;
        outline: none;
        width: 100%;
        
      }
      @media screen and (min-width: 841px) {
        .headerNav-4-button { 
    min-width: 80px;
  }}

.headerNav-button a {
        text-decoration: none;
      }
      
      .arrow-icon {
        margin-left: 8px;
        width: 12px;
        height: 12px;
        /* stroke: white; */
        transition: transform 0.3s ease;
      }
      
      .headerNav-button:hover .arrow-icon {
        transform: rotate(180deg); /* Optional: Rotate arrow */
    }
    .dropdown-blue {
        display: none; /* Hidden by default */
        position: absolute;
        top: 90%; /* Position dropdown below the button but cover the bottom corners so it looks seamless */
        width: 100%;
        background-color: var(--blue);
        list-style: none;
        padding: 10px 0;
        margin: 0;
        border-radius: 0 0 5px 5px;    
        z-index: 200;
          
    }
    @media screen and (min-width: 841px) {
      .dropdown-blue {
        display: none; /* Hidden by default */
        position: absolute;
        top: 90%; /* Position dropdown below the button but cover the bottom corners so it looks seamless */
        width: 100%;
        background-color: var(--button);
        list-style: none;
        padding: 10px 0;
        margin: 0;
        border-radius: 0 0 5px 5px;    
        z-index: 100;
      }}
      
      .dropdown-blue li {
        padding: 7px 10px;
        align-items: start;
        background-color: var(--button);
        border-radius: 5px;
        margin: 0;
        font-size: 16px;
        color: var(--white);
    
      }
      
      .dropdown-blue li a {
        text-decoration: none;
        color: var(--button-text);
       
      }
      
      .dropdown-blue li a:hover {
        background-color: #8BBBF5;
      }
      
      /* Show the dropdown when hovering over the button in nav-item */
      .nav-item:hover .dropdown-blue {
        display: block;
      }


      .dropdown-red {
        display: none; /* Hidden by default */
        position: absolute;
        top: 90%; /* Position dropdown below the button but cover the bottom corners so it looks seamless */
        width: 100%;
        background-color: var(--red);
        list-style: none;
        padding: 10px 0;
        margin: 0;
        border-radius: 0 0 5px 5px;    
        z-index: 200;
      }
      
      .dropdown-red li {
        padding: 7px 10px;
        align-items: start;
    
      }
      
      .dropdown-red li a {
        text-decoration: none;
        color: var(--button-text);
       
      }
      
      .dropdown-red li a:hover {
        background-color: #EF7E6B;
      }
      
      /* Show the dropdown when hovering over the button in nav-item */
      .nav-item:hover .dropdown-red {
        display: block;
      }


      .dropdown-green {
        display: none; /* Hidden by default */
        position: absolute;
        top: 90%; /* Position dropdown below the button but cover the bottom corners so it looks seamless */
        width: 100%;
        background-color: var(--green);
        list-style: none;
        padding: 10px 0;
        margin: 0;
        border-radius: 0 0 5px 5px;    
        z-index: 400;
      }
      
      .dropdown-green li {
        padding: 7px 10px;
        align-items: start;
    
      }
      
      .dropdown-green li a {
        text-decoration: none;
        color: var(--button-text);
       
      }
      
      .dropdown-green li a:hover {
        background-color: #82F9F8;
      }
      
      /* Show the dropdown when hovering over the button in nav-item */
      .nav-item:hover .dropdown-green {
        display: block;
      }
      
      /* Ensure buttons without dropdowns behave normally */
      .nav-item:hover {
        border-radius: 5px 5px 0 0;
    }
    
    .headerNav-button:focus, .headerNav-button:hover {
        border: none;
        outline: none;
        background-color: var(--button-hover);
        
      }

.new-tag {
        background-color: #daff69;
        color: rgb(0, 0, 0);
        padding: 1px 5px;
        border-radius: 5px;
        margin-left: 0px;
        vertical-align: middle;
    }

.custom-header {
        position: relative; /* Establish a positioning context */
        width: 100%; /* Allows the collage to scale responsively */
        margin: 5px auto 0px; /* Center the container */
        border-radius: 6px;
    }
      .custom-header img.background {
        width: 100%; /* Makes the image span the full width of the container */
        height: auto; /* Maintains the original aspect ratio */
        display: block; /* Removes extra space below the image (default inline-block behavior) */
        border: 2px ridge var(--border);
        border-radius: 6px;
    }


.main-container {
        max-width: 75rem;
        margin: 2% auto 10px auto;
        display: flex;
        flex-wrap: wrap;
        padding: 5px;
        gap: 5px;
        box-sizing: border-box;
        
    }
    
    .main-container .half {
        min-width: 15rem;
        
    }
    
    /* these control the column widths */
    .small { flex: 1 1 9%; }
    .large { flex: 1 1 82%; }
    .full { flex: 1 1 100%; }
    .half { flex: 1 1 49%; }
    
    
    section {
    border: 2px ridge var(--border);
    border-radius: 6px;
    background: var(--surface);
    padding: 5px;
    
    }
    
    section.small {
        text-align: center;       /* Centers the text and images horizontally */
        position: relative;       /* Maintains positioning context for hover effects */
    }

section.small h2 {
        margin-bottom: 20px;      /* Adds space between the heading and the images */
    }
    
    section.small .image-container {
        display: flex;            /* Enables flexbox layout for the images */
        justify-content: center;   /* Centers the images horizontally */
        flex-wrap: wrap;           /* Ensures images wrap to the next line if necessary */
        gap: 10px;                /* Adds space between images */
    }

    section.full .image-medium img{
        width: 300px;
    }
    
    /* !!start of postcard section!! */
    #recent-postcards {
        text-align: center; /* Centers the heading */
        position: relative;
        overflow: hidden; /* Prevents scrolling for the whole section */
        padding-top: 20px; /* Adds space between heading and carousel */
    }
    
    #recent-postcards h2 {
        margin-bottom: 20px; /* Space below the heading */
    }
    
    .carousel {
        display: flex; /* Aligns items horizontally */
        overflow-x: auto; /* Enables horizontal scrolling */
        gap: 20px; /* Adds space between postcards */
        scroll-snap-type: x mandatory; /* Enables snap-to behavior for a smooth carousel effect */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
        width: 100%; /* Ensures the carousel spans the full width of the container */
    }
    
    .carousel::-webkit-scrollbar {
        width: 0; /* Hides the scrollbar */
        height: 0;
    }
    
    .carousel .postcard {
        position: relative; /* Enables positioning of child elements */
        display: inline-block;
        width: 300px; /* Fixed width for each postcard */
        flex-shrink: 0; /* Prevents the postcard from shrinking to fit */
        scroll-snap-align: center; /* Snaps the postcard to the center during scrolling */
        overflow: hidden; /* Ensures no overflowing elements are visible */
    }
    
    .carousel .postcard img {
        width: 100%; /* Ensures the image fits the width of the postcard */
        height: auto; /* Maintain aspect ratio */
        object-fit: cover; /* Ensures images fit properly */
    }
    
    .carousel .postcard .content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* Covers the full width of the postcard */
        height: 100%; /* Covers the full height of the postcard */
        display: flex; /* Enables Flexbox for centering */
        justify-content: center; /* Centers content horizontally */
        align-items: center; /* Centers content vertically */
        background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
        color: var(--white); /* White text color */
        text-align: center; /* Centers text inside the content */
        opacity: 0; /* Hidden by default */
        transition: opacity 0.3s ease; /* Smooth fade-in transition */
    }
    
    .carousel .postcard:hover .content {
        opacity: 1; /* Make it visible on hover */
        transform: translateY(0); /* Move it to its original position */
    }
    
    
    
    
    /* !!end of postcard section!! */

/* !!start of fav bird photos!! */
    
    .favbirds {
        width: 300px;
        height: auto;
    }
    
    
    #art img {
        width: 100%; /* Fixed width for each postcard */
        height: auto;
    }
    .bird {
        width: 100px;
        height: auto;
    }
    
    
    .bird:hover {
        width: 100px;
        height: auto;
        transform: scale(1.5); /* Enlarges the image by 50% */
    }
    
    .thumbnail {
        width: 150px; /* Set width for thumbnail */
        height: auto; /* Maintain aspect ratio */
        border: 2px solid #ccc; /* Optional border */
        border-radius: 8px; /* Optional rounded corners */
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
    }
    
     /* Modal styling */
     .modal {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    .modal.active {
        display: flex;
    }
    
    .modal-content {
        max-width: 90%;
        max-height: 90%;
    }
    
    .favbirds {
        width: 300px; /* Adjust the size of your thumbnails */
        height: auto;
        cursor: pointer; /* Change the cursor to indicate interactivity */
    }
    
    .favbirds:hover {
        opacity: 0.7; /* Slight hover effect for better UX */
    }


/* start of web updates section */

section.small .web-updates {
        text-align: left;
        height: auto;
    }

    /* end of web updates section */


 #chattable {
        width: 100%; /* Makes the iframe take the full width */
        height: 400px; /* Set a height that fits your design */
        border: none;
      }
    
    #statuscafe {
        padding: .5em;
        color: white;
        background-color: var(--background-primary);
        /* border: 1px solid midnightblue; */
    }
    #statuscafe-username {
        margin-bottom: .5em;
    }
    #statuscafe-content {
        margin: 0 1em 0.5em 1em;
    }

ul, ol, li {
        color: var(--text); /* Ensure list items use the text color defined in the theme */
    }
    
    
    h1, h2, h3, h4, h5, h6, p, ul, ol, li { 
    margin: 5px;
    line-height: 1.2;
    color: var(--text);
    }
    h1 { 
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: normal;
    text-align: center;
    border-bottom: 2px ridge var(--border);
    padding-bottom: 5px;
    }
    h2 { 
    font-size: 1.25rem;
    font-weight: normal;
    text-align: center;
    }
    h3 { 
    font-size: 1.1rem;
    }
    h4 { 
    font-size: 1rem;
    color: var(--accent);
    padding-left: 12px;
    }
    
    /* prevents overflow on smaller screens */
    /* img { max-width: 100%; } */
    pre { overflow-x: auto; }
    
    a {
        color: var(--link-text)
    }
    a:hover, a:focus {
    font-style: italic;
    }
    a:visited {
    color: var(--primary70);
    }


footer {
    text-align: center;
    margin-bottom: 5vw;
    font-size: 0.8rem;
    }
    footer a { 
    text-decoration: none;
    }
