@charset "utf-8";

:root {
  --bodyBg: #000;
  --bodyColor: #f0f0f0;
  --contentBg: #211f1d;
  --contentBg2: #20201f;
  --navBar: #1e1916;
  --navBarA: #fcd8a4;
  --navBarHomeHoverBg: #221612;
  --navBarAHoverBg: #ffe0d4;
  --navBarAHoverColor: #000;
  --navBarAActiveBg: #44331c;
  --navBarAActiveColor: #fff;
  --logoGold: #c99e4d;
  --textContentP: #fff7e8;
  --textGold: #ceae87;
  --textQuote: #fff9df;
  --textFooter:  #cdba9a;

  --citeBg: #2d2e2b;
  --citeColor: #f2edda;

  --brownBg: #6d3522;
}

@font-face {
  font-family: "Alice";
  src: url('../fonts/Alice-Regular.ttf');
}
@font-face {
  font-family: "HandFont";
  src: url('../fonts/GreatVibes-Regular.ttf');
}
@font-face {
  font-family: "Gentium";
  src: url('../fonts/GentiumBookPlus-Regular.ttf');
}
@font-face {
  font-family: "CormorantSemi";
  src: url('../fonts/Cormorant-SemiBold.ttf');
}
@font-face {
  font-family: "OldStandardTT";
  src: url('../fonts/OldStandardTT-Regular.ttf');
}
@font-face {
  font-family: "OldStandardTT-Bold";
  src: url('../fonts/OldStandardTT-Bold.ttf');
}
@font-face {
  font-family: "LoraItalic";
  src: url('../fonts/LoraItalicVariableFont_wght.ttf');
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Alice', 'Garamond', "Times New Roman", Times, serif;
  line-height: 1.3;
  margin: 0 auto;
  max-width: 45rem;
  background: var(--bodyBg);
  color: var(--bodyColor);
  font-size: 100%;   /* reset */
  font-size: 15px;
  /* if we want font size in a range where 16px is the minimum size at the smallest viewport width of 300px and where 16px is the maximum size at the largest viewport width of 1920px, then */
  /* font-size: calc(16px + (25 - 16) * ((100vw - 300px) / (1920 - 300))); */
  overflow-x: hidden;
  overflow-y: scroll;
}

.noScroll { overflow-y: hidden; }

.header {
  background-image: url(../image/design/i29v_header_v.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* BG-color set after image. If set before && image fails, can produce transparent BG */
  background-color: #000;
  height: 200px;
  overflow: hidden;
}


#quote-box {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .75);
  box-shadow: none;
}
/* this animation will be triggered by .js */
@keyframes fadeAnimation {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}
#quote-text {
  font-family: 'Gentium', 'Garamond', "Times New Roman", Times, serif;
  font-size: 1.1rem;
  font-style: italic;
  background-color: rgba(0, 0, 0, 0);
  color: var(--textQuote);
  padding: 0 2rem 0 3rem;
}

/*   --===  Style the navbar ===--    */
#nav {
  overflow: hidden;
  background-color: var(--navBar);
  display: flex;
  justify-content: space-between;
  align-items: center; /* center vertically */
  padding: 0;
  box-shadow: 0 6px 11px #000;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.navh {
  height: 2.1rem;
}
.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: inherit;
  height: 2.1rem;
  overflow: hidden;
}
/* For smooth scrolling after sticking of navbar */
.sticky + .main { padding-top: 2.1rem; }

#nav a {
  font-family: 'Gentium', 'Garamond', "Times New Roman", Times, serif;
  color: var(--navBarA);
  text-align: center;
  margin-top: 0;
  padding: 0.75rem 0.75rem;
  text-decoration: none;
  font-size: 1rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#nav a:first-child {
  margin-right: 0;
  margin-bottom: 0;
  float: left;
  padding: 0;
}
#nav a:hover {
  background-color: var(--navBarAHoverBg);
  color: var(--navBarAHoverColor);
}
#nav a.active {
  background-color: var(--navBarAActiveBg);
  color: var(--navBarAActiveColor);
}
#nav a:first-child:hover {
  background-color: var(--navBarHomeHoverBg);
}

