*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#menu {
  width: 100%;
  margin: auto auto auto auto;
}

.navbar .navbar-nav {
  display: inline-block;
  float: none;
  vertical-align: top;
  background-color: #efefef;
  font-size: 12pt;
  font-weight: 800;
}

ul.specialization {
  list-style-type: none;
  font-size: 10pt;
}

.navbar .navbar-collapse {
  text-align: center;
}

h1 {
  font-family: PT Serif Caption;
  text-align: center;
  text-shadow: 2px 2px #a8a8a8;
  font-variant: small-caps;
  font-size: 30pt;
}

h4 {
  text-align: center;
  font-family: Roboto;
}

/* Home page - animated slideshow */
#left-col-image {
  position: relative; 
  width: 500px;
  height: 500px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Override for education page */
#left-col-image.education-image {
  width: 450px;
  height: auto;
  flex-shrink: 0;
}

#left-col-image div {
  position: absolute;
  display: block;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  animation-name: fadeImages;
  animation-duration: 25s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  background-size: contain;
  background-position: center;
  opacity: 0;
}

/* Education page - single sticky image */
#left-col-image img {
  position: static;
  top: 20px;
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/*#left-col-image div:nth-of-type(1) {
  background-image: url('images/me-malibu.jpg');
  animation-delay: 20s;
  width: 50%;
  height: 50%;
}*/

#left-col-image div:nth-of-type(1) {
  background-image: url('images/me-winter.jpg');
  animation-delay: 15s;
}

#left-col-image div:nth-of-type(2) {
  background-image: url('images/me-weymss.jpg');
  animation-delay: 10s;
}

#left-col-image div:nth-of-type(3) {
  background-image: url('images/me-ediza.jpg');
  animation-delay: 5s;
}

#left-col-image div:nth-of-type(4) {
  background-image: url('images/me-scotland.jpg');
  animation-delay: 0s;
}

@-webkit-keyframes fadeImages {

  /* Images 5, Delay 5s,
    Fade 2s, Duration 0m25s */
  0% {
    opacity: 1
  }

  15% {
    opacity: 1
  }

  25% {
    opacity: 0
  }

  90% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@keyframes fadeImages {

  /* Images 5, Delay 5s,
      Fade 2s, Duration 0m25s */
  0% {
    opacity: 1
  }

  15% {
    opacity: 1
  }

  25% {
    opacity: 0
  }

  90% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

blockquote {
  border: none;
}

blockquote p:first-of-type:before {
  content: "\201C";
}

blockquote p {
  font-family: 'Homemade Apple', cursive;
  color: darkgrey;
  font-size: 18pt;
}

blockquote p:last-of-type:after {
  content: "\201D";
}

blockquote p:last-of-type {
  margin: 0;
}

#content {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: flex-start;
  max-width: 1400px;
  gap: 60px;
  padding: 20px;
  height: calc(100vh - 250px);
}

.education {
  margin-bottom: 20px;
  display: none;
}

.cursive {
  font-family: Homemade Apple, cursive;
  color: navy;
  font-size: 18pt;
}

.minihead {
  font-variant: small-caps;
  font-size: 36pt;
}


.source {
  color: darkgray;
  display: block;
  /*float: right;
    margin-right: 80px;*/
  font-size: 14pt;
  font-family: 'Homemade Apple', cursive;
}

#left-col2 {
  position: absolute;
  left: 0px;
  width: 50%;
  margin: 1.5em;
  right: 1.5em;
}

#right-col2 {
  position: relative;
  float: right;
  width: 50%;
  margin: 1.5em;
  right: 1.5em;
}

#right-col {
  flex: 1;
  max-width: 600px;
  margin: 0;
  overflow-y: auto;
  height: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Override font size for education page only */
.education-image ~ #right-col {
  font-size: 12px;
}

.education-image ~ #right-col p {
  font-size: 12px;
}

.education-image ~ #right-col ul {
  font-size: 12px;
}

.education-image ~ #right-col li {
  font-size: 12px;
}

#quotes {
  font-family: cursive;
  color: #a8a8a8;
  font-size: 24pt;
}

i {
  padding-top: 10px;
  padding-right: 25px;
  padding-bottom: 10px;
  padding-left: 25px;
}

#social-media {
  float: right;
  width: 100%;
  text-align: center;

}

#copyright {
  float: left;
  width: 100%;
  margin: auto 0px 10px 10px;
  font-style: italic;
  font-family: 'Roboto';
  font-size: 10pt;
  color: #A8A8A8;
  text-align: center;
}

.footer2 {
  clear: both;
  width: 100%;
  margin: 0 auto 0 auto;
  border-top: 1px solid #8c8b8b;
  position: absolute;
  bottom: 0;
  padding: 1rem;
  background-color: #efefef;
}

#footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid #8c8b8b;
  background-color: #efefef;
  padding: 10px 0;
}


html {
  height: 100%;
}

html,
body {
  position: relative;
  min-height: 100%;
}

body {
  /*font-family: 'Roboto';
  font-weight: 200;
  font-size: 14px;
  background-color: transparent;
  overflow: auto;*/
  padding-bottom: 80px;
}

a {
  color: #323232;
}


#container2 {
  min-height: 100%;
  position: relative;
}


@media (max-width: 767px) {
  .my-main-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 36px;
    margin-top: 4px;
    margin-left: 8px;
    margin-bottom: 8px;
  }

  #my-navbar-xs {
    background-color: rgba(255, 255, 255, 0.9);
  }

  .navbar-default .navbar-toggle .icon-bar {
    background-color: #323232;
  }

  .navbar-default .navbar-toggle {
    border-color: #323232;
  }
}

@media (min-width: 767px) {
  #my-navbar-xs {
    background-color: transparent !important;
    border-style: none none solid none;
    border-bottom: 1px solid;
    border-bottom-color: #323232;
    margin-bottom: 0px;
  }

  .my-main-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 36px;
    margin-top: 8px;
    margin-left: 8px;
    margin-bottom: 4px;
  }

  .navbar-fixed-top {
    position: relative;
    top: auto;
  }

  .navbar-collapse {
    max-height: none;
  }

  body {
    margin: 0;
    font-size: 14px;
  }
}

@media (min-width: 767px) {
  #my-main-container {
    padding: 50px 25px 25px 25px;
    margin-right: auto;
    margin-left: auto;
    width: 80%;
  }
}

@media (max-width: 767px) {
  #my-main-container {
    padding: 60px 25px 25px 25px;
    margin-right: auto;
    margin-left: auto;
  }
}

.my-main-content,
.my-content {
  letter-spacing: 0.5px;
  color: #323232;
  padding-top: 10px;
}

.my-subject-heading {
  font-weight: 300;
  font-size: 20px;
  padding-top: 8px;
  padding-bottom: 2px;
  margin-bottom: 0px;
}

.my-hidden-heading {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 400;
  font-size: 26.72px;
}

@media (min-width: 980px) {
  body {
    font-size: 14px;
  }
}

.force-text-colour {
  color: #323232 !important;
}

.my-link {
  color: #3468b9;
  font-weight: 400;
}

.my-not-blue-link {
  color: #0e1de1;
  font-weight: 400;
}