* {
    -webkit-tap-highlight-color: transparent; /* no default animations/colours when clicking links. looks cheap */
}
button, a {
    touch-action: manipulation;
}


html {
    scroll-behavior: smooth; /* so browser moves smoothly when moving between headers/buttons */
}

/* ------------------COLOURS------------------ */

body {
    color: var(--color-tx);
    background-color: var(--color-bg);
}
header {
    background-color: var(--color-bg); 
}
header::after {
    background: linear-gradient(to bottom, var(--color-bg), transparent);
}
a {
    color: var(--color-tx-2);
}
aside {
    color: var(--color-tx-3);
}
h1 {
    color: var(--color-tx);
}
h1 a {
    color: var(--color-tx);
}
h2 {
    border-color: var(--color-bg-2);
    color: var(--color-tx-2);
}
h3 {
    color: #403e3c;
}
blockquote {
    color: var(--color-tx);
}
blockquote footer {
  color: var(--color-tx-3);
}
p.hero a {
    color: var(--color-tx);
}
p.navigation a {
    color: var(--color-tx-2);
}
img#selfie {
    border-color: var(--color-ui);
}
img#map {
    /* box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.3); */
    filter: drop-shadow(0px 0px 12px rgba(0,0,0,0.3));
    mask-image: linear-gradient(to bottom, var(--color-bg) calc(100% - 150px), transparent 100%);
    
    /* For wider WebKit compatibility */
    -webkit-filter: drop-shadow(0px 0px 12px rgba(0,0,0,0.3)); 
    -webkit-mask-image: linear-gradient(to bottom, var(--color-bg) calc(100% - 150px), transparent 100%);
    
}
.image-wrapper img {
    border-radius: 5px;
    filter: brightness(70%);
}
.button {
  background-color: var(--color-cta);
  color: white;
  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.3);
}
.button:hover {
  background-color: var(--color-cta-h);
}
input[type="text"],
input[type="email"],
textarea {
    background-color: var(--color-ui);
    color: var(--color-tx-form);
}
 input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    box-shadow: 0 0 5px var(--color-ui);
} 
input[type="submit"] {
  background-color: var(--color-cta); /* Copy from .button */
  color: white; /* Copy from .button */
}

input[type="submit"]:hover {
  background-color: var(--color-cta-h); /* Copy from .button:hover */
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: var(--color-tx-3); /* Lighter placeholder text */
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: var(--color-tx-3);
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: var(--color-tx-3);
}

/* ------------------TYPOGRAPHY------------------ */
body {
    line-height: 1.8;
    font-size: 18px;
    font-family: Georgia, "droid serif", "Times New Roman", Times, serif;    
}
header {
    font-family: 'Times New Roman', Times, serif;
}
aside {
    font-style: italic;
    font-family: Georgia, "droid serif", "Times New Roman", Times, serif;
}
h1, h2, h3 {
    font-family: 'Times New Roman', Times, serif;
}
h1 {
   font-size: 2em;
}
h1 a {
  text-decoration: none;
  font-weight: inherit;
}
h2 {
    font-size: 1.5em;
}
blockquote {
    text-indent: .5em;
    font-size: 16px;
}
blockquote footer {
  text-align: right; 
  font-style: italic; 
}
blockquote footer::before {
  content: "— ";
}
p.hero {
    font-size: 1.1em;
}
p.hero a {
    text-decoration: none;
}
p {
    text-indent: .5em;
}
.button,
input[type="submit"],
input[type="text"],
input[type="email"],
textarea {
    font-family: verdana, Arial, Helvetica, sans-serif;
}
.button,
input[type="submit"] {
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-size: .85em;
    transition: background-color 0.3s ease;
}
/* form typography */
input[type="text"],
input[type="email"],
textarea {
    line-height: 1.6;
    font-size: 1rem;
}
input::placeholder,
textarea::placeholder {
  font-size: .9rem;
}


/* ------------------LAYOUT------------------ */
body {
    margin: 0 auto;
    max-width: 700px;
    padding-bottom: 30vh;
}

header {
    position: sticky;
    top: 0; 
    width: 100%;
    z-index: 100;
}

header::after { /* so scrolling text fades beneath the top sticky site title */
    content: "";
    position: absolute;
    left: 0;
    bottom: -30px; /* Extends below the header */
    width: 100%;
    height: 30px; /* Controls the fade height */
    pointer-events: none; /* Ensures clicks pass through */
}

aside {
    text-align: center;
}

/* Header styling */
h1, h2, h3 {
    text-align: center;
}

h1 {
   margin-bottom: -.5em;
   margin-top: 4em;
}

h2 {
    margin-top: 4em;
    margin-bottom: 1.25em;
    scroll-margin-top: 70px;
    padding-top: 5rem;
    border-top-width: 1px;
    border-top-style: solid;
}

/* extra */
address {
    text-align: center;
    margin-top: 2em;
}

blockquote footer {
  margin-top: .75em;
  margin-bottom: 3em;
}

.footer {
    margin-top: 4em;
    text-align: center;
}
p {
    margin-left: 10px;
    margin-right: 10px;
}

p.navigation {
    text-align: right;
    padding-right: 2em;
}
ul {
    text-align: center;
    list-style-position: inside;
    padding-right: 40px;
}

img {
    border-radius: 8px;
}

img#selfie {
    float: right; 
    margin-top: 30px;
    margin-left: 20px; 
    margin-right: 20px; 
    margin-bottom: 10px; 
    width: 100px; 
    height: auto; 
    border-width: 3px;
    border-style: solid;
}

img#map {
    display: block;
    width: 390px; 
    margin: 0 auto;
    height: auto; 
}

div.image-wrapper {
    text-align: center;
}
.image-wrapper img {
    display: inline-block; /* Treat images as blocks to apply margins easily */
    margin: 0 5px; /* spacing between images */
    height: auto;
    width: 100px;
    border: 2px solid;
}


/* columns */
.column-container {
    display: flex;
    gap: 0px; /* Space between columns */
}
.left-column, .right-column {
    flex: 1; /* Makes both columns take equal available space */
}

@media (max-width: 768px) {
    .column-container {
        flex-direction: column; /* Stacks columns vertically on small screens */
    }
}

/* get in touch button */
.button-container {
  text-align: center; /* Centers the button horizontally */
  margin-top: 1.5em;
}

.button {
    padding: 10px 20px;
    text-align: center;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* --------------form layout-------------------- */
.form-container {
  width: 80%;
  max-width: 500px;
  margin: 2rem auto;
}

/* to contain first and second name input fields */
.name-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.name-container div {
  flex-grow: 1;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 2.5rem;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
}

textarea {
  height: 150px;
  resize: none; /* get rid of annoying corner drag graphic */
}

input[type="submit"] { /* Copy from .button */
  padding: 10px 20px; 
  margin-right: 10px;
  border: none;
  cursor: pointer;
  display: block;
  margin-left: auto;
}