#site-logo {
  padding: 0.5em 0 0 0;
}

.nav-img {
  height: 2rem;
  margin: 0;
  padding: 0.1rem 1rem 0.1rem 1rem;
  cursor: pointer;
}

.nav-link { display: none; }
#burger, #quote { display: block; }

#mobile-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 555;
  top: 0;
  left: -0.12rem;
  background-image: url(../image/design/k4.png);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: auto 70vh;
  background-color: #111;
  overflow-x: hidden;
  white-space: nowrap;
  transition: 0.5s;
  padding-top: 5rem;

  border-right-style: solid;
  border-color: #c99e4d;
  border-width: 0.1rem;
}

#mobile-nav .closebtn {
  position: absolute;
  z-index: 101;
  top: 42%;
  right: 0rem;
  margin-left: 50px;
}

.closebtn-img {
  height: 9rem;
}

.nav-link-mobile {
  padding: 1rem 8px 8px 17vw;
  text-decoration: none;
  font-size: 25px;
  /* color: #818181; */
  color: #c99e4d;
  transition: 0.3s;
}
a.nav-link-mobile:hover {
  color: #f1f1f1;
}


.spec-link-mob {
  animation: spec-color-mob 15s infinite;
  animation-timing-function: ease-in-out;
}
.spec-link {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  animation: spec-color 20s infinite;
}

#nav a:nth-child(4):hover {
  background-color: #000;
  color: #ff2a2a;
}

