/* Styles for all pages */

html {
  font-size: 62.5%;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
input, button, textarea, select {
  font: inherit;
}
body {
  line-height: 1.5;
  font-family: Quicksand, sans-serif;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
#root, #__next {
  isolation: isolate;
}
:root {
  --site-pink: #dc9e9c;
  --site-blue: hsl(193, 56%, 54%);
  --text-blue: hsl(193, 56%, 13%);
  --light-pink: hsl(358, 85%, 94%);
  --breeze: #e0f9ff;
  --site-grey: darkgrey;
  --dark-grey: #292929;
  /* var(--site-pink); */
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

nav {
  width: 100%;
  background-color: var(--site-blue);
  display: flex;
}
#hamitems div {
  text-align: center;
  border-radius: 5px;
}
#hamitems {
  display: flex;
  flex-grow: 1;
}
#hamitems a {
  color: white;
  font-family: sans-serif;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0.7rem;
  padding: 1px 6px;
  text-align: center;
  border-radius: 5px;
}
#hamitems a:hover {
  background-color: var(--site-grey);
}
#hamnav label, #hamburger {
  display: none;
}

main {
  margin: 0 auto;
  min-height: 80vh;
  width: 100%;
  max-width: 1000px;
  padding-top: 30px;
  padding-bottom: 30px;
}
#main-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
#testimonials {
  background-color: white;
  padding: 20px;
  flex-grow: 1;
}
#testimonials p {
  font-size: 16px;
  width: 300px;
}
#testimonials a {
  font-size: 14px;
}
#events-preview {
  background-color: var(--light-pink);
  padding: 20px;
  flex-grow: 1;
}
#events-preview img {
  width: 300px;
}
#events-preview-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#events-preview a {
  color: black;
}

#events-main {
  background-color: var(--light-pink);
  background-image: url('../images/events-background.jpg');
  background-size: cover;
}

h1 {
  margin: 10rem 4rem 4rem 14rem;
  font-size: 5.4rem;
  color: var(--breeze);
  font-family: 'Dancing Script', cursive;
  display: inline-block;
}
h1.secondary-heading {
  margin-top: 4rem;
  background-color: var(--site-blue);
  padding: 5px 15px;
  border-radius: 10px;
  line-height: 1;
}

.hero {
  width: 100vw;
  position: fixed;
  left: 0;
  top: calc(-67vw + 50vh);
  z-index: -1;
}
.top-right {
  float: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 2rem;
}
.coffee {
  display: block;
  color: var(--breeze);
  font-size: 23px;
  text-decoration: none;
  text-align: center;
  padding: 1px 6px;
}
.coffee-cup {
  font-size: 30px;
}
.igicon {
  display: block;
  text-decoration: none;
  color: var(--breeze);
  font-size: 30px;
  padding: 1px 6px;
}
.top-right a:hover {
	background-color: var(--site-grey);
  border-radius: 10px;
  opacity: 0.85;
}
.coffee:active {
  background-color: #777;
}

h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-blue);
}
h2.index {
  color: var(--breeze);
}
h3 {
  font-size: 2.6rem;
  margin-top: 2.8rem;
  margin-bottom: 2rem;
  color: var(--site-pink);
}
hr {
  margin-top: 3rem;
  margin-top: 3rem;
}
p {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-blue);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  margin-top: 70vh;
  width: 100%;
  height: 70vh;
  color: var(--breeze);
  font-size: 2.9rem;
  padding: 2rem;
  text-align: center;
}
.card a {
  color: hsl(193, 56%, 77%);
}
ul {
  margin: 3rem;
  font-size: 2rem;
}
ul ul {
  margin: 1rem 3rem;
}
li {
  margin-bottom: 1.5rem;
}
aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 16px;
  padding-right: 15px;
}
aside a {
  color: var(--site-blue);
}
section {
  padding: 0 clamp(2.5rem, 10vw, 9rem);
}

.event-card {
  background-color: white;
  padding: 20px;
  width: 80%;
  margin: 0 auto 5rem;
  opacity: 0.9;
}
.event-card p {
  text-align: center;
  font-size: 2rem;
}
.event-card-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.event-card-flex img {
  max-height: 30rem;
}
.event-card-flex ul {
  width: 40rem;
  height: 30rem;
  margin: 0 2rem 0 1rem;
}

.error-div {
  background-color: var(--site-grey);
  margin: 30px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 5px 5px var(--site-grey);
  z-index: 2;
  opacity: 0.9;
}
#error-image {
  width: 40vw;
  margin: 15px auto;
  display: block;
  border-radius: 30px;
  opacity: 0.8
}

.about {
	width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background-color: var(--breeze);
}
.about img {
  border-radius: 15px;
  max-height: 80vh;
	max-width: 90%;
}
.about p {
  padding: 30px;
  border-radius: 15px;
}
.extra-image {
  max-width: 800px;
  width: 80vw;
  margin: 3rem auto;
}
.book-now-button {
  background-color: var(--site-blue);
  font-family: Quicksand;
  color: var(--breeze);
  border-radius: 2px;
  padding: 1rem 1.7rem;
  text-transform: uppercase;
  font-size: 1.9rem;
  text-decoration: none;
  display: inline-block;
  margin: 1.5rem 0;
}
.book-now-button:hover {
  background-color:hsl(193, 56%, 69%);
}
.book-now-button:active {
  color: black;
}
footer {
  width: 100%;
  min-height: 20vh;
  background-color: var(--dark-grey);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
	padding: 3rem;
}
.contact a, .contact p, .contact i {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}
footer p {
  color: var(--breeze);
  margin: 0;
  padding: 0.5rem;
}
footer a {
  text-align: center;
  font-size: clamp(2.3rem, 3vw, 3.3rem);
  color: var(--breeze);
  padding: 0.5rem;
}
footer a:hover {
  color: white;
}
footer a:active {
  color: grey;
}



@media only screen and (max-width: 1000px) {
  nav {
    display: block;
  }
  #hamitems {
    display: none;
  }
  #hamitems div{
    margin: 0 0 1px 0;
    box-shadow: none;
    padding: 1rem;
    border-radius: 0;
  }
  #hamitems div:hover {
    background-color: #999;
    box-shadow: none;
  }
  #hamitems div:active {
    background-color: #888
  }
  #hamitems a {
    display: block;
    width: 100%;
    margin-left: 0;
    border-radius: 0;
  }
  #hamnav {
    text-align: right;
  }
  #hamnav label {
    display: inline-block;
    color: var(--light-pink);
    background: var(--site-blue);
    font-style: normal;
    font-size: 2em;
    padding: 10px;
    user-select: none;
  }
  #hamnav label:hover {
    background-color: hsl(187, 50%, 77%);
  }
  #hamnav label:active {
    background-color: hsl(187, 50%, 85%);
  }
  #hamnav input:checked ~ #hamitems {
    display: block;
    transition-duration: 0.4s;
  }
  /******************************************/
  h1 {
    position: static;
    width: initial;
    margin-left: 3rem;
    font-size: 3.8rem;
  }
  .card p {
    font-size: 2.2rem;
  }
}

@media only screen and (max-width: 768px) {
  .hero {
    position: fixed;
    height: 100vh;
    width: auto;
    top: 0;
    left: calc(-37vh + 50vw);
    z-index: -1;
  }
  .about p {
    font-size: 18px;
  }
  footer {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
  }
  .event-card-flex img {
    height: 25rem;
  }
  .event-card-flex ul {
    font-size: 16px;
  }
}

@media only screen and (max-width: 500px) {
  .error-div p {
    font-size: 22px;
  }
}

