/* Basic styles for Upper Nidderdale Heritage website */

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: auto;
}


html {
    -webkit-text-size-adjust: 100%;
}


body {
    margin:0 0 0 0;
    padding:0 0 0 0;
    font-family: 'Arial', sans-serif; /* Custom font from PDF */
    line-height: 1.6;
    color: #026244; /* Green from PDF */
    background-color: #f4f4f4;
    box-sizing: border-box;
    display: flex;
    width:auto;
    flex-direction: column;
}

header {
    top: 0%;
    width: 100%;
    /*background-image: url('../images/nav-bar-white-tall.png');*/
    background-color: white;
    background-size: cover;
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: left top;
    padding: 30px 5px 30px 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: sticky;
    z-index: 2;
    box-sizing:border-box;
    /* max-height: fit-content; */
}

header:has(.active) {
    padding-bottom: 0px;
    max-height: fit-content;
}

/* unused header style */
h1 {
    font-family: 'the seasons', serif; /* Custom font from PDF */
    font-size: 2.5rem;
    /* margin: 1.5rem 0 0.5rem; */
}

h2 {
    font-family: 'Alice', serif; /* Custom font from PDF */
    font-size: 2rem;
    /* margin: 1.5rem 0 0.5rem; */
}

p {
    margin: 0 0 1rem;
}

.head-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding-left:145px;
}

.vary-font-size {
    font-size: 1.5rem;
}

.logo {
    height: 135px; /* height of  header */
    /* box-shadow: #d2d2d2 0px 0px 4px 4px; */
    width: 135px; /* width of header */
    position: absolute;
    top:2px; /* bottom padding height of header */
    /*background-image: url('../images/favicon.png');*/
    z-index: 3;
    display: inline-block;
    background-size: cover;      /* Scales image to fill the entire element */
    background-position: center;  /* Centers the image within the element */
    background-repeat: no-repeat; /* Prevents tiling */
    image-rendering: auto            /* Standard modern value */
}

.logo-link {
    display: inline-flex;
    width: fit-content;
    height: fit-content;
    position: absolute;
    top: 0px; /* bottom padding height of header */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
    left:0%;
    right:100%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #7e2292; */
}

nav ul {
    list-style: none;
    margin: 0;
    padding-right: 1rem;
    display: flex;
}

nav li {
    margin-left: 1rem;
}

nav a {
    color: black;
    text-decoration: none;
}

main {
    /* margin: 0 auto; 
    padding: 2rem;
     margin-top:100px; */
    width: 100%;
    box-sizing: border-box;
}

.intro, .about, .contact .error .thanks {
    margin-bottom: 2rem;
}


.hero-image {
    width: 100%;
    height: auto;
}

.hero-text {
    position: absolute;
    width:400px;
    height:fit-content;
    left: 15%;
    right:85%;
    top: 80%;
    /* transform: translate(-50%, -50%); */
    border: none;
    border-radius: 14px;
    padding: 0 1rem 0 1rem; /* top right bottom left */
    color: white;
    background-color: #7e2992; 
    font-style: normal;
    text-align: center;
    text-wrap: pretty;
    font-size: 18px;
    z-index: 1;
    overflow:hidden;
}

.intro-image {
    display: flex;
    align-self: center;
    margin: 1rem auto;
    flex-shrink: 0;
    object-fit: contain;
    width: 30vw;
    height: auto;
    border-radius: 4px;
    box-shadow: #d2d2d2 0px 0px 4px 4px;
}
 
.photos {
    margin-bottom: 0rem;
    margin-left:0;
    margin-right:0;
    margin-top:0;
    padding:0;
    flex-direction: column;
    display: inline-flex;
    width:fit-content;
    position:relative;
    justify-content: center;
}

.slideshow {
    position: relative;
    overflow: hidden;
    background-color: white;
    width: fit-content;
    height:fit-content;
    max-width: 100%;
    max-height:100%;
}

.slides {
    display:flex;
    transition: transform 0.8s ease;
    width: fit-content;
    /* width: 100%; */
    height: 100%;
    transform: translateX(-100%); /* Start at the first slide (index 1) */
}