@keyframes spec-color-mob {
  0% { color: #818181; letter-spacing: normal;}
  20% { color: #818181; letter-spacing: normal; }
  30% { color: #ff2a2a; letter-spacing: 1rem; }
  35% { color: #ff2a2a; }
  45% { color: #818181; }
  100% { color: #818181; letter-spacing: normal;}
}
@keyframes spec-color {
  0% { color: var(--navBarA); }
  20% { color: var(--navBarA); }
  30% { color: #ff2a2a; }
  33% { color: #ff2a2a; }
  50% { color: var(--navBarA); }
  100% { color: var(--navBarA); }
}

.main {
  display: flex;
  flex-direction: column;
  align-content: start;
}

/* -----  C O N T E N T ----- */
.content, .footer {
  background-color: var(--contentBg);
  margin: 0.5rem 0 0 0;
  padding: 0;
}

h1, h2 {
  font-family: 'CormorantSemi', 'Garamond', "Times New Roman", Times, serif;
  text-align: center;
  font-size: 1.725rem;
  color: var(--textGold);
  padding: 1.1rem 0 0 0;
  margin: 0.3rem auto 1rem auto;
  text-indent: 0;
  line-height: 1;
}
h2 {
  font-size: 1.7rem;
  margin: 0.5rem auto 1rem auto;
}

/* If the browser can handle hyphens than hiphenate text in p */
p {
  font-size: 1rem;
  hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
}

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

/* for offset when goto anchors */
a.aaa {
  display: block;
  position: relative;
  top: -3rem;
  visibility: hidden;
}
.content p {
  font-size: 1rem;
  text-indent: 1rem;
  color: var(--textContentP);
  margin: 0.6rem 0.3rem 0.8rem 0.8rem;
}
/* ========== HAND WRITING =========== */
.handwriting {
  background-color: var(--contentBg);
  margin: 0.5rem 0 0 0;
  padding: 0; 
}
.handwriting p {
  font-family: 'HandFont', 'Garamond', "Times New Roman", Times, serif;
  font-size: 1.5rem;
  color: var(--navBarA);
  line-height: 1.2;
}
.handwriting p:first-child {
  margin: 0.8rem 0 0.8rem 0;
  padding: 0;
  text-align: center;
}
.handwriting p:last-child {
  padding: 0 0.6rem 0 0.6rem;
  margin: 0 0 0.8rem 0;
}

.handwriting a {
  text-decoration: none;
  color: #d76849;
}

.content ul {
  padding: 0;
  margin: 0;
}

.vtitul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  text-indent: 0;
}
.vtitul img { height: 1.1rem; margin: 0; }
.vtitul h1 {  
  font-size: 1.5rem;
  padding: 0;
  margin: 0.5rem 0.5rem; 
}


/* -------- I L L U S T  -------- */
.illust {
  width: 10rem;
  margin: 0.3rem auto 0 auto;
}
.illust img {
  width: 10rem;
  margin: 0.3rem auto 0 auto;
}

/* -------- VIEWABLE img open on full screen  -------- */
.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
        
.fullscreen img {
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
}

/* ---------- M O D A L ---------- */
.modal {
  display: none;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.modal-about {
  position: absolute;
  text-align: center;
  background-color: #000;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 51;
}
.show-full-screen {
  display: flex;
  position: fixed;
  z-index: 50;
  width: 100vw;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* top: 0; */
  /* left: 0; */
  background-color: #000000;
  /* transition: 0.5s; */
}


/* ======  WHERE TO READ ?  ======  */
.aread-container {
  margin: 0 0 1.5rem 0;
  padding: 0;
}
.cover-small {
  float: left;
  width: 7rem;
  margin: 0 0.4rem 0.2rem 0.7rem;
}
.mread-card {
  display: flex;
  line-height: 1.2;
  flex-direction: row;
  align-items: center;
  text-indent: 0;
  margin: 0.1rem 0 0 0;
  padding: 0;
}
.mread-container {
  font-size: 1.125rem;
  margin: 0;
  padding: 0;
  border-top: solid 1px var(--textGold);
}
.mend-container { border-bottom: solid 1px var(--textGold); }
.mread-card p {
  font-family: 'Gentium', 'Garamond', "Times New Roman", Times, serif;
  padding: 0 0.2rem 0 0;
  text-indent: 0;
}
.mread-container a {
  text-decoration: none;
}
.mread-icon {
  width: 3rem;
  margin-left: 0.5rem;
  padding: 0;
}


/* ---------- P C   &    T A B L E T S ---------- */
/* Unless you have a legitimate reason to restrict the style sheets based on the resolution */
/* and not the size of the viewport, then just use min-width/max-width */
/*  and avoid min-device-width/max-device-width */
@media only screen and (min-width: 480px) {
  body {
    /* font-family: 'Alice', 'Garamond', "Times New Roman", Times, serif; */
    font-size: 1.25rem;
    line-height: 1.4;
  }

  h1 { margin: 0.6rem auto 1.2rem auto; }

  h2 { margin-top: 0.7rem; }

  .nav-link { display: block; }

/* for Logo to be on the left we're adding "margin-right:auto" on the flex child */
  #nav a:first-child {
    margin-right: auto;
  }

  .content, .footer {
    padding: 0.5rem 2rem 1.5rem 2rem;
    margin: 0.5rem 0 0 0;
  }
  
  .content p {
    font-size: 1.125rem;
    margin: 0.6rem 0.1rem 0.8rem 0.2rem;
    padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  }

.handwriting p {
  font-family: 'HandFont', 'Garamond', "Times New Roman", Times, serif;
  font-size: 1.6rem;
  padding: 0 2.5rem 0 2.5rem;
}
.handwriting p:last-child {
  margin-left: 3rem;
  margin-right: 3rem;
}

  #mobile-nav, #burger { display: none; }

  #quote-box {
    opacity: 0;
  /* centering vertically */
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  /* ..endof centering    */
    width: 100%;
    height: 110%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, .6);
  }
  #quote-text {
    margin: 0 auto;
    padding: 0.5rem 4rem 0.5rem 6rem;
  }

/* -------- I L L U S T  -------- */
  .illust {
    width: 15rem;
    margin: 0.3rem auto;
  }
  .illust img {
    width: 15rem;
    margin: 0.3rem;
  }

}
/* ---------- O L D    P H O N E S ---------- */
@media only screen and (max-width: 320px) {

}