/* --- Base Styling --- */

body {
    font-family: "Montserrat", sans-serif;
    color: #666;
    font-size: 18px;
    line-height: 1.5;
}

/* --- Responsive Sidebar navigation adapted from W3.CSS Templates --- */
.w3-bar-block {
    display: flex;
    justify-content: left;
    padding-top: 80px;
    display: none;
    z-index: 2;
    width: 20%;
    min-width: 300px;
}

.w3-bar-item {
    padding: 8px;
    width: auto;
    border: none;
    display: block;
    outline: 0;
    width: 100%;
    white-space: normal;
    font-size: 24px;
    /*  Menu items font size  */
}

.w3-bar {
    width: 100%;
    overflow: hidden;
}

.w3-top,
.w3-bottom {
    position: fixed;
    width: 100%;
    z-index: 1;
}

.w3-top {
    top: 0;
    font-size: 48px;
    /* Hamburger bars size */
}

.w3-card {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)
}

.w3-sidebar {
    height: 100%;
    width: 200px;
    background-color: #fff;
    position: fixed !important;
    z-index: 1;
    overflow: auto;
}

.w3-animate-left {
    position: relative;
    animation: animateleft 0.4s;
}

@keyframes animateleft {
    from {
        left: -300px;
        opacity: 0
    }

    to {
        left: 0;
        opacity: 1
    }
}

/* The @keyframes CSS at-rule controls the intermediate steps in a CSS animation
sequence by defining styles for keyframes (or waypoints) along the animation
sequence. */

.w3-button {
    border: none;
    background-color: transparent;
    font-size: 40px;
    cursor: pointer;
    color: #4c6d5a;
    transition: color 0.3s ease;
}

.w3-button:hover {
    color: #5993d5;
}

.w3-button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.w3-button:disabled {
    cursor: not-allowed;
    opacity: 0.3
}

/* --- Typographical Scales --- */

/* Viewport is the browser window size. 1vw = 1% of viewport width. */
header h1 {
    /* 64px is 3.333%  of 1920px */
    font-size: clamp(2rem, 1.3725rem + 3.1373vw, 4rem);
}

header h2 {
    /* 40px is 2.083%  of 1920px */
    font-size: clamp(1.5rem, 1.1863rem + 1.5686vw, 2.5rem);
}

.shine {
    /*  Call to action color  */
    color: #4c6d5a;
}

h1,
h2,
h3 {
    font-family: "Winky Sans", sans-serif;
    color: #274a78;
}

h2,
h3 {
    line-height: 1;
    margin: 40px 0;
}

h2 {
    font-size: clamp(1.5rem, 1.1863rem + 1.5686vw, 2.5rem);
    font-weight: 600;
    text-align: center;
}

h3 {
    font-size: clamp(1.25rem, 0.9363rem + 1.5686vw, 2.25rem);
    font-weight: 500;
}

p {
    margin-bottom: 18px;
    font-size: clamp(0.875rem, 0.7966rem + 0.3922vw, 1.125rem);
}

/* layout */

nav {
    background-color: #fff;
    width: 100%;
}

.w3-bar-item:link,
.w3-bar-item:visited {
    color: #427ac1;
    text-decoration: none;
}

.w3-bar-item:hover,
.w3-bar-item:active {
    color: #333;
    text-decoration: underline;
}

header {
    margin-top: 80px;
    /* Space for the nav on page load */
}

/*  Places the content image in the bg with the headings on top  */
.header-bg-wrap {
    overflow: hidden;
    position: relative;
}

.header-bg-image {
    opacity: 0.30;
    /*The opacity property specifies the opacity/transparency of an element.*/
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
}

.header-content {
    height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(249, 244, 239, 0.6);
    padding: 0 1rem;
}


main {
    padding-top: 20px;
    overflow: hidden;
}

.content,
aside {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}


article img {
    border: none;
    -webkit-box-shadow: 3px 3px 7px #777;
    -moz-box-shadow: 3px 3px 7px #777;
}

.image-container {
    width: 60%;
    margin: 0 auto 20px;
}

aside {
    background-color: #f4ede3;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

aside a {
    color: #3585b7;
    text-decoration: none;
    font-weight: 500;
}

aside a:hover {
    text-decoration: underline;
    color: #1e2b3a;
}


footer {
    background-color: #2a3846;
    color: #f9f4ef;
    padding: 40px 0;
    margin-top: 60px;
}


footer h3 {
    margin-bottom: 1.2rem;
}

footer ol {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0;
    margin-bottom: 20px;
}


footer ol li {
    margin: 10px;
    display: block;
    /*Makes the li selectable up the to the edge of the margins*/
}

footer a:link,
footer a:visited {
    color: #fff;
    text-decoration: none;
}

footer a:hover,
a:active {
    color: #b0cbbc;
    text-decoration: underline;
}

.footer-intro {
    margin: 0 auto;
    max-width: 800px;
    padding: 1rem;
}

.footer-intro h3 {
  color: #a7c0b2;
  margin-bottom: 12px;
}


/* -- Code for the Cookie Compliance popover window -- */

#cookiePopup {
  background-color: #fffaf3;
  position: fixed;
  left: 5%;
  bottom: 5%;
  width: 90%;
  box-shadow: 0 0 2em rgba(5, 0, 31, 0.15);
  font-size: 15px;
  text-align: center;
  line-height: 1.6em;
  padding: 1.8em 1.4em;
  border-radius: 8px;
  transition: all 0.5s ease-in-out;
  border: 1px solid #e6d5c3;
}


#cookiePopup p {
    text-align: center;
    margin: 1.4em 0;
}

#cookiePopup button {
  background-color: #678995;
  border: none;
  color: #fff;
  font-size: 1em;
  padding: 0.8em 1.4em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#cookiePopup button:hover {
  background-color: #1e2b3a;
}


#cookiePopup a {
    color: #6859fe;
}

.hide {
    visibility: hidden;

}

.show {
    visibility: visible;

}

/* -- End of Code for the Cookie Compliance popover window -- */

@media only screen and (min-width:900px) {

    main,
    .bg-container {
        width: 71%;
        margin: 20px auto;
    }

    .header-content {
        height: 46.296vh;
    }

    nav {
        width: 40%;
    }

    .outer-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .inner-container {
        width: 48%;
    }

    .w3-bar-item {
        font-size: 1.5rem;
    }

}

@media only screen and (min-width:1340px) {

    .hamburger-position {
        margin-left: 10%;
    }
}