.slide {
    flex: 0 0 100%;
    /* min-width: 100%; */
    width: fit-content;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.slide img {
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font: inherit;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: none;
  border: none;
  outline: inherit;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
/*
.dots {
    display: flex;
    justify-content: right;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-right:1rem;
    background: rgba(255, 255, 255, 0.94);
}

.dot-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(126, 34, 146, 0.6);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
    min-width: auto;
}

.dot-button.active {
    background: #7e2292;
    transform: scale(1.1);
}

.dot-button:hover {
    background: rgba(126, 34, 146, 0.9);
}
*/
.map {
    margin-bottom: 2rem;
}

.map iframe {
    width: 100%;
    height: 355px;
    border: none;
    border-radius: 4px;
    max-width: 335px;
    box-sizing: border-box;
}

.body-text-margin {
    margin-left: 10%;
    margin-right: 10%;
}

.funding-logos {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.funding-logos img {
    max-width: 150px;
    height: auto;
}

footer {
    background-image: url('../images/footer-flipped.png');
    background-size: cover;
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: left top;
    color: black;
    padding: 2rem;
    margin-top:auto;
    
}

.bottom-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.bottom-nav li {
    margin: 0 1rem;
}

.bottom-nav a {
    color: black;
    text-decoration: none;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
    max-height: 300px;
    resize:vertical;
}

textarea {
    min-height: 80px;
}

.submit-button {
    background-color: #026244; /* Green */
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.submit-button:hover {
    background-color: #014930;
}

/* Responsive */
@media (max-width: 780px) {

    html, body {
        min-height: 100vh;
    }

    body {
        display: flex;
        width:auto;
        flex-direction: column;
    }

    .logo {
        left:2px;
        height: 92px; /* height of  header */
        width: 92px; /* height of  header */
    }

    .body-text-margin {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hamburger {
        display: block;
    }

    .head-horizontal {
        padding-left: 100px;
    }

    .vary-font-size {
        font-size: 1.25rem; /* Base size for very small containers */
        margin: 0;
        /*max-height: 20px;
        padding-left: 20px;
        align-content:center;*/
    }

    h2 {
        font-size: 1.9rem;
    }

    nav {
        /*position: absolute;
        top: 100%;
        left: 100%;
        right: 0;
        background-color: #7e2292;
        display:flex; */
        position: flex;
        flex-direction: row;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        padding: 1rem;
        margin: 0;
    }

    nav li {
        padding: 0.2rem 0;
    }

    header {
        flex-direction: column;
        align-items: right;
    }


    main {
        flex: 1;
        box-sizing: border-box;
    }

    .hero-text {
        /*left: 50%;
        width:60%;*/
        top: 90%;
        bottom: auto;
        height: auto;
        width:80%;
        left: 5%;
        right:95%;
        font-size: 1rem;
    }

    .intro-image {
        width: 100%;
        height: auto;
        border-radius: 4px;
        box-shadow: #d2d2d2 0px 0px 4px 4px;
    }

    .map iframe {
        height: 300px;
    }
    .bottom-nav {
        flex-direction: row;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .bottom-nav ul {
        display: flex;
        padding: 0;
        margin-bottom: 20px;
        width:100%;
    }

    .bottom-nav li {
        display: inline-block;
        margin: 0;
        padding: 0.2rem 1rem;
        text-align: center;
    }

    .bottom-nav a {
        display: inline-block;
        text-decoration: none;
    }
/*
    footer {
        margin-top: auto;
    }*/
}

@media (max-width: 400px) {
    .vary-font-size {
        font-size: 0.85rem; /* Base size for very small containers */
    }
    h2 {
        font-size: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 781px) {
    /*html, body {
        height: 100%;
    }

    body {
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1;
    }

    footer {
        margin-top: auto;
    }*/
    .widescreen-group {
        display: flex;
        gap: 1rem;
        flex-direction: row;
    }
    /*.photos {
        width: 50%;
    }
    .map {
        width: 50%;
    }*/
}

@font-face {
  font-family: 'Alice'; /* set name */
  src: url('../fonts/Alice-Regular.ttf') format('truetype'); /* url of the font */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Shows fallback font until custom font loads */
}


@font-face {
  font-family: 'the seasons'; /* set name */
  src: url('../fonts/the-seasons-regular.ttf') format('truetype'); /* url of the font */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Shows fallback font until custom font loads */
}