/********** CSS RESET **********/
*, *::before, *::after {
    box-sizing: border-box;
    }
  
  * {
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  
  /********** Global Setting **********/
  html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
  }
  
  body {  
    background-color: var(--background-color);
    font-family:  Arial, Helvetica, sans-serif; /* Fall Back */
    max-width: 1440px;
    height: auto;
    margin: auto;
  }
  
  li {
    list-style-type: none;
  }
  
  h1, h2, h3, h4 {
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.125rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  p {
    font-weight: 500;
    line-height: 1.6;
    font-size: 19px;
  }

  ul li {
    font-weight: 500;
    line-height: 1.6;
    font-size: 19px;
  }

  a {
    font-size: .90rem;
  }
  
  img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  :root {
    --background-color: #fff;
    --text-color: #32292f;
    --link-color: #a52422;
    --secondary-color: #0e3a74;
  }

  /** Navigation **/
  .topnav {
    background-color: #333;
    overflow: hidden;
  }
  
  .topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  
  .active {
    background-color: #04AA6D;
    color: white;
  }
  
  .topnav .icon {
    display: none;
  }
  
  /* Dropdown container */
  .dropdown {
    float: left;
    overflow: hidden;
  }
  
  .dropdown .dropbtn {
    font-size: 17px; 
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .topnav a:hover, .dropdown:hover .dropbtn {
    background-color: #555;
    color: white;
  }
  
  .dropdown-content a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }

/* Container for Flexboxes */
.row {
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
}

.column {
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 15px;
  max-width: 900px;
  margin: auto;
}

/* Footer */
.footer {
  background-color: #f1f1f1;
  padding: 10px;
  text-align: center;
}

/* When the screen is less than 600 pixels wide, hide all links */
@media screen and (max-width: 850px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The Responsive Class */
@media screen and (max-width: 850px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}


@media screen and (max-width: 768px) {
   /* Sticky Class */
.nav {
  top: 0;
  position: -webkit-sticky;
  position: sticky;
}

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

  .column {
    padding-top: 48px;
  }

  .header {
    padding-top: 30px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.325rem;
  }

  p {
    font-size: 17px;
  }

  /* Content - Home */
  .home-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  }

  .fran {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
  }

  .leiki-writing {
    padding-top: 5px;
  }
  

  /* Content - A Brief History of Reiki */
  .history-images {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .shrine {
    padding-bottom: 3px;
  }

  figcaption {
    text-align: center;
  }

  /* Content - Our Reiki Lineage / Dr. Mikao Usui */
  .usui-images {
    display: flex;
    justify-content: center;
  }

  .usui {
    padding-bottom: 3px;
    padding-top: 5px;
  }

  .focus {
    font-size: 1.5rem;
  }

  /* Content - Chujiro Hayashi */
  .hayashi-images {
    display: flex;
    justify-content: center;
  }

  .hayashi {
    padding-bottom: 3px;
  }

  /* Content - Hawayo Takata */
  .takata-images {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .takata {
    padding-bottom: 5px;
  }

  /* Content - Rev. Fran Brown / Bio */
  .brown-images {
    display: flex;
    justify-content: center;
  }

  /* Content - Students */
  .masters-1, .masters-2 {
    text-align: center;
  }

  .list-1, .list-2 {
    display: inline-block;
    text-align: left;
  }

  .list-1 {
    padding-left: 10%;
  }

  .list-2 {
    padding-left: 30px;
  }

  .denotes {
    font-size: 1rem;
  }

  /* Content - Class Info */

  /* Content - Purchuse Book */
  .book-images {
    display: flex;
    justify-content: center;
  }

  .brown {
    padding-bottom: 3px;
  }

  .book-links {
    display: flex;
    justify-content: center;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .logo-amz {
    display: flex;
    align-items: center;
    width: 140px;
    border: 2px solid black;
    padding: 6px 28px;
    border-radius: 20px;
    background-color: #b8f6df;
    transition-duration: 0.4s;
  }

  /* Footer */
  .footer {
    background-color: #f1f1f1;
    padding: 10px;
    text-align: center;
  }
}

@media screen and (min-width: 768px) {
  /* Sticky Class */
.nav {
  top: 0;
  position: -webkit-sticky;
  position: sticky;
}

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

  .column {
    padding-top: 50px;
  }

  .header {
    padding-top: 30px;
  }

  h1 {
    font-size: 2.125rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  p {
    font-weight: 500;
    line-height: 1.6;
    font-size: 19px;
  }

  p {
    font-size: 19px;
  }

  /* Content - Home */
  .home-images {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding-top: 5px;
  }

  .leiki-writing {
    width: 105px;
  
  }

  .fran {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fran-hero {
    width: 130px;
  }

  /* Content - History */
  .history-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Content - Our Reiki Lineage / Usui */
  .usui-images {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Content - hayashi */
  .hayashi-images {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Content - Takata */
  .takata-images {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .takata {
    padding-bottom: 5px;
  }

  /* Content - Rev. Fran Brown / Bio */
  .brown-images {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Content - Students */
  .masters-1, .masters-2 {
    text-align: center;
  }

  .list-1, .list-2 {
    display: inline-block;
    text-align: center;
  }

  .list-1 {
    padding-left: 10px;
  }

  #students {
    display: flex;
    gap: 130px;
  }

  .denotes {
    font-size: 1rem;
  }

  /* Content - Class Info */
  .instructors {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .united-states {
    padding-right: 80px;
  }

  /* Content - Book */
  .book-images {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .book-links {
    display: flex;
    justify-content: center;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .logo-amz {
    display: flex;
    align-items: center;
    width: 140px;
    border: 2px solid black;
    padding: 6px 28px;
    border-radius: 20px;
    background-color: #b8f6df;
    transition-duration: 0.4s;
  }
}

@media screen and (min-width: 1440px) {
  .rainbow-box {
    border: 20px solid transparent;
    border-image: linear-gradient(to bottom right, #b827fc 10%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%);
    border-image-slice: 1;
    height: auto;
    margin: 0 auto;
    width: 100%;
  }

  .column {
    padding-top: 50px;
  }

  h1 {
    font-size: 2.125rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.525rem;
  }
  
  h4 {
    font-size: 1.325rem;
  }

  p {
    font-size: 19px;
  }

  /* Content - Home */
  .leiki-writing {
    width: 125px;
  }

  /* Takata */
  .takata {
    padding-bottom: 5px;
  }

  /* Content - Book */
  .fran-hero {
    width: 150px;
  }

  .shrine {
    width: 350px;
  }

  /* Content - Students */
  .denotes {
    font-size: 1.275rem;
  }

}

@media screen and (min-width: 1920px) {
  .rainbow-box {
    border: 20px solid transparent;
    border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%);
    border-image-slice: 1;
    height: auto;
    margin: 0 auto;
    width: 100%;
  }
  .column {
    padding-top: 50px;
  }
}

