:root {
  --main-header-color: #67778d;
  --main-title-color: #859ab5;
  --main-text-color: #555;
  --link-color: #4270b1;
  --shade-bg-color: #f6f3f3;
  --header-font-family: "Crimson Text", serif;
  # font-family: "Unna", serif;
}

body {
  font-size: 1.5rem;
  padding: 0;
  color: var(--main-text-color);
  font-family: "Gabarito", sans-serif;
}

#main {
  margin:0% 20% 10% 20%;
}

#logo {
  margin: 80px auto 0px auto;
  max-width:200px;
}
#footerlogo {
  float:right;
  border-radius:300px;
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  max-width:100px;
  background: #a6b2cc;
}

#header {
  font-family: var(--header-font-family);
  font-weight: 400;
  font-style: normal;
  color: var(--main-header-color);
  margin:auto;
  font-weight: normal;
  font-size: 9rem;
  text-align: center;
  line-height:1;
}

h1 {
  font-family: var(--header-font-family);
  font-weight: 400;
  font-style: normal;
  color: var(--main-title-color);
  margin: 0px auto 60px auto;
  font-weight: normal;
  font-size: 4rem;
  text-align: center;
  line-height:1.3;
}

.shade h1 {
  margin: 0px auto 0px auto;
}

h2 {
  font-family: var(--header-font-family);
  color: var(--main-text-color);
  margin: 30px auto 00px auto;
  font-weight: normal;
  font-size: 3rem;
  text-align: center;
}

h3 {
  margin: 0px auto 10px auto;
  font-weight: normal;
  font-size: 1.5rem;
  text-align: center;
}

h3 span {
  font-size:1.5rem;
}
h4 {
  margin: 40px auto 10px auto;
  font-family: var(--header-font-family);
  font-weight: 400;
  font-style: normal;
  font-size: 3.4rem;
  color: var(--main-header-color);
}
#timezone {
  font-size:1rem;
}

.headshot {
  max-width:200px;
  margin:auto 10px;
  border-radius:40px;
  display:inline-block;
  box-shadow:0px 3px 6px #444;
}

.booktime {
  background: var(--main-title-color);
  padding:20px;
  color:#fff;
  margin:30px auto;
  border-radius:10px;
  box-shadow:0px 2px 3px #333;
  display:inline-block;
  text-decoration:underline;
}

.booktime:hover {
  cursor: pointer;
  box-shadow:0px 1px 1px #333;
  background: #a2b3cc;
}

a {
  color: var(--link-color);
}

.flex {
  list-style-type: none;
  display:flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items:stretch;
  gap:15px;
  padding-left: 0px;
}
.flex li {
  font-size: 1rem;
  border:1px solid var(--main-header-color);
  flex-basis: calc(33.33% - 15px);
  margin:auto;
  border-radius: 6px;
  color: var(--main-header-color);
  overflow: hidden;
  min-height:350px;
}

.flex li.focus {
  height: auto !important;
}

.flex li span {
  display:block;
  background:#eee;
  padding: 10px;
}

.flex li div {
  font-size: 1rem;
  margin-top:10px;
  color: var(--main-text-color);
  padding: 10px;
}

.expander {
  list-style-type: none;
  padding-left: 0;
}

.expander div {
  color: var(--main-title-color);
}

.expander li {
  background: var(--shade-bg-color);
  margin-bottom:5px;
  padding: 3px 3px 3px 20px;
  border-radius:20px;
  border:1px solid #e0e0e0;
}
/*
.expander li span:hover {
  background: var(--main-title-color);
  color:#fff;
}
*/

.expander li span {
  cursor: pointer;
  display: block;
}
.expander li div {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.expander li.expanded div {
  padding:20px;
  max-height: 1500px; /* big enough to fit content */
  opacity: 1;
}


#footer {
  width:100%;
  color:#f4f4f4;
  background-image: url(/beach.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom:5px solid var(--main-title-color);
  padding:40px 30px 10px 30px;
  box-shadow: 0px -1px 5px #444;
}
#footer h2 {
  font-size:2.4rem;
  font-weight:normal;
  color:#999;
  text-align:left;
  margin-top:20px;
  margin-bottom:5px !important;
  padding-bottom:5px !important;
}
#footer .item {
  text-align:left;
  margin:0px auto 40px auto;
}

#footer a {
  color:#ccc;
  font-weight:normal;
}
#footer img {
  display:inline-block; /* cause of reset.css */
}
.svg {
  width:23px;
  top:5px;
  position:relative;
}

#shade {
  max-width:500px;
  background-color: rgba(34, 34, 34, 0.85);
  padding:40px;
  border-radius:20px;
}

.shade {
  background: var(--shade-bg-color);
  padding:40px;
  border-radius:20px;
  border:1px solid #e0e0e0;
}


/* medium screens */
@media (max-width:1366px) {
  .flex li {
    flex-basis: calc(50% - 15px);
  }
  #main {
    margin:0% 5% 10% 5%;
  }
}

@media (max-width:400px) {
  html {
    font-size:6px; /* impacts rem */
  }
  body {
    font-size:3rem;
  }
  #main {
    margin:0% 10px 10% 10px;
  }
  .headshot {
    max-width:40%;
  }
  #header {
    margin: 20px auto 20px auto;
  }
  h1 {
    margin: 10px auto 20px auto;
    font-size:6rem;
  }
  #footer h2 {
    font-size:4rem;
  }
  h2 {
    font-size: 4rem;
  }
  h3, h3 span {
    font-size: 3rem;
  }
  h4 {
    font-size: 6rem;
  }
  #shade {
    max-width:100% !important;
  }
  #footer {
    padding:40px 3px 10px 3px;
  }
  .shade {
    padding:10px;
  }
  .flex li {
    flex-basis: 100%;
    margin: auto;
    min-height: auto;
    font-size: 4rem;
  }
  .flex li div {
    font-size: 3rem;
  }
}
